1import{R as h,r as a,dd as V,bT as te,aM as _,as as w,ax as T,az as le,aA as ne,bU as ae,aC as b,aE as se,aI as oe,c2 as re,aL as U}from"./theme-3dfVej7W.js";import{m as W,a as ie}from"./useBreakpoint-DBaSuQQQ.js";const ce={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=h.createContext(null),me=e=>te(e).map(t=>({...t?.props,key:t.key}));function de(e,t,s){const l=a.useMemo(()=>t||me(s),[t,s]);return a.useMemo(()=>l.map(({span:n,...o})=>n==="filled"?{...o,filled:!0}:{...o,span:V(n)?n:W(e,n)}),[l,e])}function pe(e,t){let s=[],l=[],r=!1,n=0;return e.filter(o=>o).forEach(o=>{const{filled:c,...i}=o;if(c){l.push(i),s.push(l),l=[],n=0;return}const m=t-n;n+=o.span||1,n>=t?(n>t?(r=!0,l.push({...i,span:m})):l.push(i),s.push(l),l=[],n=0):l.push(i)}),l.length>0&&s.push(l),s=s.map(o=>{const c=o.reduce((i,m)=>i+(m.span||1),0);if(c<t){const i=o[o.length-1];return i.span=t-(c-(i.span||1)),o}return o}),[s,r]}const ue=(e,t)=>{const[s,l]=a.useMemo(()=>pe(t,e),[t,e]);return s},ge=e=>e.children,P=e=>{const{itemPrefixCls:t,component:s,span:l,className:r,style:n,labelStyle:o,contentStyle:c,bordered:i,label:m,content:p,colon:R,type:d,styles:v,classNames:x}=e,$=s,{classNames:I,styles:M}=h.useContext(A),[u,S]=_([I,x],[M,v],{props:e}),y={...o,...S.label},C={...c,...S.content};if(i){let f;d==="label"&&(f=y),d==="content"&&(f=C);const z=f?{...n,...f}:n;return h.createElement($,{colSpan:l,style:z,className:w(r,{[`${t}-item-${d}`]:d==="label"||d==="content",[u.label]:u.label&&d==="label",[u.content]:u.content&&d==="content"})},T(m)&&h.createElement("span",null,m),T(p)&&h.createElement("span",null,p))}return h.createElement($,{className:w(`${t}-item`,r),style:n,colSpan:l},h.createElement("div",{className:`${t}-item-container`},T(m)&&h.createElement("span",{style:y,className:w(`${t}-item-label`,u.label,{[`${t}-item-no-colon`]:!R})},m),T(p)&&h.createElement("span",{style:C,className:w(`${t}-item-content`,u.content)},p)))};function H(e,{colon:t,prefixCls:s,bordered:l},{component:r,type:n,showLabel:o,showContent:c,labelStyle:i,contentStyle:m,styles:p}){return e.map(({label:R,children:d,prefixCls:v=s,className:x,style:$,labelStyle:I,contentStyle:M,span:u=1,key:S,styles:y,classNames:C},f)=>{if(typeof r=="string")return a.createElement(P,{key:`${n}-${S||f}`,className:x,style:$,classNames:C,styles:{label:{...i,...p?.label,...I,...y?.label},content:{...m,...p?.content,...M,...y?.content}},span:u,colon:t,component:r,itemPrefixCls:v,bordered:l,label:o?R:null,content:c?d:null,type:n});const z={label:{...i,...p?.label,...I,...y?.label},content:{...m,...p?.content,...M,...y?.content}};return[a.createElement(P,{key:`label-${S||f}`,className:x,style:$,classNames:C,styles:z,span:1,colon:t,component:r[0],itemPrefixCls:v,bordered:l,label:R,type:"label"}),a.createElement(P,{key:`content-${S||f}`,className:x,style:$,classNames:C,styles:z,span:u*2-1,component:r[1],itemPrefixCls:v,bordered:l,content:d,type:"content"})]})}const be=e=>{const t=a.useContext(A),{prefixCls:s,vertical:l,row:r,index:n,bordered:o}=e;return l?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${n}`,className:`${s}-row`},H(r,e,{component:"th",type:"label",showLabel:!0,...t})),a.createElement("tr",{key:`content-${n}`,className:`${s}-row`},H(r,e,{component:"td",type:"content",showContent:!0,...t}))):a.createElement("tr",{key:n,className:`${s}-row`},H(r,e,{component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,...t}))},fe=e=>{const{componentCls:t,labelBg:s}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${b(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${b(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${b(e.padding)} ${b(e.paddingLG)}`,borderInlineEnd:`${b(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:s,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${b(e.paddingSM)} ${b(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${b(e.paddingXS)} ${b(e.padding)}`}}}}}},$e=e=>{const{componentCls:t,extraColor:s,itemPaddingBottom:l,itemPaddingEnd:r,colonMarginRight:n,colonMarginLeft:o,titleMarginBottom:c}=e;return{[t]:{...se(e),...fe(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:c},[`${t}-title`]:{...ae,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{minWidth:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:l,paddingInlineEnd:r},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${b(o)} ${b(n)}`},[`&${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"}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},ye=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,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}),he=le("Descriptions",e=>{const t=ne(e,{});return $e(t)},ye),xe=a.forwardRef((e,t)=>
1{const{prefixCls:s,title:l,extra:r,column:n,colon:o=!0,bordered:c,layout:i,children:m,className:p,rootClassName:R,style:d,size:v,labelStyle:x,contentStyle:$,styles:I,items:M,classNames:u,...S}=e,{getPrefixCls:y,direction:C,className:f,style:z,classNames:O,styles:j}=oe("descriptions"),g=y("descriptions",s),B=ie(),D=a.useMemo(()=>V(n)?n:W(B,n)??W(B,ce)??3,[B,n]),G=de(B,M,m),L=re(v),q=ue(D,G),[J,K]=he(g),Q={...e,column:D,items:G,size:L},Y=U(z),Z=U(d),[E,N]=_([O,u],[j,Y,I,Z],{props:Q}),k=a.useMemo(()=>({labelStyle:x,contentStyle:$,styles:{label:N.label,content:N.content},classNames:{label:E.label,content:E.content}}),[x,$,N.label,N.content,E.label,E.content]),X=a.useRef(null);return a.useImperativeHandle(t,()=>({nativeElement:X.current})),a.createElement(A.Provider,{value:k},a.createElement("div",{ref:X,className:w(g,f,E.root,{[`${g}-medium`]:L==="medium"||L==="middle",[`${g}-small`]:L==="small",[`${g}-bordered`]:!!c,[`${g}-rtl`]:C==="rtl"},p,R,J,K),style:N.root,...S},(l||r)&&a.createElement("div",{className:w(`${g}-header`,E.header),style:N.header},l&&a.createElement("div",{className:w(`${g}-title`,E.title),style:N.title},l),r&&a.createElement("div",{className:w(`${g}-extra`,E.extra),style:N.extra},r)),a.createElement("div",{className:`${g}-view`},a.createElement("table",null,a.createElement("tbody",null,q.map((ee,F)=>a.createElement(be,{key:F,index:F,colon:o,prefixCls:g,vertical:i==="vertical",bordered:c,row:ee})))))))});xe.Item=ge;export{xe as D};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.