You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Shixuns__Detail__Reposit...

96 lines
415 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7046],{40001:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},84105:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},73331:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},15277:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},61485:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},47472:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(60499),F=u(59301),p={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"},V=p,L=u(7657),H=function(d,X){return F.createElement(L.Z,(0,v.Z)({},d,{ref:X,icon:V}))},N=F.forwardRef(H),ee=N},68196:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return A}});var v=u(85899),F=u(72190),p=u(42244),V=u(43403),L=u(92310),H=u.n(L),N=u(29301),ee=u(76846),_=u(96452),d=u(6089),X=u(80402),P=u(34280),re=u(49658),$=u(59301),Ne=u(60499),Ue=u(77900),Ye=u(8654);function We(w){var I=w.prefixCls,S=w.align,K=w.arrow,te=w.arrowPos,q=K||{},Q=q.className,Se=q.content,ue=te.x,ve=ue===void 0?0:ue,pe=te.y,Oe=pe===void 0?0:pe,me=$.useRef();if(!S||!S.points)return null;var ie={position:"absolute"};if(S.autoArrow!==!1){var be=S.points[0],ce=S.points[1],Ke=be[0],Pe=be[1],Ze=ce[0],$e=ce[1];Ke===Ze||!["t","b"].includes(Ke)?ie.top=Oe:Ke==="t"?ie.top=0:ie.bottom=0,Pe===$e||!["l","r"].includes(Pe)?ie.left=ve:Pe==="l"?ie.left=0:ie.right=0}return $.createElement("div",{ref:me,className:H()("".concat(I,"-arrow"),Q),style:ie},Se)}function x(w){var I=w.prefixCls,S=w.open,K=w.zIndex,te=w.mask,q=w.motion;return te?$.createElement(Ue.default,(0,Ne.Z)({},q,{motionAppear:!0,visible:S,removeOnLeave:!0}),function(Q){var Se=Q.className;return $.createElement("div",{style:{zIndex:K},className:H()("".concat(I,"-mask"),Se)})}):null}var Y=$.memo(function(w){var I=w.children;return I},function(w,I){return I.cache}),y=Y,T=$.forwardRef(function(w,I){var S=w.popup,K=w.className,te=w.prefixCls,q=w.style,Q=w.target,Se=w.onVisibleChanged,ue=w.open,ve=w.keepDom,pe=w.fresh,Oe=w.onClick,me=w.mask,ie=w.arrow,be=w.arrowPos,ce=w.align,Ke=w.motion,Pe=w.maskMotion,Ze=w.forceRender,$e=w.getPopupContainer,dt=w.autoDestroy,it=w.portal,Fe=w.zIndex,ot=w.onMouseEnter,Et=w.onMouseLeave,gt=w.onPointerEnter,Ot=w.onPointerDownCapture,or=w.ready,st=w.offsetX,ut=w.offsetY,Vt=w.offsetR,Qt=w.offsetB,Gt=w.onAlign,_t=w.onPrepare,yt=w.stretch,It=w.targetWidth,Dt=w.targetHeight,sr=typeof S=="function"?S():S,Xe=ue||ve,zt=($e==null?void 0:$e.length)>0,Jt=$.useState(!$e||!zt),xr=(0,F.Z)(Jt,2),cr=xr[0],Or=xr[1];if((0,P.Z)(function(){!cr&&zt&&Q&&Or(!0)},[cr,zt,Q]),!cr)return null;var Mr="auto",Ir={left:"-1000vw",top:"-1000vh",right:Mr,bottom:Mr};if(or||!ue){var Dr,hr=ce.points,Wt=ce.dynamicInset||((Dr=ce._experimental)===null||Dr===void 0?void 0:Dr.dynamicInset),mr=Wt&&hr[0][1]==="r",Bt=Wt&&hr[0][0]==="b";mr?(Ir.right=Vt,Ir.left=Mr):(Ir.left=st,Ir.right=Mr),Bt?(Ir.bottom=Qt,Ir.top=Mr):(Ir.top=ut,Ir.bottom=Mr)}var Me={};return yt&&(yt.includes("height")&&Dt?Me.height=Dt:yt.includes("minHeight")&&Dt&&(Me.minHeight=Dt),yt.includes("width")&&It?Me.width=It:yt.includes("minWidth")&&It&&(Me.minWidth=It)),ue||(Me.pointerEvents="none"),$.createElement(it,{open:Ze||Xe,getContainer:$e&&function(){return $e(Q)},autoDestroy:dt},$.createElement(x,{prefixCls:te,open:ue,zIndex:Fe,mask:me,motion:Pe}),$.createElement(N.Z,{onResize:Gt,disabled:!ue},function(Xt){return $.createElement(Ue.default,(0,Ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ze,leavedClassName:"".concat(te,"-hidden")},Ke,{onAppearPrepare:_t,onEnterPrepare:_t,visible:ue,onVisibleChanged:function(wr){var O;Ke==null||(O=Ke.onVisibleChanged)===null||O===void 0||O.call(Ke,wr),Se(wr)}}),function(zr,wr){var O=zr.className,R=zr.style,h=H()(te,O,K);return $.createElement("div",{ref:(0,Ye.sQ)(Xt,I,wr),className:h,style:(0,v.Z)((0,v.Z)((0,v.Z)((0,v.Z)({"--arrow-x":"".concat(be.x||0,"px"),"--arrow-y":"".concat(be.y||0,"px")},Ir),Me),R),{},{boxSizing:"border-box",zIndex:Fe},q),onMouseEnter:ot,onMouseLeave:Et,onPointerEnter:gt,onClick:Oe,onPointerDownCapture:Ot},ie&&$.createElement(We,{prefixCls:te,arrow:ie,arrowPos:be,align:ce}),$.createElement(y,{cache:!ue&&!pe},sr))})}))}),J=T,D=$.forwardRef(function(w,I){var S=w.children,K=w.getTriggerDOMNode,te=(0,Ye.Yr)(S),q=$.useCallback(function(Se){(0,Ye.mH)(I,K?K(Se):Se)},[K]),Q=(0,Ye.x1)(q,(0,Ye.C4)(S));return te?$.cloneElement(S,{ref:Q}):S}),de=D,we=$.createContext(null),k=we;function He(w){return w?Array.isArray(w)?w:[w]:[]}function lt(w,I,S,K){return $.useMemo(function(){var te=He(S!=null?S:I),q=He(K!=null?K:I),Q=new Set(te),Se=new Set(q);return w&&(Q.has("hover")&&(Q.delete("hover"),Q.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[Q,Se]},[w,I,S,K])}var G=u(29194);function W(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],S=arguments.length>2?arguments[2]:void 0;return S?w[0]===I[0]:w[0]===I[0]&&w[1]===I[1]}function f(w,I,S,K){for(var te=S.points,q=Object.keys(w),Q=0;Q<q.length;Q+=1){var Se,ue=q[Q];if(W((Se=w[ue])===null||Se===void 0?void 0:Se.points,te,K))return"".concat(I,"-placement-").concat(ue)}return""}function Z(w,I,S,K){return I||(S?{motionName:"".concat(w,"-").concat(S)}:K?{motionName:K}:null)}function E(w){return w.ownerDocument.defaultView}function se(w){for(var I=[],S=w==null?void 0:w.parentElement,K=["hidden","scroll","clip","auto"];S;){var te=E(S).getComputedStyle(S),q=te.overflowX,Q=te.overflowY,Se=te.overflow;[q,Q,Se].some(function(ue){return K.includes(ue)})&&I.push(S),S=S.parentElement}return I}function z(w){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(w)?I:w}function ne(w){return z(parseFloat(w),0)}function Ee(w,I){var S=(0,v.Z)({},w);return(I||[]).forEach(function(K){if(!(K instanceof HTMLBodyElement||K instanceof HTMLHtmlElement)){var te=E(K).getComputedStyle(K),q=te.overflow,Q=te.overflowClipMargin,Se=te.borderTopWidth,ue=te.borderBottomWidth,ve=te.borderLeftWidth,pe=te.borderRightWidth,Oe=K.getBoundingClientRect(),me=K.offsetHeight,ie=K.clientHeight,be=K.offsetWidth,ce=K.clientWidth,Ke=ne(Se),Pe=ne(ue),Ze=ne(ve),$e=ne(pe),dt=z(Math.round(Oe.width/be*1e3)/1e3),it=z(Math.round(Oe.height/me*1e3)/1e3),Fe=(be-ce-Ze-$e)*dt,ot=(me-ie-Ke-Pe)*it,Et=Ke*it,gt=Pe*it,Ot=Ze*dt,or=$e*dt,st=0,ut=0;if(q==="clip"){var Vt=ne(Q);st=Vt*dt,ut=Vt*it}var Qt=Oe.x+Ot-st,Gt=Oe.y+Et-ut,_t=Qt+Oe.width+2*st-Ot-or-Fe,yt=Gt+Oe.height+2*ut-Et-gt-ot;S.left=Math.max(S.left,Qt),S.top=Math.max(S.top,Gt),S.right=Math.min(S.right,_t),S.bottom=Math.min(S.bottom,yt)}}),S}function oe(w){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S="".concat(I),K=S.match(/^(.*)\%$/);return K?w*(parseFloat(K[1])/100):parseFloat(S)}function je(w,I){var S=I||[],K=(0,F.Z)(S,2),te=K[0],q=K[1];return[oe(w.width,te),oe(w.height,q)]}function Qe(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[w[0],w[1]]}function De(w,I){var S=I[0],K=I[1],te,q;return S==="t"?q=w.y:S==="b"?q=w.y+w.height:q=w.y+w.height/2,K==="l"?te=w.x:K==="r"?te=w.x+w.width:te=w.x+w.width/2,{x:te,y:q}}function Je(w,I){var S={t:"b",b:"t",l:"r",r:"l"};return w.map(function(K,te){return te===I?S[K]||"c":K}).join("")}function Be(w,I,S,K,te,q,Q){var Se=$.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:te[K]||{}}),ue=(0,F.Z)(Se,2),ve=ue[0],pe=ue[1],Oe=$.useRef(0),me=$.useMemo(function(){return I?se(I):[]},[I]),ie=$.useRef({}),be=function(){ie.current={}};w||be();var ce=(0,d.Z)(function(){if(I&&S&&w){let Ar=function(Vn,Pt){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j,Yt=Xe.x+Vn,nr=Xe.y+Pt,Rr=Yt+Bt,Hr=nr+mr,$n=Math.max(Yt,er.left),ct=Math.max(nr,er.top),Tt=Math.min(Rr,er.right),pr=Math.min(Hr,er.bottom);return Math.max(0,(Tt-$n)*(pr-ct))},Un=function(){Ur=Xe.y+Nt,$r=Ur+mr,qt=Xe.x+Rt,Ct=qt+Bt};var Ze,$e,dt,it,Fe=I,ot=Fe.ownerDocument,Et=E(Fe),gt=Et.getComputedStyle(Fe),Ot=gt.position,or=Fe.style.left,st=Fe.style.top,ut=Fe.style.right,Vt=Fe.style.bottom,Qt=Fe.style.overflow,Gt=(0,v.Z)((0,v.Z)({},te[K]),q),_t=ot.createElement("div");(Ze=Fe.parentElement)===null||Ze===void 0||Ze.appendChild(_t),_t.style.left="".concat(Fe.offsetLeft,"px"),_t.style.top="".concat(Fe.offsetTop,"px"),_t.style.position=Ot,_t.style.height="".concat(Fe.offsetHeight,"px"),_t.style.width="".concat(Fe.offsetWidth,"px"),Fe.style.left="0",Fe.style.top="0",Fe.style.right="auto",Fe.style.bottom="auto",Fe.style.overflow="hidden";var yt;if(Array.isArray(S))yt={x:S[0],y:S[1],width:0,height:0};else{var It,Dt,sr=S.getBoundingClientRect();sr.x=(It=sr.x)!==null&&It!==void 0?It:sr.left,sr.y=(Dt=sr.y)!==null&&Dt!==void 0?Dt:sr.top,yt={x:sr.x,y:sr.y,width:sr.width,height:sr.height}}var Xe=Fe.getBoundingClientRect(),zt=Et.getComputedStyle(Fe),Jt=zt.height,xr=zt.width;Xe.x=($e=Xe.x)!==null&&$e!==void 0?$e:Xe.left,Xe.y=(dt=Xe.y)!==null&&dt!==void 0?dt:Xe.top;var cr=ot.documentElement,Or=cr.clientWidth,Mr=cr.clientHeight,Ir=cr.scrollWidth,Dr=cr.scrollHeight,hr=cr.scrollTop,Wt=cr.scrollLeft,mr=Xe.height,Bt=Xe.width,Me=yt.height,Xt=yt.width,zr={left:0,top:0,right:Or,bottom:Mr},wr={left:-Wt,top:-hr,right:Ir-Wt,bottom:Dr-hr},O=Gt.htmlRegion,R="visible",h="visibleFirst";O!=="scroll"&&O!==h&&(O=R);var b=O===h,g=Ee(wr,me),m=Ee(zr,me),j=O===R?m:g,ae=b?m:j;Fe.style.left="auto",Fe.style.top="auto",Fe.style.right="0",Fe.style.bottom="0";var Ce=Fe.getBoundingClientRect();Fe.style.left=or,Fe.style.top=st,Fe.style.right=ut,Fe.style.bottom=Vt,Fe.style.overflow=Qt,(it=Fe.parentElement)===null||it===void 0||it.removeChild(_t);var Ie=z(Math.round(Bt/parseFloat(xr)*1e3)/1e3),Le=z(Math.round(mr/parseFloat(Jt)*1e3)/1e3);if(Ie===0||Le===0||(0,ee.Sh)(S)&&!(0,G.Z)(S))return;var le=Gt.offset,vt=Gt.targetOffset,Re=je(Xe,le),ft=(0,F.Z)(Re,2),_e=ft[0],at=ft[1],St=je(yt,vt),ze=(0,F.Z)(St,2),ke=ze[0],ht=ze[1];yt.x-=ke,yt.y-=ht;var et=Gt.points||[],tt=(0,F.Z)(et,2),Mt=tt[0],ar=tt[1],Ht=Qe(ar),$t=Qe(Mt),At=De(yt,Ht),tr=De(Xe,$t),Zt=(0,v.Z)({},Gt),Rt=At.x-tr.x+_e,Nt=At.y-tr.y+at,kt=Ar(Rt,Nt),dr=Ar(Rt,Nt,m),fr=De(yt,["t","l"]),rr=De(Xe,["t","l"]),ur=De(yt,["b","r"]),xt=De(Xe,["b","r"]),br=Gt.overflow||{},Wr=br.adjustX,Xr=br.adjustY,Cr=br.shiftX,Yr=br.shiftY,Er=function(Pt){return typeof Pt=="boolean"?Pt:Pt>=0},Ur,$r,qt,Ct;Un();var he=Er(Xr),ge=$t[0]===Ht[0];if(he&&$t[0]==="t"&&($r>ae.bottom||ie.current.bt)){var qe=Nt;ge?qe-=mr-Me:qe=fr.y-xt.y-at;var Ve=Ar(Rt,qe),Ft=Ar(Rt,qe,m);Ve>kt||Ve===kt&&(!b||Ft>=dr)?(ie.current.bt=!0,Nt=qe,at=-at,Zt.points=[Je($t,0),Je(Ht,0)]):ie.current.bt=!1}if(he&&$t[0]==="b"&&(Ur<ae.top||ie.current.tb)){var vr=Nt;ge?vr+=mr-Me:vr=ur.y-rr.y-at;var Ut=Ar(Rt,vr),gr=Ar(Rt,vr,m);Ut>kt||Ut===kt&&(!b||gr>=dr)?(ie.current.tb=!0,Nt=vr,at=-at,Zt.points=[Je($t,0),Je(Ht,0)]):ie.current.tb=!1}var Nr=Er(Wr),Zr=$t[1]===Ht[1];if(Nr&&$t[1]==="l"&&(Ct>ae.right||ie.current.rl)){var Tr=Rt;Zr?Tr-=Bt-Xt:Tr=fr.x-xt.x-_e;var kr=Ar(Tr,Nt),Lr=Ar(Tr,Nt,m);kr>kt||kr===kt&&(!b||Lr>=dr)?(ie.current.rl=!0,Rt=Tr,_e=-_e,Zt.points=[Je($t,1),Je(Ht,1)]):ie.current.rl=!1}if(Nr&&$t[1]==="r"&&(qt<ae.left||ie.current.lr)){var en=Rt;Zr?en+=Bt-Xt:en=ur.x-rr.x-_e;var hn=Ar(en,Nt),rn=Ar(en,Nt,m);hn>kt||hn===kt&&(!b||rn>=dr)?(ie.current.lr=!0,Rt=en,_e=-_e,Zt.points=[Je($t,1),Je(Ht,1)]):ie.current.lr=!1}Un();var Br=Cr===!0?0:Cr;typeof Br=="number"&&(qt<m.left&&(Rt-=qt-m.left-_e,yt.x+Xt<m.left+Br&&(Rt+=yt.x-m.left+Xt-Br)),Ct>m.right&&(Rt-=Ct-m.right-_e,yt.x>m.right-Br&&(Rt+=yt.x-m.right+Br)));var _r=Yr===!0?0:Yr;typeof _r=="number"&&(Ur<m.top&&(Nt-=Ur-m.top-at,yt.y+Me<m.top+_r&&(Nt+=yt.y-m.top+Me-_r)),$r>m.bottom&&(Nt-=$r-m.bottom-at,yt.y>m.bottom-_r&&(Nt+=yt.y-m.bottom+_r)));var Vr=Xe.x+Rt,sn=Vr+Bt,Ln=Xe.y+Nt,Zn=Ln+mr,Sn=yt.x,gn=Sn+Xt,Jn=yt.y,En=Jn+Me,ni=Math.max(Vr,Sn),nn=Math.min(sn,gn),Hn=(ni+nn)/2,ui=Hn-Vr,ii=Math.max(Ln,Jn),di=Math.min(Zn,En),jn=(ii+di)/2,Jr=jn-Ln;Q==null||Q(I,Zt);var fn=Ce.right-Xe.x-(Rt+Xe.width),Kn=Ce.bottom-Xe.y-(Nt+Xe.height);Ie===1&&(Rt=Math.floor(Rt),fn=Math.floor(fn)),Le===1&&(Nt=Math.floor(Nt),Kn=Math.floor(Kn));var Dn={ready:!0,offsetX:Rt/Ie,offsetY:Nt/Le,offsetR:fn/Ie,offsetB:Kn/Le,arrowX:ui/Ie,arrowY:Jr/Le,scaleX:Ie,scaleY:Le,align:Zt};pe(Dn)}}),Ke=function(){Oe.current+=1;var $e=Oe.current;Promise.resolve().then(function(){Oe.current===$e&&ce()})},Pe=function(){pe(function($e){return(0,v.Z)((0,v.Z)({},$e),{},{ready:!1})})};return(0,P.Z)(Pe,[K]),(0,P.Z)(function(){w||Pe()},[w]),[ve.ready,ve.offsetX,ve.offsetY,ve.offsetR,ve.offsetB,ve.arrowX,ve.arrowY,ve.scaleX,ve.scaleY,ve.align,Ke]}var Lt=u(77654);function pt(w,I,S,K,te){(0,P.Z)(function(){if(w&&I&&S){let Oe=function(){K(),te()};var q=I,Q=S,Se=se(q),ue=se(Q),ve=E(Q),pe=new Set([ve].concat((0,Lt.Z)(Se),(0,Lt.Z)(ue)));return pe.forEach(function(me){me.addEventListener("scroll",Oe,{passive:!0})}),ve.addEventListener("resize",Oe,{passive:!0}),K(),function(){pe.forEach(function(me){me.removeEventListener("scroll",Oe),ve.removeEventListener("resize",Oe)})}}},[w,I,S])}var mt=u(48736);function Ae(w,I,S,K,te,q,Q,Se){var ue=$.useRef(w);ue.current=w;var ve=$.useRef(!1);$.useEffect(function(){if(I&&K&&(!te||q)){var Oe=function(){ve.current=!1},me=function(dt){var it;ue.current&&!Q(((it=dt.composedPath)===null||it===void 0||(it=it.call(dt))===null||it===void 0?void 0:it[0])||dt.target)&&!ve.current&&Se(!1)},ie=E(K);ie.addEventListener("pointerdown",Oe,!0),ie.addEventListener("mousedown",me,!0),ie.addEventListener("contextmenu",me,!0);var be=(0,_.A)(S);if(be&&(be.addEventListener("mousedown",me,!0),be.addEventListener("contextmenu",me,!0)),0)var ce,Ke,Pe,Ze;return function(){ie.removeEventListener("pointerdown",Oe,!0),ie.removeEventListener("mousedown",me,!0),ie.removeEventListener("contextmenu",me,!0),be&&(be.removeEventListener("mousedown",me,!0),be.removeEventListener("contextmenu",me,!0))}}},[I,S,K,te,q]);function pe(){ve.current=!0}return pe}var Kt=["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 ye(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V.Z,I=$.forwardRef(function(S,K){var te=S.prefixCls,q=te===void 0?"rc-trigger-popup":te,Q=S.children,Se=S.action,ue=Se===void 0?"hover":Se,ve=S.showAction,pe=S.hideAction,Oe=S.popupVisible,me=S.defaultPopupVisible,ie=S.onPopupVisibleChange,be=S.afterPopupVisibleChange,ce=S.mouseEnterDelay,Ke=S.mouseLeaveDelay,Pe=Ke===void 0?.1:Ke,Ze=S.focusDelay,$e=S.blurDelay,dt=S.mask,it=S.maskClosable,Fe=it===void 0?!0:it,ot=S.getPopupContainer,Et=S.forceRender,gt=S.autoDestroy,Ot=S.destroyPopupOnHide,or=S.popup,st=S.popupClassName,ut=S.popupStyle,Vt=S.popupPlacement,Qt=S.builtinPlacements,Gt=Qt===void 0?{}:Qt,_t=S.popupAlign,yt=S.zIndex,It=S.stretch,Dt=S.getPopupClassNameFromAlign,sr=S.fresh,Xe=S.alignPoint,zt=S.onPopupClick,Jt=S.onPopupAlign,xr=S.arrow,cr=S.popupMotion,Or=S.maskMotion,Mr=S.popupTransitionName,Ir=S.popupAnimation,Dr=S.maskTransitionName,hr=S.maskAnimation,Wt=S.className,mr=S.getTriggerDOMNode,Bt=(0,p.Z)(S,Kt),Me=gt||Ot||!1,Xt=$.useState(!1),zr=(0,F.Z)(Xt,2),wr=zr[0],O=zr[1];(0,P.Z)(function(){O((0,re.Z)())},[]);var R=$.useRef({}),h=$.useContext(k),b=$.useMemo(function(){return{registerSubPopup:function(Tt,pr){R.current[Tt]=pr,h==null||h.registerSubPopup(Tt,pr)}}},[h]),g=(0,X.Z)(),m=$.useState(null),j=(0,F.Z)(m,2),ae=j[0],Ce=j[1],Ie=$.useRef(null),Le=(0,d.Z)(function(ct){Ie.current=ct,(0,ee.Sh)(ct)&&ae!==ct&&Ce(ct),h==null||h.registerSubPopup(g,ct)}),le=$.useState(null),vt=(0,F.Z)(le,2),Re=vt[0],ft=vt[1],_e=$.useRef(null),at=(0,d.Z)(function(ct){(0,ee.Sh)(ct)&&Re!==ct&&(ft(ct),_e.current=ct)}),St=$.Children.only(Q),ze=(St==null?void 0:St.props)||{},ke={},ht=(0,d.Z)(function(ct){var Tt,pr,jr=Re;return(jr==null?void 0:jr.contains(ct))||((Tt=(0,_.A)(jr))===null||Tt===void 0?void 0:Tt.host)===ct||ct===jr||(ae==null?void 0:ae.contains(ct))||((pr=(0,_.A)(ae))===null||pr===void 0?void 0:pr.host)===ct||ct===ae||Object.values(R.current).some(function(Fr){return(Fr==null?void 0:Fr.contains(ct))||ct===Fr})}),et=Z(q,cr,Ir,Mr),tt=Z(q,Or,hr,Dr),Mt=$.useState(me||!1),ar=(0,F.Z)(Mt,2),Ht=ar[0],$t=ar[1],At=Oe!=null?Oe:Ht,tr=(0,d.Z)(function(ct){Oe===void 0&&$t(ct)});(0,P.Z)(function(){$t(Oe||!1)},[Oe]);var Zt=$.useRef(At);Zt.current=At;var Rt=$.useRef([]);Rt.current=[];var Nt=(0,d.Z)(function(ct){var Tt;tr(ct),((Tt=Rt.current[Rt.current.length-1])!==null&&Tt!==void 0?Tt:At)!==ct&&(Rt.current.push(ct),ie==null||ie(ct))}),kt=$.useRef(),dr=function(){clearTimeout(kt.current)},fr=function(Tt){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;dr(),pr===0?Nt(Tt):kt.current=setTimeout(function(){Nt(Tt)},pr*1e3)};$.useEffect(function(){return dr},[]);var rr=$.useState(!1),ur=(0,F.Z)(rr,2),xt=ur[0],br=ur[1];(0,P.Z)(function(ct){(!ct||At)&&br(!0)},[At]);var Wr=$.useState(null),Xr=(0,F.Z)(Wr,2),Cr=Xr[0],Yr=Xr[1],Er=$.useState(null),Ur=(0,F.Z)(Er,2),$r=Ur[0],qt=Ur[1],Ct=function(Tt){qt([Tt.clientX,Tt.clientY])},he=Be(At,ae,Xe&&$r!==null?$r:Re,Vt,Gt,_t,Jt),ge=(0,F.Z)(he,11),qe=ge[0],Ve=ge[1],Ft=ge[2],vr=ge[3],Ut=ge[4],gr=ge[5],Nr=ge[6],Zr=ge[7],Tr=ge[8],kr=ge[9],Lr=ge[10],en=lt(wr,ue,ve,pe),hn=(0,F.Z)(en,2),rn=hn[0],Br=hn[1],_r=rn.has("click"),Vr=Br.has("click")||Br.has("contextMenu"),sn=(0,d.Z)(function(){xt||Lr()}),Ln=function(){Zt.current&&Xe&&Vr&&fr(!1)};pt(At,Re,ae,sn,Ln),(0,P.Z)(function(){sn()},[$r,Vt]),(0,P.Z)(function(){At&&!(Gt!=null&&Gt[Vt])&&sn()},[JSON.stringify(_t)]);var Zn=$.useMemo(function(){var ct=f(Gt,q,kr,Xe);return H()(ct,Dt==null?void 0:Dt(kr))},[kr,Dt,Gt,q,Xe]);$.useImperativeHandle(K,function(){return{nativeElement:_e.current,popupElement:Ie.current,forceAlign:sn}});var Sn=$.useState(0),gn=(0,F.Z)(Sn,2),Jn=gn[0],En=gn[1],ni=$.useState(0),nn=(0,F.Z)(ni,2),Hn=nn[0],ui=nn[1],ii=function(){if(It&&Re){var Tt=Re.getBoundingClientRect();En(Tt.width),ui(Tt.height)}},di=function(){ii(),sn()},jn=function(Tt){br(!1),Lr(),be==null||be(Tt)},Jr=function(){return new Promise(function(Tt){ii(),Yr(function(){return Tt})})};(0,P.Z)(function(){Cr&&(Lr(),Cr(),Yr(null))},[Cr]);function fn(ct,Tt,pr,jr){ke[ct]=function(Fr){var pn;jr==null||jr(Fr),fr(Tt,pr);for(var Gn=arguments.length,ei=new Array(Gn>1?Gn-1:0),Rn=1;Rn<Gn;Rn++)ei[Rn-1]=arguments[Rn];(pn=ze[ct])===null||pn===void 0||pn.call.apply(pn,[ze,Fr].concat(ei))}}(_r||Vr)&&(ke.onClick=function(ct){var Tt;Zt.current&&Vr?fr(!1):!Zt.current&&_r&&(Ct(ct),fr(!0));for(var pr=arguments.length,jr=new Array(pr>1?pr-1:0),Fr=1;Fr<pr;Fr++)jr[Fr-1]=arguments[Fr];(Tt=ze.onClick)===null||Tt===void 0||Tt.call.apply(Tt,[ze,ct].concat(jr))});var Kn=Ae(At,Vr,Re,ae,dt,Fe,ht,fr),Dn=rn.has("hover"),Ar=Br.has("hover"),Un,Vn;Dn&&(fn("onMouseEnter",!0,ce,function(ct){Ct(ct)}),fn("onPointerEnter",!0,ce,function(ct){Ct(ct)}),Un=function(Tt){(At||xt)&&ae!==null&&ae!==void 0&&ae.contains(Tt.target)&&fr(!0,ce)},Xe&&(ke.onMouseMove=function(ct){var Tt;(Tt=ze.onMouseMove)===null||Tt===void 0||Tt.call(ze,ct)})),Ar&&(fn("onMouseLeave",!1,Pe),fn("onPointerLeave",!1,Pe),Vn=function(){fr(!1,Pe)}),rn.has("focus")&&fn("onFocus",!0,Ze),Br.has("focus")&&fn("onBlur",!1,$e),rn.has("contextMenu")&&(ke.onContextMenu=function(ct){var Tt;Zt.current&&Br.has("contextMenu")?fr(!1):(Ct(ct),fr(!0)),ct.preventDefault();for(var pr=arguments.length,jr=new Array(pr>1?pr-1:0),Fr=1;Fr<pr;Fr++)jr[Fr-1]=arguments[Fr];(Tt=ze.onContextMenu)===null||Tt===void 0||Tt.call.apply(Tt,[ze,ct].concat(jr))}),Wt&&(ke.className=H()(ze.className,Wt));var Pt=$.useRef(!1);Pt.current||(Pt.current=Et||At||xt);var er=(0,v.Z)((0,v.Z)({},ze),ke),Yt={},nr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];nr.forEach(function(ct){Bt[ct]&&(Yt[ct]=function(){for(var Tt,pr=arguments.length,jr=new Array(pr),Fr=0;Fr<pr;Fr++)jr[Fr]=arguments[Fr];(Tt=er[ct])===null||Tt===void 0||Tt.call.apply(Tt,[er].concat(jr)),Bt[ct].apply(Bt,jr)})});var Rr=$.cloneElement(St,(0,v.Z)((0,v.Z)({},er),Yt)),Hr={x:gr,y:Nr},$n=xr?(0,v.Z)({},xr!==!0?xr:{}):null;return $.createElement($.Fragment,null,$.createElement(N.Z,{disabled:!At,ref:at,onResize:di},$.createElement(de,{getTriggerDOMNode:mr},Rr)),Pt.current&&$.createElement(k.Provider,{value:b},$.createElement(J,{portal:w,ref:Le,prefixCls:q,popup:or,className:H()(st,Zn),style:ut,target:Re,onMouseEnter:Un,onMouseLeave:Vn,onPointerEnter:Un,zIndex:yt,open:At,keepDom:xt,fresh:sr,onClick:zt,onPointerDownCapture:Kn,mask:dt,motion:et,maskMotion:tt,onVisibleChanged:jn,onPrepare:Jr,forceRender:Et,autoDestroy:Me,getPopupContainer:ot,align:kr,arrow:$n,arrowPos:Hr,ready:qe,offsetX:Ve,offsetY:Ft,offsetR:vr,offsetB:Ut,onAlign:sn,stretch:It,targetWidth:Jn/Zr,targetHeight:Hn/Tr})))});return I}var A=ye(V.Z)},88319:function(){"use strict"},94896:function(){"use strict"},46642:function(lr,xe,u){"use strict";u.d(xe,{t:function(){return P}});var v=u(59301),F=u(7939),p={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},V=u(92310),L=u.n(V),H=Object.defineProperty,N=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,d=(re,$,Ne)=>$ in re?H(re,$,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):re[$]=Ne,X=(re,$)=>{for(var Ne in $||($={}))ee.call($,Ne)&&d(re,Ne,$[Ne]);if(N)for(var Ne of N($))_.call($,Ne)&&d(re,Ne,$[Ne]);return re};const P=({cancelText:re="\u53D6\u6D88",okText:$="\u786E\u5B9A",loading:Ne=!1,hasOkBtn:Ue=!0,hasCancelBtn:Ye=!0,okButtonProps:We={},onCancel:x=()=>{},onOk:Y=()=>{},className:y=""})=>v.createElement("div",{className:L()(p.buttonFixed,y)},v.createElement("div",{className:p.buttonWrap},Ye&&v.createElement(F.ZP,{size:"middle",className:`${p.button} mr20`,onClick:x},re),Ue&&v.createElement(F.ZP,X({size:"middle",type:"primary",className:`${p.button} mr20`,loading:Ne,onClick:Y},We),$)))},28267:function(lr,xe,u){"use strict";u.d(xe,{h:function(){return y}});var v=u(59301),F=u(82326),p=u(28284),V=u(7939),L=u(89780),H=u.n(L),N=u(88319),ee=u(94896),_=Object.defineProperty,d=Object.defineProperties,X=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,Ne=(T,J,D)=>J in T?_(T,J,{enumerable:!0,configurable:!0,writable:!0,value:D}):T[J]=D,Ue=(T,J)=>{for(var D in J||(J={}))re.call(J,D)&&Ne(T,D,J[D]);if(P)for(var D of P(J))$.call(J,D)&&Ne(T,D,J[D]);return T},Ye=(T,J)=>d(T,X(J));const We=F.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},Y={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};xe.Z=({callback:T,onCancel:J})=>{const[D,de]=(0,v.useState)("python");function we(He){de(Y[He][1])}function k(He){T(He)}return v.createElement(p.default,Ye(Ue({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:k,style:{width:500}}),v.createElement(p.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.createElement(F.default,{getPopupContainer:He=>He.parentNode,onChange:we},Object.keys(Y).map(He=>v.createElement(We,{key:He,value:He},Y[He][0])))),v.createElement(p.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.createElement(y,{mode:D})),v.createElement("div",{className:"flex-container flex-end"},v.createElement(V.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.createElement(V.ZP,{type:"ghost",onClick:J},"\u53D6\u6D88")))};function y({value:T,onChange:J,mode:D,options:de={}}){const we=(0,v.useRef)(),[k,He]=(0,v.useState)();return(0,v.useEffect)(()=>{if(k){let lt=function(G){const W=G.getValue();J&&J(W)};return k.on("change",lt),()=>{k.off("change",lt)}}},[k,J]),(0,v.useEffect)(()=>{k&&k.setOption("mode",D)},[k,D]),(0,v.useEffect)(()=>{k&&(T!==k.getValue()||T==="")&&setTimeout(()=>{k.setValue(T||"")},300)},[k,T]),(0,v.useEffect)(()=>{if(we.current&&!k){const lt=H().fromTextArea(we.current,Ue({mode:D,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));He(lt)}},[we.current,k]),v.createElement("div",{className:"my-codemirror-container"},v.createElement("textarea",{ref:we}))}},42957:function(lr,xe,u){"use strict";u.r(xe),u.d(xe,{default:function(){return Ye}});var v=u(59301),F=u(44283),p=u(28284),V=u(37568),L=u(28267),H=u(46642),N={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},ee=Object.defineProperty,_=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,P=(We,x,Y)=>x in We?ee(We,x,{enumerable:!0,configurable:!0,writable:!0,value:Y}):We[x]=Y,re=(We,x)=>{for(var Y in x||(x={}))d.call(x,Y)&&P(We,Y,x[Y]);if(_)for(var Y of _(x))X.call(x,Y)&&P(We,Y,x[Y]);return We},$=(We,x)=>{var Y={};for(var y in We)d.call(We,y)&&x.indexOf(y)<0&&(Y[y]=We[y]);if(We!=null&&_)for(var y of _(We))x.indexOf(y)<0&&X.call(We,y)&&(Y[y]=We[y]);return Y},Ne=(We,x,Y)=>new Promise((y,T)=>{var J=we=>{try{de(Y.next(we))}catch(k){T(k)}},D=we=>{try{de(Y.throw(we))}catch(k){T(k)}},de=we=>we.done?y(we.value):Promise.resolve(we.value).then(J,D);de((Y=Y.apply(We,x)).next())});const Ue=We=>{var x=We,{shixunsDetail:Y,globalSetting:y,loading:T,user:J,dispatch:D}=x,de=$(x,["shixunsDetail","globalSetting","loading","user","dispatch"]);const we=(0,F.useLocation)(),[k,He]=(0,v.useState)({}),lt=(0,v.useRef)(),G=(0,v.useRef)(),[W]=p.default.useForm(),[f,Z]=(0,v.useState)("");(0,v.useEffect)(()=>(D({type:"globalSetting/footerToggle",payload:!1}),()=>{D({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,v.useEffect)(()=>{const z=sessionStorage.getItem("pathArray");if(z){const ne=z.split(",").join("/"),Ee=ne.indexOf("/")===0?ne.substr(1):ne;Z(Ee)}},[]),(0,v.useEffect)(()=>{var z,ne,Ee,oe;G.current=(ne=(z=we.pathname)==null?void 0:z.split("/"))==null?void 0:ne[2],lt.current=((oe=(Ee=we.pathname)==null?void 0:Ee.split("/"))==null?void 0:oe[3])==="repository"},[]);const E=(...z)=>Ne(void 0,[...z],function*(ne={}){if(yield D({type:"shixunsDetail/addRepositoryFile",payload:{id:G.current,message:ne.commitMessage,content:ne.codeMirror,path:`${f?`${f}/`:""}${ne.path||""}`,secret_repository:lt.current?void 0:!0}})){const oe=lt.current?`/shixuns/${G.current}/repository${f?`/master/shixun_show/${f}`:""}`:`/shixuns/${G.current}/secret_repository`;F.history.replace(oe)}}),se=()=>{var z,ne;F.history.push(`/shixuns/${G.current}/${(ne=(z=we.pathname)==null?void 0:z.split("/"))==null?void 0:ne[3]}${f?`/master/shixun_show/${f}`:""}`)};return v.createElement("section",{className:N.bg},v.createElement("div",{className:N.wrap},v.createElement("div",{className:N.title},"\u65B0\u5EFA\u6587\u4EF6"),v.createElement(p.default,{className:"mt10",form:W,scrollToFirstError:!0,layout:"vertical",onFinish:E,onValuesChange:()=>He(re({},W.getFieldsValue()))},v.createElement(p.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},v.createElement(p.default.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}],noStyle:!0},v.createElement("span",null,v.createElement("span",{className:"mr5"},f?`${f}/`:""),v.createElement(V.default,{className:N.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),v.createElement("span",{className:"ml5"},"\u63D0\u793A\uFF1A1.\u8F93\u5165\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u4E00\u4E2A\u65B0\u6587\u4EF6\uFF1B2.\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u65B0\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u65B0\u6587\u4EF6\u5939\u548C\u65B0\u6587\u4EF6\u3002\uFF08\u5982\uFF1Astep1/HelloWorld.java\uFF09")),v.createElement(p.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},v.createElement(V.default,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406"})),v.createElement("div",{className:"mt10 mb20"},v.createElement(p.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.createElement(L.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}}))),v.createElement(p.default.Item,{noStyle:!0},v.createElement(H.t,{okButtonProps:{htmlType:"submit"},onCancel:se})))))};var Ye=(0,F.connect)(({shixunsDetail:We,loading:x,globalSetting:Y,user:y})=>({shixunsDetail:We,globalSetting:Y,user:y,loading:x.models.index}))(Ue)},29509:function(lr,xe,u){"use strict";u.d(xe,{o2:function(){return L},yT:function(){return H}});var v=u(77654),F=u(34998);const p=F.i.map(N=>`${N}-inverse`),V=["success","processing","error","default","warning"];function L(N){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,v.Z)(p),(0,v.Z)(F.i)).includes(N):F.i.includes(N)}function H(N){return V.includes(N)}},86013:function(lr,xe,u){"use strict";var v=u(59301),F=u(19248);const p=V=>{let L;return typeof V=="object"&&(V!=null&&V.clearIcon)?L=V:V&&(L={clearIcon:v.createElement(F.Z,null)}),L};xe.Z=p},52838:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return H}});var v=u(37645);function F(N,ee,_,d){if(d===!1)return{adjustX:!1,adjustY:!1};const X=d&&typeof d=="object"?d:{},P={};switch(N){case"top":case"bottom":P.shiftX=ee.arrowOffsetHorizontal*2+_,P.shiftY=!0,P.adjustY=!0;break;case"left":case"right":P.shiftY=ee.arrowOffsetVertical*2+_,P.shiftX=!0,P.adjustX=!0;break}const re=Object.assign(Object.assign({},P),X);return re.shiftX||(re.adjustX=!0),re.shiftY||(re.adjustY=!0),re}const p={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"]}},V={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"]}},L=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function H(N){const{arrowWidth:ee,autoAdjustOverflow:_,arrowPointAtCenter:d,offset:X,borderRadius:P,visibleFirst:re}=N,$=ee/2,Ne={};return Object.keys(p).forEach(Ue=>{const Ye=d&&V[Ue]||p[Ue],We=Object.assign(Object.assign({},Ye),{offset:[0,0],dynamicInset:!0});switch(Ne[Ue]=We,L.has(Ue)&&(We.autoArrow=!1),Ue){case"top":case"topLeft":case"topRight":We.offset[1]=-$-X;break;case"bottom":case"bottomLeft":case"bottomRight":We.offset[1]=$+X;break;case"left":case"leftTop":case"leftBottom":We.offset[0]=-$-X;break;case"right":case"rightTop":case"rightBottom":We.offset[0]=$+X;break}const x=(0,v.wZ)({contentRadius:P,limitVerticalRadius:!0});if(d)switch(Ue){case"topLeft":case"bottomLeft":We.offset[0]=-x.arrowOffsetHorizontal-$;break;case"topRight":case"bottomRight":We.offset[0]=x.arrowOffsetHorizontal+$;break;case"leftTop":case"rightTop":We.offset[1]=-x.arrowOffsetHorizontal*2+$;break;case"leftBottom":case"rightBottom":We.offset[1]=x.arrowOffsetHorizontal*2-$;break}We.overflow=F(Ue,x,ee,_),re&&(We.htmlRegion="visibleFirst")}),Ne}},82855:function(lr,xe,u){"use strict";u.d(xe,{F:function(){return L},Z:function(){return V}});var v=u(92310),F=u.n(v);const p=null;function V(H,N,ee){return F()({[`${H}-status-success`]:N==="success",[`${H}-status-warning`]:N==="warning",[`${H}-status-error`]:N==="error",[`${H}-status-validating`]:N==="validating",[`${H}-has-feedback`]:ee})}const L=(H,N)=>N||H},38406:function(lr,xe,u){"use strict";var v=u(59301),F=u(48755),p=u(584);const V=L=>{const{componentName:H}=L,{getPrefixCls:N}=(0,v.useContext)(F.E_),ee=N("empty");switch(H){case"Table":case"List":return v.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,className:`${ee}-small`});case"Table.filter":return null;default:return v.createElement(p.Z,null)}};xe.Z=V},584:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return Y}});var v=u(59301),F=u(92310),p=u.n(F),V=u(9017),L=u(17835),H=u(57700),ee=()=>{const[,y]=(0,H.ZP)(),[T]=(0,V.Z)("Empty"),D=new L.FastColor(y.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement("svg",{style:D,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("title",null,(T==null?void 0:T.description)||"Empty"),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.67)"},v.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v.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"}),v.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)"}),v.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"}),v.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"})),v.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"}),v.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},v.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},d=()=>{const[,y]=(0,H.ZP)(),[T]=(0,V.Z)("Empty"),{colorFill:J,colorFillTertiary:D,colorFillQuaternary:de,colorBgContainer:we}=y,{borderColor:k,shadowColor:He,contentColor:lt}=(0,v.useMemo)(()=>({borderColor:new L.FastColor(J).onBackground(we).toHexString(),shadowColor:new L.FastColor(D).onBackground(we).toHexString(),contentColor:new L.FastColor(de).onBackground(we).toHexString()}),[J,D,de,we]);return v.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("title",null,(T==null?void 0:T.description)||"Empty"),v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{fill:He,cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{fillRule:"nonzero",stroke:k},v.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"}),v.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:lt}))))},X=u(16931),P=u(51636);const re=y=>{const{componentCls:T,margin:J,marginXS:D,marginXL:de,fontSize:we,lineHeight:k}=y;return{[T]:{marginInline:D,fontSize:we,lineHeight:k,textAlign:"center",[`${T}-image`]:{height:y.emptyImgHeight,marginBottom:D,opacity:y.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${T}-description`]:{color:y.colorTextDescription},[`${T}-footer`]:{marginTop:J},"&-normal":{marginBlock:de,color:y.colorTextDescription,[`${T}-description`]:{color:y.colorTextDescription},[`${T}-image`]:{height:y.emptyImgHeightMD}},"&-small":{marginBlock:D,color:y.colorTextDescription,[`${T}-image`]:{height:y.emptyImgHeightSM}}}}};var $=(0,X.I$)("Empty",y=>{const{componentCls:T,controlHeightLG:J,calc:D}=y,de=(0,P.mergeToken)(y,{emptyImgCls:`${T}-img`,emptyImgHeight:D(J).mul(2.5).equal(),emptyImgHeightMD:J,emptyImgHeightSM:D(J).mul(.875).equal()});return[re(de)]}),Ne=u(48755),Ue=function(y,T){var J={};for(var D in y)Object.prototype.hasOwnProperty.call(y,D)&&T.indexOf(D)<0&&(J[D]=y[D]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,D=Object.getOwnPropertySymbols(y);de<D.length;de++)T.indexOf(D[de])<0&&Object.prototype.propertyIsEnumerable.call(y,D[de])&&(J[D[de]]=y[D[de]]);return J};const Ye=v.createElement(ee,null),We=v.createElement(d,null),x=y=>{const{className:T,rootClassName:J,prefixCls:D,image:de=Ye,description:we,children:k,imageStyle:He,style:lt,classNames:G,styles:W}=y,f=Ue(y,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Z,direction:E,className:se,style:z,classNames:ne,styles:Ee}=(0,Ne.dj)("empty"),oe=Z("empty",D),[je,Qe,De]=$(oe),[Je]=(0,V.Z)("Empty"),Be=typeof we!="undefined"?we:Je==null?void 0:Je.description,Lt=typeof Be=="string"?Be:"empty";let pt=null;return typeof de=="string"?pt=v.createElement("img",{alt:Lt,src:de}):pt=de,je(v.createElement("div",Object.assign({className:p()(Qe,De,oe,se,{[`${oe}-normal`]:de===We,[`${oe}-rtl`]:E==="rtl"},T,J,ne.root,G==null?void 0:G.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ee.root),z),W==null?void 0:W.root),lt)},f),v.createElement("div",{className:p()(`${oe}-image`,ne.image,G==null?void 0:G.image),style:Object.assign(Object.assign(Object.assign({},He),Ee.image),W==null?void 0:W.image)},pt),Be&&v.createElement("div",{className:p()(`${oe}-description`,ne.description,G==null?void 0:G.description),style:Object.assign(Object.assign({},Ee.description),W==null?void 0:W.description)},Be),k&&v.createElement("div",{className:p()(`${oe}-footer`,ne.footer,G==null?void 0:G.footer),style:Object.assign(Object.assign({},Ee.footer),W==null?void 0:W.footer)},k)))};x.PRESENTED_IMAGE_DEFAULT=Ye,x.PRESENTED_IMAGE_SIMPLE=We;var Y=x},24971:function(lr,xe,u){"use strict";var v=u(59301),F=u(56553),p=u(48755);const V=function(L,H){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var ee,_;const{variant:d,[L]:X}=v.useContext(p.E_),P=v.useContext(F.pg),re=X==null?void 0:X.variant;let $;typeof H!="undefined"?$=H:N===!1?$="borderless":$=(_=(ee=P!=null?P:re)!==null&&ee!==void 0?ee:d)!==null&&_!==void 0?_:"outlined";const Ne=p.tr.includes($);return[$,Ne]};xe.Z=V},28284:function(lr,xe,u){"use strict";u.d(xe,{default:function(){return R}});var v=u(56553),F=u(77654),p=u(59301),V=u(92310),L=u.n(V),H=u(77900),N=u(86641),ee=u(83397);function _(h){const[b,g]=p.useState(h);return p.useEffect(()=>{const m=setTimeout(()=>{g(h)},h.length?0:10);return()=>{clearTimeout(m)}},[h]),b}var d=u(36237),X=u(63356),P=u(34925),re=u(34961),$=u(51636),Ne=u(16931),Ye=h=>{const{componentCls:b}=h,g=`${b}-show-help`,m=`${b}-show-help-item`;return{[g]:{transition:`opacity ${h.motionDurationFast} ${h.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[m]:{overflow:"hidden",transition:`height ${h.motionDurationFast} ${h.motionEaseInOut},
opacity ${h.motionDurationFast} ${h.motionEaseInOut},
transform ${h.motionDurationFast} ${h.motionEaseInOut} !important`,[`&${m}-appear, &${m}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${m}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=h=>({legend:{display:"block",width:"100%",marginBottom:h.marginLG,padding:0,color:h.colorTextDescription,fontSize:h.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,d.unit)(h.lineWidth)} ${h.lineType} ${h.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 ${(0,d.unit)(h.controlOutlineWidth)} ${h.controlOutline}`},output:{display:"block",paddingTop:15,color:h.colorText,fontSize:h.fontSize,lineHeight:h.lineHeight}}),x=(h,b)=>{const{formItemCls:g}=h;return{[g]:{[`${g}-label > label`]:{height:b},[`${g}-control-input`]:{minHeight:b}}}},Y=h=>{const{componentCls:b}=h;return{[h.componentCls]:Object.assign(Object.assign(Object.assign({},(0,X.Wf)(h)),We(h)),{[`${b}-text`]:{display:"inline-block",paddingInlineEnd:h.paddingSM},"&-small":Object.assign({},x(h,h.controlHeightSM)),"&-large":Object.assign({},x(h,h.controlHeightLG))})}},y=h=>{const{formItemCls:b,iconCls:g,rootPrefixCls:m,antCls:j,labelRequiredMarkColor:ae,labelColor:Ce,labelFontSize:Ie,labelHeight:Le,labelColonMarginInlineStart:le,labelColonMarginInlineEnd:vt,itemMarginBottom:Re}=h;return{[b]:Object.assign(Object.assign({},(0,X.Wf)(h)),{marginBottom:Re,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${j}-row`]:{display:"none"},"&-has-warning":{[`${b}-split`]:{color:h.colorError}},"&-has-error":{[`${b}-split`]:{color:h.colorWarning}},[`${b}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:h.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Le,color:Ce,fontSize:Ie,[`> ${g}`]:{fontSize:h.fontSize,verticalAlign:"top"},[`&${b}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:h.marginXXS,color:ae,fontSize:h.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${b}-required-mark-hidden, &${b}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${b}-optional`]:{display:"inline-block",marginInlineStart:h.marginXXS,color:h.colorTextDescription,[`&${b}-required-mark-hidden`]:{display:"none"}},[`${b}-tooltip`]:{color:h.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:h.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:le,marginInlineEnd:vt},[`&${b}-no-colon::after`]:{content:'"\\a0"'}}},[`${b}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${m}-col-'"]):not([class*="' ${m}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:h.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[b]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:h.colorTextDescription,fontSize:h.fontSize,lineHeight:h.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:h.controlHeightSM,transition:`color ${h.motionDurationMid} ${h.motionEaseOut}`},"&-explain":{"&-error":{color:h.colorError},"&-warning":{color:h.colorWarning}}},[`&-with-help ${b}-explain`]:{height:"auto",opacity:1},[`${b}-feedback-icon`]:{fontSize:h.fontSize,textAlign:"center",visibility:"visible",animationName:P.kr,animationDuration:h.motionDurationMid,animationTimingFunction:h.motionEaseOutBack,pointerEvents:"none","&-success":{color:h.colorSuccess},"&-error":{color:h.colorError},"&-warning":{color:h.colorWarning},"&-validating":{color:h.colorPrimary}}})}},T=(h,b)=>{const{formItemCls:g}=h;return{[`${b}-horizontal`]:{[`${g}-label`]:{flexGrow:0},[`${g}-control`]:{flex:"1 1 0",minWidth:0},[`${g}-label[class$='-24'], ${g}-label[class*='-24 ']`]:{[`& + ${g}-control`]:{minWidth:"unset"}}}}},J=h=>{const{componentCls:b,formItemCls:g,inlineItemMarginBottom:m}=h;return{[`${b}-inline`]:{display:"flex",flexWrap:"wrap",[g]:{flex:"none",marginInlineEnd:h.margin,marginBottom:m,"&-row":{flexWrap:"nowrap"},[`> ${g}-label,
> ${g}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${g}-label`]:{flex:"none"},[`${b}-text`]:{display:"inline-block"},[`${g}-has-feedback`]:{display:"inline-block"}}}}},D=h=>({padding:h.verticalLabelPadding,margin:h.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),de=h=>{const{componentCls:b,formItemCls:g,rootPrefixCls:m}=h;return{[`${g} ${g}-label`]:D(h),[`${b}:not(${b}-inline)`]:{[g]:{flexWrap:"wrap",[`${g}-label, ${g}-control`]:{[`&:not([class*=" ${m}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},we=h=>{const{componentCls:b,formItemCls:g,antCls:m}=h;return{[`${b}-vertical`]:{[`${g}:not(${g}-horizontal)`]:{[`${g}-row`]:{flexDirection:"column"},[`${g}-label > label`]:{height:"auto"},[`${g}-control`]:{width:"100%"},[`${g}-label,
${m}-col-24${g}-label,
${m}-col-xl-24${g}-label`]:D(h)}},[`@media (max-width: ${(0,d.unit)(h.screenXSMax)})`]:[de(h),{[b]:{[`${g}:not(${g}-horizontal)`]:{[`${m}-col-xs-24${g}-label`]:D(h)}}}],[`@media (max-width: ${(0,d.unit)(h.screenSMMax)})`]:{[b]:{[`${g}:not(${g}-horizontal)`]:{[`${m}-col-sm-24${g}-label`]:D(h)}}},[`@media (max-width: ${(0,d.unit)(h.screenMDMax)})`]:{[b]:{[`${g}:not(${g}-horizontal)`]:{[`${m}-col-md-24${g}-label`]:D(h)}}},[`@media (max-width: ${(0,d.unit)(h.screenLGMax)})`]:{[b]:{[`${g}:not(${g}-horizontal)`]:{[`${m}-col-lg-24${g}-label`]:D(h)}}}}},k=h=>{const{formItemCls:b,antCls:g}=h;return{[`${b}-vertical`]:{[`${b}-row`]:{flexDirection:"column"},[`${b}-label > label`]:{height:"auto"},[`${b}-control`]:{width:"100%"}},[`${b}-vertical ${b}-label,
${g}-col-24${b}-label,
${g}-col-xl-24${b}-label`]:D(h),[`@media (max-width: ${(0,d.unit)(h.screenXSMax)})`]:[de(h),{[b]:{[`${g}-col-xs-24${b}-label`]:D(h)}}],[`@media (max-width: ${(0,d.unit)(h.screenSMMax)})`]:{[b]:{[`${g}-col-sm-24${b}-label`]:D(h)}},[`@media (max-width: ${(0,d.unit)(h.screenMDMax)})`]:{[b]:{[`${g}-col-md-24${b}-label`]:D(h)}},[`@media (max-width: ${(0,d.unit)(h.screenLGMax)})`]:{[b]:{[`${g}-col-lg-24${b}-label`]:D(h)}}}},He=h=>({labelRequiredMarkColor:h.colorError,labelColor:h.colorTextHeading,labelFontSize:h.fontSize,labelHeight:h.controlHeight,labelColonMarginInlineStart:h.marginXXS/2,labelColonMarginInlineEnd:h.marginXS,itemMarginBottom:h.marginLG,verticalLabelPadding:`0 0 ${h.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),lt=(h,b)=>(0,$.mergeToken)(h,{formItemCls:`${h.componentCls}-item`,rootPrefixCls:b});var G=(0,Ne.I$)("Form",(h,b)=>{let{rootPrefixCls:g}=b;const m=lt(h,g);return[Y(m),y(m),Ye(m),T(m,m.componentCls),T(m,m.formItemCls),J(m),we(m),k(m),(0,re.Z)(m),P.kr]},He,{order:-1e3});const W=[];function f(h,b,g){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof h=="string"?h:`${b}-${m}`,error:h,errorStatus:g}}var E=h=>{let{help:b,helpStatus:g,errors:m=W,warnings:j=W,className:ae,fieldId:Ce,onVisibleChanged:Ie}=h;const{prefixCls:Le}=p.useContext(v.Rk),le=`${Le}-item-explain`,vt=(0,ee.Z)(Le),[Re,ft,_e]=G(Le,vt),at=p.useMemo(()=>(0,N.Z)(Le),[Le]),St=_(m),ze=_(j),ke=p.useMemo(()=>b!=null?[f(b,"help",g)]:[].concat((0,F.Z)(St.map((tt,Mt)=>f(tt,"error","error",Mt))),(0,F.Z)(ze.map((tt,Mt)=>f(tt,"warning","warning",Mt)))),[b,g,St,ze]),ht=p.useMemo(()=>{const tt={};return ke.forEach(Mt=>{let{key:ar}=Mt;tt[ar]=(tt[ar]||0)+1}),ke.map((Mt,ar)=>Object.assign(Object.assign({},Mt),{key:tt[Mt.key]>1?`${Mt.key}-fallback-${ar}`:Mt.key}))},[ke]),et={};return Ce&&(et.id=`${Ce}_help`),Re(p.createElement(H.default,{motionDeadline:at.motionDeadline,motionName:`${Le}-show-help`,visible:!!ht.length,onVisibleChanged:Ie},tt=>{const{className:Mt,style:ar}=tt;return p.createElement("div",Object.assign({},et,{className:L()(le,Mt,_e,vt,ae,ft),style:ar}),p.createElement(H.CSSMotionList,Object.assign({keys:ht},(0,N.Z)(Le),{motionName:`${Le}-show-help-item`,component:!1}),Ht=>{const{key:$t,error:At,errorStatus:tr,className:Zt,style:Rt}=Ht;return p.createElement("div",{key:$t,className:L()(Zt,{[`${le}-${tr}`]:tr}),style:Rt},At)}))}))},se=u(69180),z=u(48755),ne=u(2171),Ee=u(31756),oe=u(23069),je=u(76846),Qe=u(16722);const De=["parentNode"],Je="form_item";function Be(h){return h===void 0||h===!1?[]:Array.isArray(h)?h:[h]}function Lt(h,b){if(!h.length)return;const g=h.join("_");return b?`${b}_${g}`:De.includes(g)?`${Je}_${g}`:g}function pt(h,b,g,m,j,ae){let Ce=m;return ae!==void 0?Ce=ae:g.validating?Ce="validating":h.length?Ce="error":b.length?Ce="warning":(g.touched||j&&g.validated)&&(Ce="success"),Ce}var mt=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g};function Ae(h){return Be(h).join("_")}function Kt(h,b){const g=b.getFieldInstance(h),m=(0,je.bn)(g);if(m)return m;const j=Lt(Be(h),b.__INTERNAL__.name);if(j)return document.getElementById(j)}function ye(h){const[b]=(0,se.useForm)(),g=p.useRef({}),m=p.useMemo(()=>h!=null?h:Object.assign(Object.assign({},b),{__INTERNAL__:{itemRef:j=>ae=>{const Ce=Ae(j);ae?g.current[Ce]=ae:delete g.current[Ce]}},scrollToField:function(j){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Ce}=ae,Ie=mt(ae,["focus"]),Le=Kt(j,m);Le&&((0,Qe.Z)(Le,Object.assign({scrollMode:"if-needed",block:"nearest"},Ie)),Ce&&m.focusField(j))},focusField:j=>{var ae,Ce;const Ie=m.getFieldInstance(j);typeof(Ie==null?void 0:Ie.focus)=="function"?Ie.focus():(Ce=(ae=Kt(j,m))===null||ae===void 0?void 0:ae.focus)===null||Ce===void 0||Ce.call(ae)},getFieldInstance:j=>{const ae=Ae(j);return g.current[ae]}}),[h,b]);return[m]}var A=u(98350),w=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g};const I=(h,b)=>{const g=p.useContext(ne.Z),{getPrefixCls:m,direction:j,requiredMark:ae,colon:Ce,scrollToFirstError:Ie,className:Le,style:le}=(0,z.dj)("form"),{prefixCls:vt,className:Re,rootClassName:ft,size:_e,disabled:at=g,form:St,colon:ze,labelAlign:ke,labelWrap:ht,labelCol:et,wrapperCol:tt,hideRequiredMark:Mt,layout:ar="horizontal",scrollToFirstError:Ht,requiredMark:$t,onFinishFailed:At,name:tr,style:Zt,feedbackIcons:Rt,variant:Nt}=h,kt=w(h,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),dr=(0,Ee.Z)(_e),fr=p.useContext(A.Z),rr=p.useMemo(()=>$t!==void 0?$t:Mt?!1:ae!==void 0?ae:!0,[Mt,$t,ae]),ur=ze!=null?ze:Ce,xt=m("form",vt),br=(0,ee.Z)(xt),[Wr,Xr,Cr]=G(xt,br),Yr=L()(xt,`${xt}-${ar}`,{[`${xt}-hide-required-mark`]:rr===!1,[`${xt}-rtl`]:j==="rtl",[`${xt}-${dr}`]:dr},Cr,br,Xr,Le,Re,ft),[Er]=ye(St),{__INTERNAL__:Ur}=Er;Ur.name=tr;const $r=p.useMemo(()=>({name:tr,labelAlign:ke,labelCol:et,labelWrap:ht,wrapperCol:tt,vertical:ar==="vertical",colon:ur,requiredMark:rr,itemRef:Ur.itemRef,form:Er,feedbackIcons:Rt}),[tr,ke,et,tt,ar,ur,rr,Er,Rt]),qt=p.useRef(null);p.useImperativeHandle(b,()=>{var ge;return Object.assign(Object.assign({},Er),{nativeElement:(ge=qt.current)===null||ge===void 0?void 0:ge.nativeElement})});const Ct=(ge,qe)=>{if(ge){let Ve={block:"nearest"};typeof ge=="object"&&(Ve=Object.assign(Object.assign({},Ve),ge)),Er.scrollToField(qe,Ve)}},he=ge=>{if(At==null||At(ge),ge.errorFields.length){const qe=ge.errorFields[0].name;if(Ht!==void 0){Ct(Ht,qe);return}Ie!==void 0&&Ct(Ie,qe)}};return Wr(p.createElement(v.pg.Provider,{value:Nt},p.createElement(ne.n,{disabled:at},p.createElement(oe.Z.Provider,{value:dr},p.createElement(v.RV,{validateMessages:fr},p.createElement(v.q3.Provider,{value:$r},p.createElement(se.default,Object.assign({id:tr},kt,{name:tr,onFinishFailed:he,form:Er,ref:qt,style:Object.assign(Object.assign({},le),Zt),className:Yr}))))))))};var K=p.forwardRef(I),te=u(41799),q=u(8654),Q=u(22703),Se=u(32383),ue=u(11592);function ve(h){if(typeof h=="function")return h;const b=(0,ue.Z)(h);return b.length<=1?b[0]:b}const pe=()=>{const{status:h,errors:b=[],warnings:g=[]}=p.useContext(v.aM);return{status:h,errors:b,warnings:g}};pe.Context=v.aM;var Oe=pe,me=u(16089);function ie(h){const[b,g]=p.useState(h),m=p.useRef(null),j=p.useRef([]),ae=p.useRef(!1);p.useEffect(()=>(ae.current=!1,()=>{ae.current=!0,me.Z.cancel(m.current),m.current=null}),[]);function Ce(Ie){ae.current||(m.current===null&&(j.current=[],m.current=(0,me.Z)(()=>{m.current=null,g(Le=>{let le=Le;return j.current.forEach(vt=>{le=vt(le)}),le})})),j.current.push(Ie))}return[b,Ce]}function be(){const{itemRef:h}=p.useContext(v.q3),b=p.useRef({});function g(m,j){const ae=j&&typeof j=="object"&&(0,q.C4)(j),Ce=m.join("_");return(b.current.name!==Ce||b.current.originRef!==ae)&&(b.current.name=Ce,b.current.originRef=ae,b.current.ref=(0,q.sQ)(h(m),ae)),b.current.ref}return g}var ce=u(29194),Ke=u(34280),Pe=u(2738),Ze=u(65970),$e=u(70425),dt=u(5472);const it=h=>{const{formItemCls:b}=h;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${b}-control`]:{display:"flex"}}}};var Fe=(0,Ne.bk)(["Form","item-item"],(h,b)=>{let{rootPrefixCls:g}=b;const m=lt(h,g);return[it(m)]}),ot=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g};const Et=24;var Ot=h=>{const{prefixCls:b,status:g,labelCol:m,wrapperCol:j,children:ae,errors:Ce,warnings:Ie,_internalItemRender:Le,extra:le,help:vt,fieldId:Re,marginBottom:ft,onErrorVisibleChanged:_e,label:at}=h,St=`${b}-item`,ze=p.useContext(v.q3),ke=p.useMemo(()=>{let kt=Object.assign({},j||ze.wrapperCol||{});return at===null&&!m&&!j&&ze.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(fr=>{const rr=fr?[fr]:[],ur=(0,$e.U2)(ze.labelCol,rr),xt=typeof ur=="object"?ur:{},br=(0,$e.U2)(kt,rr),Wr=typeof br=="object"?br:{};"span"in xt&&!("offset"in Wr)&&xt.span<Et&&(kt=(0,$e.t8)(kt,[].concat(rr,["offset"]),xt.span))}),kt},[j,ze]),ht=L()(`${St}-control`,ke.className),et=p.useMemo(()=>{const{labelCol:kt,wrapperCol:dr}=ze;return ot(ze,["labelCol","wrapperCol"])},[ze]),tt=p.useRef(null),[Mt,ar]=p.useState(0);(0,Ke.Z)(()=>{le&&tt.current?ar(tt.current.clientHeight):ar(0)},[le]);const Ht=p.createElement("div",{className:`${St}-control-input`},p.createElement("div",{className:`${St}-control-input-content`},ae)),$t=p.useMemo(()=>({prefixCls:b,status:g}),[b,g]),At=ft!==null||Ce.length||Ie.length?p.createElement(v.Rk.Provider,{value:$t},p.createElement(E,{fieldId:Re,errors:Ce,warnings:Ie,help:vt,helpStatus:g,className:`${St}-explain-connected`,onVisibleChanged:_e})):null,tr={};Re&&(tr.id=`${Re}_extra`);const Zt=le?p.createElement("div",Object.assign({},tr,{className:`${St}-extra`,ref:tt}),le):null,Rt=At||Zt?p.createElement("div",{className:`${St}-additional`,style:ft?{minHeight:ft+Mt}:{}},At,Zt):null,Nt=Le&&Le.mark==="pro_table_render"&&Le.render?Le.render(h,{input:Ht,errorList:At,extra:Zt}):p.createElement(p.Fragment,null,Ht,Rt);return p.createElement(v.q3.Provider,{value:et},p.createElement(dt.Z,Object.assign({},ke,{className:ht}),Nt),p.createElement(Fe,{prefixCls:b}))},or=u(61485),st=u(9017),ut=u(85981),Vt=u(25399),Qt=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g};function Gt(h){return h?typeof h=="object"&&!p.isValidElement(h)?h:{title:h}:null}var yt=h=>{let{prefixCls:b,label:g,htmlFor:m,labelCol:j,labelAlign:ae,colon:Ce,required:Ie,requiredMark:Le,tooltip:le,vertical:vt}=h;var Re;const[ft]=(0,st.Z)("Form"),{labelAlign:_e,labelCol:at,labelWrap:St,colon:ze}=p.useContext(v.q3);if(!g)return null;const ke=j||at||{},ht=ae||_e,et=`${b}-item-label`,tt=L()(et,ht==="left"&&`${et}-left`,ke.className,{[`${et}-wrap`]:!!St});let Mt=g;const ar=Ce===!0||ze!==!1&&Ce!==!1;ar&&!vt&&typeof g=="string"&&g.trim()&&(Mt=g.replace(/[:|]\s*$/,""));const $t=Gt(le);if($t){const{icon:kt=p.createElement(or.Z,null)}=$t,dr=Qt($t,["icon"]),fr=p.createElement(Vt.Z,Object.assign({},dr),p.cloneElement(kt,{className:`${b}-item-tooltip`,title:"",onClick:rr=>{rr.preventDefault()},tabIndex:null}));Mt=p.createElement(p.Fragment,null,Mt,fr)}const At=Le==="optional",tr=typeof Le=="function",Zt=Le===!1;tr?Mt=Le(Mt,{required:!!Ie}):At&&!Ie&&(Mt=p.createElement(p.Fragment,null,Mt,p.createElement("span",{className:`${b}-item-optional`,title:""},(ft==null?void 0:ft.optional)||((Re=ut.Z.Form)===null||Re===void 0?void 0:Re.optional))));let Rt;Zt?Rt="hidden":(At||tr)&&(Rt="optional");const Nt=L()({[`${b}-item-required`]:Ie,[`${b}-item-required-mark-${Rt}`]:Rt,[`${b}-item-no-colon`]:!ar});return p.createElement(dt.Z,Object.assign({},ke,{className:tt}),p.createElement("label",{htmlFor:m,className:Nt,title:typeof g=="string"?g:""},Mt))},It=u(29679),Dt=u(19248),sr=u(96512),Xe=u(58617);const zt={success:It.Z,warning:sr.Z,error:Dt.Z,validating:Xe.Z};function Jt(h){let{children:b,errors:g,warnings:m,hasFeedback:j,validateStatus:ae,prefixCls:Ce,meta:Ie,noStyle:Le}=h;const le=`${Ce}-item`,{feedbackIcons:vt}=p.useContext(v.q3),Re=pt(g,m,Ie,null,!!j,ae),{isFormItemInput:ft,status:_e,hasFeedback:at,feedbackIcon:St}=p.useContext(v.aM),ze=p.useMemo(()=>{var ke;let ht;if(j){const tt=j!==!0&&j.icons||vt,Mt=Re&&((ke=tt==null?void 0:tt({status:Re,errors:g,warnings:m}))===null||ke===void 0?void 0:ke[Re]),ar=Re&&zt[Re];ht=Mt!==!1&&ar?p.createElement("span",{className:L()(`${le}-feedback-icon`,`${le}-feedback-icon-${Re}`)},Mt||p.createElement(ar,null)):null}const et={status:Re||"",errors:g,warnings:m,hasFeedback:!!j,feedbackIcon:ht,isFormItemInput:!0};return Le&&(et.status=(Re!=null?Re:_e)||"",et.isFormItemInput=ft,et.hasFeedback=!!(j!=null?j:at),et.feedbackIcon=j!==void 0?et.feedbackIcon:St),et},[Re,j,Le,ft,_e]);return p.createElement(v.aM.Provider,{value:ze},b)}var xr=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g};function cr(h){const{prefixCls:b,className:g,rootClassName:m,style:j,help:ae,errors:Ce,warnings:Ie,validateStatus:Le,meta:le,hasFeedback:vt,hidden:Re,children:ft,fieldId:_e,required:at,isRequired:St,onSubItemMetaChange:ze,layout:ke}=h,ht=xr(h,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),et=`${b}-item`,{requiredMark:tt,vertical:Mt}=p.useContext(v.q3),ar=Mt||ke==="vertical",Ht=p.useRef(null),$t=_(Ce),At=_(Ie),tr=ae!=null,Zt=!!(tr||Ce.length||Ie.length),Rt=!!Ht.current&&(0,ce.Z)(Ht.current),[Nt,kt]=p.useState(null);(0,Ke.Z)(()=>{if(Zt&&Ht.current){const xt=getComputedStyle(Ht.current);kt(parseInt(xt.marginBottom,10))}},[Zt,Rt]);const dr=xt=>{xt||kt(null)},rr=function(){let xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const br=xt?$t:le.errors,Wr=xt?At:le.warnings;return pt(br,Wr,le,"",!!vt,Le)}(),ur=L()(et,g,m,{[`${et}-with-help`]:tr||$t.length||At.length,[`${et}-has-feedback`]:rr&&vt,[`${et}-has-success`]:rr==="success",[`${et}-has-warning`]:rr==="warning",[`${et}-has-error`]:rr==="error",[`${et}-is-validating`]:rr==="validating",[`${et}-hidden`]:Re,[`${et}-${ke}`]:ke});return p.createElement("div",{className:ur,style:j,ref:Ht},p.createElement(Ze.Z,Object.assign({className:`${et}-row`},(0,Pe.Z)(ht,["_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"])),p.createElement(yt,Object.assign({htmlFor:_e},h,{requiredMark:tt,required:at!=null?at:St,prefixCls:b,vertical:ar})),p.createElement(Ot,Object.assign({},h,le,{errors:$t,warnings:At,prefixCls:b,status:rr,help:ae,marginBottom:Nt,onErrorVisibleChanged:dr}),p.createElement(v.qI.Provider,{value:ze},p.createElement(Jt,{prefixCls:b,meta:le,errors:le.errors,warnings:le.warnings,hasFeedback:vt,validateStatus:rr},ft)))),!!Nt&&p.createElement("div",{className:`${et}-margin-offset`,style:{marginBottom:-Nt}}))}const Or="__SPLIT__",Mr=null;function Ir(h,b){const g=Object.keys(h),m=Object.keys(b);return g.length===m.length&&g.every(j=>{const ae=h[j],Ce=b[j];return ae===Ce||typeof ae=="function"||typeof Ce=="function"})}const Dr=p.memo(h=>{let{children:b}=h;return b},(h,b)=>Ir(h.control,b.control)&&h.update===b.update&&h.childProps.length===b.childProps.length&&h.childProps.every((g,m)=>g===b.childProps[m]));function hr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wt(h){const{name:b,noStyle:g,className:m,dependencies:j,prefixCls:ae,shouldUpdate:Ce,rules:Ie,children:Le,required:le,label:vt,messageVariables:Re,trigger:ft="onChange",validateTrigger:_e,hidden:at,help:St,layout:ze}=h,{getPrefixCls:ke}=p.useContext(z.E_),{name:ht}=p.useContext(v.q3),et=ve(Le),tt=typeof et=="function",Mt=p.useContext(v.qI),{validateTrigger:ar}=p.useContext(se.FieldContext),Ht=_e!==void 0?_e:ar,$t=b!=null,At=ke("form",ae),tr=(0,ee.Z)(At),[Zt,Rt,Nt]=G(At,tr),kt=(0,Se.ln)("Form.Item"),dr=p.useContext(se.ListContext),fr=p.useRef(null),[rr,ur]=ie({}),[xt,br]=(0,te.Z)(()=>hr()),Wr=qt=>{const Ct=dr==null?void 0:dr.getKey(qt.name);if(br(qt.destroy?hr():qt,!0),g&&St!==!1&&Mt){let he=qt.name;if(qt.destroy)he=fr.current||he;else if(Ct!==void 0){const[ge,qe]=Ct;he=[ge].concat((0,F.Z)(qe)),fr.current=he}Mt(qt,he)}},Xr=(qt,Ct)=>{ur(he=>{const ge=Object.assign({},he),Ve=[].concat((0,F.Z)(qt.name.slice(0,-1)),(0,F.Z)(Ct)).join(Or);return qt.destroy?delete ge[Ve]:ge[Ve]=qt,ge})},[Cr,Yr]=p.useMemo(()=>{const qt=(0,F.Z)(xt.errors),Ct=(0,F.Z)(xt.warnings);return Object.values(rr).forEach(he=>{qt.push.apply(qt,(0,F.Z)(he.errors||[])),Ct.push.apply(Ct,(0,F.Z)(he.warnings||[]))}),[qt,Ct]},[rr,xt.errors,xt.warnings]),Er=be();function Ur(qt,Ct,he){return g&&!at?p.createElement(Jt,{prefixCls:At,hasFeedback:h.hasFeedback,validateStatus:h.validateStatus,meta:xt,errors:Cr,warnings:Yr,noStyle:!0},qt):p.createElement(cr,Object.assign({key:"row"},h,{className:L()(m,Nt,tr,Rt),prefixCls:At,fieldId:Ct,isRequired:he,errors:Cr,warnings:Yr,meta:xt,onSubItemMetaChange:Xr,layout:ze}),qt)}if(!$t&&!tt&&!j)return Zt(Ur(et));let $r={};return typeof vt=="string"?$r.label=vt:b&&($r.label=String(b)),Re&&($r=Object.assign(Object.assign({},$r),Re)),Zt(p.createElement(se.Field,Object.assign({},h,{messageVariables:$r,trigger:ft,validateTrigger:Ht,onMetaChange:Wr}),(qt,Ct,he)=>{const ge=Be(b).length&&Ct?Ct.name:[],qe=Lt(ge,ht),Ve=le!==void 0?le:!!(Ie!=null&&Ie.some(Ut=>{if(Ut&&typeof Ut=="object"&&Ut.required&&!Ut.warningOnly)return!0;if(typeof Ut=="function"){const gr=Ut(he);return(gr==null?void 0:gr.required)&&!(gr!=null&&gr.warningOnly)}return!1})),Ft=Object.assign({},qt);let vr=null;if(Array.isArray(et)&&$t)vr=et;else if(!(tt&&(!(Ce||j)||$t))){if(!(j&&!tt&&!$t))if(p.isValidElement(et)){const Ut=Object.assign(Object.assign({},et.props),Ft);if(Ut.id||(Ut.id=qe),St||Cr.length>0||Yr.length>0||h.extra){const Zr=[];(St||Cr.length>0)&&Zr.push(`${qe}_help`),h.extra&&Zr.push(`${qe}_extra`),Ut["aria-describedby"]=Zr.join(" ")}Cr.length>0&&(Ut["aria-invalid"]="true"),Ve&&(Ut["aria-required"]="true"),(0,q.Yr)(et)&&(Ut.ref=Er(ge,et)),new Set([].concat((0,F.Z)(Be(ft)),(0,F.Z)(Be(Ht)))).forEach(Zr=>{Ut[Zr]=function(){for(var Tr,kr,Lr,en,hn,rn=arguments.length,Br=new Array(rn),_r=0;_r<rn;_r++)Br[_r]=arguments[_r];(Lr=Ft[Zr])===null||Lr===void 0||(Tr=Lr).call.apply(Tr,[Ft].concat(Br)),(hn=(en=et.props)[Zr])===null||hn===void 0||(kr=hn).call.apply(kr,[en].concat(Br))}});const Nr=[Ut["aria-required"],Ut["aria-invalid"],Ut["aria-describedby"]];vr=p.createElement(Dr,{control:Ft,update:et,childProps:Nr},(0,Q.Tm)(et,Ut))}else tt&&(Ce||j)&&!$t?vr=et(he):vr=et}return Ur(vr,qe,Ve)}))}const mr=Wt;mr.useStatus=Oe;var Bt=mr,Me=function(h,b){var g={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&b.indexOf(m)<0&&(g[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,m=Object.getOwnPropertySymbols(h);j<m.length;j++)b.indexOf(m[j])<0&&Object.prototype.propertyIsEnumerable.call(h,m[j])&&(g[m[j]]=h[m[j]]);return g},zr=h=>{var{prefixCls:b,children:g}=h,m=Me(h,["prefixCls","children"]);const{getPrefixCls:j}=p.useContext(z.E_),ae=j("form",b),Ce=p.useMemo(()=>({prefixCls:ae,status:"error"}),[ae]);return p.createElement(se.List,Object.assign({},m),(Ie,Le,le)=>p.createElement(v.Rk.Provider,{value:Ce},g(Ie.map(vt=>Object.assign(Object.assign({},vt),{fieldKey:vt.key})),Le,{errors:le.errors,warnings:le.warnings})))};function wr(){const{form:h}=p.useContext(v.q3);return h}const O=K;O.Item=Bt,O.List=zr,O.ErrorList=E,O.useForm=ye,O.useFormInstance=wr,O.useWatch=se.useWatch,O.Provider=v.RV,O.create=()=>{};var R=O},49397:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return y}});var v=u(59301),F=u(92310),p=u.n(F),V=u(36901),L=u(8654),H=u(62487),N=u(86013),ee=u(82855),_=u(48755),d=u(2171),X=u(83397),P=u(31756),re=u(56553),$=u(24971),Ne=u(70045),Ue=u(23826),Ye=u(53075);function We(T){return!!(T.prefix||T.suffix||T.allowClear||T.showCount)}var x=function(T,J){var D={};for(var de in T)Object.prototype.hasOwnProperty.call(T,de)&&J.indexOf(de)<0&&(D[de]=T[de]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,de=Object.getOwnPropertySymbols(T);we<de.length;we++)J.indexOf(de[we])<0&&Object.prototype.propertyIsEnumerable.call(T,de[we])&&(D[de[we]]=T[de[we]]);return D},y=(0,v.forwardRef)((T,J)=>{const{prefixCls:D,bordered:de=!0,status:we,size:k,disabled:He,onBlur:lt,onFocus:G,suffix:W,allowClear:f,addonAfter:Z,addonBefore:E,className:se,style:z,styles:ne,rootClassName:Ee,onChange:oe,classNames:je,variant:Qe}=T,De=x(T,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Je,direction:Be,allowClear:Lt,autoComplete:pt,className:mt,style:Ae,classNames:Kt,styles:ye}=(0,_.dj)("input"),A=Je("input",D),w=(0,v.useRef)(null),I=(0,X.Z)(A),[S,K,te]=(0,Ye.TI)(A,Ee),[q]=(0,Ye.ZP)(A,I),{compactSize:Q,compactItemClassnames:Se}=(0,Ne.ri)(A,Be),ue=(0,P.Z)(gt=>{var Ot;return(Ot=k!=null?k:Q)!==null&&Ot!==void 0?Ot:gt}),ve=v.useContext(d.Z),pe=He!=null?He:ve,{status:Oe,hasFeedback:me,feedbackIcon:ie}=(0,v.useContext)(re.aM),be=(0,ee.F)(Oe,we),ce=We(T)||!!me,Ke=(0,v.useRef)(ce),Pe=(0,Ue.Z)(w,!0),Ze=gt=>{Pe(),lt==null||lt(gt)},$e=gt=>{Pe(),G==null||G(gt)},dt=gt=>{Pe(),oe==null||oe(gt)},it=(me||W)&&v.createElement(v.Fragment,null,W,me&&ie),Fe=(0,N.Z)(f!=null?f:Lt),[ot,Et]=(0,$.Z)("input",Qe,de);return S(q(v.createElement(V.default,Object.assign({ref:(0,L.sQ)(J,w),prefixCls:A,autoComplete:pt},De,{disabled:pe,onBlur:Ze,onFocus:$e,style:Object.assign(Object.assign({},Ae),z),styles:Object.assign(Object.assign({},ye),ne),suffix:it,allowClear:Fe,className:p()(se,Ee,te,I,Se,mt),onChange:dt,addonBefore:E&&v.createElement(H.Z,{form:!0,space:!0},E),addonAfter:Z&&v.createElement(H.Z,{form:!0,space:!0},Z),classNames:Object.assign(Object.assign(Object.assign({},je),Kt),{input:p()({[`${A}-sm`]:ue==="small",[`${A}-lg`]:ue==="large",[`${A}-rtl`]:Be==="rtl"},je==null?void 0:je.input,Kt.input,K),variant:p()({[`${A}-${ot}`]:Et},(0,ee.Z)(A,be)),affixWrapper:p()({[`${A}-affix-wrapper-sm`]:ue==="small",[`${A}-affix-wrapper-lg`]:ue==="large",[`${A}-affix-wrapper-rtl`]:Be==="rtl"},K),wrapper:p()({[`${A}-group-rtl`]:Be==="rtl"},K),groupWrapper:p()({[`${A}-group-wrapper-sm`]:ue==="small",[`${A}-group-wrapper-lg`]:ue==="large",[`${A}-group-wrapper-rtl`]:Be==="rtl",[`${A}-group-wrapper-${ot}`]:Et},(0,ee.Z)(`${A}-group-wrapper`,be,me),K)})}))))})},79809:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return J}});var v=u(59301),F=u(92310),p=u.n(F),V=u(22711),L=u(86013),H=u(82855),N=u(48755),ee=u(2171),_=u(83397),d=u(31756),X=u(56553),P=u(24971),re=u(70045),$=u(30292),Ne=u(53075),Ue=u(16931),Ye=u(51636),We=u(64910);const x=D=>{const{componentCls:de,paddingLG:we}=D,k=`${de}-textarea`;return{[`textarea${de}`]:{maxWidth:"100%",height:"auto",minHeight:D.controlHeight,lineHeight:D.lineHeight,verticalAlign:"bottom",transition:`all ${D.motionDurationSlow}`,resize:"vertical",[`&${de}-mouse-active`]:{transition:`all ${D.motionDurationSlow}, height 0s, width 0s`}},[`${de}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[k]:{position:"relative","&-show-count":{[`> ${de}`]:{height:"100%"},[`${de}-data-count`]:{position:"absolute",bottom:D.calc(D.fontSize).mul(D.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:D.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${de},
&-affix-wrapper${k}-has-feedback ${de}
`]:{paddingInlineEnd:we},[`&-affix-wrapper${de}-affix-wrapper`]:{padding:0,[`> textarea${de}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:D.calc(D.controlHeight).sub(D.calc(D.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${de}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${de}-clear-icon`]:{position:"absolute",insetInlineEnd:D.paddingInline,insetBlockStart:D.paddingXS},[`${k}-suffix`]:{position:"absolute",top:0,insetInlineEnd:D.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${de}-affix-wrapper-sm`]:{[`${de}-suffix`]:{[`${de}-clear-icon`]:{insetInlineEnd:D.paddingInlineSM}}}}}};var Y=(0,Ue.I$)(["Input","TextArea"],D=>{const de=(0,Ye.mergeToken)(D,(0,We.e)(D));return[x(de)]},We.T,{resetFont:!1}),y=function(D,de){var we={};for(var k in D)Object.prototype.hasOwnProperty.call(D,k)&&de.indexOf(k)<0&&(we[k]=D[k]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,k=Object.getOwnPropertySymbols(D);He<k.length;He++)de.indexOf(k[He])<0&&Object.prototype.propertyIsEnumerable.call(D,k[He])&&(we[k[He]]=D[k[He]]);return we},J=(0,v.forwardRef)((D,de)=>{var we;const{prefixCls:k,bordered:He=!0,size:lt,disabled:G,status:W,allowClear:f,classNames:Z,rootClassName:E,className:se,style:z,styles:ne,variant:Ee,showCount:oe,onMouseDown:je,onResize:Qe}=D,De=y(D,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Je,direction:Be,allowClear:Lt,autoComplete:pt,className:mt,style:Ae,classNames:Kt,styles:ye}=(0,N.dj)("textArea"),A=v.useContext(ee.Z),w=G!=null?G:A,{status:I,hasFeedback:S,feedbackIcon:K}=v.useContext(X.aM),te=(0,H.F)(I,W),q=v.useRef(null);v.useImperativeHandle(de,()=>{var Et;return{resizableTextArea:(Et=q.current)===null||Et===void 0?void 0:Et.resizableTextArea,focus:gt=>{var Ot,or;(0,$.nH)((or=(Ot=q.current)===null||Ot===void 0?void 0:Ot.resizableTextArea)===null||or===void 0?void 0:or.textArea,gt)},blur:()=>{var gt;return(gt=q.current)===null||gt===void 0?void 0:gt.blur()}}});const Q=Je("input",k),Se=(0,_.Z)(Q),[ue,ve,pe]=(0,Ne.TI)(Q,E),[Oe]=Y(Q,Se),{compactSize:me,compactItemClassnames:ie}=(0,re.ri)(Q,Be),be=(0,d.Z)(Et=>{var gt;return(gt=lt!=null?lt:me)!==null&&gt!==void 0?gt:Et}),[ce,Ke]=(0,P.Z)("textArea",Ee,He),Pe=(0,L.Z)(f!=null?f:Lt),[Ze,$e]=v.useState(!1),[dt,it]=v.useState(!1),Fe=Et=>{$e(!0),je==null||je(Et);const gt=()=>{$e(!1),document.removeEventListener("mouseup",gt)};document.addEventListener("mouseup",gt)},ot=Et=>{var gt,Ot;if(Qe==null||Qe(Et),Ze&&typeof getComputedStyle=="function"){const or=(Ot=(gt=q.current)===null||gt===void 0?void 0:gt.nativeElement)===null||Ot===void 0?void 0:Ot.querySelector("textarea");or&&getComputedStyle(or).resize==="both"&&it(!0)}};return ue(Oe(v.createElement(V.default,Object.assign({autoComplete:pt},De,{style:Object.assign(Object.assign({},Ae),z),styles:Object.assign(Object.assign({},ye),ne),disabled:w,allowClear:Pe,className:p()(pe,Se,se,E,ie,mt,dt&&`${Q}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Z),Kt),{textarea:p()({[`${Q}-sm`]:be==="small",[`${Q}-lg`]:be==="large"},ve,Z==null?void 0:Z.textarea,Kt.textarea,Ze&&`${Q}-mouse-active`),variant:p()({[`${Q}-${ce}`]:Ke},(0,H.Z)(Q,te)),affixWrapper:p()(`${Q}-textarea-affix-wrapper`,{[`${Q}-affix-wrapper-rtl`]:Be==="rtl",[`${Q}-affix-wrapper-sm`]:be==="small",[`${Q}-affix-wrapper-lg`]:be==="large",[`${Q}-textarea-show-count`]:oe||((we=D.count)===null||we===void 0?void 0:we.show)},ve)}),prefixCls:Q,suffix:S&&v.createElement("span",{className:`${Q}-textarea-suffix`},K),showCount:oe,ref:q,onResize:ot,onMouseDown:Fe}))))})},23826:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return F}});var v=u(59301);function F(p,V){const L=(0,v.useRef)([]),H=()=>{L.current.push(setTimeout(()=>{var N,ee,_,d;!((N=p.current)===null||N===void 0)&&N.input&&((ee=p.current)===null||ee===void 0?void 0:ee.input.getAttribute("type"))==="password"&&(!((_=p.current)===null||_===void 0)&&_.input.hasAttribute("value"))&&((d=p.current)===null||d===void 0||d.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(V&&H(),()=>L.current.forEach(N=>{N&&clearTimeout(N)})),[]),H}},37568:function(lr,xe,u){"use strict";u.d(xe,{default:function(){return Kt}});var v=u(59301),F=u(92310),p=u.n(F),V=u(48755),L=u(56553),H=u(53075),ee=ye=>{const{getPrefixCls:A,direction:w}=(0,v.useContext)(V.E_),{prefixCls:I,className:S}=ye,K=A("input-group",I),te=A("input"),[q,Q,Se]=(0,H.ZP)(te),ue=p()(K,Se,{[`${K}-lg`]:ye.size==="large",[`${K}-sm`]:ye.size==="small",[`${K}-compact`]:ye.compact,[`${K}-rtl`]:w==="rtl"},Q,S),ve=(0,v.useContext)(L.aM),pe=(0,v.useMemo)(()=>Object.assign(Object.assign({},ve),{isFormItemInput:!1}),[ve]);return q(v.createElement("span",{className:ue,style:ye.style,onMouseEnter:ye.onMouseEnter,onMouseLeave:ye.onMouseLeave,onFocus:ye.onFocus,onBlur:ye.onBlur},v.createElement(L.aM.Provider,{value:pe},ye.children)))},_=u(49397),d=u(77654),X=u(6089),P=u(26112),re=u(82855),$=u(31756),Ne=u(16931),Ue=u(51636),Ye=u(64910);const We=ye=>{const{componentCls:A,paddingXS:w}=ye;return{[A]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:w,"&-rtl":{direction:"rtl"},[`${A}-input`]:{textAlign:"center",paddingInline:ye.paddingXXS},[`&${A}-sm ${A}-input`]:{paddingInline:ye.calc(ye.paddingXXS).div(2).equal()},[`&${A}-lg ${A}-input`]:{paddingInline:ye.paddingXS}}}};var x=(0,Ne.I$)(["Input","OTP"],ye=>{const A=(0,Ue.mergeToken)(ye,(0,Ye.e)(ye));return[We(A)]},Ye.T),Y=u(16089),y=function(ye,A){var w={};for(var I in ye)Object.prototype.hasOwnProperty.call(ye,I)&&A.indexOf(I)<0&&(w[I]=ye[I]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,I=Object.getOwnPropertySymbols(ye);S<I.length;S++)A.indexOf(I[S])<0&&Object.prototype.propertyIsEnumerable.call(ye,I[S])&&(w[I[S]]=ye[I[S]]);return w},J=v.forwardRef((ye,A)=>{const{value:w,onChange:I,onActiveChange:S,index:K,mask:te}=ye,q=y(ye,["value","onChange","onActiveChange","index","mask"]),Q=w&&typeof te=="string"?te:w,Se=me=>{I(K,me.target.value)},ue=v.useRef(null);v.useImperativeHandle(A,()=>ue.current);const ve=()=>{(0,Y.Z)(()=>{var me;const ie=(me=ue.current)===null||me===void 0?void 0:me.input;document.activeElement===ie&&ie&&ie.select()})},pe=me=>{const{key:ie,ctrlKey:be,metaKey:ce}=me;ie==="ArrowLeft"?S(K-1):ie==="ArrowRight"?S(K+1):ie==="z"&&(be||ce)&&me.preventDefault(),ve()},Oe=me=>{me.key==="Backspace"&&!w&&S(K-1),ve()};return v.createElement(_.Z,Object.assign({type:te===!0?"password":"text"},q,{ref:ue,value:Q,onInput:Se,onFocus:ve,onKeyDown:pe,onKeyUp:Oe,onMouseDown:ve,onMouseUp:ve}))}),D=function(ye,A){var w={};for(var I in ye)Object.prototype.hasOwnProperty.call(ye,I)&&A.indexOf(I)<0&&(w[I]=ye[I]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,I=Object.getOwnPropertySymbols(ye);S<I.length;S++)A.indexOf(I[S])<0&&Object.prototype.propertyIsEnumerable.call(ye,I[S])&&(w[I[S]]=ye[I[S]]);return w};function de(ye){return(ye||"").split("")}const we=ye=>{const{index:A,prefixCls:w,separator:I}=ye,S=typeof I=="function"?I(A):I;return S?v.createElement("span",{className:`${w}-separator`},S):null};var He=v.forwardRef((ye,A)=>{const{prefixCls:w,length:I=6,size:S,defaultValue:K,value:te,onChange:q,formatter:Q,separator:Se,variant:ue,disabled:ve,status:pe,autoFocus:Oe,mask:me,type:ie,onInput:be,inputMode:ce}=ye,Ke=D(ye,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Pe,direction:Ze}=v.useContext(V.E_),$e=Pe("otp",w),dt=(0,P.Z)(Ke,{aria:!0,data:!0,attr:!0}),[it,Fe,ot]=x($e),Et=(0,$.Z)(Xe=>S!=null?S:Xe),gt=v.useContext(L.aM),Ot=(0,re.F)(gt.status,pe),or=v.useMemo(()=>Object.assign(Object.assign({},gt),{status:Ot,hasFeedback:!1,feedbackIcon:null}),[gt,Ot]),st=v.useRef(null),ut=v.useRef({});v.useImperativeHandle(A,()=>({focus:()=>{var Xe;(Xe=ut.current[0])===null||Xe===void 0||Xe.focus()},blur:()=>{var Xe;for(let zt=0;zt<I;zt+=1)(Xe=ut.current[zt])===null||Xe===void 0||Xe.blur()},nativeElement:st.current}));const Vt=Xe=>Q?Q(Xe):Xe,[Qt,Gt]=v.useState(()=>de(Vt(K||"")));v.useEffect(()=>{te!==void 0&&Gt(de(te))},[te]);const _t=(0,X.Z)(Xe=>{Gt(Xe),be&&be(Xe),q&&Xe.length===I&&Xe.every(zt=>zt)&&Xe.some((zt,Jt)=>Qt[Jt]!==zt)&&q(Xe.join(""))}),yt=(0,X.Z)((Xe,zt)=>{let Jt=(0,d.Z)(Qt);for(let cr=0;cr<Xe;cr+=1)Jt[cr]||(Jt[cr]="");zt.length<=1?Jt[Xe]=zt:Jt=Jt.slice(0,Xe).concat(de(zt)),Jt=Jt.slice(0,I);for(let cr=Jt.length-1;cr>=0&&!Jt[cr];cr-=1)Jt.pop();const xr=Vt(Jt.map(cr=>cr||" ").join(""));return Jt=de(xr).map((cr,Or)=>cr===" "&&!Jt[Or]?Jt[Or]:cr),Jt}),It=(Xe,zt)=>{var Jt;const xr=yt(Xe,zt),cr=Math.min(Xe+zt.length,I-1);cr!==Xe&&xr[Xe]!==void 0&&((Jt=ut.current[cr])===null||Jt===void 0||Jt.focus()),_t(xr)},Dt=Xe=>{var zt;(zt=ut.current[Xe])===null||zt===void 0||zt.focus()},sr={variant:ue,disabled:ve,status:Ot,mask:me,type:ie,inputMode:ce};return it(v.createElement("div",Object.assign({},dt,{ref:st,className:p()($e,{[`${$e}-sm`]:Et==="small",[`${$e}-lg`]:Et==="large",[`${$e}-rtl`]:Ze==="rtl"},ot,Fe)}),v.createElement(L.aM.Provider,{value:or},Array.from({length:I}).map((Xe,zt)=>{const Jt=`otp-${zt}`,xr=Qt[zt]||"";return v.createElement(v.Fragment,{key:Jt},v.createElement(J,Object.assign({ref:cr=>{ut.current[zt]=cr},index:zt,size:Et,htmlSize:1,className:`${$e}-input`,onChange:It,value:xr,onActiveChange:Dt,autoFocus:zt===0&&Oe},sr)),zt<I-1&&v.createElement(we,{separator:Se,index:zt,prefixCls:$e}))}))))}),lt=u(73331),G=u(15277),W=u(2738),f=u(8654),Z=u(2171),E=u(23826),se=function(ye,A){var w={};for(var I in ye)Object.prototype.hasOwnProperty.call(ye,I)&&A.indexOf(I)<0&&(w[I]=ye[I]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,I=Object.getOwnPropertySymbols(ye);S<I.length;S++)A.indexOf(I[S])<0&&Object.prototype.propertyIsEnumerable.call(ye,I[S])&&(w[I[S]]=ye[I[S]]);return w};const z=ye=>ye?v.createElement(G.Z,null):v.createElement(lt.Z,null),ne={click:"onClick",hover:"onMouseOver"};var oe=v.forwardRef((ye,A)=>{const{disabled:w,action:I="click",visibilityToggle:S=!0,iconRender:K=z}=ye,te=v.useContext(Z.Z),q=w!=null?w:te,Q=typeof S=="object"&&S.visible!==void 0,[Se,ue]=(0,v.useState)(()=>Q?S.visible:!1),ve=(0,v.useRef)(null);v.useEffect(()=>{Q&&ue(S.visible)},[Q,S]);const pe=(0,E.Z)(ve),Oe=()=>{var Et;if(q)return;Se&&pe();const gt=!Se;ue(gt),typeof S=="object"&&((Et=S.onVisibleChange)===null||Et===void 0||Et.call(S,gt))},me=Et=>{const gt=ne[I]||"",Ot=K(Se),or={[gt]:Oe,className:`${Et}-icon`,key:"passwordIcon",onMouseDown:st=>{st.preventDefault()},onMouseUp:st=>{st.preventDefault()}};return v.cloneElement(v.isValidElement(Ot)?Ot:v.createElement("span",null,Ot),or)},{className:ie,prefixCls:be,inputPrefixCls:ce,size:Ke}=ye,Pe=se(ye,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ze}=v.useContext(V.E_),$e=Ze("input",ce),dt=Ze("input-password",be),it=S&&me(dt),Fe=p()(dt,ie,{[`${dt}-${Ke}`]:!!Ke}),ot=Object.assign(Object.assign({},(0,W.Z)(Pe,["suffix","iconRender","visibilityToggle"])),{type:Se?"text":"password",className:Fe,prefixCls:$e,suffix:it});return Ke&&(ot.size=Ke),v.createElement(_.Z,Object.assign({ref:(0,f.sQ)(A,ve)},ot))}),je=u(47472),Qe=u(22703),De=u(7939),Je=u(70045),Be=function(ye,A){var w={};for(var I in ye)Object.prototype.hasOwnProperty.call(ye,I)&&A.indexOf(I)<0&&(w[I]=ye[I]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,I=Object.getOwnPropertySymbols(ye);S<I.length;S++)A.indexOf(I[S])<0&&Object.prototype.propertyIsEnumerable.call(ye,I[S])&&(w[I[S]]=ye[I[S]]);return w},pt=v.forwardRef((ye,A)=>{const{prefixCls:w,inputPrefixCls:I,className:S,size:K,suffix:te,enterButton:q=!1,addonAfter:Q,loading:Se,disabled:ue,onSearch:ve,onChange:pe,onCompositionStart:Oe,onCompositionEnd:me}=ye,ie=Be(ye,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:be,direction:ce}=v.useContext(V.E_),Ke=v.useRef(!1),Pe=be("input-search",w),Ze=be("input",I),{compactSize:$e}=(0,Je.ri)(Pe,ce),dt=(0,$.Z)(It=>{var Dt;return(Dt=K!=null?K:$e)!==null&&Dt!==void 0?Dt:It}),it=v.useRef(null),Fe=It=>{It!=null&&It.target&&It.type==="click"&&ve&&ve(It.target.value,It,{source:"clear"}),pe==null||pe(It)},ot=It=>{var Dt;document.activeElement===((Dt=it.current)===null||Dt===void 0?void 0:Dt.input)&&It.preventDefault()},Et=It=>{var Dt,sr;ve&&ve((sr=(Dt=it.current)===null||Dt===void 0?void 0:Dt.input)===null||sr===void 0?void 0:sr.value,It,{source:"input"})},gt=It=>{Ke.current||Se||Et(It)},Ot=typeof q=="boolean"?v.createElement(je.Z,null):null,or=`${Pe}-button`;let st;const ut=q||{},Vt=ut.type&&ut.type.__ANT_BUTTON===!0;Vt||ut.type==="button"?st=(0,Qe.Tm)(ut,Object.assign({onMouseDown:ot,onClick:It=>{var Dt,sr;(sr=(Dt=ut==null?void 0:ut.props)===null||Dt===void 0?void 0:Dt.onClick)===null||sr===void 0||sr.call(Dt,It),Et(It)},key:"enterButton"},Vt?{className:or,size:dt}:{})):st=v.createElement(De.ZP,{className:or,type:q?"primary":void 0,size:dt,disabled:ue,key:"enterButton",onMouseDown:ot,onClick:Et,loading:Se,icon:Ot},q),Q&&(st=[st,(0,Qe.Tm)(Q,{key:"addonAfter"})]);const Qt=p()(Pe,{[`${Pe}-rtl`]:ce==="rtl",[`${Pe}-${dt}`]:!!dt,[`${Pe}-with-button`]:!!q},S),Gt=Object.assign(Object.assign({},ie),{className:Qt,prefixCls:Ze,type:"search"}),_t=It=>{Ke.current=!0,Oe==null||Oe(It)},yt=It=>{Ke.current=!1,me==null||me(It)};return v.createElement(_.Z,Object.assign({ref:(0,f.sQ)(it,A),onPressEnter:gt},Gt,{size:dt,onCompositionStart:_t,onCompositionEnd:yt,addonAfter:st,suffix:te,onChange:Fe,disabled:ue}))}),mt=u(79809);const Ae=_.Z;Ae.Group=ee,Ae.Search=pt,Ae.TextArea=mt.Z,Ae.Password=oe,Ae.OTP=He;var Kt=Ae},53075:function(lr,xe,u){"use strict";u.d(xe,{TI:function(){return Y},ik:function(){return P},nz:function(){return ee},s7:function(){return re},x0:function(){return X}});var v=u(36237),F=u(63356),p=u(56119),V=u(16931),L=u(51636),H=u(64910),N=u(39082);const ee=y=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:y,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_=y=>({borderColor:y.activeBorderColor,boxShadow:y.activeShadow,outline:0,backgroundColor:y.activeBg}),d=y=>{const{paddingBlockLG:T,lineHeightLG:J,borderRadiusLG:D,paddingInlineLG:de}=y;return{padding:`${(0,v.unit)(T)} ${(0,v.unit)(de)}`,fontSize:y.inputFontSizeLG,lineHeight:J,borderRadius:D}},X=y=>({padding:`${(0,v.unit)(y.paddingBlockSM)} ${(0,v.unit)(y.paddingInlineSM)}`,fontSize:y.inputFontSizeSM,borderRadius:y.borderRadiusSM}),P=y=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,v.unit)(y.paddingBlock)} ${(0,v.unit)(y.paddingInline)}`,color:y.colorText,fontSize:y.inputFontSize,lineHeight:y.lineHeight,borderRadius:y.borderRadius,transition:`all ${y.motionDurationMid}`},ee(y.colorTextPlaceholder)),{"&-lg":Object.assign({},d(y)),"&-sm":Object.assign({},X(y)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),re=y=>{const{componentCls:T,antCls:J}=y;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:y.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${T}, &-lg > ${T}-group-addon`]:Object.assign({},d(y)),[`&-sm ${T}, &-sm > ${T}-group-addon`]:Object.assign({},X(y)),[`&-lg ${J}-select-single ${J}-select-selector`]:{height:y.controlHeightLG},[`&-sm ${J}-select-single ${J}-select-selector`]:{height:y.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 ${(0,v.unit)(y.paddingInline)}`,color:y.colorText,fontWeight:"normal",fontSize:y.inputFontSize,textAlign:"center",borderRadius:y.borderRadius,transition:`all ${y.motionDurationSlow}`,lineHeight:1,[`${J}-select`]:{margin:`${(0,v.unit)(y.calc(y.paddingBlock).add(1).mul(-1).equal())} ${(0,v.unit)(y.calc(y.paddingInline).mul(-1).equal())}`,[`&${J}-select-single:not(${J}-select-customize-input):not(${J}-pagination-size-changer)`]:{[`${J}-select-selector`]:{backgroundColor:"inherit",border:`${(0,v.unit)(y.lineWidth)} ${y.lineType} transparent`,boxShadow:"none"}}},[`${J}-cascader-picker`]:{margin:`-9px ${(0,v.unit)(y.calc(y.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${J}-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,[`${J}-select ${J}-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,[`${J}-select ${J}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${T}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${T}-search &`]:{borderStartStartRadius:y.borderRadius,borderEndStartRadius:y.borderRadius}},[`&:not(:first-child), ${T}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${T}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,F.dF)()),{[`${T}-group-addon, ${T}-group-wrap, > ${T}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:y.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${T}-affix-wrapper,
& > ${T}-number-affix-wrapper,
& > ${J}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:y.calc(y.lineWidth).mul(-1).equal(),borderInlineEndWidth:y.lineWidth},[T]:{float:"none"},[`& > ${J}-select > ${J}-select-selector,
& > ${J}-select-auto-complete ${T},
& > ${J}-cascader-picker ${T},
& > ${T}-group-wrapper ${T}`]:{borderInlineEndWidth:y.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${J}-select-focused`]:{zIndex:1},[`& > ${J}-select > ${J}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${J}-select:first-child > ${J}-select-selector,
& > ${J}-select-auto-complete:first-child ${T},
& > ${J}-cascader-picker:first-child ${T}`]:{borderStartStartRadius:y.borderRadius,borderEndStartRadius:y.borderRadius},[`& > *:last-child,
& > ${J}-select:last-child > ${J}-select-selector,
& > ${J}-cascader-picker:last-child ${T},
& > ${J}-cascader-picker-focused:last-child ${T}`]:{borderInlineEndWidth:y.lineWidth,borderStartEndRadius:y.borderRadius,borderEndEndRadius:y.borderRadius},[`& > ${J}-select-auto-complete ${T}`]:{verticalAlign:"top"},[`${T}-group-wrapper + ${T}-group-wrapper`]:{marginInlineStart:y.calc(y.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:y.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y.borderRadius}}}})}},$=y=>{const{componentCls:T,controlHeightSM:J,lineWidth:D,calc:de}=y,k=de(J).sub(de(D).mul(2)).sub(16).div(2).equal();return{[T]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,F.Wf)(y)),P(y)),(0,N.qG)(y)),(0,N.H8)(y)),(0,N.Mu)(y)),(0,N.vc)(y)),{'&[type="color"]':{height:y.controlHeight,[`&${T}-lg`]:{height:y.controlHeightLG},[`&${T}-sm`]:{height:J,paddingTop:k,paddingBottom:k}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Ne=y=>{const{componentCls:T}=y;return{[`${T}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:y.colorTextQuaternary,fontSize:y.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${y.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:y.colorTextTertiary},"&:active":{color:y.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,v.unit)(y.inputAffixPadding)}`}}}},Ue=y=>{const{componentCls:T,inputAffixPadding:J,colorTextDescription:D,motionDurationSlow:de,colorIcon:we,colorIconHover:k,iconCls:He}=y,lt=`${T}-affix-wrapper`,G=`${T}-affix-wrapper-disabled`;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign({},P(y)),{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:y.paddingXS}},"&-show-count-suffix":{color:D},"&-show-count-has-suffix":{marginInlineEnd:y.paddingXXS},"&-prefix":{marginInlineEnd:J},"&-suffix":{marginInlineStart:J}}}),Ne(y)),{[`${He}${T}-password-icon`]:{color:we,cursor:"pointer",transition:`all ${de}`,"&:hover":{color:k}}}),[`${T}-underlined`]:{borderRadius:0},[G]:{[`${He}${T}-password-icon`]:{color:we,cursor:"not-allowed","&:hover":{color:we}}}}},Ye=y=>{const{componentCls:T,borderRadiusLG:J,borderRadiusSM:D}=y;return{[`${T}-group`]:Object.assign(Object.assign(Object.assign({},(0,F.Wf)(y)),re(y)),{"&-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:J,fontSize:y.inputFontSizeLG}},"&-sm":{[`${T}-group-addon`]:{borderRadius:D}}},(0,N.ir)(y)),(0,N.S5)(y)),{[`&: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}}})})}},We=y=>{const{componentCls:T,antCls:J}=y,D=`${T}-search`;return{[D]:{[T]:{"&:hover, &:focus":{[`+ ${T}-group-addon ${D}-button:not(${J}-btn-primary)`]:{borderInlineStartColor:y.colorPrimaryHover}}},[`${T}-affix-wrapper`]:{height:y.controlHeight,borderRadius:0},[`${T}-lg`]:{lineHeight:y.calc(y.lineHeightLG).sub(2e-4).equal()},[`> ${T}-group`]:{[`> ${T}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${D}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${D}-button:not(${J}-btn-primary)`]:{color:y.colorTextDescription,"&:hover":{color:y.colorPrimaryHover},"&:active":{color:y.colorPrimaryActive},[`&${J}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${D}-button`]:{height:y.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${T}-affix-wrapper, ${D}-button`]:{height:y.controlHeightLG}},"&-small":{[`${T}-affix-wrapper, ${D}-button`]:{height:y.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${T}-compact-item`]:{[`&:not(${T}-compact-last-item)`]:{[`${T}-group-addon`]:{[`${T}-search-button`]:{marginInlineEnd:y.calc(y.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}}}}},x=y=>{const{componentCls:T}=y;return{[`${T}-out-of-range`]:{[`&, & input, & textarea, ${T}-show-count-suffix, ${T}-data-count`]:{color:y.colorError}}}},Y=(0,V.I$)(["Input","Shared"],y=>{const T=(0,L.mergeToken)(y,(0,H.e)(y));return[$(T),Ue(T)]},H.T,{resetFont:!1});xe.ZP=(0,V.I$)(["Input","Component"],y=>{const T=(0,L.mergeToken)(y,(0,H.e)(y));return[Ye(T),We(T),x(T),(0,p.c)(T)]},H.T,{resetFont:!1})},64910:function(lr,xe,u){"use strict";u.d(xe,{T:function(){return p},e:function(){return F}});var v=u(51636);function F(V){return(0,v.mergeToken)(V,{inputAffixPadding:V.paddingXXS})}const p=V=>{const{controlHeight:L,fontSize:H,lineHeight:N,lineWidth:ee,controlHeightSM:_,controlHeightLG:d,fontSizeLG:X,lineHeightLG:P,paddingSM:re,controlPaddingHorizontalSM:$,controlPaddingHorizontal:Ne,colorFillAlter:Ue,colorPrimaryHover:Ye,colorPrimary:We,controlOutlineWidth:x,controlOutline:Y,colorErrorOutline:y,colorWarningOutline:T,colorBgContainer:J,inputFontSize:D,inputFontSizeLG:de,inputFontSizeSM:we}=V,k=D||H,He=we||k,lt=de||X,G=Math.round((L-k*N)/2*10)/10-ee,W=Math.round((_-He*N)/2*10)/10-ee,f=Math.ceil((d-lt*P)/2*10)/10-ee;return{paddingBlock:Math.max(G,0),paddingBlockSM:Math.max(W,0),paddingBlockLG:Math.max(f,0),paddingInline:re-ee,paddingInlineSM:$-ee,paddingInlineLG:Ne-ee,addonBg:Ue,activeBorderColor:We,hoverBorderColor:Ye,activeShadow:`0 0 0 ${x}px ${Y}`,errorActiveShadow:`0 0 0 ${x}px ${y}`,warningActiveShadow:`0 0 0 ${x}px ${T}`,hoverBg:J,activeBg:J,inputFontSize:k,inputFontSizeLG:lt,inputFontSizeSM:He}}},39082:function(lr,xe,u){"use strict";u.d(xe,{$U:function(){return L},H8:function(){return re},Mu:function(){return d},S5:function(){return Ne},Xy:function(){return V},ir:function(){return _},qG:function(){return N},vc:function(){return We}});var v=u(36237),F=u(51636);const p=x=>({borderColor:x.hoverBorderColor,backgroundColor:x.hoverBg}),V=x=>({color:x.colorTextDisabled,backgroundColor:x.colorBgContainerDisabled,borderColor:x.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},p((0,F.mergeToken)(x,{hoverBorderColor:x.colorBorder,hoverBg:x.colorBgContainerDisabled})))}),L=(x,Y)=>({background:x.colorBgContainer,borderWidth:x.lineWidth,borderStyle:x.lineType,borderColor:Y.borderColor,"&:hover":{borderColor:Y.hoverBorderColor,backgroundColor:x.hoverBg},"&:focus, &:focus-within":{borderColor:Y.activeBorderColor,boxShadow:Y.activeShadow,outline:0,backgroundColor:x.activeBg}}),H=(x,Y)=>({[`&${x.componentCls}-status-${Y.status}:not(${x.componentCls}-disabled)`]:Object.assign(Object.assign({},L(x,Y)),{[`${x.componentCls}-prefix, ${x.componentCls}-suffix`]:{color:Y.affixColor}}),[`&${x.componentCls}-status-${Y.status}${x.componentCls}-disabled`]:{borderColor:Y.borderColor}}),N=(x,Y)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},L(x,{borderColor:x.colorBorder,hoverBorderColor:x.hoverBorderColor,activeBorderColor:x.activeBorderColor,activeShadow:x.activeShadow})),{[`&${x.componentCls}-disabled, &[disabled]`]:Object.assign({},V(x))}),H(x,{status:"error",borderColor:x.colorError,hoverBorderColor:x.colorErrorBorderHover,activeBorderColor:x.colorError,activeShadow:x.errorActiveShadow,affixColor:x.colorError})),H(x,{status:"warning",borderColor:x.colorWarning,hoverBorderColor:x.colorWarningBorderHover,activeBorderColor:x.colorWarning,activeShadow:x.warningActiveShadow,affixColor:x.colorWarning})),Y)}),ee=(x,Y)=>({[`&${x.componentCls}-group-wrapper-status-${Y.status}`]:{[`${x.componentCls}-group-addon`]:{borderColor:Y.addonBorderColor,color:Y.addonColor}}}),_=x=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${x.componentCls}-group`]:{"&-addon":{background:x.addonBg,border:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ee(x,{status:"error",addonBorderColor:x.colorError,addonColor:x.colorErrorText})),ee(x,{status:"warning",addonBorderColor:x.colorWarning,addonColor:x.colorWarningText})),{[`&${x.componentCls}-group-wrapper-disabled`]:{[`${x.componentCls}-group-addon`]:Object.assign({},V(x))}})}),d=(x,Y)=>{const{componentCls:y}=x;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${y}-disabled, &[disabled]`]:{color:x.colorTextDisabled,cursor:"not-allowed"},[`&${y}-status-error`]:{"&, & input, & textarea":{color:x.colorError}},[`&${y}-status-warning`]:{"&, & input, & textarea":{color:x.colorWarning}}},Y)}},X=(x,Y)=>{var y;return{background:Y.bg,borderWidth:x.lineWidth,borderStyle:x.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(y=Y==null?void 0:Y.inputColor)!==null&&y!==void 0?y:"unset"},"&:hover":{background:Y.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:Y.activeBorderColor,backgroundColor:x.activeBg}}},P=(x,Y)=>({[`&${x.componentCls}-status-${Y.status}:not(${x.componentCls}-disabled)`]:Object.assign(Object.assign({},X(x,Y)),{[`${x.componentCls}-prefix, ${x.componentCls}-suffix`]:{color:Y.affixColor}})}),re=(x,Y)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(x,{bg:x.colorFillTertiary,hoverBg:x.colorFillSecondary,activeBorderColor:x.activeBorderColor})),{[`&${x.componentCls}-disabled, &[disabled]`]:Object.assign({},V(x))}),P(x,{status:"error",bg:x.colorErrorBg,hoverBg:x.colorErrorBgHover,activeBorderColor:x.colorError,inputColor:x.colorErrorText,affixColor:x.colorError})),P(x,{status:"warning",bg:x.colorWarningBg,hoverBg:x.colorWarningBgHover,activeBorderColor:x.colorWarning,inputColor:x.colorWarningText,affixColor:x.colorWarning})),Y)}),$=(x,Y)=>({[`&${x.componentCls}-group-wrapper-status-${Y.status}`]:{[`${x.componentCls}-group-addon`]:{background:Y.addonBg,color:Y.addonColor}}}),Ne=x=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${x.componentCls}-group`]:{"&-addon":{background:x.colorFillTertiary},[`${x.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorSplit}`}}}},$(x,{status:"error",addonBg:x.colorErrorBg,addonColor:x.colorErrorText})),$(x,{status:"warning",addonBg:x.colorWarningBg,addonColor:x.colorWarningText})),{[`&${x.componentCls}-group-wrapper-disabled`]:{[`${x.componentCls}-group`]:{"&-addon":{background:x.colorFillTertiary,color:x.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`,borderTop:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`,borderBottom:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`,borderTop:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`,borderBottom:`${(0,v.unit)(x.lineWidth)} ${x.lineType} ${x.colorBorder}`}}}})}),Ue=(x,Y)=>({background:x.colorBgContainer,borderWidth:`${(0,v.unit)(x.lineWidth)} 0`,borderStyle:`${x.lineType} none`,borderColor:`transparent transparent ${Y.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${Y.borderColor} transparent`,backgroundColor:x.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${Y.borderColor} transparent`,outline:0,backgroundColor:x.activeBg}}),Ye=(x,Y)=>({[`&${x.componentCls}-status-${Y.status}:not(${x.componentCls}-disabled)`]:Object.assign(Object.assign({},Ue(x,Y)),{[`${x.componentCls}-prefix, ${x.componentCls}-suffix`]:{color:Y.affixColor}}),[`&${x.componentCls}-status-${Y.status}${x.componentCls}-disabled`]:{borderColor:`transparent transparent ${Y.borderColor} transparent`}}),We=(x,Y)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ue(x,{borderColor:x.colorBorder,hoverBorderColor:x.hoverBorderColor,activeBorderColor:x.activeBorderColor,activeShadow:x.activeShadow})),{[`&${x.componentCls}-disabled, &[disabled]`]:{color:x.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${x.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Ye(x,{status:"error",borderColor:x.colorError,hoverBorderColor:x.colorErrorBorderHover,activeBorderColor:x.colorError,activeShadow:x.errorActiveShadow,affixColor:x.colorError})),Ye(x,{status:"warning",borderColor:x.colorWarning,hoverBorderColor:x.colorWarningBorderHover,activeBorderColor:x.colorWarning,activeShadow:x.warningActiveShadow,affixColor:x.colorWarning})),Y)})},82326:function(lr,xe,u){"use strict";var v=u(59301),F=u(92310),p=u.n(F),V=u(37463),L=u(2738),H=u(75030),N=u(86641),ee=u(45915),_=u(82855),d=u(48755),X=u(38406),P=u(2171),re=u(83397),$=u(31756),Ne=u(56553),Ue=u(24971),Ye=u(70045),We=u(57700),x=u(1722),Y=u(90376),y=u(68525),T=u(90005),J=function(He,lt){var G={};for(var W in He)Object.prototype.hasOwnProperty.call(He,W)&&lt.indexOf(W)<0&&(G[W]=He[W]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,W=Object.getOwnPropertySymbols(He);f<W.length;f++)lt.indexOf(W[f])<0&&Object.prototype.propertyIsEnumerable.call(He,W[f])&&(G[W[f]]=He[W[f]]);return G};const D="SECRET_COMBOBOX_MODE_DO_NOT_USE",de=(He,lt)=>{var G;const{prefixCls:W,bordered:f,className:Z,rootClassName:E,getPopupContainer:se,popupClassName:z,dropdownClassName:ne,listHeight:Ee=256,placement:oe,listItemHeight:je,size:Qe,disabled:De,notFoundContent:Je,status:Be,builtinPlacements:Lt,dropdownMatchSelectWidth:pt,popupMatchSelectWidth:mt,direction:Ae,style:Kt,allowClear:ye,variant:A,dropdownStyle:w,transitionName:I,tagRender:S,maxCount:K,prefix:te}=He,q=J(He,["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:Q,getPrefixCls:Se,renderEmpty:ue,direction:ve,virtual:pe,popupMatchSelectWidth:Oe,popupOverflow:me}=v.useContext(d.E_),ie=(0,d.dj)("select"),[,be]=(0,We.ZP)(),ce=je!=null?je:be==null?void 0:be.controlHeight,Ke=Se("select",W),Pe=Se(),Ze=Ae!=null?Ae:ve,{compactSize:$e,compactItemClassnames:dt}=(0,Ye.ri)(Ke,Ze),[it,Fe]=(0,Ue.Z)("select",A,f),ot=(0,re.Z)(Ke),[Et,gt,Ot]=(0,Y.Z)(Ke,ot),or=v.useMemo(()=>{const{mode:Bt}=He;if(Bt!=="combobox")return Bt===D?"combobox":Bt},[He.mode]),st=or==="multiple"||or==="tags",ut=(0,T.Z)(He.suffixIcon,He.showArrow),Vt=(G=mt!=null?mt:pt)!==null&&G!==void 0?G:Oe,{status:Qt,hasFeedback:Gt,isFormItemInput:_t,feedbackIcon:yt}=v.useContext(Ne.aM),It=(0,_.F)(Qt,Be);let Dt;Je!==void 0?Dt=Je:or==="combobox"?Dt=null:Dt=(ue==null?void 0:ue("Select"))||v.createElement(X.Z,{componentName:"Select"});const{suffixIcon:sr,itemIcon:Xe,removeIcon:zt,clearIcon:Jt}=(0,y.Z)(Object.assign(Object.assign({},q),{multiple:st,hasFeedback:Gt,feedbackIcon:yt,showSuffixIcon:ut,prefixCls:Ke,componentName:"Select"})),xr=ye===!0?{clearIcon:Jt}:ye,cr=(0,L.Z)(q,["suffixIcon","itemIcon"]),Or=p()(z||ne,{[`${Ke}-dropdown-${Ze}`]:Ze==="rtl"},E,Ot,ot,gt),Mr=(0,$.Z)(Bt=>{var Me;return(Me=Qe!=null?Qe:$e)!==null&&Me!==void 0?Me:Bt}),Ir=v.useContext(P.Z),Dr=De!=null?De:Ir,hr=p()({[`${Ke}-lg`]:Mr==="large",[`${Ke}-sm`]:Mr==="small",[`${Ke}-rtl`]:Ze==="rtl",[`${Ke}-${it}`]:Fe,[`${Ke}-in-form-item`]:_t},(0,_.Z)(Ke,It,Gt),dt,ie.className,Z,E,Ot,ot,gt),Wt=v.useMemo(()=>oe!==void 0?oe:Ze==="rtl"?"bottomRight":"bottomLeft",[oe,Ze]),[mr]=(0,H.Cn)("SelectLike",w==null?void 0:w.zIndex);return Et(v.createElement(V.ZP,Object.assign({ref:lt,virtual:pe,showSearch:ie.showSearch},cr,{style:Object.assign(Object.assign({},ie.style),Kt),dropdownMatchSelectWidth:Vt,transitionName:(0,N.m)(Pe,"slide-up",I),builtinPlacements:(0,x.Z)(Lt,me),listHeight:Ee,listItemHeight:ce,mode:or,prefixCls:Ke,placement:Wt,direction:Ze,prefix:te,suffixIcon:sr,menuItemSelectedIcon:Xe,removeIcon:zt,allowClear:xr,notFoundContent:Dt,className:hr,getPopupContainer:se||Q,dropdownClassName:Or,disabled:Dr,dropdownStyle:Object.assign(Object.assign({},w),{zIndex:mr}),maxCount:st?K:void 0,tagRender:st?S:void 0})))},we=v.forwardRef(de),k=(0,ee.Z)(we,"dropdownAlign");we.SECRET_COMBOBOX_MODE_DO_NOT_USE=D,we.Option=V.Wx,we.OptGroup=V.Xo,we._InternalPanelDoNotUseOrYouWillBeFired=k,xe.default=we},1722:function(lr,xe){"use strict";const u=F=>{const V={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:F==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},V),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},V),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},V),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},V),{points:["br","tr"],offset:[0,-4]})}};function v(F,p){return F||u(p)}xe.Z=v},90376:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return W}});var v=u(63356),F=u(56119),p=u(16931),V=u(51636),L=u(46e3),H=u(93873);const N=f=>{const{optionHeight:Z,optionFontSize:E,optionLineHeight:se,optionPadding:z}=f;return{position:"relative",display:"block",minHeight:Z,padding:z,color:f.colorText,fontWeight:"normal",fontSize:E,lineHeight:se,boxSizing:"border-box"}};var _=f=>{const{antCls:Z,componentCls:E}=f,se=`${E}-item`,z=`&${Z}-slide-up-enter${Z}-slide-up-enter-active`,ne=`&${Z}-slide-up-appear${Z}-slide-up-appear-active`,Ee=`&${Z}-slide-up-leave${Z}-slide-up-leave-active`,oe=`${E}-dropdown-placement-`,je=`${se}-option-selected`;return[{[`${E}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(f)),{position:"absolute",top:-9999,zIndex:f.zIndexPopup,boxSizing:"border-box",padding:f.paddingXXS,overflow:"hidden",fontSize:f.fontSize,fontVariant:"initial",backgroundColor:f.colorBgElevated,borderRadius:f.borderRadiusLG,outline:"none",boxShadow:f.boxShadowSecondary,[`
${z}${oe}bottomLeft,
${ne}${oe}bottomLeft
`]:{animationName:L.fJ},[`
${z}${oe}topLeft,
${ne}${oe}topLeft,
${z}${oe}topRight,
${ne}${oe}topRight
`]:{animationName:L.Qt},[`${Ee}${oe}bottomLeft`]:{animationName:L.Uw},[`
${Ee}${oe}topLeft,
${Ee}${oe}topRight
`]:{animationName:L.ly},"&-hidden":{display:"none"},[se]:Object.assign(Object.assign({},N(f)),{cursor:"pointer",transition:`background ${f.motionDurationSlow} ease`,borderRadius:f.borderRadiusSM,"&-group":{color:f.colorTextDescription,fontSize:f.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${se}-option-disabled)`]:{backgroundColor:f.optionActiveBg},[`&-selected:not(${se}-option-disabled)`]:{color:f.optionSelectedColor,fontWeight:f.optionSelectedFontWeight,backgroundColor:f.optionSelectedBg,[`${se}-option-state`]:{color:f.colorPrimary}},"&-disabled":{[`&${se}-option-selected`]:{backgroundColor:f.colorBgContainerDisabled},color:f.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:f.calc(f.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},N(f)),{color:f.colorTextDisabled})}),[`${je}:has(+ ${je})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${je}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,L.oN)(f,"slide-up"),(0,L.oN)(f,"slide-down"),(0,H.Fm)(f,"move-up"),(0,H.Fm)(f,"move-down")]},d=u(26743),X=u(36237);function P(f,Z){const{componentCls:E,inputPaddingHorizontalBase:se,borderRadius:z}=f,ne=f.calc(f.controlHeight).sub(f.calc(f.lineWidth).mul(2)).equal(),Ee=Z?`${E}-${Z}`:"";return{[`${E}-single${Ee}`]:{fontSize:f.fontSize,height:f.controlHeight,[`${E}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(f,!0)),{display:"flex",borderRadius:z,flex:"1 1 auto",[`${E}-selection-wrap:after`]:{lineHeight:(0,X.unit)(ne)},[`${E}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${E}-selection-item,
${E}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,X.unit)(ne),transition:`all ${f.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${E}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${E}-selection-item:empty:after`,`${E}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${E}-show-arrow ${E}-selection-item,
&${E}-show-arrow ${E}-selection-search,
&${E}-show-arrow ${E}-selection-placeholder
`]:{paddingInlineEnd:f.showArrowPaddingInlineEnd},[`&${E}-open ${E}-selection-item`]:{color:f.colorTextPlaceholder},[`&:not(${E}-customize-input)`]:{[`${E}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,X.unit)(se)}`,[`${E}-selection-search-input`]:{height:ne,fontSize:f.fontSize},"&:after":{lineHeight:(0,X.unit)(ne)}}},[`&${E}-customize-input`]:{[`${E}-selector`]:{"&:after":{display:"none"},[`${E}-selection-search`]:{position:"static",width:"100%"},[`${E}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,X.unit)(se)}`,"&:after":{display:"none"}}}}}}}function re(f){const{componentCls:Z}=f,E=f.calc(f.controlPaddingHorizontalSM).sub(f.lineWidth).equal();return[P(f),P((0,V.mergeToken)(f,{controlHeight:f.controlHeightSM,borderRadius:f.borderRadiusSM}),"sm"),{[`${Z}-single${Z}-sm`]:{[`&:not(${Z}-customize-input)`]:{[`${Z}-selector`]:{padding:`0 ${(0,X.unit)(E)}`},[`&${Z}-show-arrow ${Z}-selection-search`]:{insetInlineEnd:f.calc(E).add(f.calc(f.fontSize).mul(1.5)).equal()},[`
&${Z}-show-arrow ${Z}-selection-item,
&${Z}-show-arrow ${Z}-selection-placeholder
`]:{paddingInlineEnd:f.calc(f.fontSize).mul(1.5).equal()}}}},P((0,V.mergeToken)(f,{controlHeight:f.singleItemHeightLG,fontSize:f.fontSizeLG,borderRadius:f.borderRadiusLG}),"lg")]}const $=f=>{const{fontSize:Z,lineHeight:E,lineWidth:se,controlHeight:z,controlHeightSM:ne,controlHeightLG:Ee,paddingXXS:oe,controlPaddingHorizontal:je,zIndexPopupBase:Qe,colorText:De,fontWeightStrong:Je,controlItemBgActive:Be,controlItemBgHover:Lt,colorBgContainer:pt,colorFillSecondary:mt,colorBgContainerDisabled:Ae,colorTextDisabled:Kt,colorPrimaryHover:ye,colorPrimary:A,controlOutline:w}=f,I=oe*2,S=se*2,K=Math.min(z-I,z-S),te=Math.min(ne-I,ne-S),q=Math.min(Ee-I,Ee-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(oe/2),zIndexPopup:Qe+50,optionSelectedColor:De,optionSelectedFontWeight:Je,optionSelectedBg:Be,optionActiveBg:Lt,optionPadding:`${(z-Z*E)/2}px ${je}px`,optionFontSize:Z,optionLineHeight:E,optionHeight:z,selectorBg:pt,clearBg:pt,singleItemHeightLG:Ee,multipleItemBg:mt,multipleItemBorderColor:"transparent",multipleItemHeight:K,multipleItemHeightSM:te,multipleItemHeightLG:q,multipleSelectorBgDisabled:Ae,multipleItemColorDisabled:Kt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(f.fontSize*1.25),hoverBorderColor:ye,activeBorderColor:A,activeOutlineColor:w,selectAffixPadding:oe}},Ne=(f,Z)=>{const{componentCls:E,antCls:se,controlOutlineWidth:z}=f;return{[`&:not(${E}-customize-input) ${E}-selector`]:{border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} ${Z.borderColor}`,background:f.selectorBg},[`&:not(${E}-disabled):not(${E}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${E}-selector`]:{borderColor:Z.hoverBorderHover},[`${E}-focused& ${E}-selector`]:{borderColor:Z.activeBorderColor,boxShadow:`0 0 0 ${(0,X.unit)(z)} ${Z.activeOutlineColor}`,outline:0},[`${E}-prefix`]:{color:Z.color}}}},Ue=(f,Z)=>({[`&${f.componentCls}-status-${Z.status}`]:Object.assign({},Ne(f,Z))}),Ye=f=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(f,{borderColor:f.colorBorder,hoverBorderHover:f.hoverBorderColor,activeBorderColor:f.activeBorderColor,activeOutlineColor:f.activeOutlineColor,color:f.colorText})),Ue(f,{status:"error",borderColor:f.colorError,hoverBorderHover:f.colorErrorHover,activeBorderColor:f.colorError,activeOutlineColor:f.colorErrorOutline,color:f.colorError})),Ue(f,{status:"warning",borderColor:f.colorWarning,hoverBorderHover:f.colorWarningHover,activeBorderColor:f.colorWarning,activeOutlineColor:f.colorWarningOutline,color:f.colorWarning})),{[`&${f.componentCls}-disabled`]:{[`&:not(${f.componentCls}-customize-input) ${f.componentCls}-selector`]:{background:f.colorBgContainerDisabled,color:f.colorTextDisabled}},[`&${f.componentCls}-multiple ${f.componentCls}-selection-item`]:{background:f.multipleItemBg,border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} ${f.multipleItemBorderColor}`}})}),We=(f,Z)=>{const{componentCls:E,antCls:se}=f;return{[`&:not(${E}-customize-input) ${E}-selector`]:{background:Z.bg,border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} transparent`,color:Z.color},[`&:not(${E}-disabled):not(${E}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${E}-selector`]:{background:Z.hoverBg},[`${E}-focused& ${E}-selector`]:{background:f.selectorBg,borderColor:Z.activeBorderColor,outline:0}}}},x=(f,Z)=>({[`&${f.componentCls}-status-${Z.status}`]:Object.assign({},We(f,Z))}),Y=f=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},We(f,{bg:f.colorFillTertiary,hoverBg:f.colorFillSecondary,activeBorderColor:f.activeBorderColor,color:f.colorText})),x(f,{status:"error",bg:f.colorErrorBg,hoverBg:f.colorErrorBgHover,activeBorderColor:f.colorError,color:f.colorError})),x(f,{status:"warning",bg:f.colorWarningBg,hoverBg:f.colorWarningBgHover,activeBorderColor:f.colorWarning,color:f.colorWarning})),{[`&${f.componentCls}-disabled`]:{[`&:not(${f.componentCls}-customize-input) ${f.componentCls}-selector`]:{borderColor:f.colorBorder,background:f.colorBgContainerDisabled,color:f.colorTextDisabled}},[`&${f.componentCls}-multiple ${f.componentCls}-selection-item`]:{background:f.colorBgContainer,border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} ${f.colorSplit}`}})}),y=f=>({"&-borderless":{[`${f.componentCls}-selector`]:{background:"transparent",border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} transparent`},[`&${f.componentCls}-disabled`]:{[`&:not(${f.componentCls}-customize-input) ${f.componentCls}-selector`]:{color:f.colorTextDisabled}},[`&${f.componentCls}-multiple ${f.componentCls}-selection-item`]:{background:f.multipleItemBg,border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} ${f.multipleItemBorderColor}`},[`&${f.componentCls}-status-error`]:{[`${f.componentCls}-prefix, ${f.componentCls}-selection-item`]:{color:f.colorError}},[`&${f.componentCls}-status-warning`]:{[`${f.componentCls}-prefix, ${f.componentCls}-selection-item`]:{color:f.colorWarning}}}}),T=(f,Z)=>{const{componentCls:E,antCls:se}=f;return{[`&:not(${E}-customize-input) ${E}-selector`]:{borderWidth:`0 0 ${(0,X.unit)(f.lineWidth)} 0`,borderStyle:`none none ${f.lineType} none`,borderColor:Z.borderColor,background:f.selectorBg,borderRadius:0},[`&:not(${E}-disabled):not(${E}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${E}-selector`]:{borderColor:Z.hoverBorderHover},[`${E}-focused& ${E}-selector`]:{borderColor:Z.activeBorderColor,outline:0},[`${E}-prefix`]:{color:Z.color}}}},J=(f,Z)=>({[`&${f.componentCls}-status-${Z.status}`]:Object.assign({},T(f,Z))}),D=f=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},T(f,{borderColor:f.colorBorder,hoverBorderHover:f.hoverBorderColor,activeBorderColor:f.activeBorderColor,activeOutlineColor:f.activeOutlineColor,color:f.colorText})),J(f,{status:"error",borderColor:f.colorError,hoverBorderHover:f.colorErrorHover,activeBorderColor:f.colorError,activeOutlineColor:f.colorErrorOutline,color:f.colorError})),J(f,{status:"warning",borderColor:f.colorWarning,hoverBorderHover:f.colorWarningHover,activeBorderColor:f.colorWarning,activeOutlineColor:f.colorWarningOutline,color:f.colorWarning})),{[`&${f.componentCls}-disabled`]:{[`&:not(${f.componentCls}-customize-input) ${f.componentCls}-selector`]:{color:f.colorTextDisabled}},[`&${f.componentCls}-multiple ${f.componentCls}-selection-item`]:{background:f.multipleItemBg,border:`${(0,X.unit)(f.lineWidth)} ${f.lineType} ${f.multipleItemBorderColor}`}})});var we=f=>({[f.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ye(f)),Y(f)),y(f)),D(f))});const k=f=>{const{componentCls:Z}=f;return{position:"relative",transition:`all ${f.motionDurationMid} ${f.motionEaseInOut}`,input:{cursor:"pointer"},[`${Z}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Z}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},He=f=>{const{componentCls:Z}=f;return{[`${Z}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},lt=f=>{const{antCls:Z,componentCls:E,inputPaddingHorizontalBase:se,iconCls:z}=f;return{[E]:Object.assign(Object.assign({},(0,v.Wf)(f)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${E}-customize-input) ${E}-selector`]:Object.assign(Object.assign({},k(f)),He(f)),[`${E}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},v.vS),{[`> ${Z}-typography`]:{display:"inline"}}),[`${E}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:f.colorTextPlaceholder,pointerEvents:"none"}),[`${E}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:f.fontSizeIcon,marginTop:f.calc(f.fontSizeIcon).mul(-1).div(2).equal(),color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${f.motionDurationSlow} ease`,[z]:{verticalAlign:"top",transition:`transform ${f.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${E}-suffix)`]:{pointerEvents:"auto"}},[`${E}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${E}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${E}-prefix`]:{flex:"none",marginInlineEnd:f.selectAffixPadding},[`${E}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,zIndex:1,display:"inline-block",width:f.fontSizeIcon,height:f.fontSizeIcon,marginTop:f.calc(f.fontSizeIcon).mul(-1).div(2).equal(),color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${f.motionDurationMid} ease, opacity ${f.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:f.colorTextTertiary}},[`&:hover ${E}-clear`]:{opacity:1,background:f.colorBgBase,borderRadius:"50%"}}),[`${E}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${E}-has-feedback`]:{[`${E}-clear`]:{insetInlineEnd:f.calc(se).add(f.fontSize).add(f.paddingXS).equal()}}}}}},G=f=>{const{componentCls:Z}=f;return[{[Z]:{[`&${Z}-in-form-item`]:{width:"100%"}}},lt(f),re(f),(0,d.ZP)(f),_(f),{[`${Z}-rtl`]:{direction:"rtl"}},(0,F.c)(f,{borderElCls:`${Z}-selector`,focusElCls:`${Z}-focused`})]};var W=(0,p.I$)("Select",(f,Z)=>{let{rootPrefixCls:E}=Z;const se=(0,V.mergeToken)(f,{rootPrefixCls:E,inputPaddingHorizontalBase:f.calc(f.paddingSM).sub(1).equal(),multipleSelectItemHeight:f.multipleItemHeight,selectHeight:f.controlHeight});return[G(se),we(se)]},$,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(lr,xe,u){"use strict";u.d(xe,{_z:function(){return H},gp:function(){return V}});var v=u(36237),F=u(63356),p=u(51636);const V=d=>{const{multipleSelectItemHeight:X,paddingXXS:P,lineWidth:re,INTERNAL_FIXED_ITEM_MARGIN:$}=d,Ne=d.max(d.calc(P).sub(re).equal(),0),Ue=d.max(d.calc(Ne).sub($).equal(),0);return{basePadding:Ne,containerPadding:Ue,itemHeight:(0,v.unit)(X),itemLineHeight:(0,v.unit)(d.calc(X).sub(d.calc(d.lineWidth).mul(2)).equal())}},L=d=>{const{multipleSelectItemHeight:X,selectHeight:P,lineWidth:re}=d;return d.calc(P).sub(X).div(2).sub(re).equal()},H=d=>{const{componentCls:X,iconCls:P,borderRadiusSM:re,motionDurationSlow:$,paddingXS:Ne,multipleItemColorDisabled:Ue,multipleItemBorderColorDisabled:Ye,colorIcon:We,colorIconHover:x,INTERNAL_FIXED_ITEM_MARGIN:Y}=d;return{[`${X}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${X}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Y,borderRadius:re,cursor:"default",transition:`font-size ${$}, line-height ${$}, height ${$}`,marginInlineEnd:d.calc(Y).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:d.calc(Ne).div(2).equal(),[`${X}-disabled&`]:{color:Ue,borderColor:Ye,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:d.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,F.Ro)()),{display:"inline-flex",alignItems:"center",color:We,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${P}`]:{verticalAlign:"-0.2em"},"&:hover":{color:x}})}}}},N=(d,X)=>{const{componentCls:P,INTERNAL_FIXED_ITEM_MARGIN:re}=d,$=`${P}-selection-overflow`,Ne=d.multipleSelectItemHeight,Ue=L(d),Ye=X?`${P}-${X}`:"",We=V(d);return{[`${P}-multiple${Ye}`]:Object.assign(Object.assign({},H(d)),{[`${P}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:We.basePadding,paddingBlock:We.containerPadding,borderRadius:d.borderRadius,[`${P}-disabled&`]:{background:d.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,v.unit)(re)} 0`,lineHeight:(0,v.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${P}-selection-item`]:{height:We.itemHeight,lineHeight:(0,v.unit)(We.itemLineHeight)},[`${P}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,v.unit)(Ne),marginBlock:re}},[`${P}-prefix`]:{marginInlineStart:d.calc(d.inputPaddingHorizontalBase).sub(We.basePadding).equal()},[`${$}-item + ${$}-item,
${P}-prefix + ${P}-selection-wrap
`]:{[`${P}-selection-search`]:{marginInlineStart:0},[`${P}-selection-placeholder`]:{insetInlineStart:0}},[`${$}-item-suffix`]:{minHeight:We.itemHeight,marginBlock:re},[`${P}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:d.calc(d.inputPaddingHorizontalBase).sub(Ue).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:d.fontFamily,lineHeight:(0,v.unit)(Ne),transition:`all ${d.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${P}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:d.calc(d.inputPaddingHorizontalBase).sub(We.basePadding).equal(),insetInlineEnd:d.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${d.motionDurationSlow}`}})}};function ee(d,X){const{componentCls:P}=d,re=X?`${P}-${X}`:"",$={[`${P}-multiple${re}`]:{fontSize:d.fontSize,[`${P}-selector`]:{[`${P}-show-search&`]:{cursor:"text"}},[`
&${P}-show-arrow ${P}-selector,
&${P}-allow-clear ${P}-selector
`]:{paddingInlineEnd:d.calc(d.fontSizeIcon).add(d.controlPaddingHorizontal).equal()}}};return[N(d,X),$]}const _=d=>{const{componentCls:X}=d,P=(0,p.mergeToken)(d,{selectHeight:d.controlHeightSM,multipleSelectItemHeight:d.multipleItemHeightSM,borderRadius:d.borderRadiusSM,borderRadiusSM:d.borderRadiusXS}),re=(0,p.mergeToken)(d,{fontSize:d.fontSizeLG,selectHeight:d.controlHeightLG,multipleSelectItemHeight:d.multipleItemHeightLG,borderRadius:d.borderRadiusLG,borderRadiusSM:d.borderRadius});return[ee(d),ee(P,"sm"),{[`${X}-multiple${X}-sm`]:{[`${X}-selection-placeholder`]:{insetInline:d.calc(d.controlPaddingHorizontalSM).sub(d.lineWidth).equal()},[`${X}-selection-search`]:{marginInlineStart:2}}},ee(re,"lg")]};xe.ZP=_},68525:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});var v=u(59301),F=u(40001),p=u(19248),V=u(99267),L=u(84105),H=u(58617),N=u(47472);function ee(_){let{suffixIcon:d,clearIcon:X,menuItemSelectedIcon:P,removeIcon:re,loading:$,multiple:Ne,hasFeedback:Ue,prefixCls:Ye,showSuffixIcon:We,feedbackIcon:x,showArrow:Y,componentName:y}=_;const T=X!=null?X:v.createElement(p.Z,null),J=k=>d===null&&!Ue&&!Y?null:v.createElement(v.Fragment,null,We!==!1&&k,Ue&&x);let D=null;if(d!==void 0)D=J(d);else if($)D=J(v.createElement(H.Z,{spin:!0}));else{const k=`${Ye}-suffix`;D=He=>{let{open:lt,showSearch:G}=He;return J(lt&&G?v.createElement(N.Z,{className:k}):v.createElement(L.Z,{className:k}))}}let de=null;P!==void 0?de=P:Ne?de=v.createElement(F.Z,null):de=null;let we=null;return re!==void 0?we=re:we=v.createElement(V.Z,null),{clearIcon:T,suffixIcon:D,itemIcon:de,removeIcon:we}}},90005:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return v}});function v(F,p){return p!==void 0?p:F!==null}},93873:function(lr,xe,u){"use strict";u.d(xe,{Fm:function(){return P}});var v=u(36237),F=u(48746);const p=new v.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new v.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),L=new v.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H=new v.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N=new v.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ee=new v.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_=new v.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new v.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),X={"move-up":{inKeyframes:_,outKeyframes:d},"move-down":{inKeyframes:p,outKeyframes:V},"move-left":{inKeyframes:L,outKeyframes:H},"move-right":{inKeyframes:N,outKeyframes:ee}},P=(re,$)=>{const{antCls:Ne}=re,Ue=`${Ne}-${$}`,{inKeyframes:Ye,outKeyframes:We}=X[$];return[(0,F.R)(Ue,Ye,We,re.motionDurationMid),{[`
${Ue}-enter,
${Ue}-appear
`]:{opacity:0,animationTimingFunction:re.motionEaseOutCirc},[`${Ue}-leave`]:{animationTimingFunction:re.motionEaseInOutCirc}}]}},46e3:function(lr,xe,u){"use strict";u.d(xe,{Qt:function(){return L},Uw:function(){return V},fJ:function(){return p},ly:function(){return H},oN:function(){return P}});var v=u(36237),F=u(48746);const p=new v.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),V=new v.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),L=new v.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),H=new v.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),N=new v.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ee=new v.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),_=new v.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new v.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),X={"slide-up":{inKeyframes:p,outKeyframes:V},"slide-down":{inKeyframes:L,outKeyframes:H},"slide-left":{inKeyframes:N,outKeyframes:ee},"slide-right":{inKeyframes:_,outKeyframes:d}},P=(re,$)=>{const{antCls:Ne}=re,Ue=`${Ne}-${$}`,{inKeyframes:Ye,outKeyframes:We}=X[$];return[(0,F.R)(Ue,Ye,We,re.motionDurationMid),{[`
${Ue}-enter,
${Ue}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:re.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ue}-leave`]:{animationTimingFunction:re.motionEaseInQuint}}]}},37645:function(lr,xe,u){"use strict";u.d(xe,{ZP:function(){return H},qN:function(){return p},wZ:function(){return V}});var v=u(36237),F=u(36305);const p=8;function V(N){const{contentRadius:ee,limitVerticalRadius:_}=N,d=ee>12?ee+2:12;return{arrowOffsetHorizontal:d,arrowOffsetVertical:_?p:d}}function L(N,ee){return N?ee:{}}function H(N,ee,_){const{componentCls:d,boxShadowPopoverArrow:X,arrowOffsetVertical:P,arrowOffsetHorizontal:re}=N,{arrowDistance:$=0,arrowPlacement:Ne={left:!0,right:!0,top:!0,bottom:!0}}=_||{};return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({[`${d}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,F.W)(N,ee,X)),{"&:before":{background:ee}})]},L(!!Ne.top,{[[`&-placement-top > ${d}-arrow`,`&-placement-topLeft > ${d}-arrow`,`&-placement-topRight > ${d}-arrow`].join(",")]:{bottom:$,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":re,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:re}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,v.unit)(re)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:re}}}})),L(!!Ne.bottom,{[[`&-placement-bottom > ${d}-arrow`,`&-placement-bottomLeft > ${d}-arrow`,`&-placement-bottomRight > ${d}-arrow`].join(",")]:{top:$,transform:"translateY(-100%)"},[`&-placement-bottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":re,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:re}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,v.unit)(re)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:re}}}})),L(!!Ne.left,{[[`&-placement-left > ${d}-arrow`,`&-placement-leftTop > ${d}-arrow`,`&-placement-leftBottom > ${d}-arrow`].join(",")]:{right:{_skip_check_:!0,value:$},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${d}-arrow`]:{top:P},[`&-placement-leftBottom > ${d}-arrow`]:{bottom:P}})),L(!!Ne.right,{[[`&-placement-right > ${d}-arrow`,`&-placement-rightTop > ${d}-arrow`,`&-placement-rightBottom > ${d}-arrow`].join(",")]:{left:{_skip_check_:!0,value:$},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${d}-arrow`]:{top:P},[`&-placement-rightBottom > ${d}-arrow`]:{bottom:P}}))}}},36305:function(lr,xe,u){"use strict";u.d(xe,{W:function(){return p},w:function(){return F}});var v=u(36237);function F(V){const{sizePopupArrow:L,borderRadiusXS:H,borderRadiusOuter:N}=V,ee=L/2,_=0,d=ee,X=N*1/Math.sqrt(2),P=ee-N*(1-1/Math.sqrt(2)),re=ee-H*(1/Math.sqrt(2)),$=N*(Math.sqrt(2)-1)+H*(1/Math.sqrt(2)),Ne=2*ee-re,Ue=$,Ye=2*ee-X,We=P,x=2*ee-_,Y=d,y=ee*Math.sqrt(2)+N*(Math.sqrt(2)-2),T=N*(Math.sqrt(2)-1),J=`polygon(${T}px 100%, 50% ${T}px, ${2*ee-T}px 100%, ${T}px 100%)`,D=`path('M ${_} ${d} A ${N} ${N} 0 0 0 ${X} ${P} L ${re} ${$} A ${H} ${H} 0 0 1 ${Ne} ${Ue} L ${Ye} ${We} A ${N} ${N} 0 0 0 ${x} ${Y} Z')`;return{arrowShadowWidth:y,arrowPath:D,arrowPolygon:J}}const p=(V,L,H)=>{const{sizePopupArrow:N,arrowPolygon:ee,arrowPath:_,arrowShadowWidth:d,borderRadiusXS:X,calc:P}=V;return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:P(N).div(2).equal(),background:L,clipPath:{_multi_value_:!0,value:[ee,_]},content:'""'},"&::after":{content:'""',position:"absolute",width:d,height:d,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,v.unit)(X)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:H,zIndex:0,background:"transparent"}}}},93427:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return F}});var v=u(34998);function F(p,V){return v.i.reduce((L,H)=>{const N=p[`${H}1`],ee=p[`${H}3`],_=p[`${H}6`],d=p[`${H}7`];return Object.assign(Object.assign({},L),V(H,{lightColor:N,lightBorderColor:ee,darkColor:_,textColor:d}))},{})}},25399:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return Z}});var v=u(59301),F=u(92310),p=u.n(F),V=u(29125),L=u(18929),H=u(62487),N=u(75030),ee=u(86641),_=u(52838),d=u(22703),X=u(32383),P=u(55743),re=u(57700),$=u(48755),Ne=u(36237),Ue=u(63356),Ye=u(34925),We=u(37645),x=u(36305),Y=u(93427),y=u(51636),T=u(16931);const J=E=>{const{calc:se,componentCls:z,tooltipMaxWidth:ne,tooltipColor:Ee,tooltipBg:oe,tooltipBorderRadius:je,zIndexPopup:Qe,controlHeight:De,boxShadowSecondary:Je,paddingSM:Be,paddingXS:Lt,arrowOffsetHorizontal:pt,sizePopupArrow:mt}=E,Ae=se(je).add(mt).add(pt).equal(),Kt=se(je).mul(2).add(mt).equal();return[{[z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(E)),{position:"absolute",zIndex:Qe,display:"block",width:"max-content",maxWidth:ne,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":oe,[`${z}-inner`]:{minWidth:Kt,minHeight:De,padding:`${(0,Ne.unit)(E.calc(Be).div(2).equal())} ${(0,Ne.unit)(Lt)}`,color:Ee,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:oe,borderRadius:je,boxShadow:Je,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:Ae},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${z}-inner`]:{borderRadius:E.min(je,We.qN)}},[`${z}-content`]:{position:"relative"}}),(0,Y.Z)(E,(ye,A)=>{let{darkColor:w}=A;return{[`&${z}-${ye}`]:{[`${z}-inner`]:{backgroundColor:w},[`${z}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},(0,We.ZP)(E,"var(--antd-arrow-background-color)"),{[`${z}-pure`]:{position:"relative",maxWidth:"none",margin:E.sizePopupArrow}}]},D=E=>Object.assign(Object.assign({zIndexPopup:E.zIndexPopupBase+70},(0,We.wZ)({contentRadius:E.borderRadius,limitVerticalRadius:!0})),(0,x.w)((0,y.mergeToken)(E,{borderRadiusOuter:Math.min(E.borderRadiusOuter,4)})));var de=function(E){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,T.I$)("Tooltip",ne=>{const{borderRadius:Ee,colorTextLightSolid:oe,colorBgSpotlight:je}=ne,Qe=(0,y.mergeToken)(ne,{tooltipMaxWidth:250,tooltipColor:oe,tooltipBorderRadius:Ee,tooltipBg:je});return[J(Qe),(0,Ye._y)(ne,"zoom-big-fast")]},D,{resetStyle:!1,injectStyle:se})(E)},we=u(29509);function k(E,se){const z=(0,we.o2)(se),ne=p()({[`${E}-${se}`]:se&&z}),Ee={},oe={};return se&&!z&&(Ee.background=se,oe["--antd-arrow-background-color"]=se),{className:ne,overlayStyle:Ee,arrowStyle:oe}}var lt=E=>{const{prefixCls:se,className:z,placement:ne="top",title:Ee,color:oe,overlayInnerStyle:je}=E,{getPrefixCls:Qe}=v.useContext($.E_),De=Qe("tooltip",se),[Je,Be,Lt]=de(De),pt=k(De,oe),mt=pt.arrowStyle,Ae=Object.assign(Object.assign({},je),pt.overlayStyle),Kt=p()(Be,Lt,De,`${De}-pure`,`${De}-placement-${ne}`,z,pt.className);return Je(v.createElement("div",{className:Kt,style:mt},v.createElement("div",{className:`${De}-arrow`}),v.createElement(V.G,Object.assign({},E,{className:Be,prefixCls:De,overlayInnerStyle:Ae}),Ee)))},G=function(E,se){var z={};for(var ne in E)Object.prototype.hasOwnProperty.call(E,ne)&&se.indexOf(ne)<0&&(z[ne]=E[ne]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ne=Object.getOwnPropertySymbols(E);Ee<ne.length;Ee++)se.indexOf(ne[Ee])<0&&Object.prototype.propertyIsEnumerable.call(E,ne[Ee])&&(z[ne[Ee]]=E[ne[Ee]]);return z};const f=v.forwardRef((E,se)=>{var z,ne;const{prefixCls:Ee,openClassName:oe,getTooltipContainer:je,color:Qe,overlayInnerStyle:De,children:Je,afterOpenChange:Be,afterVisibleChange:Lt,destroyTooltipOnHide:pt,arrow:mt=!0,title:Ae,overlay:Kt,builtinPlacements:ye,arrowPointAtCenter:A=!1,autoAdjustOverflow:w=!0,motion:I,getPopupContainer:S,placement:K="top",mouseEnterDelay:te=.1,mouseLeaveDelay:q=.1,overlayStyle:Q,rootClassName:Se,overlayClassName:ue,styles:ve,classNames:pe}=E,Oe=G(E,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),me=!!mt,[,ie]=(0,re.ZP)(),{getPopupContainer:be,getPrefixCls:ce,direction:Ke,className:Pe,style:Ze,classNames:$e,styles:dt}=(0,$.dj)("tooltip"),it=(0,X.ln)("Tooltip"),Fe=v.useRef(null),ot=()=>{var Wt;(Wt=Fe.current)===null||Wt===void 0||Wt.forceAlign()};v.useImperativeHandle(se,()=>{var Wt,mr;return{forceAlign:ot,forcePopupAlign:()=>{it.deprecated(!1,"forcePopupAlign","forceAlign"),ot()},nativeElement:(Wt=Fe.current)===null||Wt===void 0?void 0:Wt.nativeElement,popupElement:(mr=Fe.current)===null||mr===void 0?void 0:mr.popupElement}});const[Et,gt]=(0,L.Z)(!1,{value:(z=E.open)!==null&&z!==void 0?z:E.visible,defaultValue:(ne=E.defaultOpen)!==null&&ne!==void 0?ne:E.defaultVisible}),Ot=!Ae&&!Kt&&Ae!==0,or=Wt=>{var mr,Bt;gt(Ot?!1:Wt),Ot||((mr=E.onOpenChange)===null||mr===void 0||mr.call(E,Wt),(Bt=E.onVisibleChange)===null||Bt===void 0||Bt.call(E,Wt))},st=v.useMemo(()=>{var Wt,mr;let Bt=A;return typeof mt=="object"&&(Bt=(mr=(Wt=mt.pointAtCenter)!==null&&Wt!==void 0?Wt:mt.arrowPointAtCenter)!==null&&mr!==void 0?mr:A),ye||(0,_.Z)({arrowPointAtCenter:Bt,autoAdjustOverflow:w,arrowWidth:me?ie.sizePopupArrow:0,borderRadius:ie.borderRadius,offset:ie.marginXXS,visibleFirst:!0})},[A,mt,ye,ie]),ut=v.useMemo(()=>Ae===0?Ae:Kt||Ae||"",[Kt,Ae]),Vt=v.createElement(H.Z,{space:!0},typeof ut=="function"?ut():ut),Qt=ce("tooltip",Ee),Gt=ce(),_t=E["data-popover-inject"];let yt=Et;!("open"in E)&&!("visible"in E)&&Ot&&(yt=!1);const It=v.isValidElement(Je)&&!(0,d.M2)(Je)?Je:v.createElement("span",null,Je),Dt=It.props,sr=!Dt.className||typeof Dt.className=="string"?p()(Dt.className,oe||`${Qt}-open`):Dt.className,[Xe,zt,Jt]=de(Qt,!_t),xr=k(Qt,Qe),cr=xr.arrowStyle,Or=p()(ue,{[`${Qt}-rtl`]:Ke==="rtl"},xr.className,Se,zt,Jt,Pe,$e.root,pe==null?void 0:pe.root),Mr=p()($e.body,pe==null?void 0:pe.body),[Ir,Dr]=(0,N.Cn)("Tooltip",Oe.zIndex),hr=v.createElement(V.Z,Object.assign({},Oe,{zIndex:Ir,showArrow:me,placement:K,mouseEnterDelay:te,mouseLeaveDelay:q,prefixCls:Qt,classNames:{root:Or,body:Mr},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cr),dt.root),Ze),Q),ve==null?void 0:ve.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},dt.body),De),ve==null?void 0:ve.body),xr.overlayStyle)},getTooltipContainer:S||je||be,ref:Fe,builtinPlacements:st,overlay:Vt,visible:yt,onVisibleChange:or,afterVisibleChange:Be!=null?Be:Lt,arrowContent:v.createElement("span",{className:`${Qt}-arrow-content`}),motion:{motionName:(0,ee.m)(Gt,"zoom-big-fast",E.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!pt}),yt?(0,d.Tm)(It,{className:sr}):It);return Xe(v.createElement(P.Z.Provider,{value:Dr},hr))});f._InternalPanelDoNotUseOrYouWillBeFired=lt;var Z=f},89780:function(lr){(function(xe,u){lr.exports=u()})(this,function(){"use strict";var xe=navigator.userAgent,u=navigator.platform,v=/gecko\/\d/i.test(xe),F=/MSIE \d/.test(xe),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xe),V=/Edge\/(\d+)/.exec(xe),L=F||p||V,H=L&&(F?document.documentMode||6:+(V||p)[1]),N=!V&&/WebKit\//.test(xe),ee=N&&/Qt\/\d+\.\d+/.test(xe),_=!V&&/Chrome\//.test(xe),d=/Opera\//.test(xe),X=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(xe),re=/PhantomJS/.test(xe),$=!V&&/AppleWebKit/.test(xe)&&/Mobile\/\w+/.test(xe),Ne=/Android/.test(xe),Ue=$||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(xe),Ye=$||/Mac/.test(u),We=/\bCrOS\b/.test(xe),x=/win/i.test(u),Y=d&&xe.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(d=!1,N=!0);var y=Ye&&(ee||d&&(Y==null||Y<12.11)),T=v||L&&H>=9;function J(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var D=function(e,t){var n=e.className,r=J(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function de(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function we(e,t){return de(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function He(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute("role","presentation"),i}var lt;document.createRange?lt=function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:lt=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};function G(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function W(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function f(e,t){var n=e.className;J(t).test(n)||(e.className+=(n?" ":"")+t)}function Z(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!J(n[r]).test(t)&&(t+=" "+n[r]);return t}var E=function(e){e.select()};$?E=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:L&&(E=function(e){try{e.select()}catch(t){}});function se(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function ne(e,t,n,r,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,a=i||0;;){var l=e.indexOf(" ",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var Ee=function(){this.id=null,this.f=null,this.time=0,this.handler=se(this.onTimeout,this)};Ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ee.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function oe(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var je=50,Qe={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Je={origin:"*mouse"},Be={origin:"+move"};function Lt(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var pt=[""];function mt(e){for(;pt.length<=e;)pt.push(Ae(pt)+" ");return pt[e]}function Ae(e){return e[e.length-1]}function Kt(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ye(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function A(){}function w(e,t){var n;return Object.create?n=Object.create(e):(A.prototype=e,n=new A),t&&z(t,n),n}var I=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function S(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||I.test(e))}function K(e,t){return t?t.source.indexOf("\\w")>-1&&S(e)?!0:t.test(e):S(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var q=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Q(e){return e.charCodeAt(0)>=768&&q.test(e)}function Se(e,t,n){for(;(n<0?t>0:t<e.length)&&Q(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ve(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function Oe(e,t,n){var r;pe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:pe=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:pe=i)}return r!=null?r:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(c){return c<=247?e.charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?t.charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":c==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(c,C,M){this.level=c,this.from=C,this.to=M}return function(c,C){var M=C=="ltr"?"L":"R";if(c.length==0||C=="ltr"&&!r.test(c))return!1;for(var U=c.length,B=[],fe=0;fe<U;++fe)B.push(n(c.charCodeAt(fe)));for(var Te=0,Ge=M;Te<U;++Te){var rt=B[Te];rt=="m"?B[Te]=Ge:Ge=rt}for(var bt=0,nt=M;bt<U;++bt){var wt=B[bt];wt=="1"&&nt=="r"?B[bt]="n":o.test(wt)&&(nt=wt,wt=="r"&&(B[bt]="R"))}for(var ir=1,jt=B[0];ir<U-1;++ir){var Sr=B[ir];Sr=="+"&&jt=="1"&&B[ir+1]=="1"?B[ir]="1":Sr==","&&jt==B[ir+1]&&(jt=="1"||jt=="n")&&(B[ir]=jt),jt=Sr}for(var Qr=0;Qr<U;++Qr){var bn=B[Qr];if(bn==",")B[Qr]="N";else if(bn=="%"){var tn=void 0;for(tn=Qr+1;tn<U&&B[tn]=="%";++tn);for(var Qn=Qr&&B[Qr-1]=="!"||tn<U&&B[tn]=="1"?"1":"N",Fn=Qr;Fn<tn;++Fn)B[Fn]=Qn;Qr=tn-1}}for(var un=0,zn=M;un<U;++un){var wn=B[un];zn=="L"&&wn=="1"?B[un]="L":o.test(wn)&&(zn=wn)}for(var vn=0;vn<U;++vn)if(i.test(B[vn])){var cn=void 0;for(cn=vn+1;cn<U&&i.test(B[cn]);++cn);for(var on=(vn?B[vn-1]:M)=="L",Wn=(cn<U?B[cn]:M)=="L",Qi=on==Wn?on?"L":"R":M,Oi=vn;Oi<cn;++Oi)B[Oi]=Qi;vn=cn-1}for(var In=[],fi,Cn=0;Cn<U;)if(a.test(B[Cn])){var Oa=Cn;for(++Cn;Cn<U&&a.test(B[Cn]);++Cn);In.push(new s(0,Oa,Cn))}else{var gi=Cn,$i=In.length,Ni=C=="rtl"?1:0;for(++Cn;Cn<U&&B[Cn]!="L";++Cn);for(var Tn=gi;Tn<Cn;)if(l.test(B[Tn])){gi<Tn&&(In.splice($i,0,new s(1,gi,Tn)),$i+=Ni);var Ji=Tn;for(++Tn;Tn<Cn&&l.test(B[Tn]);++Tn);In.splice($i,0,new s(2,Ji,Tn)),$i+=Ni,gi=Tn}else++Tn;gi<Cn&&In.splice($i,0,new s(1,gi,Cn))}return C=="ltr"&&(In[0].level==1&&(fi=c.match(/^\s+/))&&(In[0].from=fi[0].length,In.unshift(new s(0,0,fi[0].length))),Ae(In).level==1&&(fi=c.match(/\s+$/))&&(Ae(In).to-=fi[0].length,In.push(new s(0,U-fi[0].length,U)))),C=="rtl"?In.reverse():In}}();function ie(e,t){var n=e.order;return n==null&&(n=e.order=me(e.text,t)),n}var be=[],ce=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||be).concat(n)}};function Ke(e,t){return e._handlers&&e._handlers[t]||be}function Pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=oe(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ze(e,t){var n=Ke(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function $e(e,t,n){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ze(e,n||t.type,e,t),gt(t)||t.codemirrorIgnore}function dt(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)oe(n,t[r])==-1&&n.push(t[r])}function it(e,t){return Ke(e,t).length>0}function Fe(e){e.prototype.on=function(t,n){ce(this,t,n)},e.prototype.off=function(t,n){Pe(this,t,n)}}function ot(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Et(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function gt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ot(e){ot(e),Et(e)}function or(e){return e.target||e.srcElement}function st(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var ut=function(){if(L&&H<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Vt;function Qt(e){if(Vt==null){var t=k("span","\u200B");we(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Vt=t.offsetWidth<=1&&t.offsetHeight>2&&!(L&&H<8))}var n=Vt?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Gt;function _t(e){if(Gt!=null)return Gt;var t=we(e,document.createTextNode("A\u062EA")),n=lt(t,0,1).getBoundingClientRect(),r=lt(t,1,2).getBoundingClientRect();return de(e),!n||n.left==n.right?!1:Gt=r.right-n.right<3}var yt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},It=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Dt=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),sr=null;function Xe(e){if(sr!=null)return sr;var t=we(e,k("span","x")),n=t.getBoundingClientRect(),r=lt(t,0,1).getBoundingClientRect();return sr=Math.abs(n.left-r.left)>1}var zt={},Jt={};function xr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),zt[e]=t}function cr(e,t){Jt[e]=t}function Or(e){if(typeof e=="string"&&Jt.hasOwnProperty(e))e=Jt[e];else if(e&&typeof e.name=="string"&&Jt.hasOwnProperty(e.name)){var t=Jt[e.name];typeof t=="string"&&(t={name:t}),e=w(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Or("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Or("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Mr(e,t){t=Or(t);var n=zt[t.name];if(!n)return Mr(e,"text/plain");var r=n(e,t);if(Ir.hasOwnProperty(t.name)){var i=Ir[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ir={};function Dr(e,t){var n=Ir.hasOwnProperty(e)?Ir[e]:Ir[e]={};z(t,n)}function hr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Wt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function mr(e,t,n){return e.startState?e.startState(t,n):!0}var Bt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},Bt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(a){return n?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Me(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(o){var a=o.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function zr(e,t,n){var r=[];return e.iter(t,n,function(i){r.push(i.text)}),r}function wr(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function O(e){if(e.parent==null)return null;for(var t=e.parent,n=oe(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function R(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],s=l.height;if(t<s)break;t-=s}return n+a}function h(e,t){return t>=e.first&&t<e.first+e.size}function b(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function g(e,t,n){if(n===void 0&&(n=null),!(this instanceof g))return new g(e,t,n);this.line=e,this.ch=t,this.sticky=n}function m(e,t){return e.line-t.line||e.ch-t.ch}function j(e,t){return e.sticky==t.sticky&&m(e,t)==0}function ae(e){return g(e.line,e.ch)}function Ce(e,t){return m(e,t)<0?t:e}function Ie(e,t){return m(e,t)<0?e:t}function Le(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function le(e,t){if(t.line<e.first)return g(e.first,0);var n=e.first+e.size-1;return t.line>n?g(n,Me(e,n).text.length):vt(t,Me(e,t.line).text.length)}function vt(e,t){var n=e.ch;return n==null||n>t?g(e.line,t):n<0?g(e.line,0):e}function Re(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=le(e,t[r]);return n}var ft=function(e,t){this.state=e,this.lookAhead=t},_e=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};_e.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},_e.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},_e.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_e.fromSaved=function(e,t,n){return t instanceof ft?new _e(e,hr(e.mode,t.state),n,t.lookAhead):new _e(e,hr(e.mode,t),n)},_e.prototype.save=function(e){var t=e!==!1?hr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(t,this.maxLookAhead):t};function at(e,t,n,r){var i=[e.state.modeGen],o={};Ht(e,t.text,e.doc.mode,n,function(c,C){return i.push(c,C)},o,r);for(var a=n.state,l=function(c){n.baseTokens=i;var C=e.state.overlays[c],M=1,U=0;n.state=!0,Ht(e,t.text,C.mode,n,function(B,fe){for(var Te=M;U<B;){var Ge=i[M];Ge>B&&i.splice(M,1,B,i[M+1],Ge),M+=2,U=Math.min(B,Ge)}if(fe)if(C.opaque)i.splice(Te,M-Te,B,"overlay "+fe),M=Te+2;else for(;Te<M;Te+=2){var rt=i[Te+1];i[Te+1]=(rt?rt+" ":"")+"overlay "+fe}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function St(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=ze(e,O(t)),i=t.text.length>e.options.maxHighlightLength&&hr(e.doc.mode,r.state),o=at(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ze(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new _e(r,!0,t);var o=$t(e,t,n),a=o>r.first&&Me(r,o-1).stateAfter,l=a?_e.fromSaved(r,a,o):new _e(r,mr(r.mode),o);return r.iter(o,t,function(s){ke(e,s.text,l);var c=l.line;s.stateAfter=c==t-1||c%5==0||c>=i.viewFrom&&c<i.viewTo?l.save():null,l.nextLine()}),n&&(r.modeFrontier=l.line),l}function ke(e,t,n,r){var i=e.doc.mode,o=new Bt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,t==""&&ht(i,n.state);!o.eol();)et(i,o,n.state),o.start=o.pos}function ht(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Wt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Wt(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Mt(e,t,n,r){var i=e.doc,o=i.mode,a;t=le(i,t);var l=Me(i,t.line),s=ze(e,t.line,n),c=new Bt(l.text,e.options.tabSize,s),C;for(r&&(C=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,a=et(o,c,s.state),r&&C.push(new tt(c,a,hr(i.mode,s.state)));return r?C:new tt(c,a,s.state)}function ar(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";t[r]==null?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ht(e,t,n,r,i,o,a){var l=n.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,c=null,C=new Bt(t,e.options.tabSize,r),M,U=e.options.addModeClass&&[null];for(t==""&&ar(ht(n,r.state),o);!C.eol();){if(C.pos>e.options.maxHighlightLength?(l=!1,a&&ke(e,t,r,C.pos),C.pos=t.length,M=null):M=ar(et(n,C,r.state,U),o),U){var B=U[0].name;B&&(M="m-"+(M?B+" "+M:B))}if(!l||c!=M){for(;s<C.start;)s=Math.min(C.start,s+5e3),i(s,c);c=M}C.start=C.pos}for(;s<C.pos;){var fe=Math.min(C.pos,s+5e3);i(fe,c),s=fe}}function $t(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=Me(o,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ft?c.lookAhead:0)<=o.modeFrontier))return l;var C=ne(s.text,null,e.options.tabSize);(i==null||r>C)&&(i=l-1,r=C)}return i}function At(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Me(e,r).stateAfter;if(i&&(!(i instanceof ft)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var tr=!1,Zt=!1;function Rt(){tr=!0}function Nt(){Zt=!0}function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function dr(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function fr(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function rr(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function ur(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&a.type=="bookmark"&&(!n||!o.marker.insertLeft)){var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}function xt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}function br(e,t){if(t.full)return null;var n=h(e,t.from.line)&&Me(e,t.from.line).markedSpans,r=h(e,t.to.line)&&Me(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=m(t.from,t.to)==0,l=ur(n,i,a),s=xt(r,o,a),c=t.text.length==1,C=Ae(t.text).length+(c?i:0);if(l)for(var M=0;M<l.length;++M){var U=l[M];if(U.to==null){var B=dr(s,U.marker);B?c&&(U.to=B.to==null?null:B.to+C):U.to=i}}if(s)for(var fe=0;fe<s.length;++fe){var Te=s[fe];if(Te.to!=null&&(Te.to+=C),Te.from==null){var Ge=dr(l,Te.marker);Ge||(Te.from=C,c&&(l||(l=[])).push(Te))}else Te.from+=C,c&&(l||(l=[])).push(Te)}l&&(l=Wr(l)),s&&s!=l&&(s=Wr(s));var rt=[l];if(!c){var bt=t.text.length-2,nt;if(bt>0&&l)for(var wt=0;wt<l.length;++wt)l[wt].to==null&&(nt||(nt=[])).push(new kt(l[wt].marker,null,null));for(var ir=0;ir<bt;++ir)rt.push(nt);rt.push(s)}return rt}function Wr(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Xr(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(B){if(B.markedSpans)for(var fe=0;fe<B.markedSpans.length;++fe){var Te=B.markedSpans[fe].marker;Te.readOnly&&(!r||oe(r,Te)==-1)&&(r||(r=[])).push(Te)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var c=i[s];if(!(m(c.to,l.from)<0||m(c.from,l.to)>0)){var C=[s,1],M=m(c.from,l.from),U=m(c.to,l.to);(M<0||!a.inclusiveLeft&&!M)&&C.push({from:c.from,to:l.from}),(U>0||!a.inclusiveRight&&!U)&&C.push({from:l.to,to:c.to}),i.splice.apply(i,C),s+=C.length-3}}return i}function Cr(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Yr(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Er(e){return e.inclusiveLeft?-1:0}function Ur(e){return e.inclusiveRight?1:0}function $r(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),o=m(r.from,i.from)||Er(e)-Er(t);if(o)return-o;var a=m(r.to,i.to)||Ur(e)-Ur(t);return a||t.id-e.id}function qt(e,t){var n=Zt&&e.markedSpans,r;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||$r(r,i.marker)<0)&&(r=i.marker);return r}function Ct(e){return qt(e,!0)}function he(e){return qt(e,!1)}function ge(e,t){var n=Zt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||$r(r,o.marker)<0)&&(r=o.marker)}return r}function qe(e,t,n,r,i){var o=Me(e,t),a=Zt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var c=s.marker.find(0),C=m(c.from,n)||Er(s.marker)-Er(i),M=m(c.to,r)||Ur(s.marker)-Ur(i);if(!(C>=0&&M<=0||C<=0&&M>=0)&&(C<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?m(c.to,n)>=0:m(c.to,n)>0)||C>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?m(c.from,r)<=0:m(c.from,r)<0)))return!0}}}function Ve(e){for(var t;t=Ct(e);)e=t.find(-1,!0).line;return e}function Ft(e){for(var t;t=he(e);)e=t.find(1,!0).line;return e}function vr(e){for(var t,n;t=he(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Ut(e,t){var n=Me(e,t),r=Ve(n);return n==r?t:O(r)}function gr(e,t){if(t>e.lastLine())return t;var n=Me(e,t),r;if(!Nr(e,n))return t;for(;r=he(n);)n=r.find(1,!0).line;return O(n)+1}function Nr(e,t){var n=Zt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Zr(e,t,r))return!0}}}function Zr(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return Zr(e,r.line,dr(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Zr(e,t,i))return!0}function Tr(e){e=Ve(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function kr(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Ct(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=he(r);){var o=n.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}function Lr(e){var t=e.display,n=e.doc;t.maxLine=Me(n,n.first),t.maxLineLength=kr(t.maxLine),t.maxLineChanged=!0,n.iter(function(r){var i=kr(r);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var en=function(e,t,n){this.text=e,Yr(this,t),this.height=n?n(this):1};en.prototype.lineNo=function(){return O(this)},Fe(en);function hn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Cr(e),Yr(e,n);var i=r?r(e):1;i!=e.height&&wr(e,i)}function rn(e){e.parent=null,Cr(e)}var Br={},_r={};function Vr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?_r:Br;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function sn(e,t){var n=He("span",null,null,N?"padding-right: .1px":null),r={pre:He("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zn,_t(e.display.measure)&&(a=ie(o,e.doc.direction))&&(r.addToken=gn(r.addToken,a)),r.map=[];var l=t!=e.display.externalMeasured&&O(o);En(o,r,St(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Z(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Z(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Qt(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(N){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Z(r.pre.className,r.textClass||"")),r}function Ln(e){var t=k("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zn(e,t,n,r,i,o,a){if(t){var l=e.splitSpaces?Sn(t,e.trailingSpace):t,s=e.cm.state.specialChars,c=!1,C;if(!s.test(t))e.col+=t.length,C=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,C),L&&H<9&&(c=!0),e.pos+=t.length;else{C=document.createDocumentFragment();for(var M=0;;){s.lastIndex=M;var U=s.exec(t),B=U?U.index-M:t.length-M;if(B){var fe=document.createTextNode(l.slice(M,M+B));L&&H<9?C.appendChild(k("span",[fe])):C.appendChild(fe),e.map.push(e.pos,e.pos+B,fe),e.col+=B,e.pos+=B}if(!U)break;M+=B+1;var Te=void 0;if(U[0]==" "){var Ge=e.cm.options.tabSize,rt=Ge-e.col%Ge;Te=C.appendChild(k("span",mt(rt),"cm-tab")),Te.setAttribute("role","presentation"),Te.setAttribute("cm-text"," "),e.col+=rt}else U[0]=="\r"||U[0]==`
`?(Te=C.appendChild(k("span",U[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Te.setAttribute("cm-text",U[0]),e.col+=1):(Te=e.cm.options.specialCharPlaceholder(U[0]),Te.setAttribute("cm-text",U[0]),L&&H<9?C.appendChild(k("span",[Te])):C.appendChild(Te),e.col+=1);e.map.push(e.pos,e.pos+1,Te),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||c||o||a){var bt=n||"";r&&(bt+=r),i&&(bt+=i);var nt=k("span",[C],bt,o);if(a)for(var wt in a)a.hasOwnProperty(wt)&&wt!="style"&&wt!="class"&&nt.setAttribute(wt,a[wt]);return e.content.appendChild(nt)}e.content.appendChild(C)}}function Sn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),r+=o,n=o==" "}return r}function gn(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,C=c+r.length;;){for(var M=void 0,U=0;U<t.length&&(M=t[U],!(M.to>c&&M.from<=c));U++);if(M.to>=C)return e(n,r,i,o,a,l,s);e(n,r.slice(0,M.to-c),i,o,null,l,s),o=null,r=r.slice(M.to-c),c=M.to}}}function Jn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;a<n.length;a+=2)t.addToken(t,i.slice(o,o=n[a]),Vr(n[a+1],t.cm.options));return}for(var l=i.length,s=0,c=1,C="",M,U,B=0,fe,Te,Ge,rt,bt;;){if(B==s){fe=Te=Ge=U="",bt=null,rt=null,B=1/0;for(var nt=[],wt=void 0,ir=0;ir<r.length;++ir){var jt=r[ir],Sr=jt.marker;if(Sr.type=="bookmark"&&jt.from==s&&Sr.widgetNode)nt.push(Sr);else if(jt.from<=s&&(jt.to==null||jt.to>s||Sr.collapsed&&jt.to==s&&jt.from==s)){if(jt.to!=null&&jt.to!=s&&B>jt.to&&(B=jt.to,Te=""),Sr.className&&(fe+=" "+Sr.className),Sr.css&&(U=(U?U+";":"")+Sr.css),Sr.startStyle&&jt.from==s&&(Ge+=" "+Sr.startStyle),Sr.endStyle&&jt.to==B&&(wt||(wt=[])).push(Sr.endStyle,jt.to),Sr.title&&((bt||(bt={})).title=Sr.title),Sr.attributes)for(var Qr in Sr.attributes)(bt||(bt={}))[Qr]=Sr.attributes[Qr];Sr.collapsed&&(!rt||$r(rt.marker,Sr)<0)&&(rt=jt)}else jt.from>s&&B>jt.from&&(B=jt.from)}if(wt)for(var bn=0;bn<wt.length;bn+=2)wt[bn+1]==B&&(Te+=" "+wt[bn]);if(!rt||rt.from==s)for(var tn=0;tn<nt.length;++tn)Jn(t,0,nt[tn]);if(rt&&(rt.from||0)==s){if(Jn(t,(rt.to==null?l+1:rt.to)-s,rt.marker,rt.from==null),rt.to==null)return;rt.to==s&&(rt=!1)}}if(s>=l)break;for(var Qn=Math.min(l,B);;){if(C){var Fn=s+C.length;if(!rt){var un=Fn>Qn?C.slice(0,Qn-s):C;t.addToken(t,un,M?M+fe:fe,Ge,s+un.length==B?Te:"",U,bt)}if(Fn>=Qn){C=C.slice(Qn-s),s=Qn;break}s=Fn,Ge=""}C=i.slice(o,o=n[c++]),M=Vr(n[c++],t.cm.options)}}}function ni(e,t,n){this.line=t,this.rest=vr(t),this.size=this.rest?O(Ae(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Nr(e,t)}function nn(e,t,n){for(var r=[],i,o=t;o<n;o=i){var a=new ni(e.doc,Me(e.doc,o),o);i=o+a.size,r.push(a)}return r}var Hn=null;function ui(e){Hn?Hn.ops.push(e):e.ownsGroup=Hn={ops:[e],delayedCallbacks:[]}}function ii(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function di(e,t){var n=e.ownsGroup;if(n)try{ii(n)}finally{Hn=null,t(n)}}var jn=null;function Jr(e,t){var n=Ke(e,t);if(n.length){var r=Array.prototype.slice.call(arguments,2),i;Hn?i=Hn.delayedCallbacks:jn?i=jn:(i=jn=[],setTimeout(fn,0));for(var o=function(l){i.push(function(){return n[l].apply(null,r)})},a=0;a<n.length;++a)o(a)}}function fn(){var e=jn;jn=null;for(var t=0;t<e.length;++t)e[t]()}function Kn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Vn(e,t):o=="gutter"?er(e,t,n,r):o=="class"?Pt(e,t):o=="widget"&&Yt(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),L&&H<8&&(e.node.style.zIndex=2)),e.node}function Ar(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(k("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Un(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):sn(e,t)}function Vn(e,t){var n=t.text.className,r=Un(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Pt(e,t)):n&&(t.text.className=n)}function Pt(e,t){Ar(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function er(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=k("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Dn(t),l=t.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(k("div",b(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,C=o.hasOwnProperty(c)&&o[c];C&&l.appendChild(k("div",[C],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Yt(e,t,n){t.alignable&&(t.alignable=null);for(var r=J("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Rr(e,t,n)}function nr(e,t,n,r){var i=Un(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Pt(e,t),er(e,t,n,r),Rr(e,t,r),t.node}function Rr(e,t,n){if(Hr(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Hr(e,t.rest[r],t,n,!1)}function Hr(e,t,n,r,i){if(t.widgets)for(var o=Dn(n),a=0,l=t.widgets;a<l.length;++a){var s=l[a],c=k("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),$n(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Jr(s,"redraw")}}function $n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function ct(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!G(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),we(t.display.measure,k("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Tt(e,t){for(var n=or(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==e.sizer&&n!=e.mover)return!0}function pr(e){return e.lineSpace.offsetTop}function jr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Fr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=we(e.measure,k("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function pn(e){return je-e.display.nativeBarWidth}function Gn(e){return e.display.scroller.clientWidth-pn(e)-e.display.barWidth}function ei(e){return e.display.scroller.clientHeight-pn(e)-e.display.barHeight}function Rn(e,t,n){var r=e.options.lineWrapping,i=r&&Gn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],c=a[l+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ai(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(O(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Qo(e,t){t=Ve(t);var n=O(t),r=e.display.externalMeasured=new ni(e.doc,t,n);r.lineN=n;var i=r.built=sn(e,r);return r.text=i.pre,we(e.display.lineMeasure,i.pre),r}function Eo(e,t,n,r){return ti(e,pi(e,t),n,r)}function ci(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ri(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function pi(e,t){var n=O(t),r=ci(e,n);r&&!r.text?r=null:r&&r.changes&&(Kn(e,r,n,mi(e)),e.curOp.forceUpdate=!0),r||(r=Qo(e,t));var i=Ai(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function ti(e,t,n,r,i){t.before&&(n=-1);var o=n+(r||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Rn(e,t.view,t.rect),t.hasHeights=!0),a=Io(e,t,n,r),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Oo={left:0,right:0,top:0,bottom:0};function Mo(e,t,n){for(var r,i,o,a,l,s,c=0;c<e.length;c+=3)if(l=e[c],s=e[c+1],t<l?(i=0,o=1,a="left"):t<s?(i=t-l,o=i+1):(c==e.length-3||t==s&&e[c+3]>t)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),n=="left"&&i==0)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[(c-=3)+2],a="left";if(n=="right"&&i==s-l)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function Jo(e,t){var n=Oo;if(t=="left")for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Io(e,t,n,r){var i=Mo(t.map,n,r),o=i.node,a=i.start,l=i.end,s=i.collapse,c;if(o.nodeType==3){for(var C=0;C<4;C++){for(;a&&Q(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&Q(t.line.text.charAt(i.coverStart+l));)++l;if(L&&H<9&&a==0&&l==i.coverEnd-i.coverStart?c=o.parentNode.getBoundingClientRect():c=Jo(lt(o,a,l).getClientRects(),r),c.left||c.right||a==0)break;l=a,a=a-1,s="right"}L&&H<11&&(c=ko(e.display.measure,c))}else{a>0&&(s=r="right");var M;e.options.lineWrapping&&(M=o.getClientRects()).length>1?c=M[r=="right"?M.length-1:0]:c=o.getBoundingClientRect()}if(L&&H<9&&!a&&(!c||!c.left&&!c.right)){var U=o.parentNode.getClientRects()[0];U?c={left:U.left,right:U.left+ai(e.display),top:U.top,bottom:U.bottom}:c=Oo}for(var B=c.top-t.rect.top,fe=c.bottom-t.rect.top,Te=(B+fe)/2,Ge=t.view.measure.heights,rt=0;rt<Ge.length-1&&!(Te<Ge[rt]);rt++);var bt=rt?Ge[rt-1]:0,nt=Ge[rt],wt={left:(s=="right"?c.right:c.left)-t.rect.left,right:(s=="left"?c.left:c.right)-t.rect.left,top:bt,bottom:nt};return!c.left&&!c.right&&(wt.bogus=!0),e.options.singleCursorHeightPerLine||(wt.rtop=B,wt.rbottom=fe),wt}function ko(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ki(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function qi(e){e.display.externalMeasure=null,de(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ki(e.display.view[t])}function Mi(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function eo(){return _&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ro(){return _&&Ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function to(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=ct(e.widgets[n]));return t}function Bi(e,t,n,r,i){if(!i){var o=to(t);n.top+=o,n.bottom+=o}if(r=="line")return n;r||(r="local");var a=Tr(t);if(r=="local"?a+=pr(e.display):a-=e.display.viewOffset,r=="page"||r=="window"){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+(r=="window"?0:Ro());var s=l.left+(r=="window"?0:eo());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function Po(e,t,n){if(n=="div")return t;var r=t.left,i=t.top;if(n=="page")r-=eo(),i-=Ro();else if(n=="local"||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Fi(e,t,n,r,i){return r||(r=Me(e.doc,t.line)),Bi(e,r,Eo(e,r,t.ch,i),n)}function Nn(e,t,n,r,i,o){r=r||Me(e.doc,t.line),i||(i=pi(e,r));function a(fe,Te){var Ge=ti(e,i,fe,Te?"right":"left",o);return Te?Ge.left=Ge.right:Ge.right=Ge.left,Bi(e,r,Ge,n)}var l=ie(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a(c=="before"?s-1:s,c=="before");function C(fe,Te,Ge){var rt=l[Te],bt=rt.level==1;return a(Ge?fe-1:fe,bt!=Ge)}var M=Oe(l,s,c),U=pe,B=C(s,M,c=="before");return U!=null&&(B.other=C(s,U,c!="before")),B}function Pr(e,t){var n=0;t=le(e.doc,t),e.options.lineWrapping||(n=ai(e.display)*t.ch);var r=Me(e.doc,t.line),i=Tr(r)+pr(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function yr(e,t,n,r,i){var o=g(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function xn(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return yr(r.first,0,null,-1,-1);var i=R(r,n),o=r.first+r.size-1;if(i>o)return yr(r.first+r.size-1,Me(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Me(r,i);;){var l=oi(e,a,i,t,n),s=ge(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=Me(r,i=c.line)}}function On(e,t,n,r){r-=to(t);var i=t.text.length,o=ue(function(a){return ti(e,n,a-1).bottom<=r},i,0);return i=ue(function(a){return ti(e,n,a).top>r},o,i),{begin:o,end:i}}function an(e,t,n,r){n||(n=pi(e,t));var i=Bi(e,t,ti(e,n,r),"line").top;return On(e,t,n,i)}function dn(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function oi(e,t,n,r,i){i-=Tr(t);var o=pi(e,t),a=to(t),l=0,s=t.text.length,c=!0,C=ie(t,e.doc.direction);if(C){var M=(e.options.lineWrapping?vi:ri)(e,t,n,o,C,r,i);c=M.level!=1,l=c?M.from:M.to-1,s=c?M.to:M.from-1}var U=null,B=null,fe=ue(function(ir){var jt=ti(e,o,ir);return jt.top+=a,jt.bottom+=a,dn(jt,r,i,!1)?(jt.top<=i&&jt.left<=r&&(U=ir,B=jt),!0):!1},l,s),Te,Ge,rt=!1;if(B){var bt=r-B.left<B.right-r,nt=bt==c;fe=U+(nt?0:1),Ge=nt?"after":"before",Te=bt?B.left:B.right}else{!c&&(fe==s||fe==l)&&fe++,Ge=fe==0?"after":fe==t.text.length?"before":ti(e,o,fe-(c?1:0)).bottom+a<=i==c?"after":"before";var wt=Nn(e,g(n,fe,Ge),"line",t,o);Te=wt.left,rt=i<wt.top?-1:i>=wt.bottom?1:0}return fe=Se(t.text,fe,1),yr(n,fe,Ge,rt,r-Te)}function ri(e,t,n,r,i,o,a){var l=ue(function(M){var U=i[M],B=U.level!=1;return dn(Nn(e,g(n,B?U.to:U.from,B?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var c=s.level!=1,C=Nn(e,g(n,c?s.from:s.to,c?"after":"before"),"line",t,r);dn(C,o,a,!0)&&C.top>a&&(s=i[l-1])}return s}function vi(e,t,n,r,i,o,a){var l=On(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var C=null,M=null,U=0;U<i.length;U++){var B=i[U];if(!(B.from>=c||B.to<=s)){var fe=B.level!=1,Te=ti(e,r,fe?Math.min(c,B.to)-1:Math.max(s,B.from)).right,Ge=Te<o?o-Te+1e9:Te-o;(!C||M>Ge)&&(C=B,M=Ge)}}return C||(C=i[i.length-1]),C.from<s&&(C={from:s,to:C.to,level:C.level}),C.to>c&&(C={from:C.from,to:c,level:C.level}),C}var _n;function Xn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_n==null){_n=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)_n.appendChild(document.createTextNode("x")),_n.appendChild(k("br"));_n.appendChild(document.createTextNode("x"))}we(e.measure,_n);var n=_n.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),de(e.measure),n||1}function ai(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),n=k("pre",[t],"CodeMirror-line-like");we(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function mi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:qo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function qo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ia(e){var t=Xn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ai(e.display)-3);return function(i){if(Nr(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function ea(e){var t=e.doc,n=Ia(e);t.iter(function(r){var i=n(r);i!=r.height&&wr(r,i)})}function Ii(e,t,n,r){var i=e.display;if(!n&&or(t).getAttribute("cm-not-content")=="true")return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(M){return null}var s=xn(e,o,a),c;if(r&&s.xRel>0&&(c=Me(e.doc,s.line).text).length==s.ch){var C=ne(c,c.length,e.options.tabSize)-c.length;s=g(s.line,Math.max(0,Math.round((o-Fr(e.display).left)/ai(e.display))-C))}return s}function Ri(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function An(e,t,n,r){t==null&&(t=e.doc.first),n==null&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Zt&&Ut(e.doc,t)<i.viewTo&&bi(e);else if(n<=i.viewFrom)Zt&&gr(e.doc,n+r)>i.viewFrom?bi(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)bi(e);else if(t<=i.viewFrom){var o=To(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):bi(e)}else if(n>=i.viewTo){var a=To(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):bi(e)}else{var l=To(e,t,t,-1),s=To(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(nn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):bi(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function yi(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ri(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);oe(a,n)==-1&&a.push(n)}}}function bi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function To(e,t,n,r){var i=Ri(e,t),o,a=e.display.view;if(!Zt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(r>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;Ut(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Ul(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=nn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=nn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ri(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(nn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ri(e,n)))),r.viewTo=n}function Ra(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];!i.hidden&&(!i.node||i.changes)&&++n}return n}function ro(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Pa(e,t){t===void 0&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(!(!t&&a==n.sel.primIndex)){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&Ta(e,l.head,i),s||Vl(e,l,o)}}return r}function Ta(e,t,n){var r=Nn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(k("div","\xA0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(k("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Lo(e,t){return e.top-t.top||e.left-t.left}function Vl(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Fr(e.display),l=a.left,s=Math.max(r.sizerWidth,Gn(e)-r.sizer.offsetLeft)-a.right,c=i.direction=="ltr";function C(nt,wt,ir,jt){wt<0&&(wt=0),wt=Math.round(wt),jt=Math.round(jt),o.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+nt+`px;
top: `+wt+"px; width: "+(ir==null?s-nt:ir)+`px;
height: `+(jt-wt)+"px"))}function M(nt,wt,ir){var jt=Me(i,nt),Sr=jt.text.length,Qr,bn;function tn(un,zn){return Fi(e,g(nt,un),"div",jt,zn)}function Qn(un,zn,wn){var vn=an(e,jt,null,un),cn=zn=="ltr"==(wn=="after")?"left":"right",on=wn=="after"?vn.begin:vn.end-(/\s/.test(jt.text.charAt(vn.end-1))?2:1);return tn(on,cn)[cn]}var Fn=ie(jt,i.direction);return ve(Fn,wt||0,ir==null?Sr:ir,function(un,zn,wn,vn){var cn=wn=="ltr",on=tn(un,cn?"left":"right"),Wn=tn(zn-1,cn?"right":"left"),Qi=wt==null&&un==0,Oi=ir==null&&zn==Sr,In=vn==0,fi=!Fn||vn==Fn.length-1;if(Wn.top-on.top<=3){var Cn=(c?Qi:Oi)&&In,Oa=(c?Oi:Qi)&&fi,gi=Cn?l:(cn?on:Wn).left,$i=Oa?s:(cn?Wn:on).right;C(gi,on.top,$i-gi,on.bottom)}else{var Ni,Tn,Ji,Ma;cn?(Ni=c&&Qi&&In?l:on.left,Tn=c?s:Qn(un,wn,"before"),Ji=c?l:Qn(zn,wn,"after"),Ma=c&&Oi&&fi?s:Wn.right):(Ni=c?Qn(un,wn,"before"):l,Tn=!c&&Qi&&In?s:on.right,Ji=!c&&Oi&&fi?l:Wn.left,Ma=c?Qn(zn,wn,"after"):s),C(Ni,on.top,Tn-Ni,on.bottom),on.bottom<Wn.top&&C(l,on.bottom,null,Wn.top),C(Ji,Wn.top,Ma-Ji,Wn.bottom)}(!Qr||Lo(on,Qr)<0)&&(Qr=on),Lo(Wn,Qr)<0&&(Qr=Wn),(!bn||Lo(on,bn)<0)&&(bn=on),Lo(Wn,bn)<0&&(bn=Wn)}),{start:Qr,end:bn}}var U=t.from(),B=t.to();if(U.line==B.line)M(U.line,U.ch,B.ch);else{var fe=Me(i,U.line),Te=Me(i,B.line),Ge=Ve(fe)==Ve(Te),rt=M(U.line,U.ch,Ge?fe.text.length+1:null).end,bt=M(B.line,Ge?0:null,B.ch).start;Ge&&(rt.top<bt.top-2?(C(rt.right,rt.top,null,rt.bottom),C(l,bt.top,bt.left,bt.bottom)):C(rt.right,rt.top,bt.left-rt.right,rt.bottom)),rt.bottom<bt.top&&C(l,rt.bottom,null,bt.top)}n.appendChild(o)}function ta(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||zi(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function La(e){e.state.focused||(e.display.input.focus(),ra(e))}function Da(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,zi(e))},100)}function ra(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ze(e,"focus",e,t),e.state.focused=!0,f(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),N&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ta(e))}function zi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ze(e,"blur",e,t),e.state.focused=!1,D(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Do(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,a=void 0,l=0;if(!i.hidden){if(L&&H<8){var s=i.node.offsetTop+i.node.offsetHeight;a=s-n,n=s}else{var c=i.node.getBoundingClientRect();a=c.bottom-c.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-c.left-1)}var C=i.line.height-a;if((C>.005||C<-.005)&&(wr(i.line,a),$a(i.line),i.rest))for(var M=0;M<i.rest.length;M++)$a(i.rest[M]);if(l>e.display.sizerWidth){var U=Math.ceil(l/ai(e.display));U>e.display.maxLineLength&&(e.display.maxLineLength=U,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function $a(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function $o(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-pr(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,o=R(t,r),a=R(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=R(t,Tr(Me(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=R(t,Tr(Me(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Gl(e,t){if(!$e(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!re){var o=k("div","\u200B",null,`position: absolute;
top: `+(t.top-n.viewOffset-pr(e.display))+`px;
height: `+(t.bottom-t.top+pn(e)+n.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function _l(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,n=t.sticky=="before"?g(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Nn(e,t),s=!n||n==t?l:Nn(e,n);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var c=na(e,i),C=e.doc.scrollTop,M=e.doc.scrollLeft;if(c.scrollTop!=null&&(io(e,c.scrollTop),Math.abs(e.doc.scrollTop-C)>1&&(a=!0)),c.scrollLeft!=null&&(Pi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(a=!0)),!a)break}return i}function Xl(e,t){var n=na(e,t);n.scrollTop!=null&&io(e,n.scrollTop),n.scrollLeft!=null&&Pi(e,n.scrollLeft)}function na(e,t){var n=e.display,r=Xn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=ei(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+jr(n),s=t.top<r,c=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var C=Math.min(t.top,(c?l:t.bottom)-o);C!=i&&(a.scrollTop=C)}var M=e.options.fixedGutter?0:n.gutters.offsetWidth,U=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-M,B=Gn(e)-n.gutters.offsetWidth,fe=t.right-t.left>B;return fe&&(t.right=t.left+B),t.left<10?a.scrollLeft=0:t.left<U?a.scrollLeft=Math.max(0,t.left+M-(fe?0:10)):t.right>B+U-3&&(a.scrollLeft=t.right+(fe?0:10)-B),a}function ia(e,t){t!=null&&(No(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Wi(e){No(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function no(e,t,n){(t!=null||n!=null)&&No(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Yl(e,t){No(e),e.curOp.scrollToPos=t}function No(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Pr(e,t.from),r=Pr(e,t.to);Na(e,n,r,t.margin)}}function Na(e,t,n,r){var i=na(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});no(e,i.scrollLeft,i.scrollTop)}function io(e,t){Math.abs(e.doc.scrollTop-t)<2||(v||aa(e,{top:t}),Aa(e,t,!0),v&&aa(e),lo(e,100))}function Aa(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Za(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function oo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+pn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ti=function(e,t,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ce(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ce(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,L&&H<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ti.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ti.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ti.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ti.prototype.zeroWidthHack=function(){var e=Ye&&!P?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ee,this.disableVert=new Ee},Ti.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Ti.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ao=function(){};ao.prototype.update=function(){return{bottom:0,right:0}},ao.prototype.setScrollLeft=function(){},ao.prototype.setScrollTop=function(){},ao.prototype.clear=function(){};function Zi(e,t){t||(t=oo(e));var n=e.display.barWidth,r=e.display.barHeight;Ba(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Do(e),Ba(e,oo(e)),n=e.display.barWidth,r=e.display.barHeight}function Ba(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var Fa={native:Ti,null:ao};function za(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Fa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ce(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Pi(e,t):io(e,t)},e),e.display.scrollbars.addClass&&f(e.display.wrapper,e.display.scrollbars.addClass)}var Ql=0;function Li(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ql},ui(e.curOp)}function Di(e){var t=e.curOp;t&&di(t,function(n){for(var r=0;r<n.ops.length;r++)n.ops[r].cm.curOp=null;Jl(n)})}function Jl(e){for(var t=e.ops,n=0;n<t.length;n++)kl(t[n]);for(var r=0;r<t.length;r++)ql(t[r]);for(var i=0;i<t.length;i++)es(t[i]);for(var o=0;o<t.length;o++)ts(t[o]);for(var a=0;a<t.length;a++)rs(t[a])}function kl(e){var t=e.cm,n=t.display;is(t),e.updateMaxLine&&Lr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ao(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ql(e){e.updatedDisplay=e.mustUpdate&&oa(e.cm,e.update)}function es(e){var t=e.cm,n=t.display;e.updatedDisplay&&Do(t),e.barMeasure=oo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Eo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+pn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Gn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ts(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Pi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==W();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Zi(t,e.barMeasure),e.updatedDisplay&&sa(t,e.barMeasure),e.selectionChanged&&ta(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&La(e.cm)}function rs(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Wa(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&Aa(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Pi(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=_l(t,le(r,e.scrollToPos.from),le(r,e.scrollToPos.to),e.scrollToPos.margin);Gl(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Ze(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Ze(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ze(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Yn(e,t){if(e.curOp)return t();Li(e);try{return t()}finally{Di(e)}}function mn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Li(e);try{return t.apply(e,arguments)}finally{Di(e)}}}function Pn(e){return function(){if(this.curOp)return e.apply(this,arguments);Li(this);try{return e.apply(this,arguments)}finally{Di(this)}}}function yn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Li(t);try{return e.apply(this,arguments)}finally{Di(t)}}}function lo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,se(ns,e))}function ns(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ze(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?hr(t.mode,r.state):null,s=at(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var c=o.styleClasses,C=s.classes;C?o.styleClasses=C:c&&(o.styleClasses=null);for(var M=!a||a.length!=o.styles.length||c!=C&&(!c||!C||c.bgClass!=C.bgClass||c.textClass!=C.textClass),U=0;!M&&U<a.length;++U)M=a[U]!=o.styles[U];M&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ke(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return lo(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Yn(e,function(){for(var o=0;o<i.length;o++)yi(e,i[o],"text")})}}var Ao=function(e,t,n){var r=e.display;this.viewport=t,this.visible=$o(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Gn(e),this.force=n,this.dims=mi(e),this.events=[]};Ao.prototype.signal=function(e,t){it(e,t)&&this.events.push(arguments)},Ao.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ze.apply(null,this.events[e])};function is(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=pn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=pn(e)+"px",t.scrollbarsClipped=!0)}function os(e){if(e.hasFocus())return null;var t=W();if(!t||!G(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&G(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function as(e){if(!(!e||!e.activeElt||e.activeElt==W())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&G(document.body,e.anchorNode)&&G(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function oa(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return bi(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ra(e)==0)return!1;Ha(e)&&(bi(e),t.dims=mi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Zt&&(o=Ut(e.doc,o),a=gr(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ul(e,o,a),n.viewOffset=Tr(Me(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Ra(e);if(!l&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var c=os(e);return s>4&&(n.lineDiv.style.display="none"),ls(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,as(c),de(n.cursorDiv),de(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,lo(e,400)),n.updateLineNumbers=null,!0}function Wa(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Gn(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+jr(e.display)-ei(e),n.top)}),t.visible=$o(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=$o(e.display,e.doc,n));if(!oa(e,t))break;Do(e);var i=oo(e);ro(e),Zi(e,i),sa(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function aa(e,t){var n=new Ao(e,t);if(oa(e,n)){Do(e),Wa(e,n);var r=oo(e);ro(e),Zi(e,r),sa(e,r),n.finish()}}function ls(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(fe){var Te=fe.nextSibling;return N&&Ye&&e.display.currentWheelTarget==fe?fe.style.display="none":fe.parentNode.removeChild(fe),Te}for(var s=r.view,c=r.viewFrom,C=0;C<s.length;C++){var M=s[C];if(!M.hidden)if(!M.node||M.node.parentNode!=o){var U=nr(e,M,c,n);o.insertBefore(U,a)}else{for(;a!=M.node;)a=l(a);var B=i&&t!=null&&t<=c&&M.lineNumber;M.changes&&(oe(M.changes,"gutter")>-1&&(B=!1),Kn(e,M,c,n)),B&&(de(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(b(e.options,c)))),a=M.node.nextSibling}c+=M.size}for(;a;)a=l(a)}function la(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function sa(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+pn(e)+"px"}function Za(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=qo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ha(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=b(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(k("div",[k("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",la(e.display),!0}return!1}function ua(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if(typeof o!="string"&&(a=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)r=!0;else continue;n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function ja(e){var t=e.gutters,n=e.gutterSpecs;de(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,l=t.appendChild(k("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",la(e)}function so(e){ja(e.display),An(e),Za(e)}function ss(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=He("div",null,"CodeMirror-code"),i.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=k("div",null,"CodeMirror-cursors"),i.measure=k("div",null,"CodeMirror-measure"),i.lineMeasure=k("div",null,"CodeMirror-measure"),i.lineSpace=He("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=He("div",[i.lineSpace],"CodeMirror-lines");i.mover=k("div",[o],null,"position: relative"),i.sizer=k("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=k("div",null,null,"position: absolute; height: "+je+"px; width: 1px;"),i.gutters=k("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=k("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=k("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),L&&H<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!N&&!(v&&Ue)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ua(r.gutters,r.lineNumbers),ja(i),n.init(i)}var Bo=0,kn=null;L?kn=-.53:v?kn=15:_?kn=-.7:X&&(kn=-1/3);function Ka(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function us(e){var t=Ka(e);return t.x*=kn,t.y*=kn,t}function Ua(e,t){var n=Ka(t),r=n.x,i=n.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&l||i&&s){if(i&&Ye&&N){e:for(var c=t.target,C=o.view;c!=a;c=c.parentNode)for(var M=0;M<C.length;M++)if(C[M].node==c){e.display.currentWheelTarget=c;break e}}if(r&&!v&&!d&&kn!=null){i&&s&&io(e,Math.max(0,a.scrollTop+i*kn)),Pi(e,Math.max(0,a.scrollLeft+r*kn)),(!i||i&&s)&&ot(t),o.wheelStartX=null;return}if(i&&kn!=null){var U=i*kn,B=e.doc.scrollTop,fe=B+o.wrapper.clientHeight;U<0?B=Math.max(0,B+U-50):fe=Math.min(e.doc.height,fe+U+50),aa(e,{top:B,bottom:fe})}Bo<20&&(o.wheelStartX==null?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(o.wheelStartX!=null){var Te=a.scrollLeft-o.wheelStartX,Ge=a.scrollTop-o.wheelStartY,rt=Ge&&o.wheelDY&&Ge/o.wheelDY||Te&&o.wheelDX&&Te/o.wheelDX;o.wheelStartX=o.wheelStartY=null,rt&&(kn=(kn*Bo+rt)/(Bo+1),++Bo)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}var qn=function(e,t){this.ranges=e,this.primIndex=t};qn.prototype.primary=function(){return this.ranges[this.primIndex]},qn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!j(n.anchor,r.anchor)||!j(n.head,r.head))return!1}return!0},qn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Kr(ae(this.ranges[t].anchor),ae(this.ranges[t].head));return new qn(e,this.primIndex)},qn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},qn.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(m(t,r.from())>=0&&m(e,r.to())<=0)return n}return-1};var Kr=function(e,t){this.anchor=e,this.head=t};Kr.prototype.from=function(){return Ie(this.anchor,this.head)},Kr.prototype.to=function(){return Ce(this.anchor,this.head)},Kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function li(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(U,B){return m(U.from(),B.from())}),n=oe(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=m(l.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var c=Ie(l.from(),a.from()),C=Ce(l.to(),a.to()),M=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new Kr(M?C:c,M?c:C))}}return new qn(t,n)}function Ci(e,t){return new qn([new Kr(e,t||e)],0)}function Si(e){return e.text?g(e.from.line+e.text.length-1,Ae(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Va(e,t){if(m(e,t.from)<0)return e;if(m(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),g(n,r)}function ca(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Kr(Va(i.anchor,t),Va(i.head,t)))}return li(e.cm,n,e.sel.primIndex)}function Ga(e,t,n){return e.line==t.line?g(n.line,e.ch-t.ch+n.ch):g(n.line+(e.line-t.line),e.ch)}function cs(e,t,n){for(var r=[],i=g(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Ga(l.from,i,o),c=Ga(Si(l),i,o);if(i=l.to,o=c,n=="around"){var C=e.sel.ranges[a],M=m(C.head,C.anchor)<0;r[a]=new Kr(M?c:s,M?s:c)}else r[a]=new Kr(s,s)}return new qn(r,e.sel.primIndex)}function fa(e){e.doc.mode=Mr(e.options,e.doc.modeOption),uo(e)}function uo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,lo(e,100),e.state.modeGen++,e.curOp&&An(e)}function _a(e,t){return t.from.ch==0&&t.to.ch==0&&Ae(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function da(e,t,n,r){function i(bt){return n?n[bt]:null}function o(bt,nt,wt){hn(bt,nt,wt,r),Jr(bt,"change",bt,t)}function a(bt,nt){for(var wt=[],ir=bt;ir<nt;++ir)wt.push(new en(c[ir],i(ir),r));return wt}var l=t.from,s=t.to,c=t.text,C=Me(e,l.line),M=Me(e,s.line),U=Ae(c),B=i(c.length-1),fe=s.line-l.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(_a(e,t)){var Te=a(0,c.length-1);o(M,M.text,B),fe&&e.remove(l.line,fe),Te.length&&e.insert(l.line,Te)}else if(C==M)if(c.length==1)o(C,C.text.slice(0,l.ch)+U+C.text.slice(s.ch),B);else{var Ge=a(1,c.length-1);Ge.push(new en(U+C.text.slice(s.ch),B,r)),o(C,C.text.slice(0,l.ch)+c[0],i(0)),e.insert(l.line+1,Ge)}else if(c.length==1)o(C,C.text.slice(0,l.ch)+c[0]+M.text.slice(s.ch),i(0)),e.remove(l.line+1,fe);else{o(C,C.text.slice(0,l.ch)+c[0],i(0)),o(M,U+M.text.slice(s.ch),B);var rt=a(1,c.length-1);fe>1&&e.remove(l.line+1,fe-1),e.insert(l.line+1,rt)}Jr(e,"change",e,t)}function xi(e,t,n){function r(i,o,a){if(i.linked)for(var l=0;l<i.linked.length;++l){var s=i.linked[l];if(s.doc!=o){var c=a&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,i,c))}}}r(e,null,!0)}function Xa(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ea(e),fa(e),Ya(e),e.options.lineWrapping||Lr(e),e.options.mode=t.modeOption,An(e)}function Ya(e){(e.doc.direction=="rtl"?f:D)(e.display.lineDiv,"CodeMirror-rtl")}function fs(e){Yn(e,function(){Ya(e),An(e)})}function Fo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function va(e,t){var n={from:ae(t.from),to:Si(t),text:Xt(e,t.from,t.to)};return ka(e,n,t.from.line,t.to.line+1),xi(e,function(r){return ka(r,n,t.from.line,t.to.line+1)},!0),n}function Qa(e){for(;e.length;){var t=Ae(e);if(t.ranges)e.pop();else break}}function ds(e,t){if(t)return Qa(e.done),Ae(e.done);if(e.done.length&&!Ae(e.done).ranges)return Ae(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ae(e.done)}function Ja(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=ds(i,i.lastOp==r)))l=Ae(a.changes),m(t.from,t.to)==0&&m(t.from,l.to)==0?l.to=Si(t):a.changes.push(va(e,t));else{var s=Ae(i.done);for((!s||!s.ranges)&&zo(e.sel,i.done),a={changes:[va(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||Ze(e,"historyAdded")}function vs(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function hs(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||vs(e,o,Ae(i.done),t))?i.done[i.done.length-1]=t:zo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&Qa(i.undone)}function zo(e,t){var n=Ae(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ka(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function gs(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function ps(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(gs(n[i]));return r}function qa(e,t){var n=ps(e,t),r=br(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function Hi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){r.push(n?qn.prototype.deepCopy.call(o):o);continue}var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var c=a[s],C=void 0;if(l.push({from:c.from,to:c.to,text:c.text}),t)for(var M in c)(C=M.match(/^spans_(\d+)$/))&&oe(t,Number(C[1]))>-1&&(Ae(l)[M]=c[M],delete c[M])}}return r}function ha(e,t,n,r){if(r){var i=e.anchor;if(n){var o=m(t,i)<0;o!=m(n,i)<0?(i=t,t=n):o!=m(t,n)<0&&(t=n)}return new Kr(i,t)}else return new Kr(n||t,t)}function Wo(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Mn(e,new qn([ha(e.sel.primary(),t,n,i)],0),r)}function el(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=ha(e.sel.ranges[o],t[o],null,i);var a=li(e.cm,r,e.sel.primIndex);Mn(e,a,n)}function ga(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Mn(e,li(e.cm,i,e.sel.primIndex),r)}function tl(e,t,n,r){Mn(e,Ci(t,n),r)}function ms(e,t,n){var r={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new Kr(le(e,i[o].anchor),le(e,i[o].head))},origin:n&&n.origin};return Ze(e,"beforeSelectionChange",e,r),e.cm&&Ze(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?li(e.cm,r.ranges,r.ranges.length-1):t}function rl(e,t,n){var r=e.history.done,i=Ae(r);i&&i.ranges?(r[r.length-1]=t,Zo(e,t,n)):Mn(e,t,n)}function Mn(e,t,n){Zo(e,t,n),hs(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Zo(e,t,n){(it(e,"beforeSelectionChange")||e.cm&&it(e.cm,"beforeSelectionChange"))&&(t=ms(e,t,n));var r=n&&n.bias||(m(t.primary().head,e.sel.primary().head)<0?-1:1);nl(e,ol(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&Wi(e.cm)}function nl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,dt(e.cm)),Jr(e,"cursorActivity",e))}function il(e){nl(e,ol(e,e.sel,null,!1))}function ol(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Ho(e,a.anchor,l&&l.anchor,n,r),c=Ho(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Kr(s,c))}return i?li(e.cm,i,t.primIndex):t}function ji(e,t,n,r,i){var o=Me(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,C="selectRight"in s?!s.selectRight:s.inclusiveRight;if((l.from==null||(c?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(C?l.to>=t.ch:l.to>t.ch))){if(i&&(Ze(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(n){var M=s.find(r<0?1:-1),U=void 0;if((r<0?C:c)&&(M=al(e,M,-r,M&&M.line==t.line?o:null)),M&&M.line==t.line&&(U=m(M,n))&&(r<0?U<0:U>0))return ji(e,M,t,r,i)}var B=s.find(r<0?-1:1);return(r<0?c:C)&&(B=al(e,B,r,B.line==t.line?o:null)),B?ji(e,B,t,r,i):null}}return t}function Ho(e,t,n,r,i){var o=r||1,a=ji(e,t,n,o,i)||!i&&ji(e,t,n,o,!0)||ji(e,t,n,-o,i)||!i&&ji(e,t,n,-o,!0);return a||(e.cantEdit=!0,g(e.first,0))}function al(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?le(e,g(t.line-1)):null:n>0&&t.ch==(r||Me(e,t.line)).text.length?t.line<e.first+e.size-1?g(t.line+1,0):null:new g(t.line,t.ch+n)}function ll(e){e.setSelection(g(e.firstLine(),0),g(e.lastLine()),De)}function sl(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(i,o,a,l){i&&(r.from=le(e,i)),o&&(r.to=le(e,o)),a&&(r.text=a),l!==void 0&&(r.origin=l)}),Ze(e,"beforeChange",e,r),e.cm&&Ze(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ki(e,t,n){if(e.cm){if(!e.cm.curOp)return mn(e.cm,Ki)(e,t,n);if(e.cm.state.suppressEdits)return}if(!((it(e,"beforeChange")||e.cm&&it(e.cm,"beforeChange"))&&(t=sl(e,t,!0),!t))){var r=tr&&!n&&Xr(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ul(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ul(e,t)}}function ul(e,t){if(!(t.text.length==1&&t.text[0]==""&&m(t.from,t.to)==0)){var n=ca(e,t);Ja(e,t,n,e.cm?e.cm.curOp.id:NaN),co(e,t,n,br(e,t));var r=[];xi(e,function(i,o){!o&&oe(r,i.history)==-1&&(vl(i.history,t),r.push(i.history)),co(i,t,null,br(i,t))})}}function jo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,c=0;c<l.length&&(o=l[c],!(n?o.ranges&&!o.equals(e.sel):!o.ranges));c++);if(c!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=l.pop(),o.ranges){if(zo(o,s),n&&!o.equals(e.sel)){Mn(e,o,{clearRedo:!1});return}a=o}else if(r){l.push(o);return}else break;var C=[];zo(a,s),s.push({changes:C,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var M=it(e,"beforeChange")||e.cm&&it(e.cm,"beforeChange"),U=function(Te){var Ge=o.changes[Te];if(Ge.origin=t,M&&!sl(e,Ge,!1))return l.length=0,{};C.push(va(e,Ge));var rt=Te?ca(e,Ge):Ae(l);co(e,Ge,rt,qa(e,Ge)),!Te&&e.cm&&e.cm.scrollIntoView({from:Ge.from,to:Si(Ge)});var bt=[];xi(e,function(nt,wt){!wt&&oe(bt,nt.history)==-1&&(vl(nt.history,Ge),bt.push(nt.history)),co(nt,Ge,null,qa(nt,Ge))})},B=o.changes.length-1;B>=0;--B){var fe=U(B);if(fe)return fe.v}}}}function cl(e,t){if(t!=0&&(e.first+=t,e.sel=new qn(Kt(e.sel.ranges,function(i){return new Kr(g(i.anchor.line+t,i.anchor.ch),g(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){An(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)yi(e.cm,r,"gutter")}}function co(e,t,n,r){if(e.cm&&!e.cm.curOp)return mn(e.cm,co)(e,t,n,r);if(t.to.line<e.first){cl(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);cl(e,i),t={from:g(e.first,0),to:g(t.to.line+i,t.to.ch),text:[Ae(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:g(o,Me(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xt(e,t.from,t.to),n||(n=ca(e,t)),e.cm?ys(e.cm,t,r):da(e,t,r),Zo(e,n,De),e.cantEdit&&Ho(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function ys(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=O(Ve(Me(r,o.line))),r.iter(s,a.line+1,function(B){if(B==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&dt(e),da(r,t,n,Ia(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(B){var fe=kr(B);fe>i.maxLineLength&&(i.maxLine=B,i.maxLineLength=fe,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),At(r,o.line),lo(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?An(e):o.line==a.line&&t.text.length==1&&!_a(e.doc,t)?yi(e,o.line,"text"):An(e,o.line,a.line+1,c);var C=it(e,"changes"),M=it(e,"change");if(M||C){var U={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};M&&Jr(e,"change",e,U),C&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(U)}e.display.selForContextMenu=null}function Ui(e,t,n,r,i){var o;r||(r=n),m(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Ki(e,{from:n,to:r,text:t,origin:i})}function fl(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function dl(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)fl(o.ranges[l].anchor,t,n,r),fl(o.ranges[l].head,t,n,r);continue}for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=g(c.from.line+r,c.from.ch),c.to=g(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function vl(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;dl(e.done,n,r,i),dl(e.undone,n,r,i)}function fo(e,t,n,r){var i=t,o=t;return typeof t=="number"?o=Me(e,Le(e,t)):i=O(t),i==null?null:(r(o,i)&&e.cm&&yi(e.cm,i,n),o)}function vo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}vo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,rn(i),Jr(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function ho(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ho.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof vo))){var l=[];this.collapse(l),this.children=[new vo(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new vo(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new ho(t);if(e.parent){e.size-=n.size,e.height-=n.height;var i=oe(e.parent.children,e);e.parent.children.splice(i+1,0,n)}else{var r=new ho(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if((t-=a)==0)break;e=0}else e-=o}}};var go=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};go.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=O(n);if(!(r==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=ct(this);wr(n,Math.max(0,n.height-o)),e&&(Yn(e,function(){hl(e,n,-o),yi(e,r,"widget")}),Jr(e,"lineWidgetCleared",e,this,r))}},go.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=ct(this)-t;i&&(Nr(this.doc,r)||wr(r,r.height+i),n&&Yn(n,function(){n.curOp.forceUpdate=!0,hl(n,r,i),Jr(n,"lineWidgetChanged",n,e,O(r))}))},Fe(go);function hl(e,t,n){Tr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ia(e,n)}function bs(e,t,n,r){var i=new go(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),fo(e,t,"widget",function(a){var l=a.widgets||(a.widgets=[]);if(i.insertAt==null?l.push(i):l.splice(Math.min(l.length-1,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!Nr(e,a)){var s=Tr(a)<e.scrollTop;wr(a,a.height+ct(i)),s&&ia(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Jr(o,"lineWidgetAdded",o,i,typeof t=="number"?t:O(t)),i}var gl=0,wi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++gl};wi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Li(e),it(this,"clear")){var n=this.find();n&&Jr(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=dr(a.markedSpans,this);e&&!this.collapsed?yi(e,O(a),"text"):e&&(l.to!=null&&(i=O(a)),l.from!=null&&(r=O(a))),a.markedSpans=fr(a.markedSpans,l),l.from==null&&this.collapsed&&!Nr(this.doc,a)&&e&&wr(a,Xn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Ve(this.lines[s]),C=kr(c);C>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=C,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&An(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&il(e.doc)),e&&Jr(e,"markerCleared",e,this,r,i),t&&Di(e),this.parent&&this.parent.clear()}},wi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var o=this.lines[i],a=dr(o.markedSpans,this);if(a.from!=null&&(n=g(t?o:O(o),a.from),e==-1))return n;if(a.to!=null&&(r=g(t?o:O(o),a.to),e==1))return r}return n&&{from:n,to:r}},wi.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;!t||!r||Yn(r,function(){var i=t.line,o=O(t.line),a=ci(r,o);if(a&&(ki(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Nr(n.doc,i)&&n.height!=null){var l=n.height;n.height=null;var s=ct(n)-l;s&&wr(i,i.height+s)}Jr(r,"markerChanged",r,e)})},wi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||oe(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},wi.prototype.detachLine=function(e){if(this.lines.splice(oe(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Fe(wi);function Vi(e,t,n,r,i){if(r&&r.shared)return Cs(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return mn(e.cm,Vi)(e,t,n,r,i);var o=new wi(e,i),a=m(t,n);if(r&&z(r,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=He("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(qe(e,t.line,t,n,o)||t.line!=n.line&&qe(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt()}o.addToHistory&&Ja(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,c;if(e.iter(l,n.line+1,function(M){s&&o.collapsed&&!s.options.lineWrapping&&Ve(M)==s.display.maxLine&&(c=!0),o.collapsed&&l!=t.line&&wr(M,0),rr(M,new kt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(M){Nr(e,M)&&wr(M,0)}),o.clearOnEnter&&ce(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Rt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++gl,o.atomic=!0),s){if(c&&(s.curOp.updateMaxLine=!0),o.collapsed)An(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var C=t.line;C<=n.line;C++)yi(s,C,"text");o.atomic&&il(s.doc),Jr(s,"markerAdded",s,o)}return o}var po=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};po.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Jr(this,"clear")}},po.prototype.find=function(e,t){return this.primary.find(e,t)},Fe(po);function Cs(e,t,n,r,i){r=z(r),r.shared=!1;var o=[Vi(e,t,n,r,i)],a=o[0],l=r.widgetNode;return xi(e,function(s){l&&(r.widgetNode=l.cloneNode(!0)),o.push(Vi(s,le(s,t),le(s,n),r,i));for(var c=0;c<s.linked.length;++c)if(s.linked[c].isParent)return;a=Ae(o)}),new po(o,a)}function pl(e){return e.findMarks(g(e.first,0),e.clipPos(g(e.lastLine())),function(t){return t.parent})}function Ss(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(m(o,a)){var l=Vi(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}function xs(e){for(var t=function(r){var i=e[r],o=[i.primary.doc];xi(i.primary.doc,function(s){return o.push(s)});for(var a=0;a<i.markers.length;a++){var l=i.markers[a];oe(o,l.doc)==-1&&(l.parent=null,i.markers.splice(a--,1))}},n=0;n<e.length;n++)t(n)}var ws=0,Bn=function(e,t,n,r,i){if(!(this instanceof Bn))return new Bn(e,t,n,r,i);n==null&&(n=0),ho.call(this,[new vo([new en("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=g(n,0);this.sel=Ci(o),this.history=new Fo(null),this.id=++ws,this.modeOption=t,this.lineSep=r,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),da(this,{from:o,to:o,text:e}),Mn(this,Ci(o),De)};Bn.prototype=w(ho.prototype,{constructor:Bn,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=zr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:yn(function(e){var t=g(this.first,0),n=this.first+this.size-1;Ki(this,{from:t,to:g(n,Me(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&no(this.cm,0,0),Mn(this,Ci(t),De)}),replaceRange:function(e,t,n,r){t=le(this,t),n=n?le(this,n):t,Ui(this,e,t,n,r)},getRange:function(e,t,n){var r=Xt(this,le(this,e),le(this,t));return n===!1?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(h(this,e))return Me(this,e)},getLineNumber:function(e){return O(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Me(this,e)),Ve(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return le(this,e)},getCursor:function(e){var t=this.sel.primary(),n;return e==null||e=="head"?n=t.head:e=="anchor"?n=t.anchor:e=="end"||e=="to"||e===!1?n=t.to():n=t.from(),n},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:yn(function(e,t,n){tl(this,le(this,typeof e=="number"?g(e,t||0):e),null,n)}),setSelection:yn(function(e,t,n){tl(this,le(this,e),le(this,t||e),n)}),extendSelection:yn(function(e,t,n){Wo(this,le(this,e),t&&le(this,t),n)}),extendSelections:yn(function(e,t){el(this,Re(this,e),t)}),extendSelectionsBy:yn(function(e,t){var n=Kt(this.sel.ranges,e);el(this,Re(this,n),t)}),setSelections:yn(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Kr(le(this,e[i].anchor),le(this,e[i].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Mn(this,li(this.cm,r,t),n)}}),addSelection:yn(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Kr(le(this,e),le(this,t||e))),Mn(this,li(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=Xt(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xt(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:yn(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&t!="end"&&cs(this,r,t),s=r.length-1;s>=0;s--)Ki(this,r[s]);l?rl(this,l):this.cm&&Wi(this.cm)}),undo:yn(function(){jo(this,"undo")}),redo:yn(function(){jo(this,"redo")}),undoSelection:yn(function(){jo(this,"undo",!0)}),redoSelection:yn(function(){jo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Fo(this.history.maxGeneration),xi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Hi(this.history.done),undone:Hi(this.history.undone)}},setHistory:function(e){var t=this.history=new Fo(this.history.maxGeneration);t.done=Hi(e.done.slice(0),null,!0),t.undone=Hi(e.undone.slice(0),null,!0)},setGutterMarker:yn(function(e,t,n){return fo(this,e,"gutter",function(r){var i=r.gutterMarkers||(r.gutterMarkers={});return i[t]=n,!n&&te(i)&&(r.gutterMarkers=null),!0})}),clearGutter:yn(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&fo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!h(this,e)||(t=e,e=Me(this,e),!e))return null}else if(t=O(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:yn(function(e,t,n){return fo(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[i])r[i]=n;else{if(J(n).test(r[i]))return!1;r[i]+=" "+n}return!0})}),removeLineClass:yn(function(e,t,n){return fo(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=r[i];if(o)if(n==null)r[i]=null;else{var a=o.match(J(n));if(!a)return!1;var l=a.index+a[0].length;r[i]=o.slice(0,a.index)+(!a.index||l==o.length?"":" ")+o.slice(l)||null}else return!1;return!0})}),addLineWidget:yn(function(e,t,n){return bs(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Vi(this,le(this,e),le(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=le(this,e),Vi(this,e,e,n,"bookmark")},findMarksAt:function(e){e=le(this,e);var t=[],n=Me(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=le(this,e),t=le(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];!(s.to!=null&&i==e.line&&e.ch>=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),le(this,g(n,t))},indexFromPos:function(e){e=le(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+n}),t},copy:function(e){var t=new Bn(zr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new Bn(zr(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ss(r,pl(this)),r},unlinkDoc:function(e){if(e instanceof qr&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xs(pl(this));break}}if(e.history==this.history){var r=[e.id];xi(e,function(i){return r.push(i.id)},!0),e.history=new Fo(null),e.history.done=Hi(this.history.done,r),e.history.undone=Hi(this.history.undone,r)}},iterLinkedDocs:function(e){xi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):yt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:yn(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fs(this.cm))})}),Bn.prototype.eachLine=Bn.prototype.iter;var ml=0;function Es(e){var t=this;if(yl(t),!($e(t,e)||Tt(t.display,e))){ot(e),L&&(ml=+new Date);var n=Ii(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(){++a==i&&mn(t,function(){n=le(t.doc,n);var B={from:n,to:n,text:t.doc.splitLines(o.filter(function(fe){return fe!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ki(t.doc,B),rl(t.doc,Ci(le(t.doc,n),le(t.doc,Si(B))))})()},s=function(B,fe){if(t.options.allowDropFileTypes&&oe(t.options.allowDropFileTypes,B.type)==-1){l();return}var Te=new FileReader;Te.onerror=function(){return l()},Te.onload=function(){var Ge=Te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ge)){l();return}o[fe]=Ge,l()},Te.readAsText(B)},c=0;c<r.length;c++)s(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var C=e.dataTransfer.getData("Text");if(C){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),Zo(t.doc,Ci(n,n)),M)for(var U=0;U<M.length;++U)Ui(t.doc,"",M[U].anchor,M[U].head,"drag");t.replaceSelection(C,"around","paste"),t.display.input.focus()}}catch(B){}}}}function Os(e,t){if(L&&(!e.state.draggingText||+new Date-ml<100)){Ot(t);return}if(!($e(e,t)||Tt(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!X)){var n=k("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ms(e,t){var n=Ii(e,t);if(n){var r=document.createDocumentFragment();Ta(e,n,r),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),we(e.display.dragCursor,r)}}function yl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function bl(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var o=0;o<n.length;o++)e(n[o])})}}var Cl=!1;function Is(){Cl||(Rs(),Cl=!0)}function Rs(){var e;ce(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,bl(Ps)},100))}),ce(window,"blur",function(){return bl(zi)})}function Ps(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ei={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},mo=0;mo<10;mo++)Ei[mo+48]=Ei[mo+96]=String(mo);for(var Ko=65;Ko<=90;Ko++)Ei[Ko]=String.fromCharCode(Ko);for(var yo=1;yo<=12;yo++)Ei[yo+111]=Ei[yo+63235]="F"+yo;var hi={};hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},hi.default=Ye?hi.macDefault:hi.pcDefault;function Ts(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else throw new Error("Unrecognized modifier name: "+l)}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ls(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r=="..."){delete e[n];continue}for(var i=Kt(n.split(" "),Ts),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(!s)t[l]=a;else if(s!=a)throw new Error("Inconsistent bindings for "+l)}delete e[n]}for(var c in t)e[c]=t[c];return e}function Gi(e,t,n,r){t=Uo(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&n(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Gi(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Gi(e,t.fallthrough[o],n,r);if(a)return a}}}function Sl(e){var t=typeof e=="string"?e:Ei[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function xl(e,t,n){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(y?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(y?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!n&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function wl(e,t){if(d&&e.keyCode==34&&e.char)return!1;var n=Ei[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),xl(n,e,t))}function Uo(e){return typeof e=="string"?hi[e]:e}function _i(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&m(o.from,Ae(r).to)<=0;){var a=r.pop();if(m(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Yn(e,function(){for(var l=r.length-1;l>=0;l--)Ui(e.doc,"",r[l].from,r[l].to,"+delete");Wi(e)})}function pa(e,t,n){var r=Se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ma(e,t,n){var r=pa(e,t.ch,n);return r==null?null:new g(t.line,r,n<0?"after":"before")}function ya(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=ie(n,t.doc.direction);if(o){var a=i<0?Ae(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",c;if(a.level>0||t.doc.direction=="rtl"){var C=pi(t,n);c=i<0?n.text.length-1:0;var M=ti(t,C,c).top;c=ue(function(U){return ti(t,C,U).top==M},i<0==(a.level==1)?a.from:a.to-1,c),s=="before"&&(c=pa(n,c,1))}else c=i<0?a.to:a.from;return new g(r,c,s)}}return new g(r,i<0?n.text.length:0,i<0?"before":"after")}function Ds(e,t,n,r){var i=ie(t,e.doc.direction);if(!i)return ma(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Oe(i,n.ch,n.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ma(t,n,r);var l=function(rt,bt){return pa(t,rt instanceof g?rt.ch:rt,bt)},s,c=function(rt){return e.options.lineWrapping?(s=s||pi(e,t),an(e,t,s,rt)):{begin:0,end:t.text.length}},C=c(n.sticky=="before"?l(n,-1):n.ch);if(e.doc.direction=="rtl"||a.level==1){var M=a.level==1==r<0,U=l(n,M?1:-1);if(U!=null&&(M?U<=a.to&&U<=C.end:U>=a.from&&U>=C.begin)){var B=M?"before":"after";return new g(n.line,U,B)}}var fe=function(rt,bt,nt){for(var wt=function(Qr,bn){return bn?new g(n.line,l(Qr,1),"before"):new g(n.line,Qr,"after")};rt>=0&&rt<i.length;rt+=bt){var ir=i[rt],jt=bt>0==(ir.level!=1),Sr=jt?nt.begin:l(nt.end,-1);if(ir.from<=Sr&&Sr<ir.to||(Sr=jt?ir.from:l(ir.to,-1),nt.begin<=Sr&&Sr<nt.end))return wt(Sr,jt)}},Te=fe(o+r,r,C);if(Te)return Te;var Ge=r>0?C.end:l(C.begin,-1);return Ge!=null&&!(r>0&&Ge==t.text.length)&&(Te=fe(r>0?0:i.length-1,r,c(Ge)),Te)?Te:null}var bo={selectAll:ll,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),De)},killLine:function(e){return _i(e,function(t){if(t.empty()){var n=Me(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:g(t.head.line+1,0)}:{from:t.head,to:g(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return _i(e,function(t){return{from:g(t.from().line,0),to:le(e.doc,g(t.to().line+1,0))}})},delLineLeft:function(e){return _i(e,function(t){return{from:g(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return _i(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return _i(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(g(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(g(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return El(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ol(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return $s(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Be)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Be)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Ol(e,t.head):r},Be)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=ne(e.getLine(o.line),o.ch,r);t.push(mt(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Yn(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Me(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new g(i.line,i.ch-1)),i.ch>0)i=new g(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),g(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Me(e.doc,i.line-1).text;a&&(i=new g(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),g(i.line-1,a.length-1),i,"+transpose"))}}n.push(new Kr(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Yn(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Wi(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function El(e,t){var n=Me(e.doc,t),r=Ve(n);return r!=n&&(t=O(r)),ya(!0,e,r,t,1)}function $s(e,t){var n=Me(e.doc,t),r=Ft(n);return r!=n&&(t=O(r)),ya(!0,e,n,t,-1)}function Ol(e,t){var n=El(e,t.line),r=Me(e.doc,n.line),i=ie(r,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return g(n.line,a?0:o,n.sticky)}return n}function Vo(e,t,n){if(typeof t=="string"&&(t=bo[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Qe}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function Ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Gi(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Gi(t,e.options.extraKeys,n,e)||Gi(t,e.options.keyMap,n,e)}var As=new Ee;function Co(e,t,n,r){var i=e.state.keySeq;if(i){if(Sl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:As.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),Ml(e,i+" "+t,n,r))return!0}return Ml(e,t,n,r)}function Ml(e,t,n,r){var i=Ns(e,t,r);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&Jr(e,"keyHandled",e,t,n),(i=="handled"||i=="multi")&&(ot(n),ta(e)),!!i}function Il(e,t){var n=wl(t,!0);return n?t.shiftKey&&!e.state.keySeq?Co(e,"Shift-"+n,t,function(r){return Vo(e,r,!0)})||Co(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return Vo(e,r)}):Co(e,n,t,function(r){return Vo(e,r)}):!1}function Bs(e,t,n){return Co(e,"'"+n+"'",t,function(r){return Vo(e,r,!0)})}var ba=null;function Rl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=W(),!$e(t,e))){L&&H<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=Il(t,e);d&&(ba=r?n:null,!r&&n==88&&!Dt&&(Ye?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),v&&!Ye&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Fs(t)}}function Fs(e){var t=e.display.lineDiv;f(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(D(t,"CodeMirror-crosshair"),Pe(document,"keyup",n),Pe(document,"mouseover",n))}ce(document,"keyup",n),ce(document,"mouseover",n)}function Pl(e){e.keyCode==16&&(this.doc.sel.shift=!1),$e(this,e)}function Tl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Tt(t.display,e)||$e(t,e)||e.ctrlKey&&!e.altKey||Ye&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ba){ba=null,ot(e);return}if(!(d&&(!e.which||e.which<10)&&Il(t,e))){var i=String.fromCharCode(r==null?n:r);i!="\b"&&(Bs(t,e,i)||t.display.input.onKeyPress(e))}}}var zs=400,Ca=function(e,t,n){this.time=e,this.pos=t,this.button=n};Ca.prototype.compare=function(e,t,n){return this.time+zs>e&&m(t,this.pos)==0&&n==this.button};var So,xo;function Ws(e,t){var n=+new Date;return xo&&xo.compare(n,e,t)?(So=xo=null,"triple"):So&&So.compare(n,e,t)?(xo=new Ca(n,e,t),So=null,"double"):(So=new Ca(n,e,t),xo=null,"single")}function Ll(e){var t=this,n=t.display;if(!($e(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Tt(n,e)){N||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Sa(t,e)){var r=Ii(t,e),i=st(e),o=r?Ws(r,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Zs(t,i,r,o,e))&&(i==1?r?js(t,r,o,e):or(e)==n.scroller&&ot(e):i==2?(r&&Wo(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(T?t.display.input.onContextMenu(e):Da(t)))}}}function Zs(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Co(e,xl(o,i),i,function(a){if(typeof a=="string"&&(a=bo[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,n)!=Qe}finally{e.state.suppressEdits=!1}return l})}function Hs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=We?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=Ye?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(Ye?n.altKey:n.ctrlKey)),i}function js(e,t,n,r){L?setTimeout(se(La,e),0):e.curOp.focus=W();var i=Hs(e,n,r),o=e.doc.sel,a;e.options.dragDrop&&ut&&!e.isReadOnly()&&n=="single"&&(a=o.contains(t))>-1&&(m((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(m(a.to(),t)>0||t.xRel<0)?Ks(e,r,t,i):Us(e,r,t,i)}function Ks(e,t,n,r){var i=e.display,o=!1,a=mn(e,function(c){N&&(i.scroller.draggable=!1),e.state.draggingText=!1,Pe(i.wrapper.ownerDocument,"mouseup",a),Pe(i.wrapper.ownerDocument,"mousemove",l),Pe(i.scroller,"dragstart",s),Pe(i.scroller,"drop",a),o||(ot(c),r.addNew||Wo(e.doc,n,null,null,r.extend),N&&!X||L&&H==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(c){o=o||Math.abs(t.clientX-c.clientX)+Math.abs(t.clientY-c.clientY)>=10},s=function(){return o=!0};N&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ce(i.wrapper.ownerDocument,"mouseup",a),ce(i.wrapper.ownerDocument,"mousemove",l),ce(i.scroller,"dragstart",s),ce(i.scroller,"drop",a),Da(e),setTimeout(function(){return i.input.focus()},20)}function Dl(e,t,n){if(n=="char")return new Kr(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Kr(g(t.line,0),le(e.doc,g(t.line+1,0)));var r=n(e,t);return new Kr(r.from,r.to)}function Us(e,t,n,r){var i=e.display,o=e.doc;ot(t);var a,l,s=o.sel,c=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),l>-1?a=c[l]:a=new Kr(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),r.unit=="rectangle")r.addNew||(a=new Kr(n,n)),n=Ii(e,t,!0,!0),l=-1;else{var C=Dl(e,n,r.unit);r.extend?a=ha(a,C.anchor,C.head,r.extend):a=C}r.addNew?l==-1?(l=c.length,Mn(o,li(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&r.unit=="char"&&!r.extend?(Mn(o,li(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):ga(o,l,a,Je):(l=0,Mn(o,new qn([a],0),Je),s=o.sel);var M=n;function U(nt){if(m(M,nt)!=0)if(M=nt,r.unit=="rectangle"){for(var wt=[],ir=e.options.tabSize,jt=ne(Me(o,n.line).text,n.ch,ir),Sr=ne(Me(o,nt.line).text,nt.ch,ir),Qr=Math.min(jt,Sr),bn=Math.max(jt,Sr),tn=Math.min(n.line,nt.line),Qn=Math.min(e.lastLine(),Math.max(n.line,nt.line));tn<=Qn;tn++){var Fn=Me(o,tn).text,un=Lt(Fn,Qr,ir);Qr==bn?wt.push(new Kr(g(tn,un),g(tn,un))):Fn.length>un&&wt.push(new Kr(g(tn,un),g(tn,Lt(Fn,bn,ir))))}wt.length||wt.push(new Kr(n,n)),Mn(o,li(e,s.ranges.slice(0,l).concat(wt),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(nt)}else{var zn=a,wn=Dl(e,nt,r.unit),vn=zn.anchor,cn;m(wn.anchor,vn)>0?(cn=wn.head,vn=Ie(zn.from(),wn.anchor)):(cn=wn.anchor,vn=Ce(zn.to(),wn.head));var on=s.ranges.slice(0);on[l]=Vs(e,new Kr(le(o,vn),cn)),Mn(o,li(e,on,l),Je)}}var B=i.wrapper.getBoundingClientRect(),fe=0;function Te(nt){var wt=++fe,ir=Ii(e,nt,!0,r.unit=="rectangle");if(ir)if(m(ir,M)!=0){e.curOp.focus=W(),U(ir);var jt=$o(i,o);(ir.line>=jt.to||ir.line<jt.from)&&setTimeout(mn(e,function(){fe==wt&&Te(nt)}),150)}else{var Sr=nt.clientY<B.top?-20:nt.clientY>B.bottom?20:0;Sr&&setTimeout(mn(e,function(){fe==wt&&(i.scroller.scrollTop+=Sr,Te(nt))}),50)}}function Ge(nt){e.state.selectingText=!1,fe=1/0,nt&&(ot(nt),i.input.focus()),Pe(i.wrapper.ownerDocument,"mousemove",rt),Pe(i.wrapper.ownerDocument,"mouseup",bt),o.history.lastSelOrigin=null}var rt=mn(e,function(nt){nt.buttons===0||!st(nt)?Ge(nt):Te(nt)}),bt=mn(e,Ge);e.state.selectingText=bt,ce(i.wrapper.ownerDocument,"mousemove",rt),ce(i.wrapper.ownerDocument,"mouseup",bt)}function Vs(e,t){var n=t.anchor,r=t.head,i=Me(e.doc,n.line);if(m(n,r)==0&&n.sticky==r.sticky)return t;var o=ie(i);if(!o)return t;var a=Oe(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=a+(l.from==n.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var c;if(r.line!=n.line)c=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var C=Oe(o,r.ch,r.sticky),M=C-a||(r.ch-n.ch)*(l.level==1?-1:1);C==s-1||C==s?c=M<0:c=M>0}var U=o[s+(c?-1:0)],B=c==(U.level==1),fe=B?U.from:U.to,Te=B?"after":"before";return n.ch==fe&&n.sticky==Te?t:new Kr(new g(n.line,fe,Te),r)}function $l(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(U){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ot(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!it(e,n))return gt(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=a.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i){var C=R(e.doc,o),M=e.display.gutterSpecs[s];return Ze(e,n,e,C,M.className,t),gt(t)}}}function Sa(e,t){return $l(e,t,"gutterClick",!0)}function Nl(e,t){Tt(e.display,t)||Gs(e,t)||$e(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Gs(e,t){return it(e,"gutterContextMenu")?$l(e,t,"gutterContextMenu",!1):!1}function Al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Mi(e)}var Xi={toString:function(){return"CodeMirror.Init"}},Bl={},Go={};function _s(e){var t=e.optionHandlers;function n(r,i,o,a){e.defaults[r]=i,o&&(t[r]=a?function(l,s,c){c!=Xi&&o(l,s,c)}:o)}e.defineOption=n,e.Init=Xi,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,fa(r)},!0),n("indentUnit",2,fa,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){uo(r),Mi(r),An(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],a=r.doc.first;r.doc.iter(function(s){for(var c=0;;){var C=s.text.indexOf(i,c);if(C==-1)break;c=C+i.length,o.push(g(a,C))}a++});for(var l=o.length-1;l>=0;l--)Ui(r.doc,i,o[l],g(o[l].line,o[l].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Xi&&r.refresh()}),n("specialCharPlaceholder",Ln,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",Ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){Al(r),so(r)},!0),n("keyMap","default",function(r,i,o){var a=Uo(i),l=o!=Xi&&Uo(o);l&&l.detach&&l.detach(r,a),a.attach&&a.attach(r,l||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ys,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=ua(i,r.options.lineNumbers),so(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?qo(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Zi(r)},!0),n("scrollbarStyle","native",function(r){za(r),Zi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=ua(r.options.gutters,i),so(r)},!0),n("firstLineNumber",1,so,!0),n("lineNumberFormatter",function(r){return r},so,!0),n("showCursorWhenSelecting",!1,ro,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(zi(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,Xs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,ro,!0),n("singleCursorHeightPerLine",!0,ro,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,uo,!0),n("addModeClass",!1,uo,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,uo,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function Xs(e,t,n){var r=n&&n!=Xi;if(!t!=!r){var i=e.display.dragFunctions,o=t?ce:Pe;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ys(e){e.options.lineWrapping?(f(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(D(e.display.wrapper,"CodeMirror-wrap"),Lr(e)),ea(e),An(e),Mi(e),setTimeout(function(){return Zi(e)},100)}function qr(e,t){var n=this;if(!(this instanceof qr))return new qr(e,t);this.options=t=t?z(t):{},z(Bl,t,!1);var r=t.value;typeof r=="string"?r=new Bn(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new qr.inputStyles[t.inputStyle](this),o=this.display=new ss(e,r,i,t);o.wrapper.CodeMirror=this,Al(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),za(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ee,keySeq:null,specialChars:null},t.autofocus&&!Ue&&o.input.focus(),L&&H<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Qs(this),Is(),Li(this),this.curOp.forceUpdate=!0,Xa(this,r),t.autofocus&&!Ue||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&ra(n)},20):zi(this);for(var a in Go)Go.hasOwnProperty(a)&&Go[a](this,t[a],Xi);Ha(this),t.finishInit&&t.finishInit(this);for(var l=0;l<xa.length;++l)xa[l](this);Di(this),N&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}qr.defaults=Bl,qr.optionHandlers=Go;function Qs(e){var t=e.display;ce(t.scroller,"mousedown",mn(e,Ll)),L&&H<11?ce(t.scroller,"dblclick",mn(e,function(s){if(!$e(e,s)){var c=Ii(e,s);if(!(!c||Sa(e,s)||Tt(e.display,s))){ot(s);var C=e.findWordAt(c);Wo(e.doc,C.anchor,C.head)}}})):ce(t.scroller,"dblclick",function(s){return $e(e,s)||ot(s)}),ce(t.scroller,"contextmenu",function(s){return Nl(e,s)}),ce(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||Nl(e,s)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var c=s.touches[0];return c.radiusX<=1&&c.radiusY<=1}function a(s,c){if(c.left==null)return!0;var C=c.left-s.left,M=c.top-s.top;return C*C+M*M>20*20}ce(t.scroller,"touchstart",function(s){if(!$e(e,s)&&!o(s)&&!Sa(e,s)){t.input.ensurePolled(),clearTimeout(n);var c=+new Date;t.activeTouch={start:c,moved:!1,prev:c-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),ce(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ce(t.scroller,"touchend",function(s){var c=t.activeTouch;if(c&&!Tt(t,s)&&c.left!=null&&!c.moved&&new Date-c.start<300){var C=e.coordsChar(t.activeTouch,"page"),M;!c.prev||a(c,c.prev)?M=new Kr(C,C):!c.prev.prev||a(c,c.prev.prev)?M=e.findWordAt(C):M=new Kr(g(C.line,0),le(e.doc,g(C.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),ot(s)}i()}),ce(t.scroller,"touchcancel",i),ce(t.scroller,"scroll",function(){t.scroller.clientHeight&&(io(e,t.scroller.scrollTop),Pi(e,t.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),ce(t.scroller,"mousewheel",function(s){return Ua(e,s)}),ce(t.scroller,"DOMMouseScroll",function(s){return Ua(e,s)}),ce(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){$e(e,s)||Ot(s)},over:function(s){$e(e,s)||(Ms(e,s),Ot(s))},start:function(s){return Os(e,s)},drop:mn(e,Es),leave:function(s){$e(e,s)||yl(e)}};var l=t.input.getField();ce(l,"keyup",function(s){return Pl.call(e,s)}),ce(l,"keydown",mn(e,Rl)),ce(l,"keypress",mn(e,Tl)),ce(l,"focus",function(s){return ra(e,s)}),ce(l,"blur",function(s){return zi(e,s)})}var xa=[];qr.defineInitHook=function(e){return xa.push(e)};function wo(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=ze(e,t).state:n="prev");var a=e.options.tabSize,l=Me(i,t),s=ne(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var c=l.text.match(/^\s*/)[0],C;if(!r&&!/\S/.test(l.text))C=0,n="not";else if(n=="smart"&&(C=i.mode.indent(o,l.text.slice(c.length),l.text),C==Qe||C>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?C=ne(Me(i,t-1).text,null,a):C=0:n=="add"?C=s+e.options.indentUnit:n=="subtract"?C=s-e.options.indentUnit:typeof n=="number"&&(C=s+n),C=Math.max(0,C);var M="",U=0;if(e.options.indentWithTabs)for(var B=Math.floor(C/a);B;--B)U+=a,M+=" ";if(U<C&&(M+=mt(C-U)),M!=c)return Ui(i,M,g(t,0),g(t,c.length),"+input"),l.stateAfter=null,!0;for(var fe=0;fe<i.sel.ranges.length;fe++){var Te=i.sel.ranges[fe];if(Te.head.line==t&&Te.head.ch<c.length){var Ge=g(t,c.length);ga(i,fe,new Kr(Ge,Ge));break}}}var si=null;function _o(e){si=e}function wa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,l=i=="paste"||e.state.pasteIncoming>a,s=yt(t),c=null;if(l&&r.ranges.length>1)if(si&&si.text.join(`
`)==t){if(r.ranges.length%si.text.length==0){c=[];for(var C=0;C<si.text.length;C++)c.push(o.splitLines(si.text[C]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Kt(s,function(rt){return[rt]}));for(var M=e.curOp.updateInput,U=r.ranges.length-1;U>=0;U--){var B=r.ranges[U],fe=B.from(),Te=B.to();B.empty()&&(n&&n>0?fe=g(fe.line,fe.ch-n):e.state.overwrite&&!l?Te=g(Te.line,Math.min(Me(o,Te.line).text.length,Te.ch+Ae(s).length)):l&&si&&si.lineWise&&si.text.join(`
`)==s.join(`
`)&&(fe=Te=g(fe.line,0)));var Ge={from:fe,to:Te,text:c?c[U%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Ki(e.doc,Ge),Jr(e,"inputRead",e,Ge)}t&&!l&&zl(e,t),Wi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Yn(t,function(){return wa(t,n,0,null,"paste")}),!0}function zl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=wo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Me(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=wo(e,i.head.line,"smart"));a&&Jr(e,"electricInput",e,i.head.line)}}}function Wl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:g(i,0),head:g(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Zl(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Hl(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return N?e.style.width="1000px":e.setAttribute("wrap","off"),$&&(e.style.border="1px solid black"),Zl(e),t}function Js(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(r,i){var o=this.options,a=o[r];o[r]==i&&r!="mode"||(o[r]=i,t.hasOwnProperty(r)&&mn(this,t[r])(this,i,a),Ze(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,i){this.state.keyMaps[i?"push":"unshift"](Uo(r))},removeKeyMap:function(r){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==r||i[o].name==r)return i.splice(o,1),!0},addOverlay:Pn(function(r,i){var o=r.token?r:e.getMode(this.options,r);if(o.startState)throw new Error("Overlays may not be stateful.");ye(this.state.overlays,{mode:o,modeSpec:r,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,An(this)}),removeOverlay:Pn(function(r){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==r||typeof r=="string"&&a.name==r){i.splice(o,1),this.state.modeGen++,An(this);return}}}),indentLine:Pn(function(r,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),h(this.doc,r)&&wo(this,r,i,o)}),indentSelection:Pn(function(r){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(wo(this,l.head.line,r,!0),o=l.head.line,a==this.doc.sel.primIndex&&Wi(this));else{var s=l.from(),c=l.to(),C=Math.max(o,s.line);o=Math.min(this.lastLine(),c.line-(c.ch?0:1))+1;for(var M=C;M<o;++M)wo(this,M,r);var U=this.doc.sel.ranges;s.ch==0&&i.length==U.length&&U[a].from().ch>0&&ga(this.doc,a,new Kr(s,U[a].to()),De)}}}),getTokenAt:function(r,i){return Mt(this,r,i)},getLineTokens:function(r,i){return Mt(this,g(r),i,!0)},getTokenTypeAt:function(r){r=le(this.doc,r);var i=St(this,Me(this.doc,r.line)),o=0,a=(i.length-1)/2,l=r.ch,s;if(l==0)s=i[2];else for(;;){var c=o+a>>1;if((c?i[c*2-1]:0)>=l)a=c;else if(i[c*2+1]<l)o=c+1;else{s=i[c*2+2];break}}var C=s?s.indexOf("overlay "):-1;return C<0?s:C==0?null:s.slice(0,C-1)},getModeAt:function(r){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(r).state).mode:i},getHelper:function(r,i){return this.getHelpers(r,i)[0]},getHelpers:function(r,i){var o=[];if(!n.hasOwnProperty(i))return o;var a=n[i],l=this.getModeAt(r);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l[i]]);else if(l[i])for(var s=0;s<l[i].length;s++){var c=a[l[i][s]];c&&o.push(c)}else l.helperType&&a[l.helperType]?o.push(a[l.helperType]):a[l.name]&&o.push(a[l.name]);for(var C=0;C<a._global.length;C++){var M=a._global[C];M.pred(l,this)&&oe(o,M.val)==-1&&o.push(M.val)}return o},getStateAfter:function(r,i){var o=this.doc;return r=Le(o,r==null?o.first+o.size-1:r),ze(this,r+1,i).state},cursorCoords:function(r,i){var o,a=this.doc.sel.primary();return r==null?o=a.head:typeof r=="object"?o=le(this.doc,r):o=r?a.from():a.to(),Nn(this,o,i||"page")},charCoords:function(r,i){return Fi(this,le(this.doc,r),i||"page")},coordsChar:function(r,i){return r=Po(this,r,i||"page"),xn(this,r.left,r.top)},lineAtHeight:function(r,i){return r=Po(this,{top:r,left:0},i||"page").top,R(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,i,o){var a=!1,l;if(typeof r=="number"){var s=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>s&&(r=s,a=!0),l=Me(this.doc,r)}else l=r;return Bi(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Tr(l):0)},defaultTextHeight:function(){return Xn(this.display)},defaultCharWidth:function(){return ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,a,l){var s=this.display;r=Nn(this,le(this.doc,r));var c=r.bottom,C=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")c=r.top;else if(a=="above"||a=="near"){var M=Math.max(s.wrapper.clientHeight,this.doc.height),U=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||r.bottom+i.offsetHeight>M)&&r.top>i.offsetHeight?c=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=M&&(c=r.bottom),C+i.offsetWidth>U&&(C=U-i.offsetWidth)}i.style.top=c+"px",i.style.left=i.style.right="",l=="right"?(C=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?C=0:l=="middle"&&(C=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=C+"px"),o&&Xl(this,{left:C,top:c,right:C+i.offsetWidth,bottom:c+i.offsetHeight})},triggerOnKeyDown:Pn(Rl),triggerOnKeyPress:Pn(Tl),triggerOnKeyUp:Pl,triggerOnMouseDown:Pn(Ll),execCommand:function(r){if(bo.hasOwnProperty(r))return bo[r].call(null,this)},triggerElectric:Pn(function(r){zl(this,r)}),findPosH:function(r,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=le(this.doc,r),c=0;c<i&&(s=Ea(this.doc,s,l,o,a),!s.hitSide);++c);return s},moveH:Pn(function(r,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?Ea(o.doc,a.head,r,i,o.options.rtlMoveVisually):r<0?a.from():a.to()},Be)}),deleteH:Pn(function(r,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):_i(this,function(l){var s=Ea(a,l.head,r,i,!1);return r<0?{from:s,to:l.head}:{from:l.head,to:s}})}),findPosV:function(r,i,o,a){var l=1,s=a;i<0&&(l=-1,i=-i);for(var c=le(this.doc,r),C=0;C<i;++C){var M=Nn(this,c,"div");if(s==null?s=M.left:M.left=s,c=jl(this,M,l,o),c.hitSide)break}return c},moveV:Pn(function(r,i){var o=this,a=this.doc,l=[],s=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(C){if(s)return r<0?C.from():C.to();var M=Nn(o,C.head,"div");C.goalColumn!=null&&(M.left=C.goalColumn),l.push(M.left);var U=jl(o,M,r,i);return i=="page"&&C==a.sel.primary()&&ia(o,Fi(o,U,"div").top-M.top),U},Be),l.length)for(var c=0;c<a.sel.ranges.length;c++)a.sel.ranges[c].goalColumn=l[c]}),findWordAt:function(r){var i=this.doc,o=Me(i,r.line).text,a=r.ch,l=r.ch;if(o){var s=this.getHelper(r,"wordChars");(r.sticky=="before"||l==o.length)&&a?--a:++l;for(var c=o.charAt(a),C=K(c,s)?function(M){return K(M,s)}:/\s/.test(c)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!K(M)};a>0&&C(o.charAt(a-1));)--a;for(;l<o.length&&C(o.charAt(l));)++l}return new Kr(g(r.line,a),g(r.line,l))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?f(this.display.cursorDiv,"CodeMirror-overwrite"):D(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==W()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pn(function(r,i){no(this,r,i)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-pn(this)-this.display.barHeight,width:r.scrollWidth-pn(this)-this.display.barWidth,clientHeight:ei(this),clientWidth:Gn(this)}},scrollIntoView:Pn(function(r,i){r==null?(r={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof r=="number"?r={from:g(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=i||0,r.from.line!=null?Yl(this,r):Na(this,r.from,r.to,r.margin)}),setSize:Pn(function(r,i){var o=this,a=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};r!=null&&(this.display.wrapper.style.width=a(r)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&qi(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(s){if(s.widgets){for(var c=0;c<s.widgets.length;c++)if(s.widgets[c].noHScroll){yi(o,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(r){return Yn(this,r)},startOperation:function(){return Li(this)},endOperation:function(){return Di(this)},refresh:Pn(function(){var r=this.display.cachedTextHeight;An(this),this.curOp.forceUpdate=!0,Mi(this),no(this,this.doc.scrollLeft,this.doc.scrollTop),la(this.display),(r==null||Math.abs(r-Xn(this.display))>.5||this.options.lineWrapping)&&ea(this),Ze(this,"refresh",this)}),swapDoc:Pn(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Xa(this,r),Mi(this),this.display.input.reset(),no(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Jr(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Fe(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,a){e.registerHelper(r,i,a),n[r]._global.push({pred:o,val:a})}}function Ea(e,t,n,r,i){var o=t,a=n,l=Me(e,t.line),s=i&&e.direction=="rtl"?-n:n;function c(){var bt=t.line+s;return bt<e.first||bt>=e.first+e.size?!1:(t=new g(bt,t.ch,t.sticky),l=Me(e,bt))}function C(bt){var nt;if(r=="codepoint"){var wt=l.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(wt)?nt=null:nt=new g(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(wt>=55296&&wt<56320?2:1))),-n)}else i?nt=Ds(e.cm,l,t,n):nt=ma(l,t,n);if(nt==null)if(!bt&&c())t=ya(i,e.cm,l,t.line,s);else return!1;else t=nt;return!0}if(r=="char"||r=="codepoint")C();else if(r=="column")C(!0);else if(r=="word"||r=="group")for(var M=null,U=r=="group",B=e.cm&&e.cm.getHelper(t,"wordChars"),fe=!0;!(n<0&&!C(!fe));fe=!1){var Te=l.text.charAt(t.ch)||`
`,Ge=K(Te,B)?"w":U&&Te==`
`?"n":!U||/\s/.test(Te)?null:"p";if(U&&!fe&&!Ge&&(Ge="s"),M&&M!=Ge){n<0&&(n=1,C(),t.sticky="after");break}if(Ge&&(M=Ge),n>0&&!C(!fe))break}var rt=Ho(e,t,o,a,!0);return j(o,rt)&&(rt.hitSide=!0),rt}function jl(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*Xn(e.display),3);a=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(a=n>0?t.bottom+3:t.top-3);for(var c;c=xn(e,o,a),!!c.outside;){if(n<0?a<=0:a>=i.height){c.hitSide=!0;break}a+=n*5}return c}var Gr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Gr.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;Zl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}ce(i,"paste",function(l){!o(l)||$e(r,l)||Fl(l,r)||H<=11&&setTimeout(mn(r,function(){return t.updateFromDOM()}),20)}),ce(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),ce(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),ce(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ce(i,"touchstart",function(){return n.forceCompositionEnd()}),ce(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||$e(r,l))){if(r.somethingSelected())_o({lineWise:!1,text:r.getSelections()}),l.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=Wl(r);_o({lineWise:!0,text:s.text}),l.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,De),r.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var c=si.text.join(`
`);if(l.clipboardData.setData("Text",c),l.clipboardData.getData("Text")==c){l.preventDefault();return}}var C=Hl(),M=C.firstChild;r.display.lineSpace.insertBefore(C,r.display.lineSpace.firstChild),M.value=si.text.join(`
`);var U=document.activeElement;E(M),setTimeout(function(){r.display.lineSpace.removeChild(C),U.focus(),U==i&&n.showPrimarySelection()},50)}}ce(i,"copy",a),ce(i,"cut",a)},Gr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Gr.prototype.prepareSelection=function(){var e=Pa(this.cm,!1);return e.focus=document.activeElement==this.div,e},Gr.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Gr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gr.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=Xo(t,e.anchorNode,e.anchorOffset),a=Xo(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&m(Ie(o,a),r)==0&&m(Ce(o,a),i)==0)){var l=t.display.view,s=r.line>=t.display.viewFrom&&Kl(t,r)||{node:l[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&Kl(t,i);if(!c){var C=l[l.length-1].measure,M=C.maps?C.maps[C.maps.length-1]:C.map;c={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!s||!c){e.removeAllRanges();return}var U=e.rangeCount&&e.getRangeAt(0),B;try{B=lt(s.node,s.offset,c.offset,c.node)}catch(fe){}B&&(!v&&t.state.focused?(e.collapse(s.node,s.offset),B.collapsed||(e.removeAllRanges(),e.addRange(B))):(e.removeAllRanges(),e.addRange(B)),U&&e.anchorNode==null?e.addRange(U):v&&this.startGracePeriod()),this.rememberSelection()}},Gr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Gr.prototype.showMultipleSelections=function(e){we(this.cm.display.cursorDiv,e.cursors),we(this.cm.display.selectionDiv,e.selection)},Gr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Gr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return G(this.div,t)},Gr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gr.prototype.blur=function(){this.div.blur()},Gr.prototype.getField=function(){return this.div},Gr.prototype.supportsTouch=function(){return!0},Gr.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Yn(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Gr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Gr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ne&&_&&this.cm.display.gutterSpecs.length&&ks(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=Xo(t,e.anchorNode,e.anchorOffset),r=Xo(t,e.focusNode,e.focusOffset);n&&r&&Yn(t,function(){Mn(t.doc,Ci(n,r),De),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Gr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=g(r.line-1,Me(e.doc,r.line-1).length)),i.ch==Me(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=g(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||(o=Ri(e,r.line))==0?(a=O(t.view[0].line),l=t.view[0].node):(a=O(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=Ri(e,i.line),c,C;if(s==t.view.length-1?(c=t.viewTo-1,C=t.lineDiv.lastChild):(c=O(t.view[s+1].line)-1,C=t.view[s+1].node.previousSibling),!l)return!1;for(var M=e.doc.splitLines(qs(e,l,C,a,c)),U=Xt(e.doc,g(a,0),g(c,Me(e.doc,c).text.length));M.length>1&&U.length>1;)if(Ae(M)==Ae(U))M.pop(),U.pop(),c--;else if(M[0]==U[0])M.shift(),U.shift(),a++;else break;for(var B=0,fe=0,Te=M[0],Ge=U[0],rt=Math.min(Te.length,Ge.length);B<rt&&Te.charCodeAt(B)==Ge.charCodeAt(B);)++B;for(var bt=Ae(M),nt=Ae(U),wt=Math.min(bt.length-(M.length==1?B:0),nt.length-(U.length==1?B:0));fe<wt&&bt.charCodeAt(bt.length-fe-1)==nt.charCodeAt(nt.length-fe-1);)++fe;if(M.length==1&&U.length==1&&a==r.line)for(;B&&B>r.ch&&bt.charCodeAt(bt.length-fe-1)==nt.charCodeAt(nt.length-fe-1);)B--,fe++;M[M.length-1]=bt.slice(0,bt.length-fe).replace(/^\u200b+/,""),M[0]=M[0].slice(B).replace(/\u200b+$/,"");var ir=g(a,B),jt=g(c,U.length?Ae(U).length-fe:0);if(M.length>1||M[0]||m(ir,jt))return Ui(e.doc,M,ir,jt,"+input"),!0},Gr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gr.prototype.reset=function(){this.forceCompositionEnd()},Gr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gr.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Gr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Yn(this.cm,function(){return An(e.cm)})},Gr.prototype.setUneditable=function(e){e.contentEditable="false"},Gr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mn(this.cm,wa)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Gr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Gr.prototype.onContextMenu=function(){},Gr.prototype.resetPosition=function(){},Gr.prototype.needsContentAttribute=!0;function Kl(e,t){var n=ci(e,t.line);if(!n||n.hidden)return null;var r=Me(e.doc,t.line),i=Ai(n,r,t.line),o=ie(r,e.doc.direction),a="left";if(o){var l=Oe(o,t.ch);a=l%2?"right":"left"}var s=Mo(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function ks(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Yi(e,t){return t&&(e.bad=!0),e}function qs(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(B){return function(fe){return fe.id==B}}function C(){a&&(o+=l,s&&(o+=l),a=s=!1)}function M(B){B&&(C(),o+=B)}function U(B){if(B.nodeType==1){var fe=B.getAttribute("cm-text");if(fe){M(fe);return}var Te=B.getAttribute("cm-marker"),Ge;if(Te){var rt=e.findMarks(g(r,0),g(i+1,0),c(+Te));rt.length&&(Ge=rt[0].find(0))&&M(Xt(e.doc,Ge.from,Ge.to).join(l));return}if(B.getAttribute("contenteditable")=="false")return;var bt=/^(pre|div|p|li|table|br)$/i.test(B.nodeName);if(!/^br$/i.test(B.nodeName)&&B.textContent.length==0)return;bt&&C();for(var nt=0;nt<B.childNodes.length;nt++)U(B.childNodes[nt]);/^(pre|p)$/i.test(B.nodeName)&&(s=!0),bt&&(a=!0)}else B.nodeType==3&&M(B.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;U(t),t!=n;)t=t.nextSibling,s=!1;return o}function Xo(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return Yi(e.clipPos(g(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return eu(o,t,n)}}function eu(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!G(r,t))return Yi(g(O(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Ae(e.rest):e.line;return Yi(g(O(o),o.text.length),i)}var a=t.nodeType==3?t:null,l=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var s=e.measure,c=s.maps;function C(Ge,rt,bt){for(var nt=-1;nt<(c?c.length:0);nt++)for(var wt=nt<0?s.map:c[nt],ir=0;ir<wt.length;ir+=3){var jt=wt[ir+2];if(jt==Ge||jt==rt){var Sr=O(nt<0?e.line:e.rest[nt]),Qr=wt[ir]+bt;return(bt<0||jt!=Ge)&&(Qr=wt[ir+(bt?1:0)]),g(Sr,Qr)}}}var M=C(a,l,n);if(M)return Yi(M,i);for(var U=l.nextSibling,B=a?a.nodeValue.length-n:0;U;U=U.nextSibling){if(M=C(U,U.firstChild,0),M)return Yi(g(M.line,M.ch-B),i);B+=U.textContent.length}for(var fe=l.previousSibling,Te=n;fe;fe=fe.previousSibling){if(M=C(fe,fe.firstChild,-1),M)return Yi(g(M.line,M.ch+Te),i);Te+=fe.textContent.length}}var ln=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ee,this.hasSelection=!1,this.composing=null};ln.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),$&&(i.style.width="0px"),ce(i,"input",function(){L&&H>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ce(i,"paste",function(a){$e(r,a)||Fl(a,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(a){if(!$e(r,a)){if(r.somethingSelected())_o({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var l=Wl(r);_o({lineWise:!0,text:l.text}),a.type=="cut"?r.setSelections(l.ranges,null,De):(n.prevInput="",i.value=l.text.join(`
`),E(i))}else return;a.type=="cut"&&(r.state.cutIncoming=+new Date)}}ce(i,"cut",o),ce(i,"copy",o),ce(e.scroller,"paste",function(a){if(!(Tt(e,a)||$e(r,a))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),ce(e.lineSpace,"selectstart",function(a){Tt(e,a)||ot(a)}),ce(i,"compositionstart",function(){var a=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:a,range:r.markText(a,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ln.prototype.createField=function(e){this.wrapper=Hl(),this.textarea=this.wrapper.firstChild},ln.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ln.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Pa(e);if(e.options.moveInputWithCursor){var i=Nn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ln.prototype.showSelection=function(e){var t=this.cm,n=t.display;we(n.cursorDiv,e.cursors),we(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ln.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&E(this.textarea),L&&H>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",L&&H>=9&&(this.hasSelection=null))}},ln.prototype.getField=function(){return this.textarea},ln.prototype.supportsTouch=function(){return!1},ln.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ue||W()!=this.textarea))try{this.textarea.focus()}catch(e){}},ln.prototype.blur=function(){this.textarea.blur()},ln.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ln.prototype.receivedFocus=function(){this.slowPoll()},ln.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ln.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},ln.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||It(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(L&&H>=9&&this.hasSelection===i||Ye&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Yn(t,function(){wa(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ln.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ln.prototype.onKeyPress=function(){L&&H>=9&&(this.hasSelection=null),this.fastPoll()},ln.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Ii(n,e),a=r.scroller.scrollTop;if(!o||d)return;var l=n.options.resetSelectionOnContextMenu;l&&n.doc.sel.contains(o)==-1&&mn(n,Mn)(n.doc,Ci(o),De);var s=i.style.cssText,c=t.wrapper.style.cssText,C=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-C.top-5)+"px; left: "+(e.clientX-C.left-5)+`px;
z-index: 1000; background: `+(L?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;N&&(M=window.scrollY),r.input.focus(),N&&window.scrollTo(null,M),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=B,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function U(){if(i.selectionStart!=null){var Te=n.somethingSelected(),Ge="\u200B"+(Te?i.value:"");i.value="\u21DA",i.value=Ge,t.prevInput=Te?"":"\u200B",i.selectionStart=1,i.selectionEnd=Ge.length,r.selForContextMenu=n.doc.sel}}function B(){if(t.contextMenuPending==B&&(t.contextMenuPending=!1,t.wrapper.style.cssText=c,i.style.cssText=s,L&&H<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),i.selectionStart!=null)){(!L||L&&H<9)&&U();var Te=0,Ge=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?mn(n,ll)(n):Te++<10?r.detectingSelectAll=setTimeout(Ge,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Ge,200)}}if(L&&H>=9&&U(),T){Ot(e);var fe=function(){Pe(window,"mouseup",fe),setTimeout(B,20)};ce(window,"mouseup",fe)}else setTimeout(B,50)},ln.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ln.prototype.setUneditable=function(){},ln.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?z(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=W();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(ce(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Pe(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=qr(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function ru(e){e.off=Pe,e.on=ce,e.wheelEventPixels=us,e.Doc=Bn,e.splitLines=yt,e.countColumn=ne,e.findColumn=Lt,e.isWordChar=S,e.Pass=Qe,e.signal=Ze,e.Line=en,e.changeEnd=Si,e.scrollbarModel=Fa,e.Pos=g,e.cmpPos=m,e.modes=zt,e.mimeModes=Jt,e.resolveMode=Or,e.getMode=Mr,e.modeExtensions=Ir,e.extendMode=Dr,e.copyState=hr,e.startState=mr,e.innerMode=Wt,e.commands=bo,e.keyMap=hi,e.keyName=wl,e.isModifierKey=Sl,e.lookupKey=Gi,e.normalizeKeyMap=Ls,e.StringStream=Bt,e.SharedTextMarker=po,e.TextMarker=wi,e.LineWidget=go,e.e_preventDefault=ot,e.e_stopPropagation=Et,e.e_stop=Ot,e.addClass=f,e.contains=G,e.rmClass=D,e.keyNames=Ei}_s(qr),Js(qr);var nu="iter insert remove copy getEditor constructor".split(" ");for(var Yo in Bn.prototype)Bn.prototype.hasOwnProperty(Yo)&&oe(nu,Yo)<0&&(qr.prototype[Yo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Bn.prototype[Yo]));return Fe(Bn),qr.inputStyles={textarea:ln,contenteditable:Gr},qr.defineMode=function(e){!qr.defaults.mode&&e!="null"&&(qr.defaults.mode=e),xr.apply(this,arguments)},qr.defineMIME=cr,qr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),qr.defineMIME("text/plain","null"),qr.defineExtension=function(e,t){qr.prototype[e]=t},qr.defineDocExtension=function(e,t){Bn.prototype[e]=t},qr.fromTextArea=tu,ru(qr),qr.version="5.58.2",qr})},66003:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return N}});var v=u(42244),F=u(85899),p=u(43749),V=u(59301),L=["show"];function H(ee,_){if(!_.max)return!0;var d=_.strategy(ee);return d<=_.max}function N(ee,_){return V.useMemo(function(){var d={};_&&(d.show=(0,p.Z)(_)==="object"&&_.formatter?_.formatter:!!_),d=(0,F.Z)((0,F.Z)({},d),ee);var X=d,P=X.show,re=(0,v.Z)(X,L);return(0,F.Z)((0,F.Z)({},re),{},{show:!!P,showFormatter:typeof P=="function"?P:void 0,strategy:re.strategy||function($){return $.length}})},[ee,_])}},36901:function(lr,xe,u){"use strict";u.r(xe),u.d(xe,{BaseInput:function(){return d},default:function(){return Y}});var v=u(85899),F=u(60499),p=u(18642),V=u(43749),L=u(92310),H=u.n(L),N=u(59301),ee=u(30292),_=N.forwardRef(function(y,T){var J,D,de,we=y.inputElement,k=y.children,He=y.prefixCls,lt=y.prefix,G=y.suffix,W=y.addonBefore,f=y.addonAfter,Z=y.className,E=y.style,se=y.disabled,z=y.readOnly,ne=y.focused,Ee=y.triggerFocus,oe=y.allowClear,je=y.value,Qe=y.handleReset,De=y.hidden,Je=y.classes,Be=y.classNames,Lt=y.dataAttrs,pt=y.styles,mt=y.components,Ae=y.onClear,Kt=k!=null?k:we,ye=(mt==null?void 0:mt.affixWrapper)||"span",A=(mt==null?void 0:mt.groupWrapper)||"span",w=(mt==null?void 0:mt.wrapper)||"span",I=(mt==null?void 0:mt.groupAddon)||"span",S=(0,N.useRef)(null),K=function(dt){var it;(it=S.current)!==null&&it!==void 0&&it.contains(dt.target)&&(Ee==null||Ee())},te=(0,ee.X3)(y),q=(0,N.cloneElement)(Kt,{value:je,className:H()((J=Kt.props)===null||J===void 0?void 0:J.className,!te&&(Be==null?void 0:Be.variant))||null}),Q=(0,N.useRef)(null);if(N.useImperativeHandle(T,function(){return{nativeElement:Q.current||S.current}}),te){var Se=null;if(oe){var ue=!se&&!z&&je,ve="".concat(He,"-clear-icon"),pe=(0,V.Z)(oe)==="object"&&oe!==null&&oe!==void 0&&oe.clearIcon?oe.clearIcon:"\u2716";Se=N.createElement("button",{type:"button",tabIndex:-1,onClick:function(dt){Qe==null||Qe(dt),Ae==null||Ae()},onMouseDown:function(dt){return dt.preventDefault()},className:H()(ve,(0,p.Z)((0,p.Z)({},"".concat(ve,"-hidden"),!ue),"".concat(ve,"-has-suffix"),!!G))},pe)}var Oe="".concat(He,"-affix-wrapper"),me=H()(Oe,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(He,"-disabled"),se),"".concat(Oe,"-disabled"),se),"".concat(Oe,"-focused"),ne),"".concat(Oe,"-readonly"),z),"".concat(Oe,"-input-with-clear-btn"),G&&oe&&je),Je==null?void 0:Je.affixWrapper,Be==null?void 0:Be.affixWrapper,Be==null?void 0:Be.variant),ie=(G||oe)&&N.createElement("span",{className:H()("".concat(He,"-suffix"),Be==null?void 0:Be.suffix),style:pt==null?void 0:pt.suffix},Se,G);q=N.createElement(ye,(0,F.Z)({className:me,style:pt==null?void 0:pt.affixWrapper,onClick:K},Lt==null?void 0:Lt.affixWrapper,{ref:S}),lt&&N.createElement("span",{className:H()("".concat(He,"-prefix"),Be==null?void 0:Be.prefix),style:pt==null?void 0:pt.prefix},lt),q,ie)}if((0,ee.He)(y)){var be="".concat(He,"-group"),ce="".concat(be,"-addon"),Ke="".concat(be,"-wrapper"),Pe=H()("".concat(He,"-wrapper"),be,Je==null?void 0:Je.wrapper,Be==null?void 0:Be.wrapper),Ze=H()(Ke,(0,p.Z)({},"".concat(Ke,"-disabled"),se),Je==null?void 0:Je.group,Be==null?void 0:Be.groupWrapper);q=N.createElement(A,{className:Ze,ref:Q},N.createElement(w,{className:Pe},W&&N.createElement(I,{className:ce},W),q,f&&N.createElement(I,{className:ce},f)))}return N.cloneElement(q,{className:H()((D=q.props)===null||D===void 0?void 0:D.className,Z)||null,style:(0,v.Z)((0,v.Z)({},(de=q.props)===null||de===void 0?void 0:de.style),E),hidden:De})}),d=_,X=u(77654),P=u(72190),re=u(42244),$=u(18929),Ne=u(2738),Ue=u(66003),Ye=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],We=(0,N.forwardRef)(function(y,T){var J=y.autoComplete,D=y.onChange,de=y.onFocus,we=y.onBlur,k=y.onPressEnter,He=y.onKeyDown,lt=y.onKeyUp,G=y.prefixCls,W=G===void 0?"rc-input":G,f=y.disabled,Z=y.htmlSize,E=y.className,se=y.maxLength,z=y.suffix,ne=y.showCount,Ee=y.count,oe=y.type,je=oe===void 0?"text":oe,Qe=y.classes,De=y.classNames,Je=y.styles,Be=y.onCompositionStart,Lt=y.onCompositionEnd,pt=(0,re.Z)(y,Ye),mt=(0,N.useState)(!1),Ae=(0,P.Z)(mt,2),Kt=Ae[0],ye=Ae[1],A=(0,N.useRef)(!1),w=(0,N.useRef)(!1),I=(0,N.useRef)(null),S=(0,N.useRef)(null),K=function(ut){I.current&&(0,ee.nH)(I.current,ut)},te=(0,$.Z)(y.defaultValue,{value:y.value}),q=(0,P.Z)(te,2),Q=q[0],Se=q[1],ue=Q==null?"":String(Q),ve=(0,N.useState)(null),pe=(0,P.Z)(ve,2),Oe=pe[0],me=pe[1],ie=(0,Ue.Z)(Ee,ne),be=ie.max||se,ce=ie.strategy(ue),Ke=!!be&&ce>be;(0,N.useImperativeHandle)(T,function(){var st;return{focus:K,blur:function(){var Vt;(Vt=I.current)===null||Vt===void 0||Vt.blur()},setSelectionRange:function(Vt,Qt,Gt){var _t;(_t=I.current)===null||_t===void 0||_t.setSelectionRange(Vt,Qt,Gt)},select:function(){var Vt;(Vt=I.current)===null||Vt===void 0||Vt.select()},input:I.current,nativeElement:((st=S.current)===null||st===void 0?void 0:st.nativeElement)||I.current}}),(0,N.useEffect)(function(){w.current&&(w.current=!1),ye(function(st){return st&&f?!1:st})},[f]);var Pe=function(ut,Vt,Qt){var Gt=Vt;if(!A.current&&ie.exceedFormatter&&ie.max&&ie.strategy(Vt)>ie.max){if(Gt=ie.exceedFormatter(Vt,{max:ie.max}),Vt!==Gt){var _t,yt;me([((_t=I.current)===null||_t===void 0?void 0:_t.selectionStart)||0,((yt=I.current)===null||yt===void 0?void 0:yt.selectionEnd)||0])}}else if(Qt.source==="compositionEnd")return;Se(Gt),I.current&&(0,ee.rJ)(I.current,ut,D,Gt)};(0,N.useEffect)(function(){if(Oe){var st;(st=I.current)===null||st===void 0||st.setSelectionRange.apply(st,(0,X.Z)(Oe))}},[Oe]);var Ze=function(ut){Pe(ut,ut.target.value,{source:"change"})},$e=function(ut){A.current=!1,Pe(ut,ut.currentTarget.value,{source:"compositionEnd"}),Lt==null||Lt(ut)},dt=function(ut){k&&ut.key==="Enter"&&!w.current&&(w.current=!0,k(ut)),He==null||He(ut)},it=function(ut){ut.key==="Enter"&&(w.current=!1),lt==null||lt(ut)},Fe=function(ut){ye(!0),de==null||de(ut)},ot=function(ut){w.current&&(w.current=!1),ye(!1),we==null||we(ut)},Et=function(ut){Se(""),K(),I.current&&(0,ee.rJ)(I.current,ut,D)},gt=Ke&&"".concat(W,"-out-of-range"),Ot=function(){var ut=(0,Ne.Z)(y,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return N.createElement("input",(0,F.Z)({autoComplete:J},ut,{onChange:Ze,onFocus:Fe,onBlur:ot,onKeyDown:dt,onKeyUp:it,className:H()(W,(0,p.Z)({},"".concat(W,"-disabled"),f),De==null?void 0:De.input),style:Je==null?void 0:Je.input,ref:I,size:Z,type:je,onCompositionStart:function(Qt){A.current=!0,Be==null||Be(Qt)},onCompositionEnd:$e}))},or=function(){var ut=Number(be)>0;if(z||ie.show){var Vt=ie.showFormatter?ie.showFormatter({value:ue,count:ce,maxLength:be}):"".concat(ce).concat(ut?" / ".concat(be):"");return N.createElement(N.Fragment,null,ie.show&&N.createElement("span",{className:H()("".concat(W,"-show-count-suffix"),(0,p.Z)({},"".concat(W,"-show-count-has-suffix"),!!z),De==null?void 0:De.count),style:(0,v.Z)({},Je==null?void 0:Je.count)},Vt),z)}return null};return N.createElement(d,(0,F.Z)({},pt,{prefixCls:W,className:H()(E,gt),handleReset:Et,value:ue,focused:Kt,triggerFocus:K,suffix:or(),disabled:f,classes:Qe,classNames:De,styles:Je}),Ot())}),x=We,Y=x},30292:function(lr,xe,u){"use strict";u.d(xe,{He:function(){return v},X3:function(){return F},nH:function(){return L},rJ:function(){return V}});function v(H){return!!(H.addonBefore||H.addonAfter)}function F(H){return!!(H.prefix||H.suffix||H.allowClear)}function p(H,N,ee){var _=N.cloneNode(!0),d=Object.create(H,{target:{value:_},currentTarget:{value:_}});return _.value=ee,typeof N.selectionStart=="number"&&typeof N.selectionEnd=="number"&&(_.selectionStart=N.selectionStart,_.selectionEnd=N.selectionEnd),_.setSelectionRange=function(){N.setSelectionRange.apply(N,arguments)},d}function V(H,N,ee,_){if(ee){var d=N;if(N.type==="click"){d=p(N,H,""),ee(d);return}if(H.type!=="file"&&_!==void 0){d=p(N,H,_),ee(d);return}ee(d)}}function L(H,N){if(H){H.focus(N);var ee=N||{},_=ee.cursor;if(_){var d=H.value.length;switch(_){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(d,d);break;default:H.setSelectionRange(0,d)}}}}},83836:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return se}});var v=u(60499),F=u(85899),p=u(72190),V=u(42244),L=u(59301),H=u(92310),N=u.n(H),ee=u(29301),_=u(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],X=void 0;function P(z,ne){var Ee=z.prefixCls,oe=z.invalidate,je=z.item,Qe=z.renderItem,De=z.responsive,Je=z.responsiveDisabled,Be=z.registerSize,Lt=z.itemKey,pt=z.className,mt=z.style,Ae=z.children,Kt=z.display,ye=z.order,A=z.component,w=A===void 0?"div":A,I=(0,V.Z)(z,d),S=De&&!Kt;function K(ue){Be(Lt,ue)}L.useEffect(function(){return function(){K(null)}},[]);var te=Qe&&je!==X?Qe(je,{index:ye}):Ae,q;oe||(q={opacity:S?0:1,height:S?0:X,overflowY:S?"hidden":X,order:De?ye:X,pointerEvents:S?"none":X,position:S?"absolute":X});var Q={};S&&(Q["aria-hidden"]=!0);var Se=L.createElement(w,(0,v.Z)({className:N()(!oe&&Ee,pt),style:(0,F.Z)((0,F.Z)({},q),mt)},Q,I,{ref:ne}),te);return De&&(Se=L.createElement(ee.Z,{onResize:function(ve){var pe=ve.offsetWidth;K(pe)},disabled:Je},Se)),Se}var re=L.forwardRef(P);re.displayName="Item";var $=re,Ne=u(6089),Ue=u(4676),Ye=u(16089);function We(z){if(typeof MessageChannel=="undefined")(0,Ye.Z)(z);else{var ne=new MessageChannel;ne.port1.onmessage=function(){return z()},ne.port2.postMessage(void 0)}}function x(){var z=L.useRef(null),ne=function(oe){z.current||(z.current=[],We(function(){(0,Ue.unstable_batchedUpdates)(function(){z.current.forEach(function(je){je()}),z.current=null})})),z.current.push(oe)};return ne}function Y(z,ne){var Ee=L.useState(ne),oe=(0,p.Z)(Ee,2),je=oe[0],Qe=oe[1],De=(0,Ne.Z)(function(Je){z(function(){Qe(Je)})});return[je,De]}var y=L.createContext(null),T=["component"],J=["className"],D=["className"],de=function(ne,Ee){var oe=L.useContext(y);if(!oe){var je=ne.component,Qe=je===void 0?"div":je,De=(0,V.Z)(ne,T);return L.createElement(Qe,(0,v.Z)({},De,{ref:Ee}))}var Je=oe.className,Be=(0,V.Z)(oe,J),Lt=ne.className,pt=(0,V.Z)(ne,D);return L.createElement(y.Provider,{value:null},L.createElement($,(0,v.Z)({ref:Ee,className:N()(Je,Lt)},Be,pt)))},we=L.forwardRef(de);we.displayName="RawItem";var k=we,He=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],lt="responsive",G="invalidate";function W(z){return"+ ".concat(z.length," ...")}function f(z,ne){var Ee=z.prefixCls,oe=Ee===void 0?"rc-overflow":Ee,je=z.data,Qe=je===void 0?[]:je,De=z.renderItem,Je=z.renderRawItem,Be=z.itemKey,Lt=z.itemWidth,pt=Lt===void 0?10:Lt,mt=z.ssr,Ae=z.style,Kt=z.className,ye=z.maxCount,A=z.renderRest,w=z.renderRawRest,I=z.prefix,S=z.suffix,K=z.component,te=K===void 0?"div":K,q=z.itemComponent,Q=z.onVisibleChange,Se=(0,V.Z)(z,He),ue=mt==="full",ve=x(),pe=Y(ve,null),Oe=(0,p.Z)(pe,2),me=Oe[0],ie=Oe[1],be=me||0,ce=Y(ve,new Map),Ke=(0,p.Z)(ce,2),Pe=Ke[0],Ze=Ke[1],$e=Y(ve,0),dt=(0,p.Z)($e,2),it=dt[0],Fe=dt[1],ot=Y(ve,0),Et=(0,p.Z)(ot,2),gt=Et[0],Ot=Et[1],or=Y(ve,0),st=(0,p.Z)(or,2),ut=st[0],Vt=st[1],Qt=Y(ve,0),Gt=(0,p.Z)(Qt,2),_t=Gt[0],yt=Gt[1],It=(0,L.useState)(null),Dt=(0,p.Z)(It,2),sr=Dt[0],Xe=Dt[1],zt=(0,L.useState)(null),Jt=(0,p.Z)(zt,2),xr=Jt[0],cr=Jt[1],Or=L.useMemo(function(){return xr===null&&ue?Number.MAX_SAFE_INTEGER:xr||0},[xr,me]),Mr=(0,L.useState)(!1),Ir=(0,p.Z)(Mr,2),Dr=Ir[0],hr=Ir[1],Wt="".concat(oe,"-item"),mr=Math.max(it,gt),Bt=ye===lt,Me=Qe.length&&Bt,Xt=ye===G,zr=Me||typeof ye=="number"&&Qe.length>ye,wr=(0,L.useMemo)(function(){var ze=Qe;return Me?me===null&&ue?ze=Qe:ze=Qe.slice(0,Math.min(Qe.length,be/pt)):typeof ye=="number"&&(ze=Qe.slice(0,ye)),ze},[Qe,pt,me,ye,Me]),O=(0,L.useMemo)(function(){return Me?Qe.slice(Or+1):Qe.slice(wr.length)},[Qe,wr,Me,Or]),R=(0,L.useCallback)(function(ze,ke){var ht;return typeof Be=="function"?Be(ze):(ht=Be&&(ze==null?void 0:ze[Be]))!==null&&ht!==void 0?ht:ke},[Be]),h=(0,L.useCallback)(De||function(ze){return ze},[De]);function b(ze,ke,ht){xr===ze&&(ke===void 0||ke===sr)||(cr(ze),ht||(hr(ze<Qe.length-1),Q==null||Q(ze)),ke!==void 0&&Xe(ke))}function g(ze,ke){ie(ke.clientWidth)}function m(ze,ke){Ze(function(ht){var et=new Map(ht);return ke===null?et.delete(ze):et.set(ze,ke),et})}function j(ze,ke){Ot(ke),Fe(gt)}function ae(ze,ke){Vt(ke)}function Ce(ze,ke){yt(ke)}function Ie(ze){return Pe.get(R(wr[ze],ze))}(0,_.Z)(function(){if(be&&typeof mr=="number"&&wr){var ze=ut+_t,ke=wr.length,ht=ke-1;if(!ke){b(0,null);return}for(var et=0;et<ke;et+=1){var tt=Ie(et);if(ue&&(tt=tt||0),tt===void 0){b(et-1,void 0,!0);break}if(ze+=tt,ht===0&&ze<=be||et===ht-1&&ze+Ie(ht)<=be){b(ht,null);break}else if(ze+mr>be){b(et-1,ze-tt-_t+gt);break}}S&&Ie(0)+_t>be&&Xe(null)}},[be,Pe,gt,ut,_t,R,wr]);var Le=Dr&&!!O.length,le={};sr!==null&&Me&&(le={position:"absolute",left:sr,top:0});var vt={prefixCls:Wt,responsive:Me,component:q,invalidate:Xt},Re=Je?function(ze,ke){var ht=R(ze,ke);return L.createElement(y.Provider,{key:ht,value:(0,F.Z)((0,F.Z)({},vt),{},{order:ke,item:ze,itemKey:ht,registerSize:m,display:ke<=Or})},Je(ze,ke))}:function(ze,ke){var ht=R(ze,ke);return L.createElement($,(0,v.Z)({},vt,{order:ke,key:ht,item:ze,renderItem:h,itemKey:ht,registerSize:m,display:ke<=Or}))},ft={order:Le?Or:Number.MAX_SAFE_INTEGER,className:"".concat(Wt,"-rest"),registerSize:j,display:Le},_e=A||W,at=w?L.createElement(y.Provider,{value:(0,F.Z)((0,F.Z)({},vt),ft)},w(O)):L.createElement($,(0,v.Z)({},vt,ft),typeof _e=="function"?_e(O):_e),St=L.createElement(te,(0,v.Z)({className:N()(!Xt&&oe,Kt),style:Ae,ref:ne},Se),I&&L.createElement($,(0,v.Z)({},vt,{responsive:Bt,responsiveDisabled:!Me,order:-1,className:"".concat(Wt,"-prefix"),registerSize:ae,display:!0}),I),wr.map(Re),zr?at:null,S&&L.createElement($,(0,v.Z)({},vt,{responsive:Bt,responsiveDisabled:!Me,order:Or,className:"".concat(Wt,"-suffix"),registerSize:Ce,display:!0,style:le}),S));return Bt?L.createElement(ee.Z,{onResize:g,disabled:!Me},St):St}var Z=L.forwardRef(f);Z.displayName="Overflow",Z.Item=k,Z.RESPONSIVE=lt,Z.INVALIDATE=G;var E=Z,se=E},29301:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return G}});var v=u(60499),F=u(59301),p=u(11592),V=u(48736),L=u(85899),H=u(43749),N=u(76846),ee=u(8654),_=F.createContext(null);function d(W){var f=W.children,Z=W.onBatchResize,E=F.useRef(0),se=F.useRef([]),z=F.useContext(_),ne=F.useCallback(function(Ee,oe,je){E.current+=1;var Qe=E.current;se.current.push({size:Ee,element:oe,data:je}),Promise.resolve().then(function(){Qe===E.current&&(Z==null||Z(se.current),se.current=[])}),z==null||z(Ee,oe,je)},[Z,z]);return F.createElement(_.Provider,{value:ne},f)}var X=u(76374),P=new Map;function re(W){W.forEach(function(f){var Z,E=f.target;(Z=P.get(E))===null||Z===void 0||Z.forEach(function(se){return se(E)})})}var $=new X.Z(re),Ne=null,Ue=null;function Ye(W,f){P.has(W)||(P.set(W,new Set),$.observe(W)),P.get(W).add(f)}function We(W,f){P.has(W)&&(P.get(W).delete(f),P.get(W).size||($.unobserve(W),P.delete(W)))}var x=u(38705),Y=u(17212),y=u(39153),T=u(55401),J=function(W){(0,y.Z)(Z,W);var f=(0,T.Z)(Z);function Z(){return(0,x.Z)(this,Z),f.apply(this,arguments)}return(0,Y.Z)(Z,[{key:"render",value:function(){return this.props.children}}]),Z}(F.Component);function D(W,f){var Z=W.children,E=W.disabled,se=F.useRef(null),z=F.useRef(null),ne=F.useContext(_),Ee=typeof Z=="function",oe=Ee?Z(se):Z,je=F.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Qe=!Ee&&F.isValidElement(oe)&&(0,ee.Yr)(oe),De=Qe?(0,ee.C4)(oe):null,Je=(0,ee.x1)(De,se),Be=function(){var Ae;return(0,N.ZP)(se.current)||(se.current&&(0,H.Z)(se.current)==="object"?(0,N.ZP)((Ae=se.current)===null||Ae===void 0?void 0:Ae.nativeElement):null)||(0,N.ZP)(z.current)};F.useImperativeHandle(f,function(){return Be()});var Lt=F.useRef(W);Lt.current=W;var pt=F.useCallback(function(mt){var Ae=Lt.current,Kt=Ae.onResize,ye=Ae.data,A=mt.getBoundingClientRect(),w=A.width,I=A.height,S=mt.offsetWidth,K=mt.offsetHeight,te=Math.floor(w),q=Math.floor(I);if(je.current.width!==te||je.current.height!==q||je.current.offsetWidth!==S||je.current.offsetHeight!==K){var Q={width:te,height:q,offsetWidth:S,offsetHeight:K};je.current=Q;var Se=S===Math.round(w)?w:S,ue=K===Math.round(I)?I:K,ve=(0,L.Z)((0,L.Z)({},Q),{},{offsetWidth:Se,offsetHeight:ue});ne==null||ne(ve,mt,ye),Kt&&Promise.resolve().then(function(){Kt(ve,mt)})}},[]);return F.useEffect(function(){var mt=Be();return mt&&!E&&Ye(mt,pt),function(){return We(mt,pt)}},[se.current,E]),F.createElement(J,{ref:z},Qe?F.cloneElement(oe,{ref:Je}):oe)}var de=F.forwardRef(D),we=de,k="rc-observer-key";function He(W,f){var Z=W.children,E=typeof Z=="function"?[Z]:(0,p.Z)(Z);return E.map(function(se,z){var ne=(se==null?void 0:se.key)||"".concat(k,"-").concat(z);return F.createElement(we,(0,v.Z)({},W,{key:ne,ref:z===0?f:void 0}),se)})}var lt=F.forwardRef(He);lt.Collection=d;var G=lt},6551:function(lr,xe,u){"use strict";u.d(xe,{ZP:function(){return N}});var v=u(72190),F=u(59301),p=u(47273),V=0,L=(0,p.Z)();function H(){var ee;return L?(ee=V,V+=1):ee="TEST_OR_SSR",ee}function N(ee){var _=F.useState(),d=(0,v.Z)(_,2),X=d[0],P=d[1];return F.useEffect(function(){P("rc_select_".concat(H()))},[]),ee||X}},37463:function(lr,xe,u){"use strict";u.d(xe,{Ac:function(){return $e},Xo:function(){return it},Wx:function(){return ot},ZP:function(){return wr},lk:function(){return Y}});var v=u(60499),F=u(77654),p=u(18642),V=u(85899),L=u(72190),H=u(42244),N=u(43749),ee=u(18929),_=u(48736),d=u(59301),X=u(92310),P=u.n(X),re=u(34280),$=u(49658),Ne=u(8654),Ue=function(R){var h=R.className,b=R.customizeIcon,g=R.customizeIconProps,m=R.children,j=R.onMouseDown,ae=R.onClick,Ce=typeof b=="function"?b(g):b;return d.createElement("span",{className:h,onMouseDown:function(Le){Le.preventDefault(),j==null||j(Le)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ae,"aria-hidden":!0},Ce!==void 0?Ce:d.createElement("span",{className:P()(h.split(/\s+/).map(function(Ie){return"".concat(Ie,"-icon")}))},m))},Ye=Ue,We=function(R,h,b,g,m){var j=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ae=arguments.length>6?arguments[6]:void 0,Ce=arguments.length>7?arguments[7]:void 0,Ie=d.useMemo(function(){if((0,N.Z)(g)==="object")return g.clearIcon;if(m)return m},[g,m]),Le=d.useMemo(function(){return!!(!j&&g&&(b.length||ae)&&!(Ce==="combobox"&&ae===""))},[g,j,b.length,ae,Ce]);return{allowClear:Le,clearIcon:d.createElement(Ye,{className:"".concat(R,"-clear"),onMouseDown:h,customizeIcon:Ie},"\xD7")}},x=d.createContext(null);function Y(){return d.useContext(x)}function y(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,R=d.useState(!1),h=(0,L.Z)(R,2),b=h[0],g=h[1],m=d.useRef(null),j=function(){window.clearTimeout(m.current)};d.useEffect(function(){return j},[]);var ae=function(Ie,Le){j(),m.current=window.setTimeout(function(){g(Ie),Le&&Le()},O)};return[b,ae,j]}function T(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,R=d.useRef(null),h=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(h.current)}},[]);function b(g){(g||R.current===null)&&(R.current=g),window.clearTimeout(h.current),h.current=window.setTimeout(function(){R.current=null},O)}return[function(){return R.current},b]}function J(O,R,h,b){var g=d.useRef(null);g.current={open:R,triggerOpen:h,customizedTrigger:b},d.useEffect(function(){function m(j){var ae;if(!((ae=g.current)!==null&&ae!==void 0&&ae.customizedTrigger)){var Ce=j.target;Ce.shadowRoot&&j.composed&&(Ce=j.composedPath()[0]||Ce),g.current.open&&O().filter(function(Ie){return Ie}).every(function(Ie){return!Ie.contains(Ce)&&Ie!==Ce})&&g.current.triggerOpen(!1)}}return window.addEventListener("mousedown",m),function(){return window.removeEventListener("mousedown",m)}},[])}var D=u(10228);function de(O){return O&&![D.Z.ESC,D.Z.SHIFT,D.Z.BACKSPACE,D.Z.TAB,D.Z.WIN_KEY,D.Z.ALT,D.Z.META,D.Z.WIN_KEY_RIGHT,D.Z.CTRL,D.Z.SEMICOLON,D.Z.EQUALS,D.Z.CAPS_LOCK,D.Z.CONTEXT_MENU,D.Z.F1,D.Z.F2,D.Z.F3,D.Z.F4,D.Z.F5,D.Z.F6,D.Z.F7,D.Z.F8,D.Z.F9,D.Z.F10,D.Z.F11,D.Z.F12].includes(O)}var we=u(26112),k=u(83836);function He(O,R,h){var b=(0,V.Z)((0,V.Z)({},O),h?R:{});return Object.keys(R).forEach(function(g){var m=R[g];typeof m=="function"&&(b[g]=function(){for(var j,ae=arguments.length,Ce=new Array(ae),Ie=0;Ie<ae;Ie++)Ce[Ie]=arguments[Ie];return m.apply(void 0,Ce),(j=O[g])===null||j===void 0?void 0:j.call.apply(j,[O].concat(Ce))})}),b}var lt=He,G=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],W=function(R,h){var b=R.prefixCls,g=R.id,m=R.inputElement,j=R.autoFocus,ae=R.autoComplete,Ce=R.editable,Ie=R.activeDescendantId,Le=R.value,le=R.open,vt=R.attrs,Re=(0,H.Z)(R,G),ft=m||d.createElement("input",null),_e=ft,at=_e.ref,St=_e.props;return(0,_.Kp)(!("maxLength"in ft.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ft=d.cloneElement(ft,(0,V.Z)((0,V.Z)((0,V.Z)({type:"search"},lt(Re,St,!0)),{},{id:g,ref:(0,Ne.sQ)(h,at),autoComplete:ae||"off",autoFocus:j,className:P()("".concat(b,"-selection-search-input"),St==null?void 0:St.className),role:"combobox","aria-expanded":le||!1,"aria-haspopup":"listbox","aria-owns":"".concat(g,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(g,"_list"),"aria-activedescendant":le?Ie:void 0},vt),{},{value:Ce?Le:"",readOnly:!Ce,unselectable:Ce?null:"on",style:(0,V.Z)((0,V.Z)({},St.style),{},{opacity:Ce?null:0})})),ft},f=d.forwardRef(W),Z=f;function E(O){return Array.isArray(O)?O:O!==void 0?[O]:[]}var se=typeof window!="undefined"&&window.document&&window.document.documentElement,z=se;function ne(O){return O!=null}function Ee(O){return!O&&O!==0}function oe(O){return["string","number"].includes((0,N.Z)(O))}function je(O){var R=void 0;return O&&(oe(O.title)?R=O.title.toString():oe(O.label)&&(R=O.label.toString())),R}function Qe(O,R){z?d.useLayoutEffect(O,R):d.useEffect(O,R)}function De(O){var R;return(R=O.key)!==null&&R!==void 0?R:O.value}var Je=function(R){R.preventDefault(),R.stopPropagation()},Be=function(R){var h=R.id,b=R.prefixCls,g=R.values,m=R.open,j=R.searchValue,ae=R.autoClearSearchValue,Ce=R.inputRef,Ie=R.placeholder,Le=R.disabled,le=R.mode,vt=R.showSearch,Re=R.autoFocus,ft=R.autoComplete,_e=R.activeDescendantId,at=R.tabIndex,St=R.removeIcon,ze=R.maxTagCount,ke=R.maxTagTextLength,ht=R.maxTagPlaceholder,et=ht===void 0?function(qe){return"+ ".concat(qe.length," ...")}:ht,tt=R.tagRender,Mt=R.onToggleOpen,ar=R.onRemove,Ht=R.onInputChange,$t=R.onInputPaste,At=R.onInputKeyDown,tr=R.onInputMouseDown,Zt=R.onInputCompositionStart,Rt=R.onInputCompositionEnd,Nt=R.onInputBlur,kt=d.useRef(null),dr=(0,d.useState)(0),fr=(0,L.Z)(dr,2),rr=fr[0],ur=fr[1],xt=(0,d.useState)(!1),br=(0,L.Z)(xt,2),Wr=br[0],Xr=br[1],Cr="".concat(b,"-selection"),Yr=m||le==="multiple"&&ae===!1||le==="tags"?j:"",Er=le==="tags"||le==="multiple"&&ae===!1||vt&&(m||Wr);Qe(function(){ur(kt.current.scrollWidth)},[Yr]);var Ur=function(Ve,Ft,vr,Ut,gr){return d.createElement("span",{title:je(Ve),className:P()("".concat(Cr,"-item"),(0,p.Z)({},"".concat(Cr,"-item-disabled"),vr))},d.createElement("span",{className:"".concat(Cr,"-item-content")},Ft),Ut&&d.createElement(Ye,{className:"".concat(Cr,"-item-remove"),onMouseDown:Je,onClick:gr,customizeIcon:St},"\xD7"))},$r=function(Ve,Ft,vr,Ut,gr,Nr){var Zr=function(kr){Je(kr),Mt(!m)};return d.createElement("span",{onMouseDown:Zr},tt({label:Ft,value:Ve,disabled:vr,closable:Ut,onClose:gr,isMaxTag:!!Nr}))},qt=function(Ve){var Ft=Ve.disabled,vr=Ve.label,Ut=Ve.value,gr=!Le&&!Ft,Nr=vr;if(typeof ke=="number"&&(typeof vr=="string"||typeof vr=="number")){var Zr=String(Nr);Zr.length>ke&&(Nr="".concat(Zr.slice(0,ke),"..."))}var Tr=function(Lr){Lr&&Lr.stopPropagation(),ar(Ve)};return typeof tt=="function"?$r(Ut,Nr,Ft,gr,Tr):Ur(Ve,Nr,Ft,gr,Tr)},Ct=function(Ve){if(!g.length)return null;var Ft=typeof et=="function"?et(Ve):et;return typeof tt=="function"?$r(void 0,Ft,!1,!1,void 0,!0):Ur({title:Ft},Ft,!1)},he=d.createElement("div",{className:"".concat(Cr,"-search"),style:{width:rr},onFocus:function(){Xr(!0)},onBlur:function(){Xr(!1)}},d.createElement(Z,{ref:Ce,open:m,prefixCls:b,id:h,inputElement:null,disabled:Le,autoFocus:Re,autoComplete:ft,editable:Er,activeDescendantId:_e,value:Yr,onKeyDown:At,onMouseDown:tr,onChange:Ht,onPaste:$t,onCompositionStart:Zt,onCompositionEnd:Rt,onBlur:Nt,tabIndex:at,attrs:(0,we.Z)(R,!0)}),d.createElement("span",{ref:kt,className:"".concat(Cr,"-search-mirror"),"aria-hidden":!0},Yr,"\xA0")),ge=d.createElement(k.Z,{prefixCls:"".concat(Cr,"-overflow"),data:g,renderItem:qt,renderRest:Ct,suffix:he,itemKey:De,maxCount:ze});return d.createElement("span",{className:"".concat(Cr,"-wrap")},ge,!g.length&&!Yr&&d.createElement("span",{className:"".concat(Cr,"-placeholder")},Ie))},Lt=Be,pt=function(R){var h=R.inputElement,b=R.prefixCls,g=R.id,m=R.inputRef,j=R.disabled,ae=R.autoFocus,Ce=R.autoComplete,Ie=R.activeDescendantId,Le=R.mode,le=R.open,vt=R.values,Re=R.placeholder,ft=R.tabIndex,_e=R.showSearch,at=R.searchValue,St=R.activeValue,ze=R.maxLength,ke=R.onInputKeyDown,ht=R.onInputMouseDown,et=R.onInputChange,tt=R.onInputPaste,Mt=R.onInputCompositionStart,ar=R.onInputCompositionEnd,Ht=R.onInputBlur,$t=R.title,At=d.useState(!1),tr=(0,L.Z)(At,2),Zt=tr[0],Rt=tr[1],Nt=Le==="combobox",kt=Nt||_e,dr=vt[0],fr=at||"";Nt&&St&&!Zt&&(fr=St),d.useEffect(function(){Nt&&Rt(!1)},[Nt,St]);var rr=Le!=="combobox"&&!le&&!_e?!1:!!fr,ur=$t===void 0?je(dr):$t,xt=d.useMemo(function(){return dr?null:d.createElement("span",{className:"".concat(b,"-selection-placeholder"),style:rr?{visibility:"hidden"}:void 0},Re)},[dr,rr,Re,b]);return d.createElement("span",{className:"".concat(b,"-selection-wrap")},d.createElement("span",{className:"".concat(b,"-selection-search")},d.createElement(Z,{ref:m,prefixCls:b,id:g,open:le,inputElement:h,disabled:j,autoFocus:ae,autoComplete:Ce,editable:kt,activeDescendantId:Ie,value:fr,onKeyDown:ke,onMouseDown:ht,onChange:function(Wr){Rt(!0),et(Wr)},onPaste:tt,onCompositionStart:Mt,onCompositionEnd:ar,onBlur:Ht,tabIndex:ft,attrs:(0,we.Z)(R,!0),maxLength:Nt?ze:void 0})),!Nt&&dr?d.createElement("span",{className:"".concat(b,"-selection-item"),title:ur,style:rr?{visibility:"hidden"}:void 0},dr.label):null,xt)},mt=pt,Ae=function(R,h){var b=(0,d.useRef)(null),g=(0,d.useRef)(!1),m=R.prefixCls,j=R.open,ae=R.mode,Ce=R.showSearch,Ie=R.tokenWithEnter,Le=R.disabled,le=R.prefix,vt=R.autoClearSearchValue,Re=R.onSearch,ft=R.onSearchSubmit,_e=R.onToggleOpen,at=R.onInputKeyDown,St=R.onInputBlur,ze=R.domRef;d.useImperativeHandle(h,function(){return{focus:function(ur){b.current.focus(ur)},blur:function(){b.current.blur()}}});var ke=T(0),ht=(0,L.Z)(ke,2),et=ht[0],tt=ht[1],Mt=function(ur){var xt=ur.which,br=b.current instanceof HTMLTextAreaElement;!br&&j&&(xt===D.Z.UP||xt===D.Z.DOWN)&&ur.preventDefault(),at&&at(ur),xt===D.Z.ENTER&&ae==="tags"&&!g.current&&!j&&(ft==null||ft(ur.target.value)),!(br&&!j&&~[D.Z.UP,D.Z.DOWN,D.Z.LEFT,D.Z.RIGHT].indexOf(xt))&&de(xt)&&_e(!0)},ar=function(){tt(!0)},Ht=(0,d.useRef)(null),$t=function(ur){Re(ur,!0,g.current)!==!1&&_e(!0)},At=function(){g.current=!0},tr=function(ur){g.current=!1,ae!=="combobox"&&$t(ur.target.value)},Zt=function(ur){var xt=ur.target.value;if(Ie&&Ht.current&&/[\r\n]/.test(Ht.current)){var br=Ht.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");xt=xt.replace(br,Ht.current)}Ht.current=null,$t(xt)},Rt=function(ur){var xt=ur.clipboardData,br=xt==null?void 0:xt.getData("text");Ht.current=br||""},Nt=function(ur){var xt=ur.target;if(xt!==b.current){var br=document.body.style.msTouchAction!==void 0;br?setTimeout(function(){b.current.focus()}):b.current.focus()}},kt=function(ur){var xt=et();ur.target!==b.current&&!xt&&!(ae==="combobox"&&Le)&&ur.preventDefault(),(ae!=="combobox"&&(!Ce||!xt)||!j)&&(j&&vt!==!1&&Re("",!0,!1),_e())},dr={inputRef:b,onInputKeyDown:Mt,onInputMouseDown:ar,onInputChange:Zt,onInputPaste:Rt,onInputCompositionStart:At,onInputCompositionEnd:tr,onInputBlur:St},fr=ae==="multiple"||ae==="tags"?d.createElement(Lt,(0,v.Z)({},R,dr)):d.createElement(mt,(0,v.Z)({},R,dr));return d.createElement("div",{ref:ze,className:"".concat(m,"-selector"),onClick:Nt,onMouseDown:kt},le&&d.createElement("div",{className:"".concat(m,"-prefix")},le),fr)},Kt=d.forwardRef(Ae),ye=Kt,A=u(68196),w=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],I=function(R){var h=R===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:h,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:h,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:h,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:h,adjustY:1},htmlRegion:"scroll"}}},S=function(R,h){var b=R.prefixCls,g=R.disabled,m=R.visible,j=R.children,ae=R.popupElement,Ce=R.animation,Ie=R.transitionName,Le=R.dropdownStyle,le=R.dropdownClassName,vt=R.direction,Re=vt===void 0?"ltr":vt,ft=R.placement,_e=R.builtinPlacements,at=R.dropdownMatchSelectWidth,St=R.dropdownRender,ze=R.dropdownAlign,ke=R.getPopupContainer,ht=R.empty,et=R.getTriggerDOMNode,tt=R.onPopupVisibleChange,Mt=R.onPopupMouseEnter,ar=(0,H.Z)(R,w),Ht="".concat(b,"-dropdown"),$t=ae;St&&($t=St(ae));var At=d.useMemo(function(){return _e||I(at)},[_e,at]),tr=Ce?"".concat(Ht,"-").concat(Ce):Ie,Zt=typeof at=="number",Rt=d.useMemo(function(){return Zt?null:at===!1?"minWidth":"width"},[at,Zt]),Nt=Le;Zt&&(Nt=(0,V.Z)((0,V.Z)({},Nt),{},{width:at}));var kt=d.useRef(null);return d.useImperativeHandle(h,function(){return{getPopupElement:function(){var fr;return(fr=kt.current)===null||fr===void 0?void 0:fr.popupElement}}}),d.createElement(A.Z,(0,v.Z)({},ar,{showAction:tt?["click"]:[],hideAction:tt?["click"]:[],popupPlacement:ft||(Re==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:At,prefixCls:Ht,popupTransitionName:tr,popup:d.createElement("div",{onMouseEnter:Mt},$t),ref:kt,stretch:Rt,popupAlign:ze,popupVisible:m,getPopupContainer:ke,popupClassName:P()(le,(0,p.Z)({},"".concat(Ht,"-empty"),ht)),popupStyle:Nt,getTriggerDOMNode:et,onPopupVisibleChange:tt}),j)},K=d.forwardRef(S),te=K,q=u(48745);function Q(O,R){var h=O.key,b;return"value"in O&&(b=O.value),h!=null?h:b!==void 0?b:"rc-index-key-".concat(R)}function Se(O){return typeof O!="undefined"&&!Number.isNaN(O)}function ue(O,R){var h=O||{},b=h.label,g=h.value,m=h.options,j=h.groupLabel,ae=b||(R?"children":"label");return{label:ae,value:g||"value",options:m||"options",groupLabel:j||ae}}function ve(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=R.fieldNames,b=R.childrenAsData,g=[],m=ue(h,!1),j=m.label,ae=m.value,Ce=m.options,Ie=m.groupLabel;function Le(le,vt){Array.isArray(le)&&le.forEach(function(Re){if(vt||!(Ce in Re)){var ft=Re[ae];g.push({key:Q(Re,g.length),groupOption:vt,data:Re,label:Re[j],value:ft})}else{var _e=Re[Ie];_e===void 0&&b&&(_e=Re.label),g.push({key:Q(Re,g.length),group:!0,data:Re,label:_e}),Le(Re[Ce],!0)}})}return Le(O,!1),g}function pe(O){var R=(0,V.Z)({},O);return"props"in R||Object.defineProperty(R,"props",{get:function(){return(0,_.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),R}}),R}var Oe=function(R,h,b){if(!h||!h.length)return null;var g=!1,m=function ae(Ce,Ie){var Le=(0,q.Z)(Ie),le=Le[0],vt=Le.slice(1);if(!le)return[Ce];var Re=Ce.split(le);return g=g||Re.length>1,Re.reduce(function(ft,_e){return[].concat((0,F.Z)(ft),(0,F.Z)(ae(_e,vt)))},[]).filter(Boolean)},j=m(R,h);return g?typeof b!="undefined"?j.slice(0,b):j:null},me=d.createContext(null),ie=me;function be(O){var R=O.visible,h=O.values;if(!R)return null;var b=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(h.slice(0,b).map(function(g){var m=g.label,j=g.value;return["number","string"].includes((0,N.Z)(m))?m:j}).join(", ")),h.length>b?", ...":null)}var ce=["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"],Ke=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Pe=function(R){return R==="tags"||R==="multiple"},Ze=d.forwardRef(function(O,R){var h,b=O.id,g=O.prefixCls,m=O.className,j=O.showSearch,ae=O.tagRender,Ce=O.direction,Ie=O.omitDomProps,Le=O.displayValues,le=O.onDisplayValuesChange,vt=O.emptyOptions,Re=O.notFoundContent,ft=Re===void 0?"Not Found":Re,_e=O.onClear,at=O.mode,St=O.disabled,ze=O.loading,ke=O.getInputElement,ht=O.getRawInputElement,et=O.open,tt=O.defaultOpen,Mt=O.onDropdownVisibleChange,ar=O.activeValue,Ht=O.onActiveValueChange,$t=O.activeDescendantId,At=O.searchValue,tr=O.autoClearSearchValue,Zt=O.onSearch,Rt=O.onSearchSplit,Nt=O.tokenSeparators,kt=O.allowClear,dr=O.prefix,fr=O.suffixIcon,rr=O.clearIcon,ur=O.OptionList,xt=O.animation,br=O.transitionName,Wr=O.dropdownStyle,Xr=O.dropdownClassName,Cr=O.dropdownMatchSelectWidth,Yr=O.dropdownRender,Er=O.dropdownAlign,Ur=O.placement,$r=O.builtinPlacements,qt=O.getPopupContainer,Ct=O.showAction,he=Ct===void 0?[]:Ct,ge=O.onFocus,qe=O.onBlur,Ve=O.onKeyUp,Ft=O.onKeyDown,vr=O.onMouseDown,Ut=(0,H.Z)(O,ce),gr=Pe(at),Nr=(j!==void 0?j:gr)||at==="combobox",Zr=(0,V.Z)({},Ut);Ke.forEach(function(Pr){delete Zr[Pr]}),Ie==null||Ie.forEach(function(Pr){delete Zr[Pr]});var Tr=d.useState(!1),kr=(0,L.Z)(Tr,2),Lr=kr[0],en=kr[1];d.useEffect(function(){en((0,$.Z)())},[]);var hn=d.useRef(null),rn=d.useRef(null),Br=d.useRef(null),_r=d.useRef(null),Vr=d.useRef(null),sn=d.useRef(!1),Ln=y(),Zn=(0,L.Z)(Ln,3),Sn=Zn[0],gn=Zn[1],Jn=Zn[2];d.useImperativeHandle(R,function(){var Pr,yr;return{focus:(Pr=_r.current)===null||Pr===void 0?void 0:Pr.focus,blur:(yr=_r.current)===null||yr===void 0?void 0:yr.blur,scrollTo:function(On){var an;return(an=Vr.current)===null||an===void 0?void 0:an.scrollTo(On)},nativeElement:hn.current||rn.current}});var En=d.useMemo(function(){var Pr;if(at!=="combobox")return At;var yr=(Pr=Le[0])===null||Pr===void 0?void 0:Pr.value;return typeof yr=="string"||typeof yr=="number"?String(yr):""},[At,at,Le]),ni=at==="combobox"&&typeof ke=="function"&&ke()||null,nn=typeof ht=="function"&&ht(),Hn=(0,Ne.x1)(rn,nn==null||(h=nn.props)===null||h===void 0?void 0:h.ref),ui=d.useState(!1),ii=(0,L.Z)(ui,2),di=ii[0],jn=ii[1];(0,re.Z)(function(){jn(!0)},[]);var Jr=(0,ee.Z)(!1,{defaultValue:tt,value:et}),fn=(0,L.Z)(Jr,2),Kn=fn[0],Dn=fn[1],Ar=di?Kn:!1,Un=!ft&&vt;(St||Un&&Ar&&at==="combobox")&&(Ar=!1);var Vn=Un?!1:Ar,Pt=d.useCallback(function(Pr){var yr=Pr!==void 0?Pr:!Ar;St||(Dn(yr),Ar!==yr&&(Mt==null||Mt(yr)))},[St,Ar,Dn,Mt]),er=d.useMemo(function(){return(Nt||[]).some(function(Pr){return[`
`,`\r
`].includes(Pr)})},[Nt]),Yt=d.useContext(ie)||{},nr=Yt.maxCount,Rr=Yt.rawValues,Hr=function(yr,xn,On){if(!(gr&&Se(nr)&&(Rr==null?void 0:Rr.size)>=nr)){var an=!0,dn=yr;Ht==null||Ht(null);var oi=Oe(yr,Nt,Se(nr)?nr-Rr.size:void 0),ri=On?null:oi;return at!=="combobox"&&ri&&(dn="",Rt==null||Rt(ri),Pt(!1),an=!1),Zt&&En!==dn&&Zt(dn,{source:xn?"typing":"effect"}),an}},$n=function(yr){!yr||!yr.trim()||Zt(yr,{source:"submit"})};d.useEffect(function(){!Ar&&!gr&&at!=="combobox"&&Hr("",!1,!1)},[Ar]),d.useEffect(function(){Kn&&St&&Dn(!1),St&&!sn.current&&gn(!1)},[St]);var ct=T(),Tt=(0,L.Z)(ct,2),pr=Tt[0],jr=Tt[1],Fr=d.useRef(!1),pn=function(yr){var xn=pr(),On=yr.key,an=On==="Enter";if(an&&(at!=="combobox"&&yr.preventDefault(),Ar||Pt(!0)),jr(!!En),On==="Backspace"&&!xn&&gr&&!En&&Le.length){for(var dn=(0,F.Z)(Le),oi=null,ri=dn.length-1;ri>=0;ri-=1){var vi=dn[ri];if(!vi.disabled){dn.splice(ri,1),oi=vi;break}}oi&&le(dn,{type:"remove",values:[oi]})}for(var _n=arguments.length,Xn=new Array(_n>1?_n-1:0),ai=1;ai<_n;ai++)Xn[ai-1]=arguments[ai];if(Ar&&(!an||!Fr.current)){var mi;an&&(Fr.current=!0),(mi=Vr.current)===null||mi===void 0||mi.onKeyDown.apply(mi,[yr].concat(Xn))}Ft==null||Ft.apply(void 0,[yr].concat(Xn))},Gn=function(yr){for(var xn=arguments.length,On=new Array(xn>1?xn-1:0),an=1;an<xn;an++)On[an-1]=arguments[an];if(Ar){var dn;(dn=Vr.current)===null||dn===void 0||dn.onKeyUp.apply(dn,[yr].concat(On))}yr.key==="Enter"&&(Fr.current=!1),Ve==null||Ve.apply(void 0,[yr].concat(On))},ei=function(yr){var xn=Le.filter(function(On){return On!==yr});le(xn,{type:"remove",values:[yr]})},Rn=function(){Fr.current=!1},Ai=d.useRef(!1),Qo=function(){gn(!0),St||(ge&&!Ai.current&&ge.apply(void 0,arguments),he.includes("focus")&&Pt(!0)),Ai.current=!0},Eo=function(){sn.current=!0,gn(!1,function(){Ai.current=!1,sn.current=!1,Pt(!1)}),!St&&(En&&(at==="tags"?Zt(En,{source:"submit"}):at==="multiple"&&Zt("",{source:"blur"})),qe&&qe.apply(void 0,arguments))},ci=[];d.useEffect(function(){return function(){ci.forEach(function(Pr){return clearTimeout(Pr)}),ci.splice(0,ci.length)}},[]);var pi=function(yr){var xn,On=yr.target,an=(xn=Br.current)===null||xn===void 0?void 0:xn.getPopupElement();if(an&&an.contains(On)){var dn=setTimeout(function(){var _n=ci.indexOf(dn);if(_n!==-1&&ci.splice(_n,1),Jn(),!Lr&&!an.contains(document.activeElement)){var Xn;(Xn=_r.current)===null||Xn===void 0||Xn.focus()}});ci.push(dn)}for(var oi=arguments.length,ri=new Array(oi>1?oi-1:0),vi=1;vi<oi;vi++)ri[vi-1]=arguments[vi];vr==null||vr.apply(void 0,[yr].concat(ri))},ti=d.useState({}),Oo=(0,L.Z)(ti,2),Mo=Oo[1];function Jo(){Mo({})}var Io;nn&&(Io=function(yr){Pt(yr)}),J(function(){var Pr;return[hn.current,(Pr=Br.current)===null||Pr===void 0?void 0:Pr.getPopupElement()]},Vn,Pt,!!nn);var ko=d.useMemo(function(){return(0,V.Z)((0,V.Z)({},O),{},{notFoundContent:ft,open:Ar,triggerOpen:Vn,id:b,showSearch:Nr,multiple:gr,toggleOpen:Pt})},[O,ft,Vn,Ar,b,Nr,gr,Pt]),ki=!!fr||ze,qi;ki&&(qi=d.createElement(Ye,{className:P()("".concat(g,"-arrow"),(0,p.Z)({},"".concat(g,"-arrow-loading"),ze)),customizeIcon:fr,customizeIconProps:{loading:ze,searchValue:En,open:Ar,focused:Sn,showSearch:Nr}}));var Mi=function(){var yr;_e==null||_e(),(yr=_r.current)===null||yr===void 0||yr.focus(),le([],{type:"clear",values:Le}),Hr("",!1,!1)},eo=We(g,Mi,Le,kt,rr,St,En,at),Ro=eo.allowClear,to=eo.clearIcon,Bi=d.createElement(ur,{ref:Vr}),Po=P()(g,m,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(g,"-focused"),Sn),"".concat(g,"-multiple"),gr),"".concat(g,"-single"),!gr),"".concat(g,"-allow-clear"),kt),"".concat(g,"-show-arrow"),ki),"".concat(g,"-disabled"),St),"".concat(g,"-loading"),ze),"".concat(g,"-open"),Ar),"".concat(g,"-customize-input"),ni),"".concat(g,"-show-search"),Nr)),Fi=d.createElement(te,{ref:Br,disabled:St,prefixCls:g,visible:Vn,popupElement:Bi,animation:xt,transitionName:br,dropdownStyle:Wr,dropdownClassName:Xr,direction:Ce,dropdownMatchSelectWidth:Cr,dropdownRender:Yr,dropdownAlign:Er,placement:Ur,builtinPlacements:$r,getPopupContainer:qt,empty:vt,getTriggerDOMNode:function(yr){return rn.current||yr},onPopupVisibleChange:Io,onPopupMouseEnter:Jo},nn?d.cloneElement(nn,{ref:Hn}):d.createElement(ye,(0,v.Z)({},O,{domRef:rn,prefixCls:g,inputElement:ni,ref:_r,id:b,prefix:dr,showSearch:Nr,autoClearSearchValue:tr,mode:at,activeDescendantId:$t,tagRender:ae,values:Le,open:Ar,onToggleOpen:Pt,activeValue:ar,searchValue:En,onSearch:Hr,onSearchSubmit:$n,onRemove:ei,tokenWithEnter:er,onInputBlur:Rn}))),Nn;return nn?Nn=Fi:Nn=d.createElement("div",(0,v.Z)({className:Po},Zr,{ref:hn,onMouseDown:pi,onKeyDown:pn,onKeyUp:Gn,onFocus:Qo,onBlur:Eo}),d.createElement(be,{visible:Sn&&!Ar,values:Le}),Fi,qi,Ro&&to),d.createElement(x.Provider,{value:ko},Nn)}),$e=Ze,dt=function(){return null};dt.isSelectOptGroup=!0;var it=dt,Fe=function(){return null};Fe.isSelectOption=!0;var ot=Fe,Et=u(80547),gt=u(2738),Ot=u(48911);function or(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var st=["disabled","title","children","style","className"];function ut(O){return typeof O=="string"||typeof O=="number"}var Vt=function(R,h){var b=Y(),g=b.prefixCls,m=b.id,j=b.open,ae=b.multiple,Ce=b.mode,Ie=b.searchValue,Le=b.toggleOpen,le=b.notFoundContent,vt=b.onPopupScroll,Re=d.useContext(ie),ft=Re.maxCount,_e=Re.flattenOptions,at=Re.onActiveValue,St=Re.defaultActiveFirstOption,ze=Re.onSelect,ke=Re.menuItemSelectedIcon,ht=Re.rawValues,et=Re.fieldNames,tt=Re.virtual,Mt=Re.direction,ar=Re.listHeight,Ht=Re.listItemHeight,$t=Re.optionRender,At="".concat(g,"-item"),tr=(0,Et.Z)(function(){return _e},[j,_e],function(Ct,he){return he[0]&&Ct[1]!==he[1]}),Zt=d.useRef(null),Rt=d.useMemo(function(){return ae&&Se(ft)&&(ht==null?void 0:ht.size)>=ft},[ae,ft,ht==null?void 0:ht.size]),Nt=function(he){he.preventDefault()},kt=function(he){var ge;(ge=Zt.current)===null||ge===void 0||ge.scrollTo(typeof he=="number"?{index:he}:he)},dr=d.useCallback(function(Ct){return Ce==="combobox"?!1:ht.has(Ct)},[Ce,(0,F.Z)(ht).toString(),ht.size]),fr=function(he){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,qe=tr.length,Ve=0;Ve<qe;Ve+=1){var Ft=(he+Ve*ge+qe)%qe,vr=tr[Ft]||{},Ut=vr.group,gr=vr.data;if(!Ut&&!(gr!=null&&gr.disabled)&&(dr(gr.value)||!Rt))return Ft}return-1},rr=d.useState(function(){return fr(0)}),ur=(0,L.Z)(rr,2),xt=ur[0],br=ur[1],Wr=function(he){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;br(he);var qe={source:ge?"keyboard":"mouse"},Ve=tr[he];if(!Ve){at(null,-1,qe);return}at(Ve.value,he,qe)};(0,d.useEffect)(function(){Wr(St!==!1?fr(0):-1)},[tr.length,Ie]);var Xr=d.useCallback(function(Ct){return Ce==="combobox"?String(Ct).toLowerCase()===Ie.toLowerCase():ht.has(Ct)},[Ce,Ie,(0,F.Z)(ht).toString(),ht.size]);(0,d.useEffect)(function(){var Ct=setTimeout(function(){if(!ae&&j&&ht.size===1){var ge=Array.from(ht)[0],qe=tr.findIndex(function(Ve){var Ft=Ve.data;return Ie?String(Ft.value).startsWith(Ie):Ft.value===ge});qe!==-1&&(Wr(qe),kt(qe))}});if(j){var he;(he=Zt.current)===null||he===void 0||he.scrollTo(void 0)}return function(){return clearTimeout(Ct)}},[j,Ie]);var Cr=function(he){he!==void 0&&ze(he,{selected:!ht.has(he)}),ae||Le(!1)};if(d.useImperativeHandle(h,function(){return{onKeyDown:function(he){var ge=he.which,qe=he.ctrlKey;switch(ge){case D.Z.N:case D.Z.P:case D.Z.UP:case D.Z.DOWN:{var Ve=0;if(ge===D.Z.UP?Ve=-1:ge===D.Z.DOWN?Ve=1:or()&&qe&&(ge===D.Z.N?Ve=1:ge===D.Z.P&&(Ve=-1)),Ve!==0){var Ft=fr(xt+Ve,Ve);kt(Ft),Wr(Ft,!0)}break}case D.Z.TAB:case D.Z.ENTER:{var vr,Ut=tr[xt];Ut&&!(Ut!=null&&(vr=Ut.data)!==null&&vr!==void 0&&vr.disabled)&&!Rt?Cr(Ut.value):Cr(void 0),j&&he.preventDefault();break}case D.Z.ESC:Le(!1),j&&he.stopPropagation()}},onKeyUp:function(){},scrollTo:function(he){kt(he)}}}),tr.length===0)return d.createElement("div",{role:"listbox",id:"".concat(m,"_list"),className:"".concat(At,"-empty"),onMouseDown:Nt},le);var Yr=Object.keys(et).map(function(Ct){return et[Ct]}),Er=function(he){return he.label};function Ur(Ct,he){var ge=Ct.group;return{role:ge?"presentation":"option",id:"".concat(m,"_list_").concat(he)}}var $r=function(he){var ge=tr[he];if(!ge)return null;var qe=ge.data||{},Ve=qe.value,Ft=ge.group,vr=(0,we.Z)(qe,!0),Ut=Er(ge);return ge?d.createElement("div",(0,v.Z)({"aria-label":typeof Ut=="string"&&!Ft?Ut:null},vr,{key:he},Ur(ge,he),{"aria-selected":Xr(Ve)}),Ve):null},qt={role:"listbox",id:"".concat(m,"_list")};return d.createElement(d.Fragment,null,tt&&d.createElement("div",(0,v.Z)({},qt,{style:{height:0,width:0,overflow:"hidden"}}),$r(xt-1),$r(xt),$r(xt+1)),d.createElement(Ot.Z,{itemKey:"key",ref:Zt,data:tr,height:ar,itemHeight:Ht,fullHeight:!1,onMouseDown:Nt,onScroll:vt,virtual:tt,direction:Mt,innerProps:tt?null:qt},function(Ct,he){var ge=Ct.group,qe=Ct.groupOption,Ve=Ct.data,Ft=Ct.label,vr=Ct.value,Ut=Ve.key;if(ge){var gr,Nr=(gr=Ve.title)!==null&&gr!==void 0?gr:ut(Ft)?Ft.toString():void 0;return d.createElement("div",{className:P()(At,"".concat(At,"-group"),Ve.className),title:Nr},Ft!==void 0?Ft:Ut)}var Zr=Ve.disabled,Tr=Ve.title,kr=Ve.children,Lr=Ve.style,en=Ve.className,hn=(0,H.Z)(Ve,st),rn=(0,gt.Z)(hn,Yr),Br=dr(vr),_r=Zr||!Br&&Rt,Vr="".concat(At,"-option"),sn=P()(At,Vr,en,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(Vr,"-grouped"),qe),"".concat(Vr,"-active"),xt===he&&!_r),"".concat(Vr,"-disabled"),_r),"".concat(Vr,"-selected"),Br)),Ln=Er(Ct),Zn=!ke||typeof ke=="function"||Br,Sn=typeof Ln=="number"?Ln:Ln||vr,gn=ut(Sn)?Sn.toString():void 0;return Tr!==void 0&&(gn=Tr),d.createElement("div",(0,v.Z)({},(0,we.Z)(rn),tt?{}:Ur(Ct,he),{"aria-selected":Xr(vr),className:sn,title:gn,onMouseMove:function(){xt===he||_r||Wr(he)},onClick:function(){_r||Cr(vr)},style:Lr}),d.createElement("div",{className:"".concat(Vr,"-content")},typeof $t=="function"?$t(Ct,{index:he}):Sn),d.isValidElement(ke)||Br,Zn&&d.createElement(Ye,{className:"".concat(At,"-option-state"),customizeIcon:ke,customizeIconProps:{value:vr,disabled:_r,isSelected:Br}},Br?"\u2713":null))}))},Qt=d.forwardRef(Vt),Gt=Qt,_t=function(O,R){var h=d.useRef({values:new Map,options:new Map}),b=d.useMemo(function(){var m=h.current,j=m.values,ae=m.options,Ce=O.map(function(le){if(le.label===void 0){var vt;return(0,V.Z)((0,V.Z)({},le),{},{label:(vt=j.get(le.value))===null||vt===void 0?void 0:vt.label})}return le}),Ie=new Map,Le=new Map;return Ce.forEach(function(le){Ie.set(le.value,le),Le.set(le.value,R.get(le.value)||ae.get(le.value))}),h.current.values=Ie,h.current.options=Le,Ce},[O,R]),g=d.useCallback(function(m){return R.get(m)||h.current.options.get(m)},[R]);return[b,g]};function yt(O,R){return E(O).join("").toUpperCase().includes(R)}var It=function(O,R,h,b,g){return d.useMemo(function(){if(!h||b===!1)return O;var m=R.options,j=R.label,ae=R.value,Ce=[],Ie=typeof b=="function",Le=h.toUpperCase(),le=Ie?b:function(Re,ft){return g?yt(ft[g],Le):ft[m]?yt(ft[j!=="children"?j:"label"],Le):yt(ft[ae],Le)},vt=Ie?function(Re){return pe(Re)}:function(Re){return Re};return O.forEach(function(Re){if(Re[m]){var ft=le(h,vt(Re));if(ft)Ce.push(Re);else{var _e=Re[m].filter(function(at){return le(h,vt(at))});_e.length&&Ce.push((0,V.Z)((0,V.Z)({},Re),{},(0,p.Z)({},m,_e)))}return}le(h,vt(Re))&&Ce.push(Re)}),Ce},[O,b,g,h,R])},Dt=u(6551),sr=u(11592),Xe=["children","value"],zt=["children"];function Jt(O){var R=O,h=R.key,b=R.props,g=b.children,m=b.value,j=(0,H.Z)(b,Xe);return(0,V.Z)({key:h,value:m!==void 0?m:h,children:g},j)}function xr(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,sr.Z)(O).map(function(h,b){if(!d.isValidElement(h)||!h.type)return null;var g=h,m=g.type.isSelectOptGroup,j=g.key,ae=g.props,Ce=ae.children,Ie=(0,H.Z)(ae,zt);return R||!m?Jt(h):(0,V.Z)((0,V.Z)({key:"__RC_SELECT_GRP__".concat(j===null?b:j,"__"),label:j},Ie),{},{options:xr(Ce)})}).filter(function(h){return h})}var cr=function(R,h,b,g,m){return d.useMemo(function(){var j=R,ae=!R;ae&&(j=xr(h));var Ce=new Map,Ie=new Map,Le=function(Re,ft,_e){_e&&typeof _e=="string"&&Re.set(ft[_e],ft)},le=function vt(Re){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=0;_e<Re.length;_e+=1){var at=Re[_e];!at[b.options]||ft?(Ce.set(at[b.value],at),Le(Ie,at,b.label),Le(Ie,at,g),Le(Ie,at,m)):vt(at[b.options],!0)}};return le(j),{options:j,valueOptions:Ce,labelOptions:Ie}},[R,h,b,g,m])},Or=cr;function Mr(O){var R=d.useRef();R.current=O;var h=d.useCallback(function(){return R.current.apply(R,arguments)},[]);return h}function Ir(O){var R=O.mode,h=O.options,b=O.children,g=O.backfill,m=O.allowClear,j=O.placeholder,ae=O.getInputElement,Ce=O.showSearch,Ie=O.onSearch,Le=O.defaultOpen,le=O.autoFocus,vt=O.labelInValue,Re=O.value,ft=O.inputValue,_e=O.optionLabelProp,at=isMultiple(R),St=Ce!==void 0?Ce:at||R==="combobox",ze=h||convertChildrenToData(b);if(warning(R!=="tags"||ze.every(function(tt){return!tt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),R==="tags"||R==="combobox"){var ke=ze.some(function(tt){return tt.options?tt.options.some(function(Mt){return typeof("value"in Mt?Mt.value:Mt.key)=="number"}):typeof("value"in tt?tt.value:tt.key)=="number"});warning(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(R!=="combobox"||!_e,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(R==="combobox"||!g,"`backfill` only works with `combobox` mode."),warning(R==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),noteOnce(R!=="combobox"||!ae||!m||!j,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ie&&!St&&R!=="combobox"&&R!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Le||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Re!=null){var ht=toArray(Re);warning(!vt||ht.every(function(tt){return _typeof(tt)==="object"&&("key"in tt||"value"in tt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!at||Array.isArray(Re),"`value` should be array when `mode` is `multiple` or `tags`")}if(b){var et=null;toNodeArray(b).some(function(tt){if(!React.isValidElement(tt)||!tt.type)return!1;var Mt=tt,ar=Mt.type;if(ar.isSelectOption)return!1;if(ar.isSelectOptGroup){var Ht=toNodeArray(tt.props.children).every(function($t){return!React.isValidElement($t)||!tt.type||$t.type.isSelectOption?!0:(et=$t.type,!1)});return!Ht}return et=ar,!0}),et&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(et.displayName||et.name||et,"`.")),warning(ft===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Dr(O,R){if(O){var h=function b(g){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,j=0;j<g.length;j++){var ae=g[j];if(ae[R==null?void 0:R.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!m&&Array.isArray(ae[R==null?void 0:R.options])&&b(ae[R==null?void 0:R.options],!0))break}};h(O)}}var hr=null,Wt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],mr=["inputValue"];function Bt(O){return!O||(0,N.Z)(O)!=="object"}var Me=d.forwardRef(function(O,R){var h=O.id,b=O.mode,g=O.prefixCls,m=g===void 0?"rc-select":g,j=O.backfill,ae=O.fieldNames,Ce=O.inputValue,Ie=O.searchValue,Le=O.onSearch,le=O.autoClearSearchValue,vt=le===void 0?!0:le,Re=O.onSelect,ft=O.onDeselect,_e=O.dropdownMatchSelectWidth,at=_e===void 0?!0:_e,St=O.filterOption,ze=O.filterSort,ke=O.optionFilterProp,ht=O.optionLabelProp,et=O.options,tt=O.optionRender,Mt=O.children,ar=O.defaultActiveFirstOption,Ht=O.menuItemSelectedIcon,$t=O.virtual,At=O.direction,tr=O.listHeight,Zt=tr===void 0?200:tr,Rt=O.listItemHeight,Nt=Rt===void 0?20:Rt,kt=O.labelRender,dr=O.value,fr=O.defaultValue,rr=O.labelInValue,ur=O.onChange,xt=O.maxCount,br=(0,H.Z)(O,Wt),Wr=(0,Dt.ZP)(h),Xr=Pe(b),Cr=!!(!et&&Mt),Yr=d.useMemo(function(){return St===void 0&&b==="combobox"?!1:St},[St,b]),Er=d.useMemo(function(){return ue(ae,Cr)},[JSON.stringify(ae),Cr]),Ur=(0,ee.Z)("",{value:Ie!==void 0?Ie:Ce,postState:function(er){return er||""}}),$r=(0,L.Z)(Ur,2),qt=$r[0],Ct=$r[1],he=Or(et,Mt,Er,ke,ht),ge=he.valueOptions,qe=he.labelOptions,Ve=he.options,Ft=d.useCallback(function(Pt){var er=E(Pt);return er.map(function(Yt){var nr,Rr,Hr,$n,ct;if(Bt(Yt))nr=Yt;else{var Tt;Hr=Yt.key,Rr=Yt.label,nr=(Tt=Yt.value)!==null&&Tt!==void 0?Tt:Hr}var pr=ge.get(nr);if(pr){var jr;if(Rr===void 0&&(Rr=pr==null?void 0:pr[ht||Er.label]),Hr===void 0&&(Hr=(jr=pr==null?void 0:pr.key)!==null&&jr!==void 0?jr:nr),$n=pr==null?void 0:pr.disabled,ct=pr==null?void 0:pr.title,0)var Fr}return{label:Rr,value:nr,key:Hr,disabled:$n,title:ct}})},[Er,ht,ge]),vr=(0,ee.Z)(fr,{value:dr}),Ut=(0,L.Z)(vr,2),gr=Ut[0],Nr=Ut[1],Zr=d.useMemo(function(){var Pt,er=Xr&&gr===null?[]:gr,Yt=Ft(er);return b==="combobox"&&Ee((Pt=Yt[0])===null||Pt===void 0?void 0:Pt.value)?[]:Yt},[gr,Ft,b,Xr]),Tr=_t(Zr,ge),kr=(0,L.Z)(Tr,2),Lr=kr[0],en=kr[1],hn=d.useMemo(function(){if(!b&&Lr.length===1){var Pt=Lr[0];if(Pt.value===null&&(Pt.label===null||Pt.label===void 0))return[]}return Lr.map(function(er){var Yt;return(0,V.Z)((0,V.Z)({},er),{},{label:(Yt=typeof kt=="function"?kt(er):er.label)!==null&&Yt!==void 0?Yt:er.value})})},[b,Lr,kt]),rn=d.useMemo(function(){return new Set(Lr.map(function(Pt){return Pt.value}))},[Lr]);d.useEffect(function(){if(b==="combobox"){var Pt,er=(Pt=Lr[0])===null||Pt===void 0?void 0:Pt.value;Ct(ne(er)?String(er):"")}},[Lr]);var Br=Mr(function(Pt,er){var Yt=er!=null?er:Pt;return(0,p.Z)((0,p.Z)({},Er.value,Pt),Er.label,Yt)}),_r=d.useMemo(function(){if(b!=="tags")return Ve;var Pt=(0,F.Z)(Ve),er=function(nr){return ge.has(nr)};return(0,F.Z)(Lr).sort(function(Yt,nr){return Yt.value<nr.value?-1:1}).forEach(function(Yt){var nr=Yt.value;er(nr)||Pt.push(Br(nr,Yt.label))}),Pt},[Br,Ve,ge,Lr,b]),Vr=It(_r,Er,qt,Yr,ke),sn=d.useMemo(function(){return b!=="tags"||!qt||Vr.some(function(Pt){return Pt[ke||"value"]===qt})||Vr.some(function(Pt){return Pt[Er.value]===qt})?Vr:[Br(qt)].concat((0,F.Z)(Vr))},[Br,ke,b,Vr,qt,Er]),Ln=function Pt(er){var Yt=(0,F.Z)(er).sort(function(nr,Rr){return ze(nr,Rr,{searchValue:qt})});return Yt.map(function(nr){return Array.isArray(nr.options)?(0,V.Z)((0,V.Z)({},nr),{},{options:nr.options.length>0?Pt(nr.options):nr.options}):nr})},Zn=d.useMemo(function(){return ze?Ln(sn):sn},[sn,ze,qt]),Sn=d.useMemo(function(){return ve(Zn,{fieldNames:Er,childrenAsData:Cr})},[Zn,Er,Cr]),gn=function(er){var Yt=Ft(er);if(Nr(Yt),ur&&(Yt.length!==Lr.length||Yt.some(function(Hr,$n){var ct;return((ct=Lr[$n])===null||ct===void 0?void 0:ct.value)!==(Hr==null?void 0:Hr.value)}))){var nr=rr?Yt:Yt.map(function(Hr){return Hr.value}),Rr=Yt.map(function(Hr){return pe(en(Hr.value))});ur(Xr?nr:nr[0],Xr?Rr:Rr[0])}},Jn=d.useState(null),En=(0,L.Z)(Jn,2),ni=En[0],nn=En[1],Hn=d.useState(0),ui=(0,L.Z)(Hn,2),ii=ui[0],di=ui[1],jn=ar!==void 0?ar:b!=="combobox",Jr=d.useCallback(function(Pt,er){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nr=Yt.source,Rr=nr===void 0?"keyboard":nr;di(er),j&&b==="combobox"&&Pt!==null&&Rr==="keyboard"&&nn(String(Pt))},[j,b]),fn=function(er,Yt,nr){var Rr=function(){var ei,Rn=en(er);return[rr?{label:Rn==null?void 0:Rn[Er.label],value:er,key:(ei=Rn==null?void 0:Rn.key)!==null&&ei!==void 0?ei:er}:er,pe(Rn)]};if(Yt&&Re){var Hr=Rr(),$n=(0,L.Z)(Hr,2),ct=$n[0],Tt=$n[1];Re(ct,Tt)}else if(!Yt&&ft&&nr!=="clear"){var pr=Rr(),jr=(0,L.Z)(pr,2),Fr=jr[0],pn=jr[1];ft(Fr,pn)}},Kn=Mr(function(Pt,er){var Yt,nr=Xr?er.selected:!0;nr?Yt=Xr?[].concat((0,F.Z)(Lr),[Pt]):[Pt]:Yt=Lr.filter(function(Rr){return Rr.value!==Pt}),gn(Yt),fn(Pt,nr),b==="combobox"?nn(""):(!Pe||vt)&&(Ct(""),nn(""))}),Dn=function(er,Yt){gn(er);var nr=Yt.type,Rr=Yt.values;(nr==="remove"||nr==="clear")&&Rr.forEach(function(Hr){fn(Hr.value,!1,nr)})},Ar=function(er,Yt){if(Ct(er),nn(null),Yt.source==="submit"){var nr=(er||"").trim();if(nr){var Rr=Array.from(new Set([].concat((0,F.Z)(rn),[nr])));gn(Rr),fn(nr,!0),Ct("")}return}Yt.source!=="blur"&&(b==="combobox"&&gn(er),Le==null||Le(er))},Un=function(er){var Yt=er;b!=="tags"&&(Yt=er.map(function(Rr){var Hr=qe.get(Rr);return Hr==null?void 0:Hr.value}).filter(function(Rr){return Rr!==void 0}));var nr=Array.from(new Set([].concat((0,F.Z)(rn),(0,F.Z)(Yt))));gn(nr),nr.forEach(function(Rr){fn(Rr,!0)})},Vn=d.useMemo(function(){var Pt=$t!==!1&&at!==!1;return(0,V.Z)((0,V.Z)({},he),{},{flattenOptions:Sn,onActiveValue:Jr,defaultActiveFirstOption:jn,onSelect:Kn,menuItemSelectedIcon:Ht,rawValues:rn,fieldNames:Er,virtual:Pt,direction:At,listHeight:Zt,listItemHeight:Nt,childrenAsData:Cr,maxCount:xt,optionRender:tt})},[xt,he,Sn,Jr,jn,Kn,Ht,rn,Er,$t,at,At,Zt,Nt,Cr,tt]);return d.createElement(ie.Provider,{value:Vn},d.createElement($e,(0,v.Z)({},br,{id:Wr,prefixCls:m,ref:R,omitDomProps:mr,mode:b,displayValues:hn,onDisplayValuesChange:Dn,direction:At,searchValue:qt,onSearch:Ar,autoClearSearchValue:vt,onSearchSplit:Un,dropdownMatchSelectWidth:at,OptionList:Gt,emptyOptions:!Sn.length,activeValue:ni,activeDescendantId:"".concat(Wr,"_list_").concat(ii)})))}),Xt=Me;Xt.Option=ot,Xt.OptGroup=it;var zr=Xt,wr=zr},22711:function(lr,xe,u){"use strict";u.r(xe),u.d(xe,{ResizableTextArea:function(){return lt},default:function(){return Z}});var v=u(60499),F=u(18642),p=u(85899),V=u(77654),L=u(72190),H=u(42244),N=u(92310),ee=u.n(N),_=u(36901),d=u(66003),X=u(30292),P=u(18929),re=u(59301),$=u(43749),Ne=u(29301),Ue=u(34280),Ye=u(16089),We=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,x=["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={},y;function T(E){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,z=E.getAttribute("id")||E.getAttribute("data-reactid")||E.getAttribute("name");if(se&&Y[z])return Y[z];var ne=window.getComputedStyle(E),Ee=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),je=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),Qe=x.map(function(Je){return"".concat(Je,":").concat(ne.getPropertyValue(Je))}).join(";"),De={sizingStyle:Qe,paddingSize:oe,borderSize:je,boxSizing:Ee};return se&&z&&(Y[z]=De),De}function J(E){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;y||(y=document.createElement("textarea"),y.setAttribute("tab-index","-1"),y.setAttribute("aria-hidden","true"),y.setAttribute("name","hiddenTextarea"),document.body.appendChild(y)),E.getAttribute("wrap")?y.setAttribute("wrap",E.getAttribute("wrap")):y.removeAttribute("wrap");var Ee=T(E,se),oe=Ee.paddingSize,je=Ee.borderSize,Qe=Ee.boxSizing,De=Ee.sizingStyle;y.setAttribute("style","".concat(De,";").concat(We)),y.value=E.value||E.placeholder||"";var Je=void 0,Be=void 0,Lt,pt=y.scrollHeight;if(Qe==="border-box"?pt+=je:Qe==="content-box"&&(pt-=oe),z!==null||ne!==null){y.value=" ";var mt=y.scrollHeight-oe;z!==null&&(Je=mt*z,Qe==="border-box"&&(Je=Je+oe+je),pt=Math.max(Je,pt)),ne!==null&&(Be=mt*ne,Qe==="border-box"&&(Be=Be+oe+je),Lt=pt>Be?"":"hidden",pt=Math.min(Be,pt))}var Ae={height:pt,overflowY:Lt,resize:"none"};return Je&&(Ae.minHeight=Je),Be&&(Ae.maxHeight=Be),Ae}var D=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],de=0,we=1,k=2,He=re.forwardRef(function(E,se){var z=E,ne=z.prefixCls,Ee=z.defaultValue,oe=z.value,je=z.autoSize,Qe=z.onResize,De=z.className,Je=z.style,Be=z.disabled,Lt=z.onChange,pt=z.onInternalAutoSize,mt=(0,H.Z)(z,D),Ae=(0,P.Z)(Ee,{value:oe,postState:function(ot){return ot!=null?ot:""}}),Kt=(0,L.Z)(Ae,2),ye=Kt[0],A=Kt[1],w=function(ot){A(ot.target.value),Lt==null||Lt(ot)},I=re.useRef();re.useImperativeHandle(se,function(){return{textArea:I.current}});var S=re.useMemo(function(){return je&&(0,$.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),K=(0,L.Z)(S,2),te=K[0],q=K[1],Q=!!je,Se=function(){try{if(document.activeElement===I.current){var ot=I.current,Et=ot.selectionStart,gt=ot.selectionEnd,Ot=ot.scrollTop;I.current.setSelectionRange(Et,gt),I.current.scrollTop=Ot}}catch(or){}},ue=re.useState(k),ve=(0,L.Z)(ue,2),pe=ve[0],Oe=ve[1],me=re.useState(),ie=(0,L.Z)(me,2),be=ie[0],ce=ie[1],Ke=function(){Oe(de)};(0,Ue.Z)(function(){Q&&Ke()},[oe,te,q,Q]),(0,Ue.Z)(function(){if(pe===de)Oe(we);else if(pe===we){var Fe=J(I.current,!1,te,q);Oe(k),ce(Fe)}else Se()},[pe]);var Pe=re.useRef(),Ze=function(){Ye.Z.cancel(Pe.current)},$e=function(ot){pe===k&&(Qe==null||Qe(ot),je&&(Ze(),Pe.current=(0,Ye.Z)(function(){Ke()})))};re.useEffect(function(){return Ze},[]);var dt=Q?be:null,it=(0,p.Z)((0,p.Z)({},Je),dt);return(pe===de||pe===we)&&(it.overflowY="hidden",it.overflowX="hidden"),re.createElement(Ne.Z,{onResize:$e,disabled:!(je||Qe)},re.createElement("textarea",(0,v.Z)({},mt,{ref:I,style:it,className:ee()(ne,De,(0,F.Z)({},"".concat(ne,"-disabled"),Be)),disabled:Be,value:ye,onChange:w})))}),lt=He,G=["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"],W=re.forwardRef(function(E,se){var z,ne=E.defaultValue,Ee=E.value,oe=E.onFocus,je=E.onBlur,Qe=E.onChange,De=E.allowClear,Je=E.maxLength,Be=E.onCompositionStart,Lt=E.onCompositionEnd,pt=E.suffix,mt=E.prefixCls,Ae=mt===void 0?"rc-textarea":mt,Kt=E.showCount,ye=E.count,A=E.className,w=E.style,I=E.disabled,S=E.hidden,K=E.classNames,te=E.styles,q=E.onResize,Q=E.onClear,Se=E.onPressEnter,ue=E.readOnly,ve=E.autoSize,pe=E.onKeyDown,Oe=(0,H.Z)(E,G),me=(0,P.Z)(ne,{value:Ee,defaultValue:ne}),ie=(0,L.Z)(me,2),be=ie[0],ce=ie[1],Ke=be==null?"":String(be),Pe=re.useState(!1),Ze=(0,L.Z)(Pe,2),$e=Ze[0],dt=Ze[1],it=re.useRef(!1),Fe=re.useState(null),ot=(0,L.Z)(Fe,2),Et=ot[0],gt=ot[1],Ot=(0,re.useRef)(null),or=(0,re.useRef)(null),st=function(){var Xt;return(Xt=or.current)===null||Xt===void 0?void 0:Xt.textArea},ut=function(){st().focus()};(0,re.useImperativeHandle)(se,function(){var Me;return{resizableTextArea:or.current,focus:ut,blur:function(){st().blur()},nativeElement:((Me=Ot.current)===null||Me===void 0?void 0:Me.nativeElement)||st()}}),(0,re.useEffect)(function(){dt(function(Me){return!I&&Me})},[I]);var Vt=re.useState(null),Qt=(0,L.Z)(Vt,2),Gt=Qt[0],_t=Qt[1];re.useEffect(function(){if(Gt){var Me;(Me=st()).setSelectionRange.apply(Me,(0,V.Z)(Gt))}},[Gt]);var yt=(0,d.Z)(ye,Kt),It=(z=yt.max)!==null&&z!==void 0?z:Je,Dt=Number(It)>0,sr=yt.strategy(Ke),Xe=!!It&&sr>It,zt=function(Xt,zr){var wr=zr;!it.current&&yt.exceedFormatter&&yt.max&&yt.strategy(zr)>yt.max&&(wr=yt.exceedFormatter(zr,{max:yt.max}),zr!==wr&&_t([st().selectionStart||0,st().selectionEnd||0])),ce(wr),(0,X.rJ)(Xt.currentTarget,Xt,Qe,wr)},Jt=function(Xt){it.current=!0,Be==null||Be(Xt)},xr=function(Xt){it.current=!1,zt(Xt,Xt.currentTarget.value),Lt==null||Lt(Xt)},cr=function(Xt){zt(Xt,Xt.target.value)},Or=function(Xt){Xt.key==="Enter"&&Se&&Se(Xt),pe==null||pe(Xt)},Mr=function(Xt){dt(!0),oe==null||oe(Xt)},Ir=function(Xt){dt(!1),je==null||je(Xt)},Dr=function(Xt){ce(""),ut(),(0,X.rJ)(st(),Xt,Qe)},hr=pt,Wt;yt.show&&(yt.showFormatter?Wt=yt.showFormatter({value:Ke,count:sr,maxLength:It}):Wt="".concat(sr).concat(Dt?" / ".concat(It):""),hr=re.createElement(re.Fragment,null,hr,re.createElement("span",{className:ee()("".concat(Ae,"-data-count"),K==null?void 0:K.count),style:te==null?void 0:te.count},Wt)));var mr=function(Xt){var zr;q==null||q(Xt),(zr=st())!==null&&zr!==void 0&&zr.style.height&&gt(!0)},Bt=!ve&&!Kt&&!De;return re.createElement(_.BaseInput,{ref:Ot,value:Ke,allowClear:De,handleReset:Dr,suffix:hr,prefixCls:Ae,classNames:(0,p.Z)((0,p.Z)({},K),{},{affixWrapper:ee()(K==null?void 0:K.affixWrapper,(0,F.Z)((0,F.Z)({},"".concat(Ae,"-show-count"),Kt),"".concat(Ae,"-textarea-allow-clear"),De))}),disabled:I,focused:$e,className:ee()(A,Xe&&"".concat(Ae,"-out-of-range")),style:(0,p.Z)((0,p.Z)({},w),Et&&!Bt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wt=="string"?Wt:void 0}},hidden:S,readOnly:ue,onClear:Q},re.createElement(lt,(0,v.Z)({},Oe,{autoSize:ve,maxLength:Je,onKeyDown:Or,onChange:cr,onFocus:Mr,onBlur:Ir,onCompositionStart:Jt,onCompositionEnd:xr,className:ee()(K==null?void 0:K.textarea),style:(0,p.Z)((0,p.Z)({},te==null?void 0:te.textarea),{},{resize:w==null?void 0:w.resize}),disabled:I,prefixCls:Ae,onResize:mr,ref:or,readOnly:ue})))}),f=W,Z=f},29125:function(lr,xe,u){"use strict";u.d(xe,{G:function(){return V},Z:function(){return We}});var v=u(92310),F=u.n(v),p=u(59301);function V(x){var Y=x.children,y=x.prefixCls,T=x.id,J=x.overlayInnerStyle,D=x.bodyClassName,de=x.className,we=x.style;return p.createElement("div",{className:F()("".concat(y,"-content"),de),style:we},p.createElement("div",{className:F()("".concat(y,"-inner"),D),id:T,role:"tooltip",style:J},typeof Y=="function"?Y():Y))}var L=u(60499),H=u(85899),N=u(42244),ee=u(68196),_={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},X=[0,0],P={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:X},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:X},top:{points:["bc","tc"],overflow:_,offset:[0,-4],targetOffset:X},bottom:{points:["tc","bc"],overflow:_,offset:[0,4],targetOffset:X},topLeft:{points:["bl","tl"],overflow:_,offset:[0,-4],targetOffset:X},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:X},topRight:{points:["br","tr"],overflow:_,offset:[0,-4],targetOffset:X},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:X},bottomRight:{points:["tr","br"],overflow:_,offset:[0,4],targetOffset:X},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:X},bottomLeft:{points:["tl","bl"],overflow:_,offset:[0,4],targetOffset:X},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:X}},re=null,$=u(80402),Ne=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ue=function(Y,y){var T=Y.overlayClassName,J=Y.trigger,D=J===void 0?["hover"]:J,de=Y.mouseEnterDelay,we=de===void 0?0:de,k=Y.mouseLeaveDelay,He=k===void 0?.1:k,lt=Y.overlayStyle,G=Y.prefixCls,W=G===void 0?"rc-tooltip":G,f=Y.children,Z=Y.onVisibleChange,E=Y.afterVisibleChange,se=Y.transitionName,z=Y.animation,ne=Y.motion,Ee=Y.placement,oe=Ee===void 0?"right":Ee,je=Y.align,Qe=je===void 0?{}:je,De=Y.destroyTooltipOnHide,Je=De===void 0?!1:De,Be=Y.defaultVisible,Lt=Y.getTooltipContainer,pt=Y.overlayInnerStyle,mt=Y.arrowContent,Ae=Y.overlay,Kt=Y.id,ye=Y.showArrow,A=ye===void 0?!0:ye,w=Y.classNames,I=Y.styles,S=(0,N.Z)(Y,Ne),K=(0,$.Z)(Kt),te=(0,p.useRef)(null);(0,p.useImperativeHandle)(y,function(){return te.current});var q=(0,H.Z)({},S);"visible"in Y&&(q.popupVisible=Y.visible);var Q=function(){return p.createElement(V,{key:"content",prefixCls:W,id:K,bodyClassName:w==null?void 0:w.body,overlayInnerStyle:(0,H.Z)((0,H.Z)({},pt),I==null?void 0:I.body)},Ae)},Se=function(){var ve=p.Children.only(f),pe=(ve==null?void 0:ve.props)||{},Oe=(0,H.Z)((0,H.Z)({},pe),{},{"aria-describedby":Ae?K:null});return p.cloneElement(f,Oe)};return p.createElement(ee.Z,(0,L.Z)({popupClassName:F()(T,w==null?void 0:w.root),prefixCls:W,popup:Q,action:D,builtinPlacements:P,popupPlacement:oe,ref:te,popupAlign:Qe,getPopupContainer:Lt,onPopupVisibleChange:Z,afterPopupVisibleChange:E,popupTransitionName:se,popupAnimation:z,popupMotion:ne,defaultPopupVisible:Be,autoDestroy:Je,mouseLeaveDelay:He,popupStyle:(0,H.Z)((0,H.Z)({},lt),I==null?void 0:I.root),mouseEnterDelay:we,arrow:A},q),Se())},Ye=(0,p.forwardRef)(Ue),We=Ye},49658:function(lr,xe){"use strict";xe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var u=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(u)||/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(u==null?void 0:u.substr(0,4))}},48911:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ye}});var v=u(60499),F=u(43749),p=u(85899),V=u(18642),L=u(72190),H=u(42244),N=u(92310),ee=u.n(N),_=u(29301),d=u(70425),X=u(34280),P=u(59301),re=u(4676),$=P.forwardRef(function(A,w){var I=A.height,S=A.offsetY,K=A.offsetX,te=A.children,q=A.prefixCls,Q=A.onInnerResize,Se=A.innerProps,ue=A.rtl,ve=A.extra,pe={},Oe={display:"flex",flexDirection:"column"};return S!==void 0&&(pe={height:I,position:"relative",overflow:"hidden"},Oe=(0,p.Z)((0,p.Z)({},Oe),{},(0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)({transform:"translateY(".concat(S,"px)")},ue?"marginRight":"marginLeft",-K),"position","absolute"),"left",0),"right",0),"top",0))),P.createElement("div",{style:pe},P.createElement(_.Z,{onResize:function(ie){var be=ie.offsetHeight;be&&Q&&Q()}},P.createElement("div",(0,v.Z)({style:Oe,className:ee()((0,V.Z)({},"".concat(q,"-holder-inner"),q)),ref:w},Se),te,ve)))});$.displayName="Filler";var Ne=$;function Ue(A){var w=A.children,I=A.setRef,S=P.useCallback(function(K){I(K)},[]);return P.cloneElement(w,{ref:S})}function Ye(A,w,I,S,K,te,q,Q){var Se=Q.getKey;return A.slice(w,I+1).map(function(ue,ve){var pe=w+ve,Oe=q(ue,pe,{style:{width:S},offsetX:K}),me=Se(ue);return P.createElement(Ue,{key:me,setRef:function(be){return te(ue,be)}},Oe)})}function We(A,w,I,S){var K=I-A,te=w-I,q=Math.min(K,te)*2;if(S<=q){var Q=Math.floor(S/2);return S%2?I+Q+1:I-Q}return K>te?I-(S-te):I+(S-K)}function x(A,w,I){var S=A.length,K=w.length,te,q;if(S===0&&K===0)return null;S<K?(te=A,q=w):(te=w,q=A);var Q={__EMPTY_ITEM__:!0};function Se(ie){return ie!==void 0?I(ie):Q}for(var ue=null,ve=Math.abs(S-K)!==1,pe=0;pe<q.length;pe+=1){var Oe=Se(te[pe]),me=Se(q[pe]);if(Oe!==me){ue=pe,ve=ve||Oe!==Se(q[pe+1]);break}}return ue===null?null:{index:ue,multiple:ve}}function Y(A,w,I){var S=P.useState(A),K=(0,L.Z)(S,2),te=K[0],q=K[1],Q=P.useState(null),Se=(0,L.Z)(Q,2),ue=Se[0],ve=Se[1];return P.useEffect(function(){var pe=x(te||[],A||[],w);(pe==null?void 0:pe.index)!==void 0&&(I==null||I(pe.index),ve(A[pe.index])),q(A)},[A]),[ue]}var y=u(16089),T=(typeof navigator=="undefined"?"undefined":(0,F.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),J=T,D=function(A,w,I,S){var K=(0,P.useRef)(!1),te=(0,P.useRef)(null);function q(){clearTimeout(te.current),K.current=!0,te.current=setTimeout(function(){K.current=!1},50)}var Q=(0,P.useRef)({top:A,bottom:w,left:I,right:S});return Q.current.top=A,Q.current.bottom=w,Q.current.left=I,Q.current.right=S,function(Se,ue){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pe=Se?ue<0&&Q.current.left||ue>0&&Q.current.right:ue<0&&Q.current.top||ue>0&&Q.current.bottom;return ve&&pe?(clearTimeout(te.current),K.current=!1):(!pe||K.current)&&q(),!K.current&&pe}};function de(A,w,I,S,K,te,q){var Q=(0,P.useRef)(0),Se=(0,P.useRef)(null),ue=(0,P.useRef)(null),ve=(0,P.useRef)(!1),pe=D(w,I,S,K);function Oe(Pe,Ze){if(y.Z.cancel(Se.current),!pe(!1,Ze)){var $e=Pe;if(!$e._virtualHandled)$e._virtualHandled=!0;else return;Q.current+=Ze,ue.current=Ze,J||$e.preventDefault(),Se.current=(0,y.Z)(function(){var dt=ve.current?10:1;q(Q.current*dt,!1),Q.current=0})}}function me(Pe,Ze){q(Ze,!0),J||Pe.preventDefault()}var ie=(0,P.useRef)(null),be=(0,P.useRef)(null);function ce(Pe){if(A){y.Z.cancel(be.current),be.current=(0,y.Z)(function(){ie.current=null},2);var Ze=Pe.deltaX,$e=Pe.deltaY,dt=Pe.shiftKey,it=Ze,Fe=$e;(ie.current==="sx"||!ie.current&&dt&&$e&&!Ze)&&(it=$e,Fe=0,ie.current="sx");var ot=Math.abs(it),Et=Math.abs(Fe);ie.current===null&&(ie.current=te&&ot>Et?"x":"y"),ie.current==="y"?Oe(Pe,Fe):me(Pe,it)}}function Ke(Pe){A&&(ve.current=Pe.detail===ue.current)}return[ce,Ke]}function we(A,w,I,S){var K=P.useMemo(function(){return[new Map,[]]},[A,I.id,S]),te=(0,L.Z)(K,2),q=te[0],Q=te[1],Se=function(ve){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ve,Oe=q.get(ve),me=q.get(pe);if(Oe===void 0||me===void 0)for(var ie=A.length,be=Q.length;be<ie;be+=1){var ce,Ke=A[be],Pe=w(Ke);q.set(Pe,be);var Ze=(ce=I.get(Pe))!==null&&ce!==void 0?ce:S;if(Q[be]=(Q[be-1]||0)+Ze,Pe===ve&&(Oe=be),Pe===pe&&(me=be),Oe!==void 0&&me!==void 0)break}return{top:Q[Oe-1]||0,bottom:Q[me]}};return Se}var k=u(38705),He=u(17212),lt=function(){function A(){(0,k.Z)(this,A),(0,V.Z)(this,"maps",void 0),(0,V.Z)(this,"id",0),(0,V.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,He.Z)(A,[{key:"set",value:function(I,S){this.diffRecords.set(I,this.maps[I]),this.maps[I]=S,this.id+=1}},{key:"get",value:function(I){return this.maps[I]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),A}(),G=lt;function W(A){var w=parseFloat(A);return isNaN(w)?0:w}function f(A,w,I){var S=P.useState(0),K=(0,L.Z)(S,2),te=K[0],q=K[1],Q=(0,P.useRef)(new Map),Se=(0,P.useRef)(new G),ue=(0,P.useRef)(0);function ve(){ue.current+=1}function pe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ve();var ie=function(){var Ke=!1;Q.current.forEach(function(Pe,Ze){if(Pe&&Pe.offsetParent){var $e=Pe.offsetHeight,dt=getComputedStyle(Pe),it=dt.marginTop,Fe=dt.marginBottom,ot=W(it),Et=W(Fe),gt=$e+ot+Et;Se.current.get(Ze)!==gt&&(Se.current.set(Ze,gt),Ke=!0)}}),Ke&&q(function(Pe){return Pe+1})};if(me)ie();else{ue.current+=1;var be=ue.current;Promise.resolve().then(function(){be===ue.current&&ie()})}}function Oe(me,ie){var be=A(me),ce=Q.current.get(be);ie?(Q.current.set(be,ie),pe()):Q.current.delete(be),!ce!=!ie&&(ie?w==null||w(me):I==null||I(me))}return(0,P.useEffect)(function(){return ve},[]),[Oe,pe,Se.current,te]}var Z=14/15;function E(A,w,I){var S=(0,P.useRef)(!1),K=(0,P.useRef)(0),te=(0,P.useRef)(0),q=(0,P.useRef)(null),Q=(0,P.useRef)(null),Se,ue=function(me){if(S.current){var ie=Math.ceil(me.touches[0].pageX),be=Math.ceil(me.touches[0].pageY),ce=K.current-ie,Ke=te.current-be,Pe=Math.abs(ce)>Math.abs(Ke);Pe?K.current=ie:te.current=be;var Ze=I(Pe,Pe?ce:Ke,!1,me);Ze&&me.preventDefault(),clearInterval(Q.current),Ze&&(Q.current=setInterval(function(){Pe?ce*=Z:Ke*=Z;var $e=Math.floor(Pe?ce:Ke);(!I(Pe,$e,!0)||Math.abs($e)<=.1)&&clearInterval(Q.current)},16))}},ve=function(){S.current=!1,Se()},pe=function(me){Se(),me.touches.length===1&&!S.current&&(S.current=!0,K.current=Math.ceil(me.touches[0].pageX),te.current=Math.ceil(me.touches[0].pageY),q.current=me.target,q.current.addEventListener("touchmove",ue,{passive:!1}),q.current.addEventListener("touchend",ve,{passive:!0}))};Se=function(){q.current&&(q.current.removeEventListener("touchmove",ue),q.current.removeEventListener("touchend",ve))},(0,X.Z)(function(){return A&&w.current.addEventListener("touchstart",pe,{passive:!0}),function(){var Oe;(Oe=w.current)===null||Oe===void 0||Oe.removeEventListener("touchstart",pe),Se(),clearInterval(Q.current)}},[A])}function se(A){return Math.floor(Math.pow(A,.5))}function z(A,w){var I="touches"in A?A.touches[0]:A;return I[w?"pageX":"pageY"]-window[w?"scrollX":"scrollY"]}function ne(A,w,I){P.useEffect(function(){var S=w.current;if(A&&S){var K=!1,te,q,Q=function(){y.Z.cancel(te)},Se=function Oe(){Q(),te=(0,y.Z)(function(){I(q),Oe()})},ue=function(){K=!1,Q()},ve=function(me){if(!(me.target.draggable||me.button!==0)){var ie=me;ie._virtualHandled||(ie._virtualHandled=!0,K=!0)}},pe=function(me){if(K){var ie=z(me,!1),be=S.getBoundingClientRect(),ce=be.top,Ke=be.bottom;if(ie<=ce){var Pe=ce-ie;q=-se(Pe),Se()}else if(ie>=Ke){var Ze=ie-Ke;q=se(Ze),Se()}else Q()}};return S.addEventListener("mousedown",ve),S.ownerDocument.addEventListener("mouseup",ue),S.ownerDocument.addEventListener("mousemove",pe),S.ownerDocument.addEventListener("dragend",ue),function(){S.removeEventListener("mousedown",ve),S.ownerDocument.removeEventListener("mouseup",ue),S.ownerDocument.removeEventListener("mousemove",pe),S.ownerDocument.removeEventListener("dragend",ue),Q()}}},[A])}var Ee=10;function oe(A,w,I,S,K,te,q,Q){var Se=P.useRef(),ue=P.useState(null),ve=(0,L.Z)(ue,2),pe=ve[0],Oe=ve[1];return(0,X.Z)(function(){if(pe&&pe.times<Ee){if(!A.current){Oe(function(yt){return(0,p.Z)({},yt)});return}te();var me=pe.targetAlign,ie=pe.originAlign,be=pe.index,ce=pe.offset,Ke=A.current.clientHeight,Pe=!1,Ze=me,$e=null;if(Ke){for(var dt=me||ie,it=0,Fe=0,ot=0,Et=Math.min(w.length-1,be),gt=0;gt<=Et;gt+=1){var Ot=K(w[gt]);Fe=it;var or=I.get(Ot);ot=Fe+(or===void 0?S:or),it=ot}for(var st=dt==="top"?ce:Ke-ce,ut=Et;ut>=0;ut-=1){var Vt=K(w[ut]),Qt=I.get(Vt);if(Qt===void 0){Pe=!0;break}if(st-=Qt,st<=0)break}switch(dt){case"top":$e=Fe-ce;break;case"bottom":$e=ot-Ke+ce;break;default:{var Gt=A.current.scrollTop,_t=Gt+Ke;Fe<Gt?Ze="top":ot>_t&&(Ze="bottom")}}$e!==null&&q($e),$e!==pe.lastTop&&(Pe=!0)}Pe&&Oe((0,p.Z)((0,p.Z)({},pe),{},{times:pe.times+1,targetAlign:Ze,lastTop:$e}))}},[pe,A.current]),function(me){if(me==null){Q();return}if(y.Z.cancel(Se.current),typeof me=="number")q(me);else if(me&&(0,F.Z)(me)==="object"){var ie,be=me.align;"index"in me?ie=me.index:ie=w.findIndex(function(Pe){return K(Pe)===me.key});var ce=me.offset,Ke=ce===void 0?0:ce;Oe({times:0,index:ie,offset:Ke,originAlign:be})}}}var je=P.forwardRef(function(A,w){var I=A.prefixCls,S=A.rtl,K=A.scrollOffset,te=A.scrollRange,q=A.onStartMove,Q=A.onStopMove,Se=A.onScroll,ue=A.horizontal,ve=A.spinSize,pe=A.containerSize,Oe=A.style,me=A.thumbStyle,ie=A.showScrollBar,be=P.useState(!1),ce=(0,L.Z)(be,2),Ke=ce[0],Pe=ce[1],Ze=P.useState(null),$e=(0,L.Z)(Ze,2),dt=$e[0],it=$e[1],Fe=P.useState(null),ot=(0,L.Z)(Fe,2),Et=ot[0],gt=ot[1],Ot=!S,or=P.useRef(),st=P.useRef(),ut=P.useState(ie),Vt=(0,L.Z)(ut,2),Qt=Vt[0],Gt=Vt[1],_t=P.useRef(),yt=function(){ie===!0||ie===!1||(clearTimeout(_t.current),Gt(!0),_t.current=setTimeout(function(){Gt(!1)},3e3))},It=te-pe||0,Dt=pe-ve||0,sr=P.useMemo(function(){if(K===0||It===0)return 0;var Dr=K/It;return Dr*Dt},[K,It,Dt]),Xe=function(hr){hr.stopPropagation(),hr.preventDefault()},zt=P.useRef({top:sr,dragging:Ke,pageY:dt,startTop:Et});zt.current={top:sr,dragging:Ke,pageY:dt,startTop:Et};var Jt=function(hr){Pe(!0),it(z(hr,ue)),gt(zt.current.top),q(),hr.stopPropagation(),hr.preventDefault()};P.useEffect(function(){var Dr=function(Bt){Bt.preventDefault()},hr=or.current,Wt=st.current;return hr.addEventListener("touchstart",Dr,{passive:!1}),Wt.addEventListener("touchstart",Jt,{passive:!1}),function(){hr.removeEventListener("touchstart",Dr),Wt.removeEventListener("touchstart",Jt)}},[]);var xr=P.useRef();xr.current=It;var cr=P.useRef();cr.current=Dt,P.useEffect(function(){if(Ke){var Dr,hr=function(Bt){var Me=zt.current,Xt=Me.dragging,zr=Me.pageY,wr=Me.startTop;y.Z.cancel(Dr);var O=or.current.getBoundingClientRect(),R=pe/(ue?O.width:O.height);if(Xt){var h=(z(Bt,ue)-zr)*R,b=wr;!Ot&&ue?b-=h:b+=h;var g=xr.current,m=cr.current,j=m?b/m:0,ae=Math.ceil(j*g);ae=Math.max(ae,0),ae=Math.min(ae,g),Dr=(0,y.Z)(function(){Se(ae,ue)})}},Wt=function(){Pe(!1),Q()};return window.addEventListener("mousemove",hr,{passive:!0}),window.addEventListener("touchmove",hr,{passive:!0}),window.addEventListener("mouseup",Wt,{passive:!0}),window.addEventListener("touchend",Wt,{passive:!0}),function(){window.removeEventListener("mousemove",hr),window.removeEventListener("touchmove",hr),window.removeEventListener("mouseup",Wt),window.removeEventListener("touchend",Wt),y.Z.cancel(Dr)}}},[Ke]),P.useEffect(function(){return yt(),function(){clearTimeout(_t.current)}},[K]),P.useImperativeHandle(w,function(){return{delayHidden:yt}});var Or="".concat(I,"-scrollbar"),Mr={position:"absolute",visibility:Qt?null:"hidden"},Ir={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ue?(Object.assign(Mr,{height:8,left:0,right:0,bottom:0}),Object.assign(Ir,(0,V.Z)({height:"100%",width:ve},Ot?"left":"right",sr))):(Object.assign(Mr,(0,V.Z)({width:8,top:0,bottom:0},Ot?"right":"left",0)),Object.assign(Ir,{width:"100%",height:ve,top:sr})),P.createElement("div",{ref:or,className:ee()(Or,(0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(Or,"-horizontal"),ue),"".concat(Or,"-vertical"),!ue),"".concat(Or,"-visible"),Qt)),style:(0,p.Z)((0,p.Z)({},Mr),Oe),onMouseDown:Xe,onMouseMove:yt},P.createElement("div",{ref:st,className:ee()("".concat(Or,"-thumb"),(0,V.Z)({},"".concat(Or,"-thumb-moving"),Ke)),style:(0,p.Z)((0,p.Z)({},Ir),me),onMouseDown:Jt}))}),Qe=je,De=20;function Je(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=A/w*A;return isNaN(I)&&(I=0),I=Math.max(I,De),Math.floor(I)}var Be=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],pt={overflowY:"auto",overflowAnchor:"none"};function mt(A,w){var I=A.prefixCls,S=I===void 0?"rc-virtual-list":I,K=A.className,te=A.height,q=A.itemHeight,Q=A.fullHeight,Se=Q===void 0?!0:Q,ue=A.style,ve=A.data,pe=A.children,Oe=A.itemKey,me=A.virtual,ie=A.direction,be=A.scrollWidth,ce=A.component,Ke=ce===void 0?"div":ce,Pe=A.onScroll,Ze=A.onVirtualScroll,$e=A.onVisibleChange,dt=A.innerProps,it=A.extraRender,Fe=A.styles,ot=A.showScrollBar,Et=ot===void 0?"optional":ot,gt=(0,H.Z)(A,Be),Ot=P.useCallback(function(he){return typeof Oe=="function"?Oe(he):he==null?void 0:he[Oe]},[Oe]),or=f(Ot,null,null),st=(0,L.Z)(or,4),ut=st[0],Vt=st[1],Qt=st[2],Gt=st[3],_t=!!(me!==!1&&te&&q),yt=P.useMemo(function(){return Object.values(Qt.maps).reduce(function(he,ge){return he+ge},0)},[Qt.id,Qt.maps]),It=_t&&ve&&(Math.max(q*ve.length,yt)>te||!!be),Dt=ie==="rtl",sr=ee()(S,(0,V.Z)({},"".concat(S,"-rtl"),Dt),K),Xe=ve||Lt,zt=(0,P.useRef)(),Jt=(0,P.useRef)(),xr=(0,P.useRef)(),cr=(0,P.useState)(0),Or=(0,L.Z)(cr,2),Mr=Or[0],Ir=Or[1],Dr=(0,P.useState)(0),hr=(0,L.Z)(Dr,2),Wt=hr[0],mr=hr[1],Bt=(0,P.useState)(!1),Me=(0,L.Z)(Bt,2),Xt=Me[0],zr=Me[1],wr=function(){zr(!0)},O=function(){zr(!1)},R={getKey:Ot};function h(he){Ir(function(ge){var qe;typeof he=="function"?qe=he(ge):qe=he;var Ve=ar(qe);return zt.current.scrollTop=Ve,Ve})}var b=(0,P.useRef)({start:0,end:Xe.length}),g=(0,P.useRef)(),m=Y(Xe,Ot),j=(0,L.Z)(m,1),ae=j[0];g.current=ae;var Ce=P.useMemo(function(){if(!_t)return{scrollHeight:void 0,start:0,end:Xe.length-1,offset:void 0};if(!It){var he;return{scrollHeight:((he=Jt.current)===null||he===void 0?void 0:he.offsetHeight)||0,start:0,end:Xe.length-1,offset:void 0}}for(var ge=0,qe,Ve,Ft,vr=Xe.length,Ut=0;Ut<vr;Ut+=1){var gr=Xe[Ut],Nr=Ot(gr),Zr=Qt.get(Nr),Tr=ge+(Zr===void 0?q:Zr);Tr>=Mr&&qe===void 0&&(qe=Ut,Ve=ge),Tr>Mr+te&&Ft===void 0&&(Ft=Ut),ge=Tr}return qe===void 0&&(qe=0,Ve=0,Ft=Math.ceil(te/q)),Ft===void 0&&(Ft=Xe.length-1),Ft=Math.min(Ft+1,Xe.length-1),{scrollHeight:ge,start:qe,end:Ft,offset:Ve}},[It,_t,Mr,Xe,Gt,te]),Ie=Ce.scrollHeight,Le=Ce.start,le=Ce.end,vt=Ce.offset;b.current.start=Le,b.current.end=le,P.useLayoutEffect(function(){var he=Qt.getRecord();if(he.size===1){var ge=Array.from(he.keys())[0],qe=he.get(ge),Ve=Xe[Le];if(Ve&&qe===void 0){var Ft=Ot(Ve);if(Ft===ge){var vr=Qt.get(ge),Ut=vr-q;h(function(gr){return gr+Ut})}}}Qt.resetRecord()},[Ie]);var Re=P.useState({width:0,height:te}),ft=(0,L.Z)(Re,2),_e=ft[0],at=ft[1],St=function(ge){at({width:ge.offsetWidth,height:ge.offsetHeight})},ze=(0,P.useRef)(),ke=(0,P.useRef)(),ht=P.useMemo(function(){return Je(_e.width,be)},[_e.width,be]),et=P.useMemo(function(){return Je(_e.height,Ie)},[_e.height,Ie]),tt=Ie-te,Mt=(0,P.useRef)(tt);Mt.current=tt;function ar(he){var ge=he;return Number.isNaN(Mt.current)||(ge=Math.min(ge,Mt.current)),ge=Math.max(ge,0),ge}var Ht=Mr<=0,$t=Mr>=tt,At=Wt<=0,tr=Wt>=be,Zt=D(Ht,$t,At,tr),Rt=function(){return{x:Dt?-Wt:Wt,y:Mr}},Nt=(0,P.useRef)(Rt()),kt=(0,d.zX)(function(he){if(Ze){var ge=(0,p.Z)((0,p.Z)({},Rt()),he);(Nt.current.x!==ge.x||Nt.current.y!==ge.y)&&(Ze(ge),Nt.current=ge)}});function dr(he,ge){var qe=he;ge?((0,re.flushSync)(function(){mr(qe)}),kt()):h(qe)}function fr(he){var ge=he.currentTarget.scrollTop;ge!==Mr&&h(ge),Pe==null||Pe(he),kt()}var rr=function(ge){var qe=ge,Ve=be?be-_e.width:0;return qe=Math.max(qe,0),qe=Math.min(qe,Ve),qe},ur=(0,d.zX)(function(he,ge){ge?((0,re.flushSync)(function(){mr(function(qe){var Ve=qe+(Dt?-he:he);return rr(Ve)})}),kt()):h(function(qe){var Ve=qe+he;return Ve})}),xt=de(_t,Ht,$t,At,tr,!!be,ur),br=(0,L.Z)(xt,2),Wr=br[0],Xr=br[1];E(_t,zt,function(he,ge,qe,Ve){var Ft=Ve;return Zt(he,ge,qe)?!1:!Ft||!Ft._virtualHandled?(Ft&&(Ft._virtualHandled=!0),Wr({preventDefault:function(){},deltaX:he?ge:0,deltaY:he?0:ge}),!0):!1}),ne(It,zt,function(he){h(function(ge){return ge+he})}),(0,X.Z)(function(){function he(qe){var Ve=Ht&&qe.detail<0,Ft=$t&&qe.detail>0;_t&&!Ve&&!Ft&&qe.preventDefault()}var ge=zt.current;return ge.addEventListener("wheel",Wr,{passive:!1}),ge.addEventListener("DOMMouseScroll",Xr,{passive:!0}),ge.addEventListener("MozMousePixelScroll",he,{passive:!1}),function(){ge.removeEventListener("wheel",Wr),ge.removeEventListener("DOMMouseScroll",Xr),ge.removeEventListener("MozMousePixelScroll",he)}},[_t,Ht,$t]),(0,X.Z)(function(){if(be){var he=rr(Wt);mr(he),kt({x:he})}},[_e.width,be]);var Cr=function(){var ge,qe;(ge=ze.current)===null||ge===void 0||ge.delayHidden(),(qe=ke.current)===null||qe===void 0||qe.delayHidden()},Yr=oe(zt,Xe,Qt,q,Ot,function(){return Vt(!0)},h,Cr);P.useImperativeHandle(w,function(){return{nativeElement:xr.current,getScrollInfo:Rt,scrollTo:function(ge){function qe(Ve){return Ve&&(0,F.Z)(Ve)==="object"&&("left"in Ve||"top"in Ve)}qe(ge)?(ge.left!==void 0&&mr(rr(ge.left)),Yr(ge.top)):Yr(ge)}}}),(0,X.Z)(function(){if($e){var he=Xe.slice(Le,le+1);$e(he,Xe)}},[Le,le,Xe]);var Er=we(Xe,Ot,Qt,q),Ur=it==null?void 0:it({start:Le,end:le,virtual:It,offsetX:Wt,offsetY:vt,rtl:Dt,getSize:Er}),$r=Ye(Xe,Le,le,be,Wt,ut,pe,R),qt=null;te&&(qt=(0,p.Z)((0,V.Z)({},Se?"height":"maxHeight",te),pt),_t&&(qt.overflowY="hidden",be&&(qt.overflowX="hidden"),Xt&&(qt.pointerEvents="none")));var Ct={};return Dt&&(Ct.dir="rtl"),P.createElement("div",(0,v.Z)({ref:xr,style:(0,p.Z)((0,p.Z)({},ue),{},{position:"relative"}),className:sr},Ct,gt),P.createElement(_.Z,{onResize:St},P.createElement(Ke,{className:"".concat(S,"-holder"),style:qt,ref:zt,onScroll:fr,onMouseEnter:Cr},P.createElement(Ne,{prefixCls:S,height:Ie,offsetX:Wt,offsetY:vt,scrollWidth:be,onInnerResize:Vt,ref:Jt,innerProps:dt,rtl:Dt,extra:Ur},$r))),It&&Ie>te&&P.createElement(Qe,{ref:ze,prefixCls:S,scrollOffset:Mr,scrollRange:Ie,rtl:Dt,onScroll:dr,onStartMove:wr,onStopMove:O,spinSize:et,containerSize:_e.height,style:Fe==null?void 0:Fe.verticalScrollBar,thumbStyle:Fe==null?void 0:Fe.verticalScrollBarThumb,showScrollBar:Et}),It&&be>_e.width&&P.createElement(Qe,{ref:ke,prefixCls:S,scrollOffset:Wt,scrollRange:be,rtl:Dt,onScroll:dr,onStartMove:wr,onStopMove:O,spinSize:ht,containerSize:_e.width,horizontal:!0,style:Fe==null?void 0:Fe.horizontalScrollBar,thumbStyle:Fe==null?void 0:Fe.horizontalScrollBarThumb,showScrollBar:Et}))}var Ae=P.forwardRef(mt);Ae.displayName="List";var Kt=Ae,ye=Kt},76374:function(lr,xe,u){"use strict";var v=function(){if(typeof Map!="undefined")return Map;function G(W,f){var Z=-1;return W.some(function(E,se){return E[0]===f?(Z=se,!0):!1}),Z}return function(){function W(){this.__entries__=[]}return Object.defineProperty(W.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),W.prototype.get=function(f){var Z=G(this.__entries__,f),E=this.__entries__[Z];return E&&E[1]},W.prototype.set=function(f,Z){var E=G(this.__entries__,f);~E?this.__entries__[E][1]=Z:this.__entries__.push([f,Z])},W.prototype.delete=function(f){var Z=this.__entries__,E=G(Z,f);~E&&Z.splice(E,1)},W.prototype.has=function(f){return!!~G(this.__entries__,f)},W.prototype.clear=function(){this.__entries__.splice(0)},W.prototype.forEach=function(f,Z){Z===void 0&&(Z=null);for(var E=0,se=this.__entries__;E<se.length;E++){var z=se[E];f.call(Z,z[1],z[0])}},W}()}(),F=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,p=function(){return typeof u.g!="undefined"&&u.g.Math===Math?u.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),V=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(p):function(G){return setTimeout(function(){return G(Date.now())},1e3/60)}}(),L=2;function H(G,W){var f=!1,Z=!1,E=0;function se(){f&&(f=!1,G()),Z&&ne()}function z(){V(se)}function ne(){var Ee=Date.now();if(f){if(Ee-E<L)return;Z=!0}else f=!0,Z=!1,setTimeout(z,W);E=Ee}return ne}var N=20,ee=["top","right","bottom","left","width","height","size","weight"],_=typeof MutationObserver!="undefined",d=function(){function G(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=H(this.refresh.bind(this),N)}return G.prototype.addObserver=function(W){~this.observers_.indexOf(W)||this.observers_.push(W),this.connected_||this.connect_()},G.prototype.removeObserver=function(W){var f=this.observers_,Z=f.indexOf(W);~Z&&f.splice(Z,1),!f.length&&this.connected_&&this.disconnect_()},G.prototype.refresh=function(){var W=this.updateObservers_();W&&this.refresh()},G.prototype.updateObservers_=function(){var W=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return W.forEach(function(f){return f.broadcastActive()}),W.length>0},G.prototype.connect_=function(){!F||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_?(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)},G.prototype.disconnect_=function(){!F||!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)},G.prototype.onTransitionEnd_=function(W){var f=W.propertyName,Z=f===void 0?"":f,E=ee.some(function(se){return!!~Z.indexOf(se)});E&&this.refresh()},G.getInstance=function(){return this.instance_||(this.instance_=new G),this.instance_},G.instance_=null,G}(),X=function(G,W){for(var f=0,Z=Object.keys(W);f<Z.length;f++){var E=Z[f];Object.defineProperty(G,E,{value:W[E],enumerable:!1,writable:!1,configurable:!0})}return G},P=function(G){var W=G&&G.ownerDocument&&G.ownerDocument.defaultView;return W||p},re=J(0,0,0,0);function $(G){return parseFloat(G)||0}function Ne(G){for(var W=[],f=1;f<arguments.length;f++)W[f-1]=arguments[f];return W.reduce(function(Z,E){var se=G["border-"+E+"-width"];return Z+$(se)},0)}function Ue(G){for(var W=["top","right","bottom","left"],f={},Z=0,E=W;Z<E.length;Z++){var se=E[Z],z=G["padding-"+se];f[se]=$(z)}return f}function Ye(G){var W=G.getBBox();return J(0,0,W.width,W.height)}function We(G){var W=G.clientWidth,f=G.clientHeight;if(!W&&!f)return re;var Z=P(G).getComputedStyle(G),E=Ue(Z),se=E.left+E.right,z=E.top+E.bottom,ne=$(Z.width),Ee=$(Z.height);if(Z.boxSizing==="border-box"&&(Math.round(ne+se)!==W&&(ne-=Ne(Z,"left","right")+se),Math.round(Ee+z)!==f&&(Ee-=Ne(Z,"top","bottom")+z)),!Y(G)){var oe=Math.round(ne+se)-W,je=Math.round(Ee+z)-f;Math.abs(oe)!==1&&(ne-=oe),Math.abs(je)!==1&&(Ee-=je)}return J(E.left,E.top,ne,Ee)}var x=function(){return typeof SVGGraphicsElement!="undefined"?function(G){return G instanceof P(G).SVGGraphicsElement}:function(G){return G instanceof P(G).SVGElement&&typeof G.getBBox=="function"}}();function Y(G){return G===P(G).document.documentElement}function y(G){return F?x(G)?Ye(G):We(G):re}function T(G){var W=G.x,f=G.y,Z=G.width,E=G.height,se=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,z=Object.create(se.prototype);return X(z,{x:W,y:f,width:Z,height:E,top:f,right:W+Z,bottom:E+f,left:W}),z}function J(G,W,f,Z){return{x:G,y:W,width:f,height:Z}}var D=function(){function G(W){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=J(0,0,0,0),this.target=W}return G.prototype.isActive=function(){var W=y(this.target);return this.contentRect_=W,W.width!==this.broadcastWidth||W.height!==this.broadcastHeight},G.prototype.broadcastRect=function(){var W=this.contentRect_;return this.broadcastWidth=W.width,this.broadcastHeight=W.height,W},G}(),de=function(){function G(W,f){var Z=T(f);X(this,{target:W,contentRect:Z})}return G}(),we=function(){function G(W,f,Z){if(this.activeObservations_=[],this.observations_=new v,typeof W!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=W,this.controller_=f,this.callbackCtx_=Z}return G.prototype.observe=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof P(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(W)||(f.set(W,new D(W)),this.controller_.addObserver(this),this.controller_.refresh())}},G.prototype.unobserve=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof P(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(W)&&(f.delete(W),f.size||this.controller_.removeObserver(this))}},G.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},G.prototype.gatherActive=function(){var W=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&W.activeObservations_.push(f)})},G.prototype.broadcastActive=function(){if(this.hasActive()){var W=this.callbackCtx_,f=this.activeObservations_.map(function(Z){return new de(Z.target,Z.broadcastRect())});this.callback_.call(W,f,W),this.clearActive()}},G.prototype.clearActive=function(){this.activeObservations_.splice(0)},G.prototype.hasActive=function(){return this.activeObservations_.length>0},G}(),k=typeof WeakMap!="undefined"?new WeakMap:new v,He=function(){function G(W){if(!(this instanceof G))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=d.getInstance(),Z=new we(W,f,this);k.set(this,Z)}return G}();["observe","unobserve","disconnect"].forEach(function(G){He.prototype[G]=function(){var W;return(W=k.get(this))[G].apply(W,arguments)}});var lt=function(){return typeof p.ResizeObserver!="undefined"?p.ResizeObserver:He}();xe.Z=lt},16722:function(lr,xe,u){"use strict";u.d(xe,{Z:function(){return ee}});const v=_=>typeof _=="object"&&_!=null&&_.nodeType===1,F=(_,d)=>(!d||_!=="hidden")&&_!=="visible"&&_!=="clip",p=(_,d)=>{if(_.clientHeight<_.scrollHeight||_.clientWidth<_.scrollWidth){const X=getComputedStyle(_,null);return F(X.overflowY,d)||F(X.overflowX,d)||(P=>{const re=($=>{if(!$.ownerDocument||!$.ownerDocument.defaultView)return null;try{return $.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(P);return!!re&&(re.clientHeight<P.scrollHeight||re.clientWidth<P.scrollWidth)})(_)}return!1},V=(_,d,X,P,re,$,Ne,Ue)=>$<_&&Ne>d||$>_&&Ne<d?0:$<=_&&Ue<=X||Ne>=d&&Ue>=X?$-_-P:Ne>d&&Ue<X||$<_&&Ue>X?Ne-d+re:0,L=_=>{const d=_.parentElement;return d==null?_.getRootNode().host||null:d},H=(_,d)=>{var X,P,re,$;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:Ue,inline:Ye,boundary:We,skipOverflowHiddenElements:x}=d,Y=typeof We=="function"?We:Qe=>Qe!==We;if(!v(_))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,T=[];let J=_;for(;v(J)&&Y(J);){if(J=L(J),J===y){T.push(J);break}J!=null&&J===document.body&&p(J)&&!p(document.documentElement)||J!=null&&p(J,x)&&T.push(J)}const D=(P=(X=window.visualViewport)==null?void 0:X.width)!=null?P:innerWidth,de=($=(re=window.visualViewport)==null?void 0:re.height)!=null?$:innerHeight,{scrollX:we,scrollY:k}=window,{height:He,width:lt,top:G,right:W,bottom:f,left:Z}=_.getBoundingClientRect(),{top:E,right:se,bottom:z,left:ne}=(Qe=>{const De=window.getComputedStyle(Qe);return{top:parseFloat(De.scrollMarginTop)||0,right:parseFloat(De.scrollMarginRight)||0,bottom:parseFloat(De.scrollMarginBottom)||0,left:parseFloat(De.scrollMarginLeft)||0}})(_);let Ee=Ue==="start"||Ue==="nearest"?G-E:Ue==="end"?f+z:G+He/2-E+z,oe=Ye==="center"?Z+lt/2-ne+se:Ye==="end"?W+se:Z-ne;const je=[];for(let Qe=0;Qe<T.length;Qe++){const De=T[Qe],{height:Je,width:Be,top:Lt,right:pt,bottom:mt,left:Ae}=De.getBoundingClientRect();if(Ne==="if-needed"&&G>=0&&Z>=0&&f<=de&&W<=D&&(De===y&&!p(De)||G>=Lt&&f<=mt&&Z>=Ae&&W<=pt))return je;const Kt=getComputedStyle(De),ye=parseInt(Kt.borderLeftWidth,10),A=parseInt(Kt.borderTopWidth,10),w=parseInt(Kt.borderRightWidth,10),I=parseInt(Kt.borderBottomWidth,10);let S=0,K=0;const te="offsetWidth"in De?De.offsetWidth-De.clientWidth-ye-w:0,q="offsetHeight"in De?De.offsetHeight-De.clientHeight-A-I:0,Q="offsetWidth"in De?De.offsetWidth===0?0:Be/De.offsetWidth:0,Se="offsetHeight"in De?De.offsetHeight===0?0:Je/De.offsetHeight:0;if(y===De)S=Ue==="start"?Ee:Ue==="end"?Ee-de:Ue==="nearest"?V(k,k+de,de,A,I,k+Ee,k+Ee+He,He):Ee-de/2,K=Ye==="start"?oe:Ye==="center"?oe-D/2:Ye==="end"?oe-D:V(we,we+D,D,ye,w,we+oe,we+oe+lt,lt),S=Math.max(0,S+k),K=Math.max(0,K+we);else{S=Ue==="start"?Ee-Lt-A:Ue==="end"?Ee-mt+I+q:Ue==="nearest"?V(Lt,mt,Je,A,I+q,Ee,Ee+He,He):Ee-(Lt+Je/2)+q/2,K=Ye==="start"?oe-Ae-ye:Ye==="center"?oe-(Ae+Be/2)+te/2:Ye==="end"?oe-pt+w+te:V(Ae,pt,Be,ye,w+te,oe,oe+lt,lt);const{scrollLeft:ue,scrollTop:ve}=De;S=Se===0?0:Math.max(0,Math.min(ve+S/Se,De.scrollHeight-Je/Se+q)),K=Q===0?0:Math.max(0,Math.min(ue+K/Q,De.scrollWidth-Be/Q+te)),Ee+=ve-S,oe+=ue-K}je.push({el:De,top:S,left:K})}return je},N=_=>_===!1?{block:"end",inline:"nearest"}:(d=>d===Object(d)&&Object.keys(d).length!==0)(_)?_:{block:"start",inline:"nearest"};function ee(_,d){if(!_.isConnected||!(re=>{let $=re;for(;$&&$.parentNode;){if($.parentNode===document)return!0;$=$.parentNode instanceof ShadowRoot?$.parentNode.host:$.parentNode}return!1})(_))return;const X=(re=>{const $=window.getComputedStyle(re);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(_);if((re=>typeof re=="object"&&typeof re.behavior=="function")(d))return d.behavior(H(_,d));const P=typeof d=="boolean"||d==null?void 0:d.behavior;for(const{el:re,top:$,left:Ne}of H(_,N(d))){const Ue=$-X.top+X.bottom,Ye=Ne-X.left+X.right;re.scroll({top:Ue,left:Ye,behavior:P})}}}}]);