PageSourceSearch

https://lobe-chat-eight-virid-32.vercel.app/_next/static/chunks/33521-69f7684c1abb2f67.js

js lobe-chat-eight-virid-32.vercel.app collected 2026-10-03 07:15:10 UTC 11,363 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33521],{33521:(e,t,n)=>{n.d(t,{A:()=>S});var a=n(12115),r=n(50460),o=n.n(r),l=n(52454),i=n(53014),s=n(79007),u=n(15982),c=n(44494),d=n(68151),f=n(9836),p=n(63568),m=n(63893),g=n(18574),v=n(43717),x=n(30611),b=n(45431),h=n(61388),A=n(19086);let w=e=>{let{componentCls:t,paddingLG:n}=e,a="".concat(t,"-textarea");return{[a]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(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"}},["\n        &-allow-clear > ".concat(t,",\n        &-affix-wrapper").concat(a,"-has-feedback ").concat(t,"\n      ")]:{paddingInlineEnd:n},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},["".concat(a,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},["&-affix-wrapper".concat(t,"-affix-wrapper-sm")]:{["".concat(t,"-suffix")]:{["".concat(t,"-clear-icon")]:{insetInlineEnd:e.paddingInlineSM}}}}}},y=(0,b.OF)(["Input","TextArea"],e=>[w((0,h.oX)(e,(0,A.C)(e)))],A.b,{resetFont:!1});var C=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let S=(0,a.forwardRef)((e,t)=>{var n;let{prefixCls:r,bordered:b=!0,size:h,disabled:A,status:w,allowClear:S,classNames:z,rootClassName:E,className:N,style:O,styles:R,variant:I}=e,F=C(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:j,direction:P,allowClear:V,autoComplete:T,className:k,style:H,classNames:W,styles:L}=(0,u.TP)("textArea"),M=a.useContext(c.A),{status:B,hasFeedback:D,feedbackIcon:_}=a.useContext(p.$W),K=(0,s.v)(B,w),X=a.useRef(null);a.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=X.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,v.F4)(null===(n=null===(t=X.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=X.current)||void 0===e?void 0:e.blur()}}});let q=j("input",r),Y=(0,d.A)(q),[G,Q,$]=(0,x.MG)(q,E),[J]=y(q,Y),{compactSize:U,compactItemClassnames:Z}=(0,g.RQ)(q,P),ee=(0,f.A)(e=>{var t;return null!==(t=null!=h?h:U)&&void 0!==t?t:e}),[et,en]=(0,m.A)("textArea",I,b),ea=(0,i.A)(null!=S?S:V);return G(J(a.createElement(l.A,Object.assign({autoComplete:T},F,{style:Object.assign(Object.assign({},H),O),styles:Object.assign(Object.assign({},L),R),disabled:null!=A?A:M,allowClear:ea,className:o()($,Y,N,E,Z,k),classNames:Object.assign(Object.assign(Object.assign({},z),W),{textarea:o()({["".concat(q,"-sm")]:"small"===ee,["".concat(q,"-lg")]:"large"===ee},Q,null==z?void 0:z.textarea,W.textarea),variant:o()({["".concat(q,"-").concat(et)]:en},(0,s.L)(q,K)),affixWrapper:o()("".concat(q,"-textarea-affix-wrapper"),{["".concat(q,"-affix-wrapper-rtl")]:"rtl"===P,["".concat(q,"-affix-wrapper-sm")]:"small"===ee,["".concat(q,"-affix-wrapper-lg")]:"large"===ee,["".concat(q,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},Q)}),prefixCls:q,suffix:D&&a.createElement("span",{className:"".concat(q,"-textarea-suffix")},_),ref:X}))))})},52454:(e,t,n)=>{n.d(t,{A:()=>E});var a,r=n(56404),o=n(9777),l=n(6623),i=n(59515),s=n(42550),u=n(83365),c=n(50460),d=n.n(c),f=n(11261),p=n(52
1032),m=n(43717),g=n(48804),v=n(12115),x=n(32458),b=n(50347),h=n(49172),A=n(16962),w=["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"],y={},C=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],S=v.forwardRef(function(e,t){var n=e.prefixCls,i=e.defaultValue,c=e.value,f=e.autoSize,p=e.onResize,m=e.className,S=e.style,z=e.disabled,E=e.onChange,N=(e.onInternalAutoSize,(0,u.A)(e,C)),O=(0,g.A)(i,{value:c,postState:function(e){return null!=e?e:""}}),R=(0,s.A)(O,2),I=R[0],F=R[1],j=v.useRef();v.useImperativeHandle(t,function(){return{textArea:j.current}});var P=v.useMemo(function(){return f&&"object"===(0,x.A)(f)?[f.minRows,f.maxRows]:[]},[f]),V=(0,s.A)(P,2),T=V[0],k=V[1],H=!!f,W=function(){try{if(document.activeElement===j.current){var e=j.current,t=e.selectionStart,n=e.selectionEnd,a=e.scrollTop;j.current.setSelectionRange(t,n),j.current.scrollTop=a}}catch(e){}},L=v.useState(2),M=(0,s.A)(L,2),B=M[0],D=M[1],_=v.useState(),K=(0,s.A)(_,2),X=K[0],q=K[1],Y=function(){D(0)};(0,h.A)(function(){H&&Y()},[c,T,k,H]),(0,h.A)(function(){if(0===B)D(1);else if(1===B){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;a||((a=document.createElement("textarea")).setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),a.setAttribute("name","hiddenTextarea"),document.body.appendChild(a)),e.getAttribute("wrap")?a.setAttribute("wrap",e.getAttribute("wrap")):a.removeAttribute("wrap");var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&y[n])return y[n];var a=window.getComputedStyle(e),r=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),o=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),l=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),i={sizingStyle:w.map(function(e){return"".concat(e,":").concat(a.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:l,boxSizing:r};return t&&n&&(y[n]=i),i}(e,n),i=l.paddingSize,s=l.borderSize,u=l.boxSizing,c=l.sizingStyle;a.setAttribute("style","".concat(c,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),a.value=e.value||e.placeholder||"";var d=void 0,f=void 0,p=a.scrollHeight;if("border-box"===u?p+=s:"content-box"===u&&(p-=i),null!==r||null!==o){a.value=" ";var m=a.scrollHeight-i;null!==r&&(d=m*r,"border-box"===u&&(d=d+i+s),p=Math.max(d,p)),null!==o&&(f=m*o,"border-box"===u&&(f=f+i+s),t=p>f?"":"hidden",p=Math.min(f,p))}var g={height:p,overflowY:t,resize:"none"};return d&&(g.minHeight=d),f&&(g.maxHeight=f),g}(j.current,!1,T,k);D(2),q(e)}else W()},[B]);var G=v.useRef(),Q=function(){A.A.cancel(G.current)};v.useEffect(function(){return Q},[]);var $=(0,l.A)((0,l.A)({},S),H?X:null);return(0===B||1===B)&&($.overflowY="hidden",$.overflowX="hidden"),v.createElement(b.A,{onResize:function(e){2===B&&(null==p||p(e),f&&(Q(),G.current=(0,A.A)(function(){Y()})))},disabled:!(f||p)},v.createElement("textarea",(0,r.A)({},N,{ref:j,style:$,className:d()(n,m,(0,o.A)({},"".concat(n,"-disabled"),z)),disabled:z,value:I,onChange:function(e){F(e.target.value),null==E||E(e)}})))}),z=["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"];let E=v.forwardRef(function(e,t){var n,a,c=e.defaultValue,x=e.value,b=e.onFocus,h=e.onBlur,A=e.onChange,w=e.allowClear,y=e.maxLength,C=e.onCompositionStart,E=e.onCompositionEnd,N=e.suffix,O=e.prefixCls,R=void 0===O?"rc-textarea":O,I=e.showCount,F=e.count,j=e.className,P=e.style,V=e.disabled,T=e.hidden,k=e.classNames,H=e.styles,W=e.onResize,L=e.onClear,M=e.onPressEnter,B=e.readOnly,D=e.autoSize,_=e.onKeyDown,K=(0,u.A)(e,z),X=(0,g.A)(c,{value:x,defaultValue:c}),q=(0,s.A)(X,2),Y=q[0],G=q[1],Q=null==Y?"":String(Y),$=v.useState(!1),J=(0,s.A)($,2),U=J[0],Z=J[1],ee=v.useRef(!1),et=v.useState(null),en=(0,s.A)(et,2),ea=en[0],er=en[1],eo=(0,v.useRef)(null),el=(0,v.useRef)(null),ei=function(){var e;return null===(e=el.current)||void 0===e?void 0:e.textArea},es=function(){ei().focus()};(0,v.useImperativeHandle)(t,function(){var e;return{resizableTextArea:el.current,focus:es,blur:function(){ei().blur()},nativeElement:(null===(e=eo.current)||void 0===e?void 0:e.nativeElement)||ei()}}),(0,v.useEffect)(function(){Z(function(e){return!V&&e})},[V]);var eu=v.useState(null),ec=(0,s.A)(eu,2),ed=ec[0],ef=ec[1];v.useEffect(function(){if(ed){var e;(e=ei()).setSelectionRange.apply(e,(0,i.A)(ed))}},[ed]);var ep=(0,p.A)(F,I),em=null!==(n=ep.max)&&void 0!==n?n:y,eg=Number(em)>0,ev=ep.strategy(Q),ex=!!em&&ev>em,eb=function(e,t){var n=t;!ee.current&&ep.exceedFormatter&&ep.max&&ep.strategy(t)>ep.max&&(n=ep.exceedFormatter(t,{max:ep.max}),t!==n&&ef([ei().selectionStart||0,ei().selectionEnd||0])),G(n),(0,m.gS)(e.currentTarget,e,A,n)},eh=N;
1ep.show&&(a=ep.showFormatter?ep.showFormatter({value:Q,count:ev,maxLength:em}):"".concat(ev).concat(eg?" / ".concat(em):""),eh=v.createElement(v.Fragment,null,eh,v.createElement("span",{className:d()("".concat(R,"-data-count"),null==k?void 0:k.count),style:null==H?void 0:H.count},a)));var eA=!D&&!I&&!w;return v.createElement(f.a,{ref:eo,value:Q,allowClear:w,handleReset:function(e){G(""),es(),(0,m.gS)(ei(),e,A)},suffix:eh,prefixCls:R,classNames:(0,l.A)((0,l.A)({},k),{},{affixWrapper:d()(null==k?void 0:k.affixWrapper,(0,o.A)((0,o.A)({},"".concat(R,"-show-count"),I),"".concat(R,"-textarea-allow-clear"),w))}),disabled:V,focused:U,className:d()(j,ex&&"".concat(R,"-out-of-range")),style:(0,l.A)((0,l.A)({},P),ea&&!eA?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof a?a:void 0}},hidden:T,readOnly:B,onClear:L},v.createElement(S,(0,r.A)({},K,{autoSize:D,maxLength:y,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==_||_(e)},onChange:function(e){eb(e,e.target.value)},onFocus:function(e){Z(!0),null==b||b(e)},onBlur:function(e){Z(!1),null==h||h(e)},onCompositionStart:function(e){ee.current=!0,null==C||C(e)},onCompositionEnd:function(e){ee.current=!1,eb(e,e.currentTarget.value),null==E||E(e)},className:d()(null==k?void 0:k.textarea),style:(0,l.A)((0,l.A)({},null==H?void 0:H.textarea),{},{resize:null==P?void 0:P.resize}),disabled:V,prefixCls:R,onResize:function(e){var t;null==W||W(e),null!==(t=ei())&&void 0!==t&&t.style.height&&er(!0)},ref:el,readOnly:B})))})}}]);

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.