(self.webpackChunk=self.webpackChunk||[]).push([[7046],{40001:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},84105:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},73331:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},15277:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},61485:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},47472:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(92413),q=f(59301),C={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"},_=C,p=f(7657),D=function(y,Se){return q.createElement(p.Z,(0,E.Z)({},y,{ref:Se,icon:_}))},T=q.forwardRef(D),me=T},78780:function(){"use strict"},19136:function(){"use strict"},3634:function(en,Ee,f){"use strict";f.d(Ee,{t:function(){return N}});var E=f(59301),q=f(3113),C={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},_=f(92310),p=f.n(_),D=Object.defineProperty,T=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,y=(fe,Oe,V)=>Oe in fe?D(fe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:V}):fe[Oe]=V,Se=(fe,Oe)=>{for(var V in Oe||(Oe={}))me.call(Oe,V)&&y(fe,V,Oe[V]);if(T)for(var V of T(Oe))ne.call(Oe,V)&&y(fe,V,Oe[V]);return fe};const N=({cancelText:fe="\u53D6\u6D88",okText:Oe="\u786E\u5B9A",loading:V=!1,hasOkBtn:Ge=!0,hasCancelBtn:nt=!0,okButtonProps:Ze={},onCancel:tt=()=>{},onOk:j=()=>{},className:Z=""})=>E.createElement("div",{className:p()(C.buttonFixed,Z)},E.createElement("div",{className:C.buttonWrap},nt&&E.createElement(q.ZP,{size:"middle",className:`${C.button} mr20`,onClick:tt},fe),Ge&&E.createElement(q.ZP,Se({size:"middle",type:"primary",className:`${C.button} mr20`,loading:V,onClick:j},Ze),Oe)))},73278:function(en,Ee,f){"use strict";f.d(Ee,{h:function(){return Z}});var E=f(59301),q=f(57809),C=f(78241),_=f(3113),p=f(89780),D=f.n(p),T=f(78780),me=f(19136),ne=Object.defineProperty,y=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,V=(S,c,b)=>c in S?ne(S,c,{enumerable:!0,configurable:!0,writable:!0,value:b}):S[c]=b,Ge=(S,c)=>{for(var b in c||(c={}))fe.call(c,b)&&V(S,b,c[b]);if(N)for(var b of N(c))Oe.call(c,b)&&V(S,b,c[b]);return S},nt=(S,c)=>y(S,Se(c));const Ze=q.default.Option,tt={labelCol:{span:4},wrapperCol:{span:20}},j={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"]};Ee.Z=({callback:S,onCancel:c})=>{const[b,I]=(0,E.useState)("python");function $(ye){I(j[ye][1])}function R(ye){S(ye)}return E.createElement(C.default,nt(Ge({},tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:R,style:{width:500}}),E.createElement(C.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(q.default,{getPopupContainer:ye=>ye.parentNode,onChange:$},Object.keys(j).map(ye=>E.createElement(Ze,{key:ye,value:ye},j[ye][0])))),E.createElement(C.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(Z,{mode:b})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(_.ZP,{type:"ghost",onClick:c},"\u53D6\u6D88")))};function Z({value:S,onChange:c,mode:b,options:I={}}){const $=(0,E.useRef)(),[R,ye]=(0,E.useState)();return(0,E.useEffect)(()=>{if(R){let ze=function(Pe){const be=Pe.getValue();c&&c(be)};return R.on("change",ze),()=>{R.off("change",ze)}}},[R,c]),(0,E.useEffect)(()=>{R&&R.setOption("mode",b)},[R,b]),(0,E.useEffect)(()=>{R&&(S!==R.getValue()||S==="")&&setTimeout(()=>{R.setValue(S||"")},300)},[R,S]),(0,E.useEffect)(()=>{if($.current&&!R){const ze=D().fromTextArea($.current,Ge({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},I));ye(ze)}},[$.current,R]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:$}))}},91321:function(en,Ee,f){"use strict";f.r(Ee),f.d(Ee,{default:function(){return nt}});var E=f(59301),q=f(24459),C=f(78241),_=f(92832),p=f(73278),D=f(3634),T={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},me=Object.defineProperty,ne=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,N=(Ze,tt,j)=>tt in Ze?me(Ze,tt,{enumerable:!0,configurable:!0,writable:!0,value:j}):Ze[tt]=j,fe=(Ze,tt)=>{for(var j in tt||(tt={}))y.call(tt,j)&&N(Ze,j,tt[j]);if(ne)for(var j of ne(tt))Se.call(tt,j)&&N(Ze,j,tt[j]);return Ze},Oe=(Ze,tt)=>{var j={};for(var Z in Ze)y.call(Ze,Z)&&tt.indexOf(Z)<0&&(j[Z]=Ze[Z]);if(Ze!=null&&ne)for(var Z of ne(Ze))tt.indexOf(Z)<0&&Se.call(Ze,Z)&&(j[Z]=Ze[Z]);return j},V=(Ze,tt,j)=>new Promise((Z,S)=>{var c=$=>{try{I(j.next($))}catch(R){S(R)}},b=$=>{try{I(j.throw($))}catch(R){S(R)}},I=$=>$.done?Z($.value):Promise.resolve($.value).then(c,b);I((j=j.apply(Ze,tt)).next())});const Ge=Ze=>{var tt=Ze,{shixunsDetail:j,globalSetting:Z,loading:S,user:c,dispatch:b}=tt,I=Oe(tt,["shixunsDetail","globalSetting","loading","user","dispatch"]);const $=(0,q.useLocation)(),[R,ye]=(0,E.useState)({}),ze=(0,E.useRef)(),Pe=(0,E.useRef)(),[be]=C.default.useForm(),[ot,Ve]=(0,E.useState)("");(0,E.useEffect)(()=>(b({type:"globalSetting/footerToggle",payload:!1}),()=>{b({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,E.useEffect)(()=>{const K=sessionStorage.getItem("pathArray");if(K){const k=K.split(",").join("/"),ee=k.indexOf("/")===0?k.substr(1):k;Ve(ee)}},[]),(0,E.useEffect)(()=>{var K,k,ee,te;Pe.current=(k=(K=$.pathname)==null?void 0:K.split("/"))==null?void 0:k[2],ze.current=((te=(ee=$.pathname)==null?void 0:ee.split("/"))==null?void 0:te[3])==="repository"},[]);const je=(...K)=>V(void 0,[...K],function*(k={}){if(yield b({type:"shixunsDetail/addRepositoryFile",payload:{id:Pe.current,message:k.commitMessage,content:k.codeMirror,path:`${ot?`${ot}/`:""}${k.path||""}`,secret_repository:ze.current?void 0:!0}})){const te=ze.current?`/shixuns/${Pe.current}/repository${ot?`/master/shixun_show/${ot}`:""}`:`/shixuns/${Pe.current}/secret_repository`;q.history.replace(te)}}),le=()=>{var K,k;q.history.push(`/shixuns/${Pe.current}/${(k=(K=$.pathname)==null?void 0:K.split("/"))==null?void 0:k[3]}${ot?`/master/shixun_show/${ot}`:""}`)};return E.createElement("section",{className:T.bg},E.createElement("div",{className:T.wrap},E.createElement("div",{className:T.title},"\u65B0\u5EFA\u6587\u4EF6"),E.createElement(C.default,{className:"mt10",form:be,scrollToFirstError:!0,layout:"vertical",onFinish:je,onValuesChange:()=>ye(fe({},be.getFieldsValue()))},E.createElement(C.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},E.createElement(C.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},E.createElement("span",null,E.createElement("span",{className:"mr5"},ot?`${ot}/`:""),E.createElement(_.default,{className:T.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),E.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")),E.createElement(C.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"}]},E.createElement(_.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"})),E.createElement("div",{className:"mt10 mb20"},E.createElement(C.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},E.createElement(p.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"]}}))),E.createElement(C.default.Item,{noStyle:!0},E.createElement(D.t,{okButtonProps:{htmlType:"submit"},onCancel:le})))))};var nt=(0,q.connect)(({shixunsDetail:Ze,loading:tt,globalSetting:j,user:Z})=>({shixunsDetail:Ze,globalSetting:j,user:Z,loading:tt.models.index}))(Ge)},19080:function(en,Ee,f){"use strict";f.d(Ee,{F:function(){return p},Z:function(){return _}});var E=f(92310),q=f.n(E);const C=null;function _(D,T,me){return q()({[`${D}-status-success`]:T==="success",[`${D}-status-warning`]:T==="warning",[`${D}-status-error`]:T==="error",[`${D}-status-validating`]:T==="validating",[`${D}-has-feedback`]:me})}const p=(D,T)=>T||D},93891:function(en,Ee,f){"use strict";var E=f(59301),q=f(36355),C=f(64165);const _=p=>{const{componentName:D}=p,{getPrefixCls:T}=(0,E.useContext)(q.E_),me=T("empty");switch(D){case"Table":case"List":return E.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE,className:`${me}-small`});default:return E.createElement(C.Z,null)}};Ee.Z=_},64165:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return j}});var E=f(92310),q=f.n(E),C=f(59301),_=f(36355),p=f(9763),D=f(64993),T=f(88088),ne=()=>{const[,Z]=(0,T.Z)(),c=new D.C(Z.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return C.createElement("svg",{style:c,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(24 31.67)"},C.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),C.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"}),C.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)"}),C.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"}),C.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"})),C.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"}),C.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},C.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),C.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Se=()=>{const[,Z]=(0,T.Z)(),{colorFill:S,colorFillTertiary:c,colorFillQuaternary:b,colorBgContainer:I}=Z,{borderColor:$,shadowColor:R,contentColor:ye}=(0,C.useMemo)(()=>({borderColor:new D.C(S).onBackground(I).toHexShortString(),shadowColor:new D.C(c).onBackground(I).toHexShortString(),contentColor:new D.C(b).onBackground(I).toHexShortString()}),[S,c,b,I]);return C.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},C.createElement("ellipse",{fill:R,cx:"32",cy:"33",rx:"32",ry:"7"}),C.createElement("g",{fillRule:"nonzero",stroke:$},C.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"}),C.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:ye}))))},N=f(83116),fe=f(37613);const Oe=Z=>{const{componentCls:S,margin:c,marginXS:b,marginXL:I,fontSize:$,lineHeight:R}=Z;return{[S]:{marginInline:b,fontSize:$,lineHeight:R,textAlign:"center",[`${S}-image`]:{height:Z.emptyImgHeight,marginBottom:b,opacity:Z.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${S}-description`]:{color:Z.colorText},[`${S}-footer`]:{marginTop:c},"&-normal":{marginBlock:I,color:Z.colorTextDisabled,[`${S}-description`]:{color:Z.colorTextDisabled},[`${S}-image`]:{height:Z.emptyImgHeightMD}},"&-small":{marginBlock:b,color:Z.colorTextDisabled,[`${S}-image`]:{height:Z.emptyImgHeightSM}}}}};var V=(0,N.Z)("Empty",Z=>{const{componentCls:S,controlHeightLG:c}=Z,b=(0,fe.TS)(Z,{emptyImgCls:`${S}-img`,emptyImgHeight:c*2.5,emptyImgHeightMD:c,emptyImgHeightSM:c*.875});return[Oe(b)]}),Ge=function(Z,S){var c={};for(var b in Z)Object.prototype.hasOwnProperty.call(Z,b)&&S.indexOf(b)<0&&(c[b]=Z[b]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(Z);I{var{className:S,rootClassName:c,prefixCls:b,image:I=nt,description:$,children:R,imageStyle:ye,style:ze}=Z,Pe=Ge(Z,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:be,direction:ot,empty:Ve}=C.useContext(_.E_),je=be("empty",b),[le,K]=V(je),[k]=(0,p.Z)("Empty"),ee=typeof $!="undefined"?$:k==null?void 0:k.description,te=typeof ee=="string"?ee:"empty";let _e=null;return typeof I=="string"?_e=C.createElement("img",{alt:te,src:I}):_e=I,le(C.createElement("div",Object.assign({className:q()(K,je,Ve==null?void 0:Ve.className,{[`${je}-normal`]:I===Ze,[`${je}-rtl`]:ot==="rtl"},S,c),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),ze)},Pe),C.createElement("div",{className:`${je}-image`,style:ye},_e),ee&&C.createElement("div",{className:`${je}-description`},ee),R&&C.createElement("div",{className:`${je}-footer`},R)))};tt.PRESENTED_IMAGE_DEFAULT=nt,tt.PRESENTED_IMAGE_SIMPLE=Ze;var j=tt},78241:function(en,Ee,f){"use strict";f.d(Ee,{default:function(){return mt}});var E=f(26407),q=f(92310),C=f.n(q),_=f(77900),p=f(59301),D=f(62892),T=f(32441);function me(m){const[P,H]=p.useState(m);return p.useEffect(()=>{const d=setTimeout(()=>{H(m)},m.length?0:10);return()=>{clearTimeout(d)}},[m]),P}var ne=f(17313),y=f(29878),Se=f(8378),N=f(37613),fe=f(83116),V=m=>{const{componentCls:P}=m,H=`${P}-show-help`,d=`${P}-show-help-item`;return{[H]:{transition:`opacity ${m.motionDurationSlow} ${m.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[d]:{overflow:"hidden",transition:`height ${m.motionDurationSlow} ${m.motionEaseInOut}, opacity ${m.motionDurationSlow} ${m.motionEaseInOut}, transform ${m.motionDurationSlow} ${m.motionEaseInOut} !important`,[`&${d}-appear, &${d}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${d}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ge=m=>({legend:{display:"block",width:"100%",marginBottom:m.marginLG,padding:0,color:m.colorTextDescription,fontSize:m.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`},label:{fontSize:m.fontSize},'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 ${m.controlOutlineWidth}px ${m.controlOutline}`},output:{display:"block",paddingTop:15,color:m.colorText,fontSize:m.fontSize,lineHeight:m.lineHeight}}),nt=(m,P)=>{const{formItemCls:H}=m;return{[H]:{[`${H}-label > label`]:{height:P},[`${H}-control-input`]:{minHeight:P}}}},Ze=m=>{const{componentCls:P}=m;return{[m.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(m)),Ge(m)),{[`${P}-text`]:{display:"inline-block",paddingInlineEnd:m.paddingSM},"&-small":Object.assign({},nt(m,m.controlHeightSM)),"&-large":Object.assign({},nt(m,m.controlHeightLG))})}},tt=m=>{const{formItemCls:P,iconCls:H,componentCls:d,rootPrefixCls:h,labelRequiredMarkColor:x,labelColor:L,labelFontSize:J,labelHeight:B,labelColonMarginInlineStart:W,labelColonMarginInlineEnd:ie,itemMarginBottom:de}=m;return{[P]:Object.assign(Object.assign({},(0,ne.Wf)(m)),{marginBottom:de,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${h}-row`]:{display:"none"},"&-has-warning":{[`${P}-split`]:{color:m.colorError}},"&-has-error":{[`${P}-split`]:{color:m.colorWarning}},[`${P}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${m.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:B,color:L,fontSize:J,[`> ${H}`]:{fontSize:m.fontSize,verticalAlign:"top"},[`&${P}-required:not(${P}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:m.marginXXS,color:x,fontSize:m.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${d}-hide-required-mark &`]:{display:"none"}},[`${P}-optional`]:{display:"inline-block",marginInlineStart:m.marginXXS,color:m.colorTextDescription,[`${d}-hide-required-mark &`]:{display:"none"}},[`${P}-tooltip`]:{color:m.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:m.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:W,marginInlineEnd:ie},[`&${P}-no-colon::after`]:{content:'"\\a0"'}}},[`${P}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${h}-col-'"]):not([class*="' ${h}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:m.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[P]:{"&-explain, &-extra":{clear:"both",color:m.colorTextDescription,fontSize:m.fontSize,lineHeight:m.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:m.controlHeightSM,transition:`color ${m.motionDurationMid} ${m.motionEaseOut}`},"&-explain":{"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning}}},[`&-with-help ${P}-explain`]:{height:"auto",opacity:1},[`${P}-feedback-icon`]:{fontSize:m.fontSize,textAlign:"center",visibility:"visible",animationName:y.kr,animationDuration:m.motionDurationMid,animationTimingFunction:m.motionEaseOutBack,pointerEvents:"none","&-success":{color:m.colorSuccess},"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning},"&-validating":{color:m.colorPrimary}}})}},j=m=>{const{componentCls:P,formItemCls:H}=m;return{[`${P}-horizontal`]:{[`${H}-label`]:{flexGrow:0},[`${H}-control`]:{flex:"1 1 0",minWidth:0},[`${H}-label[class$='-24'], ${H}-label[class*='-24 ']`]:{[`& + ${H}-control`]:{minWidth:"unset"}}}}},Z=m=>{const{componentCls:P,formItemCls:H}=m;return{[`${P}-inline`]:{display:"flex",flexWrap:"wrap",[H]:{flex:"none",marginInlineEnd:m.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${H}-label, > ${H}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${H}-label`]:{flex:"none"},[`${P}-text`]:{display:"inline-block"},[`${H}-has-feedback`]:{display:"inline-block"}}}}},S=m=>({padding:m.verticalLabelPadding,margin:m.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),c=m=>{const{componentCls:P,formItemCls:H,rootPrefixCls:d}=m;return{[`${H} ${H}-label`]:S(m),[P]:{[H]:{flexWrap:"wrap",[`${H}-label, ${H}-control`]:{[`&:not([class*=" ${d}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b=m=>{const{componentCls:P,formItemCls:H,rootPrefixCls:d}=m;return{[`${P}-vertical`]:{[H]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${P}-item-control`]:{width:"100%"}}},[`${P}-vertical ${H}-label, .${d}-col-24${H}-label, .${d}-col-xl-24${H}-label`]:S(m),[`@media (max-width: ${m.screenXSMax}px)`]:[c(m),{[P]:{[`.${d}-col-xs-24${H}-label`]:S(m)}}],[`@media (max-width: ${m.screenSMMax}px)`]:{[P]:{[`.${d}-col-sm-24${H}-label`]:S(m)}},[`@media (max-width: ${m.screenMDMax}px)`]:{[P]:{[`.${d}-col-md-24${H}-label`]:S(m)}},[`@media (max-width: ${m.screenLGMax}px)`]:{[P]:{[`.${d}-col-lg-24${H}-label`]:S(m)}}}},I=(m,P)=>(0,N.TS)(m,{formItemCls:`${m.componentCls}-item`,rootPrefixCls:P});var $=(0,fe.Z)("Form",(m,P)=>{let{rootPrefixCls:H}=P;const d=I(m,H);return[Ze(d),tt(d),V(d),j(d),Z(d),b(d),(0,Se.Z)(d),y.kr]},m=>({labelRequiredMarkColor:m.colorError,labelColor:m.colorTextHeading,labelFontSize:m.fontSize,labelHeight:m.controlHeight,labelColonMarginInlineStart:m.marginXXS/2,labelColonMarginInlineEnd:m.marginXS,itemMarginBottom:m.marginLG,verticalLabelPadding:`0 0 ${m.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const R=[];function ye(m,P,H){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof m=="string"?m:`${P}-${d}`,error:m,errorStatus:H}}var Pe=m=>{let{help:P,helpStatus:H,errors:d=R,warnings:h=R,className:x,fieldId:L,onVisibleChanged:J}=m;const{prefixCls:B}=p.useContext(T.Rk),W=`${B}-item-explain`,[,ie]=$(B),de=(0,p.useMemo)(()=>(0,D.Z)(B),[B]),De=me(d),M=me(h),U=p.useMemo(()=>P!=null?[ye(P,"help",H)]:[].concat((0,E.Z)(De.map((Ce,Ae)=>ye(Ce,"error","error",Ae))),(0,E.Z)(M.map((Ce,Ae)=>ye(Ce,"warning","warning",Ae)))),[P,H,De,M]),Be={};return L&&(Be.id=`${L}_help`),p.createElement(_.default,{motionDeadline:de.motionDeadline,motionName:`${B}-show-help`,visible:!!U.length,onVisibleChanged:J},Ce=>{const{className:Ae,style:Ne}=Ce;return p.createElement("div",Object.assign({},Be,{className:C()(W,Ae,x,ie),style:Ne,role:"alert"}),p.createElement(_.CSSMotionList,Object.assign({keys:U},(0,D.Z)(B),{motionName:`${B}-show-help-item`,component:!1}),lt=>{const{key:X,error:re,errorStatus:Me,className:st,style:Je}=lt;return p.createElement("div",{key:X,className:C()(st,{[`${W}-${Me}`]:Me}),style:Je},re)}))})},be=f(95013),ot=f(36355),Ve=f(1684),je=f(52946),le=f(19716),K=f(16722);const k=["parentNode"],ee="form_item";function te(m){return m===void 0||m===!1?[]:Array.isArray(m)?m:[m]}function _e(m,P){if(!m.length)return;const H=m.join("_");return P?`${P}_${H}`:k.includes(H)?`${ee}_${H}`:H}function We(m,P,H,d,h,x){let L=d;return x!==void 0?L=x:H.validating?L="validating":m.length?L="error":P.length?L="warning":(H.touched||h&&H.validated)&&(L="success"),L}function oe(m){return te(m).join("_")}function Te(m){const[P]=(0,be.useForm)(),H=p.useRef({}),d=p.useMemo(()=>m!=null?m:Object.assign(Object.assign({},P),{__INTERNAL__:{itemRef:h=>x=>{const L=oe(h);x?H.current[L]=x:delete H.current[L]}},scrollToField:function(h){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=te(h),J=_e(L,d.__INTERNAL__.name),B=J?document.getElementById(J):null;B&&(0,K.Z)(B,Object.assign({scrollMode:"if-needed",block:"nearest"},x))},getFieldInstance:h=>{const x=oe(h);return H.current[x]}}),[m,P]);return[d]}var ue=f(28726),bt=function(m,P){var H={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&P.indexOf(d)<0&&(H[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h{const H=p.useContext(Ve.Z),{getPrefixCls:d,direction:h,form:x}=p.useContext(ot.E_),{prefixCls:L,className:J,rootClassName:B,size:W,disabled:ie=H,form:de,colon:De,labelAlign:M,labelWrap:U,labelCol:Be,wrapperCol:Ce,hideRequiredMark:Ae,layout:Ne="horizontal",scrollToFirstError:lt,requiredMark:X,onFinishFailed:re,name:Me,style:st,feedbackIcons:Je}=m,Xe=bt(m,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ut=(0,le.Z)(W),Rt=p.useContext(ue.Z),Ft=(0,p.useMemo)(()=>X!==void 0?X:x&&x.requiredMark!==void 0?x.requiredMark:!Ae,[Ae,X,x]),Nt=De!=null?De:x==null?void 0:x.colon,wt=d("form",L),[rn,Gt]=$(wt),Ht=C()(wt,`${wt}-${Ne}`,{[`${wt}-hide-required-mark`]:Ft===!1,[`${wt}-rtl`]:h==="rtl",[`${wt}-${Ut}`]:Ut},Gt,x==null?void 0:x.className,J,B),[Qt]=Te(de),{__INTERNAL__:Mt}=Qt;Mt.name=Me;const xt=(0,p.useMemo)(()=>({name:Me,labelAlign:M,labelCol:Be,labelWrap:U,wrapperCol:Ce,vertical:Ne==="vertical",colon:Nt,requiredMark:Ft,itemRef:Mt.itemRef,form:Qt,feedbackIcons:Je}),[Me,M,Be,Ce,Ne,Nt,Ft,Qt,Je]);p.useImperativeHandle(P,()=>Qt);const $t=(pn,At)=>{if(pn){let Bt={block:"nearest"};typeof pn=="object"&&(Bt=pn),Qt.scrollToField(At,Bt)}},Et=pn=>{if(re==null||re(pn),pn.errorFields.length){const At=pn.errorFields[0].name;if(lt!==void 0){$t(lt,At);return}x&&x.scrollToFirstError!==void 0&&$t(x.scrollToFirstError,At)}};return rn(p.createElement(Ve.n,{disabled:ie},p.createElement(je.q,{size:Ut},p.createElement(T.RV,Object.assign({},{validateMessages:Rt}),p.createElement(T.q3.Provider,{value:xt},p.createElement(be.default,Object.assign({id:Me},Xe,{name:Me,onFinishFailed:Et,form:Qt,style:Object.assign(Object.assign({},x==null?void 0:x.style),st),className:Ht})))))))};var qe=p.forwardRef(Dt),Ot=f(41799),at=f(8654),zt=f(92343),F=f(11592);function he(m){if(typeof m=="function")return m;const P=(0,F.Z)(m);return P.length<=1?P[0]:P}const G=()=>{const{status:m,errors:P=[],warnings:H=[]}=(0,p.useContext)(T.aM);return{status:m,errors:P,warnings:H}};G.Context=T.aM;var Q=G,se=f(16089);function we(m){const[P,H]=p.useState(m),d=(0,p.useRef)(null),h=(0,p.useRef)([]),x=(0,p.useRef)(!1);p.useEffect(()=>(x.current=!1,()=>{x.current=!0,se.Z.cancel(d.current),d.current=null}),[]);function L(J){x.current||(d.current===null&&(h.current=[],d.current=(0,se.Z)(()=>{d.current=null,H(B=>{let W=B;return h.current.forEach(ie=>{W=ie(W)}),W})})),h.current.push(J))}return[P,L]}function pe(){const{itemRef:m}=p.useContext(T.q3),P=p.useRef({});function H(d,h){const x=h&&typeof h=="object"&&h.ref,L=d.join("_");return(P.current.name!==L||P.current.originRef!==x)&&(P.current.name=L,P.current.originRef=x,P.current.ref=(0,at.sQ)(m(d),x)),P.current.ref}return H}var ae=f(29194),ce=f(34280),He=f(2738),Ie=f(27382),ge=f(37028);const Ke=m=>{const{formItemCls:P}=m;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${P}-control`]:{display:"flex"}}}};var xe=(0,fe.b)(["Form","item-item"],(m,P)=>{let{rootPrefixCls:H}=P;const d=I(m,H);return[Ke(d)]}),A=m=>{const{prefixCls:P,status:H,wrapperCol:d,children:h,errors:x,warnings:L,_internalItemRender:J,extra:B,help:W,fieldId:ie,marginBottom:de,onErrorVisibleChanged:De}=m,M=`${P}-item`,U=p.useContext(T.q3),Be=d||U.wrapperCol||{},Ce=C()(`${M}-control`,Be.className),Ae=p.useMemo(()=>Object.assign({},U),[U]);delete Ae.labelCol,delete Ae.wrapperCol;const Ne=p.createElement("div",{className:`${M}-control-input`},p.createElement("div",{className:`${M}-control-input-content`},h)),lt=p.useMemo(()=>({prefixCls:P,status:H}),[P,H]),X=de!==null||x.length||L.length?p.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},p.createElement(T.Rk.Provider,{value:lt},p.createElement(Pe,{fieldId:ie,errors:x,warnings:L,help:W,helpStatus:H,className:`${M}-explain-connected`,onVisibleChanged:De})),!!de&&p.createElement("div",{style:{width:0,height:de}})):null,re={};ie&&(re.id=`${ie}_extra`);const Me=B?p.createElement("div",Object.assign({},re,{className:`${M}-extra`}),B):null,st=J&&J.mark==="pro_table_render"&&J.render?J.render(m,{input:Ne,errorList:X,extra:Me}):p.createElement(p.Fragment,null,Ne,X,Me);return p.createElement(T.q3.Provider,{value:Ae},p.createElement(ge.Z,Object.assign({},Be,{className:Ce}),st),p.createElement(xe,{prefixCls:P}))},rt=f(61485),ut=f(31724),Fe=f(9763),ht=f(6848),Pt=function(m,P){var H={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&P.indexOf(d)<0&&(H[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h{let{prefixCls:P,label:H,htmlFor:d,labelCol:h,labelAlign:x,colon:L,required:J,requiredMark:B,tooltip:W}=m;var ie;const[de]=(0,Fe.Z)("Form"),{vertical:De,labelAlign:M,labelCol:U,labelWrap:Be,colon:Ce}=p.useContext(T.q3);if(!H)return null;const Ae=h||U||{},Ne=x||M,lt=`${P}-item-label`,X=C()(lt,Ne==="left"&&`${lt}-left`,Ae.className,{[`${lt}-wrap`]:!!Be});let re=H;const Me=L===!0||Ce!==!1&&L!==!1;Me&&!De&&typeof H=="string"&&H.trim()!==""&&(re=H.replace(/[:|:]\s*$/,""));const Je=Kt(W);if(Je){const{icon:Ft=p.createElement(rt.Z,null)}=Je,Nt=Pt(Je,["icon"]),wt=p.createElement(ht.Z,Object.assign({},Nt),p.cloneElement(Ft,{className:`${P}-item-tooltip`,title:""}));re=p.createElement(p.Fragment,null,re,wt)}const Xe=B==="optional",Ut=typeof B=="function";Ut?re=B(re,{required:!!J}):Xe&&!J&&(re=p.createElement(p.Fragment,null,re,p.createElement("span",{className:`${P}-item-optional`,title:""},(de==null?void 0:de.optional)||((ie=ut.Z.Form)===null||ie===void 0?void 0:ie.optional))));const Rt=C()({[`${P}-item-required`]:J,[`${P}-item-required-mark-optional`]:Xe||Ut,[`${P}-item-no-colon`]:!Me});return p.createElement(ge.Z,Object.assign({},Ae,{className:X}),p.createElement("label",{htmlFor:d,className:Rt,title:typeof H=="string"?H:""},re))},_t=f(29679),kt=f(19248),gn=f(96512),nn=f(58617);const cn={success:_t.Z,warning:gn.Z,error:kt.Z,validating:nn.Z};function Ln(m){let{children:P,errors:H,warnings:d,hasFeedback:h,validateStatus:x,prefixCls:L,meta:J,noStyle:B}=m;const W=`${L}-item`,{feedbackIcons:ie}=p.useContext(T.q3),de=We(H,d,J,null,!!h,x),{isFormItemInput:De,status:M}=p.useContext(T.aM),U=p.useMemo(()=>{var Be;let Ce;if(h){const lt=h!==!0&&h.icons||ie,X=de&&((Be=lt==null?void 0:lt({status:de,errors:H,warnings:d}))===null||Be===void 0?void 0:Be[de]),re=de&&cn[de];Ce=X!==!1&&re?p.createElement("span",{className:C()(`${W}-feedback-icon`,`${W}-feedback-icon-${de}`)},X||p.createElement(re,null)):null}let Ae=!0,Ne=de||"";return B&&(Ae=De,Ne=(de!=null?de:M)||""),{status:Ne,errors:H,warnings:d,hasFeedback:!!h,feedbackIcon:Ce,isFormItemInput:Ae}},[de,h,B,De,M]);return p.createElement(T.aM.Provider,{value:U},P)}var Hn=function(m,P){var H={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&P.indexOf(d)<0&&(H[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h{if(Je&&X.current){const Gt=getComputedStyle(X.current);Rt(parseInt(Gt.marginBottom,10))}},[Je,Xe]);const Ft=Gt=>{Gt||Rt(null)},wt=function(){let Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ht=Gt?re:W.errors,Qt=Gt?Me:W.warnings;return We(Ht,Qt,W,"",!!ie,B)}(),rn=C()(Ne,H,d,{[`${Ne}-with-help`]:st||re.length||Me.length,[`${Ne}-has-feedback`]:wt&&ie,[`${Ne}-has-success`]:wt==="success",[`${Ne}-has-warning`]:wt==="warning",[`${Ne}-has-error`]:wt==="error",[`${Ne}-is-validating`]:wt==="validating",[`${Ne}-hidden`]:de});return p.createElement("div",{className:rn,style:h,ref:X},p.createElement(Ie.Z,Object.assign({className:`${Ne}-row`},(0,He.Z)(Ae,["_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(gt,Object.assign({htmlFor:M},m,{requiredMark:lt,required:U!=null?U:Be,prefixCls:P})),p.createElement(A,Object.assign({},m,W,{errors:re,warnings:Me,prefixCls:P,status:wt,help:x,marginBottom:Ut,onErrorVisibleChanged:Ft}),p.createElement(T.qI.Provider,{value:Ce},p.createElement(Ln,{prefixCls:P,meta:W,errors:W.errors,warnings:W.warnings,hasFeedback:ie,validateStatus:wt},De)))),!!Ut&&p.createElement("div",{className:`${Ne}-margin-offset`,style:{marginBottom:-Ut}}))}const ln="__SPLIT__",_n=null,sn=p.memo(m=>{let{children:P}=m;return P},(m,P)=>m.value===P.value&&m.update===P.update&&m.childProps.length===P.childProps.length&&m.childProps.every((H,d)=>H===P.childProps[d]));function An(m){return m!=null}function hn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Cn(m){const{name:P,noStyle:H,className:d,dependencies:h,prefixCls:x,shouldUpdate:L,rules:J,children:B,required:W,label:ie,messageVariables:de,trigger:De="onChange",validateTrigger:M,hidden:U,help:Be}=m,{getPrefixCls:Ce}=p.useContext(ot.E_),{name:Ae}=p.useContext(T.q3),Ne=he(B),lt=typeof Ne=="function",X=p.useContext(T.qI),{validateTrigger:re}=p.useContext(be.FieldContext),Me=M!==void 0?M:re,st=An(P),Je=Ce("form",x),[Xe,Ut]=$(Je),Rt=p.useContext(be.ListContext),Ft=p.useRef(),[Nt,wt]=we({}),[rn,Gt]=(0,Ot.Z)(()=>hn()),Ht=At=>{const Bt=Rt==null?void 0:Rt.getKey(At.name);if(Gt(At.destroy?hn():At,!0),H&&Be!==!1&&X){let Jt=At.name;if(At.destroy)Jt=Ft.current||Jt;else if(Bt!==void 0){const[jt,Tn]=Bt;Jt=[jt].concat((0,E.Z)(Tn)),Ft.current=Jt}X(At,Jt)}},Qt=(At,Bt)=>{wt(Jt=>{const jt=Object.assign({},Jt),Bn=[].concat((0,E.Z)(At.name.slice(0,-1)),(0,E.Z)(Bt)).join(ln);return At.destroy?delete jt[Bn]:jt[Bn]=At,jt})},[Mt,xt]=p.useMemo(()=>{const At=(0,E.Z)(rn.errors),Bt=(0,E.Z)(rn.warnings);return Object.values(Nt).forEach(Jt=>{At.push.apply(At,(0,E.Z)(Jt.errors||[])),Bt.push.apply(Bt,(0,E.Z)(Jt.warnings||[]))}),[At,Bt]},[Nt,rn.errors,rn.warnings]),$t=pe();function Et(At,Bt,Jt){return H&&!U?p.createElement(Ln,{prefixCls:Je,hasFeedback:m.hasFeedback,validateStatus:m.validateStatus,meta:rn,errors:Mt,warnings:xt,noStyle:!0},At):p.createElement(Un,Object.assign({key:"row"},m,{className:C()(d,Ut),prefixCls:Je,fieldId:Bt,isRequired:Jt,errors:Mt,warnings:xt,meta:rn,onSubItemMetaChange:Qt}),At)}if(!st&&!lt&&!h)return Xe(Et(Ne));let pn={};return typeof ie=="string"?pn.label=ie:P&&(pn.label=String(P)),de&&(pn=Object.assign(Object.assign({},pn),de)),Xe(p.createElement(be.Field,Object.assign({},m,{messageVariables:pn,trigger:De,validateTrigger:Me,onMetaChange:Ht}),(At,Bt,Jt)=>{const jt=te(P).length&&Bt?Bt.name:[],Tn=_e(jt,Ae),Bn=W!==void 0?W:!!(J&&J.some(vt=>{if(vt&&typeof vt=="object"&&vt.required&&!vt.warningOnly)return!0;if(typeof vt=="function"){const Xt=vt(Jt);return Xt&&Xt.required&&!Xt.warningOnly}return!1})),It=Object.assign({},At);let ft=null;if(Array.isArray(Ne)&&st)ft=Ne;else if(!(lt&&(!(L||h)||st))){if(!(h&&!lt&&!st))if((0,zt.l$)(Ne)){const vt=Object.assign(Object.assign({},Ne.props),It);if(vt.id||(vt.id=Tn),Be||Mt.length>0||xt.length>0||m.extra){const Vt=[];(Be||Mt.length>0)&&Vt.push(`${Tn}_help`),m.extra&&Vt.push(`${Tn}_extra`),vt["aria-describedby"]=Vt.join(" ")}Mt.length>0&&(vt["aria-invalid"]="true"),Bn&&(vt["aria-required"]="true"),(0,at.Yr)(Ne)&&(vt.ref=$t(jt,Ne)),new Set([].concat((0,E.Z)(te(De)),(0,E.Z)(te(Me)))).forEach(Vt=>{vt[Vt]=function(){for(var Lt,an,mn,Dn,wn,En=arguments.length,ke=new Array(En),$e=0;$e{var{prefixCls:P,children:H}=m,d=Mn(m,["prefixCls","children"]);const{getPrefixCls:h}=p.useContext(ot.E_),x=h("form",P),L=p.useMemo(()=>({prefixCls:x,status:"error"}),[x]);return p.createElement(be.List,Object.assign({},d),(J,B,W)=>p.createElement(T.Rk.Provider,{value:L},H(J.map(ie=>Object.assign(Object.assign({},ie),{fieldKey:ie.key})),B,{errors:W.errors,warnings:W.warnings})))};function vn(){const{form:m}=(0,p.useContext)(T.q3);return m}const ct=qe;ct.Item=fn,ct.List=cr,ct.ErrorList=Pe,ct.useForm=Te,ct.useFormInstance=vn,ct.useWatch=be.useWatch,ct.Provider=T.RV,ct.create=()=>{};var mt=ct},9432:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return tt},n:function(){return nt}});var E=f(19248),q=f(92310),C=f.n(q),_=f(93681),p=f(8654),D=f(59301),T=f(19080),me=f(36355),ne=f(1684),y=f(19716),Se=f(32441),N=f(33234),fe=f(59412),Oe=f(9937);function V(j){return!!(j.prefix||j.suffix||j.allowClear)}var Ge=function(j,Z){var S={};for(var c in j)Object.prototype.hasOwnProperty.call(j,c)&&Z.indexOf(c)<0&&(S[c]=j[c]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,c=Object.getOwnPropertySymbols(j);b{var S;const{prefixCls:c,bordered:b=!0,status:I,size:$,disabled:R,onBlur:ye,onFocus:ze,suffix:Pe,allowClear:be,addonAfter:ot,addonBefore:Ve,className:je,style:le,styles:K,rootClassName:k,onChange:ee,classNames:te}=j,_e=Ge(j,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:We,direction:oe,input:Te}=D.useContext(me.E_),ue=We("input",c),bt=(0,D.useRef)(null),[Dt,St]=(0,Oe.ZP)(ue),{compactSize:qe,compactItemClassnames:Ot}=(0,N.ri)(ue,oe),at=(0,y.Z)(xe=>{var Qe;return(Qe=$!=null?$:qe)!==null&&Qe!==void 0?Qe:xe}),zt=D.useContext(ne.Z),F=R!=null?R:zt,{status:he,hasFeedback:G,feedbackIcon:Q}=(0,D.useContext)(Se.aM),se=(0,T.F)(he,I),we=V(j)||!!G,pe=(0,D.useRef)(we);(0,D.useEffect)(()=>{var xe;we&&pe.current,pe.current=we},[we]);const ae=(0,fe.Z)(bt,!0),ce=xe=>{ae(),ye==null||ye(xe)},He=xe=>{ae(),ze==null||ze(xe)},Ie=xe=>{ae(),ee==null||ee(xe)},ge=(G||Pe)&&D.createElement(D.Fragment,null,Pe,G&&Q);let Ke;return typeof be=="object"&&(be!=null&&be.clearIcon)?Ke=be:be&&(Ke={clearIcon:D.createElement(E.Z,null)}),Dt(D.createElement(_.default,Object.assign({ref:(0,p.sQ)(Z,bt),prefixCls:ue,autoComplete:Te==null?void 0:Te.autoComplete},_e,{disabled:F,onBlur:ce,onFocus:He,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),le),styles:Object.assign(Object.assign({},Te==null?void 0:Te.styles),K),suffix:ge,allowClear:Ke,className:C()(je,k,Ot,Te==null?void 0:Te.className),onChange:Ie,addonAfter:ot&&D.createElement(N.BR,null,D.createElement(Se.Ux,{override:!0,status:!0},ot)),addonBefore:Ve&&D.createElement(N.BR,null,D.createElement(Se.Ux,{override:!0,status:!0},Ve)),classNames:Object.assign(Object.assign(Object.assign({},te),Te==null?void 0:Te.classNames),{input:C()({[`${ue}-sm`]:at==="small",[`${ue}-lg`]:at==="large",[`${ue}-rtl`]:oe==="rtl",[`${ue}-borderless`]:!b},!we&&(0,T.Z)(ue,se),te==null?void 0:te.input,(S=Te==null?void 0:Te.classNames)===null||S===void 0?void 0:S.input,St)}),classes:{affixWrapper:C()({[`${ue}-affix-wrapper-sm`]:at==="small",[`${ue}-affix-wrapper-lg`]:at==="large",[`${ue}-affix-wrapper-rtl`]:oe==="rtl",[`${ue}-affix-wrapper-borderless`]:!b},(0,T.Z)(`${ue}-affix-wrapper`,se,G),St),wrapper:C()({[`${ue}-group-rtl`]:oe==="rtl"},St),group:C()({[`${ue}-group-wrapper-sm`]:at==="small",[`${ue}-group-wrapper-lg`]:at==="large",[`${ue}-group-wrapper-rtl`]:oe==="rtl",[`${ue}-group-wrapper-disabled`]:F},(0,T.Z)(`${ue}-group-wrapper`,se,G),St)}})))})},1643:function(en,Ee,f){"use strict";var E=f(19248),q=f(92310),C=f.n(q),_=f(9296),p=f(59301),D=f(19080),T=f(36355),me=f(1684),ne=f(19716),y=f(32441),Se=f(9432),N=f(9937),fe=function(V,Ge){var nt={};for(var Ze in V)Object.prototype.hasOwnProperty.call(V,Ze)&&Ge.indexOf(Ze)<0&&(nt[Ze]=V[Ze]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(V);tt{const{prefixCls:nt,bordered:Ze=!0,size:tt,disabled:j,status:Z,allowClear:S,showCount:c,classNames:b,rootClassName:I,className:$}=V,R=fe(V,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ye,direction:ze}=p.useContext(T.E_),Pe=(0,ne.Z)(tt),be=p.useContext(me.Z),ot=j!=null?j:be,{status:Ve,hasFeedback:je,feedbackIcon:le}=p.useContext(y.aM),K=(0,D.F)(Ve,Z),k=p.useRef(null);p.useImperativeHandle(Ge,()=>{var oe;return{resizableTextArea:(oe=k.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:Te=>{var ue,bt;(0,Se.n)((bt=(ue=k.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||bt===void 0?void 0:bt.textArea,Te)},blur:()=>{var Te;return(Te=k.current)===null||Te===void 0?void 0:Te.blur()}}});const ee=ye("input",nt);let te;typeof S=="object"&&(S!=null&&S.clearIcon)?te=S:S&&(te={clearIcon:p.createElement(E.Z,null)});const[_e,We]=(0,N.ZP)(ee);return _e(p.createElement(_.default,Object.assign({},R,{disabled:ot,allowClear:te,className:C()($,I),classes:{affixWrapper:C()(`${ee}-textarea-affix-wrapper`,{[`${ee}-affix-wrapper-rtl`]:ze==="rtl",[`${ee}-affix-wrapper-borderless`]:!Ze,[`${ee}-affix-wrapper-sm`]:Pe==="small",[`${ee}-affix-wrapper-lg`]:Pe==="large",[`${ee}-textarea-show-count`]:c},(0,D.Z)(`${ee}-affix-wrapper`,K),We)},classNames:Object.assign(Object.assign({},b),{textarea:C()({[`${ee}-borderless`]:!Ze,[`${ee}-sm`]:Pe==="small",[`${ee}-lg`]:Pe==="large"},(0,D.Z)(ee,K),We,b==null?void 0:b.textarea)}),prefixCls:ee,suffix:je&&p.createElement("span",{className:`${ee}-textarea-suffix`},le),showCount:c,ref:k})))});Ee.Z=Oe},59412:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return q}});var E=f(59301);function q(C,_){const p=(0,E.useRef)([]),D=()=>{p.current.push(setTimeout(()=>{var T,me,ne,y;!((T=C.current)===null||T===void 0)&&T.input&&((me=C.current)===null||me===void 0?void 0:me.input.getAttribute("type"))==="password"&&(!((ne=C.current)===null||ne===void 0)&&ne.input.hasAttribute("value"))&&((y=C.current)===null||y===void 0||y.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(_&&D(),()=>p.current.forEach(T=>{T&&clearTimeout(T)})),[]),D}},92832:function(en,Ee,f){"use strict";f.d(Ee,{default:function(){return Pe}});var E=f(92310),q=f.n(E),C=f(59301),_=f(36355),p=f(32441),D=f(9937),me=be=>{const{getPrefixCls:ot,direction:Ve}=(0,C.useContext)(_.E_),{prefixCls:je,className:le}=be,K=ot("input-group",je),k=ot("input"),[ee,te]=(0,D.ZP)(k),_e=q()(K,{[`${K}-lg`]:be.size==="large",[`${K}-sm`]:be.size==="small",[`${K}-compact`]:be.compact,[`${K}-rtl`]:Ve==="rtl"},te,le),We=(0,C.useContext)(p.aM),oe=(0,C.useMemo)(()=>Object.assign(Object.assign({},We),{isFormItemInput:!1}),[We]);return ee(C.createElement("span",{className:_e,style:be.style,onMouseEnter:be.onMouseEnter,onMouseLeave:be.onMouseLeave,onFocus:be.onFocus,onBlur:be.onBlur},C.createElement(p.aM.Provider,{value:oe},be.children)))},ne=f(9432),y=f(73331),Se=f(15277),N=f(2738),fe=f(8654),Oe=f(59412),V=function(be,ot){var Ve={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&ot.indexOf(je)<0&&(Ve[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,je=Object.getOwnPropertySymbols(be);lebe?C.createElement(Se.Z,null):C.createElement(y.Z,null),nt={click:"onClick",hover:"onMouseOver"};var tt=C.forwardRef((be,ot)=>{const{visibilityToggle:Ve=!0}=be,je=typeof Ve=="object"&&Ve.visible!==void 0,[le,K]=(0,C.useState)(()=>je?Ve.visible:!1),k=(0,C.useRef)(null);C.useEffect(()=>{je&&K(Ve.visible)},[je,Ve]);const ee=(0,Oe.Z)(k),te=()=>{const{disabled:F}=be;F||(le&&ee(),K(he=>{var G;const Q=!he;return typeof Ve=="object"&&((G=Ve.onVisibleChange)===null||G===void 0||G.call(Ve,Q)),Q}))},_e=F=>{const{action:he="click",iconRender:G=Ge}=be,Q=nt[he]||"",se=G(le),we={[Q]:te,className:`${F}-icon`,key:"passwordIcon",onMouseDown:pe=>{pe.preventDefault()},onMouseUp:pe=>{pe.preventDefault()}};return C.cloneElement(C.isValidElement(se)?se:C.createElement("span",null,se),we)},{className:We,prefixCls:oe,inputPrefixCls:Te,size:ue}=be,bt=V(be,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Dt}=C.useContext(_.E_),St=Dt("input",Te),qe=Dt("input-password",oe),Ot=Ve&&_e(qe),at=q()(qe,We,{[`${qe}-${ue}`]:!!ue}),zt=Object.assign(Object.assign({},(0,N.Z)(bt,["suffix","iconRender","visibilityToggle"])),{type:le?"text":"password",className:at,prefixCls:St,suffix:Ot});return ue&&(zt.size=ue),C.createElement(ne.Z,Object.assign({ref:(0,fe.sQ)(ot,k)},zt))}),j=f(47472),Z=f(92343),S=f(3113),c=f(19716),b=f(33234),I=function(be,ot){var Ve={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&ot.indexOf(je)<0&&(Ve[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,je=Object.getOwnPropertySymbols(be);le{const{prefixCls:Ve,inputPrefixCls:je,className:le,size:K,suffix:k,enterButton:ee=!1,addonAfter:te,loading:_e,disabled:We,onSearch:oe,onChange:Te,onCompositionStart:ue,onCompositionEnd:bt}=be,Dt=I(be,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:qe}=C.useContext(_.E_),Ot=C.useRef(!1),at=St("input-search",Ve),zt=St("input",je),{compactSize:F}=(0,b.ri)(at,qe),he=(0,c.Z)(A=>{var rt;return(rt=K!=null?K:F)!==null&&rt!==void 0?rt:A}),G=C.useRef(null),Q=A=>{A&&A.target&&A.type==="click"&&oe&&oe(A.target.value,A,{source:"clear"}),Te&&Te(A)},se=A=>{var rt;document.activeElement===((rt=G.current)===null||rt===void 0?void 0:rt.input)&&A.preventDefault()},we=A=>{var rt,ut;oe&&oe((ut=(rt=G.current)===null||rt===void 0?void 0:rt.input)===null||ut===void 0?void 0:ut.value,A,{source:"input"})},pe=A=>{Ot.current||_e||we(A)},ae=typeof ee=="boolean"?C.createElement(j.Z,null):null,ce=`${at}-button`;let He;const Ie=ee||{},ge=Ie.type&&Ie.type.__ANT_BUTTON===!0;ge||Ie.type==="button"?He=(0,Z.Tm)(Ie,Object.assign({onMouseDown:se,onClick:A=>{var rt,ut;(ut=(rt=Ie==null?void 0:Ie.props)===null||rt===void 0?void 0:rt.onClick)===null||ut===void 0||ut.call(rt,A),we(A)},key:"enterButton"},ge?{className:ce,size:he}:{})):He=C.createElement(S.ZP,{className:ce,type:ee?"primary":void 0,size:he,disabled:We,key:"enterButton",onMouseDown:se,onClick:we,loading:_e,icon:ae},ee),te&&(He=[He,(0,Z.Tm)(te,{key:"addonAfter"})]);const Ke=q()(at,{[`${at}-rtl`]:qe==="rtl",[`${at}-${he}`]:!!he,[`${at}-with-button`]:!!ee},le),xe=A=>{Ot.current=!0,ue==null||ue(A)},Qe=A=>{Ot.current=!1,bt==null||bt(A)};return C.createElement(ne.Z,Object.assign({ref:(0,fe.sQ)(G,ot),onPressEnter:pe},Dt,{size:he,onCompositionStart:xe,onCompositionEnd:Qe,prefixCls:zt,addonAfter:He,suffix:k,onChange:Q,className:Ke,disabled:We}))}),ye=f(1643);const ze=ne.Z;ze.Group=me,ze.Search=R,ze.TextArea=ye.Z,ze.Password=tt;var Pe=ze},9937:function(en,Ee,f){"use strict";f.d(Ee,{M1:function(){return T},TM:function(){return Z},Xy:function(){return me},bi:function(){return Se},e5:function(){return j},ik:function(){return N},nz:function(){return p},pU:function(){return D},s7:function(){return fe},x0:function(){return y}});var E=f(17313),q=f(74207),C=f(37613),_=f(83116);const p=S=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:S,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),D=S=>({borderColor:S.hoverBorderColor}),T=S=>({borderColor:S.activeBorderColor,boxShadow:S.activeShadow,outline:0}),me=S=>({color:S.colorTextDisabled,backgroundColor:S.colorBgContainerDisabled,borderColor:S.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},D((0,C.TS)(S,{hoverBorderColor:S.colorBorder})))}),ne=S=>{const{paddingBlockLG:c,fontSizeLG:b,lineHeightLG:I,borderRadiusLG:$,paddingInlineLG:R}=S;return{padding:`${c}px ${R}px`,fontSize:b,lineHeight:I,borderRadius:$}},y=S=>({padding:`${S.paddingBlockSM}px ${S.paddingInlineSM}px`,borderRadius:S.borderRadiusSM}),Se=(S,c)=>{const{componentCls:b,colorError:I,colorWarning:$,errorActiveShadow:R,warningActiveShadow:ye,colorErrorBorderHover:ze,colorWarningBorderHover:Pe}=S;return{[`&-status-error:not(${c}-disabled):not(${c}-borderless)${c}`]:{borderColor:I,"&:hover":{borderColor:ze},"&:focus, &-focused":Object.assign({},T((0,C.TS)(S,{activeBorderColor:I,activeShadow:R}))),[`${b}-prefix, ${b}-suffix`]:{color:I}},[`&-status-warning:not(${c}-disabled):not(${c}-borderless)${c}`]:{borderColor:$,"&:hover":{borderColor:Pe},"&:focus, &-focused":Object.assign({},T((0,C.TS)(S,{activeBorderColor:$,activeShadow:ye}))),[`${b}-prefix, ${b}-suffix`]:{color:$}}}},N=S=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${S.paddingBlock}px ${S.paddingInline}px`,color:S.colorText,fontSize:S.fontSize,lineHeight:S.lineHeight,backgroundColor:S.colorBgContainer,backgroundImage:"none",borderWidth:S.lineWidth,borderStyle:S.lineType,borderColor:S.colorBorder,borderRadius:S.borderRadius,transition:`all ${S.motionDurationMid}`},p(S.colorTextPlaceholder)),{"&:hover":Object.assign({},D(S)),"&:focus, &-focused":Object.assign({},T(S)),"&-disabled, &[disabled]":Object.assign({},me(S)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:S.controlHeight,lineHeight:S.lineHeight,verticalAlign:"bottom",transition:`all ${S.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ne(S)),"&-sm":Object.assign({},y(S)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),fe=S=>{const{componentCls:c,antCls:b}=S;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:S.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${c}, &-lg > ${c}-group-addon`]:Object.assign({},ne(S)),[`&-sm ${c}, &-sm > ${c}-group-addon`]:Object.assign({},y(S)),[`&-lg ${b}-select-single ${b}-select-selector`]:{height:S.controlHeightLG},[`&-sm ${b}-select-single ${b}-select-selector`]:{height:S.controlHeightSM},[`> ${c}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${c}-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 ${S.paddingInline}px`,color:S.colorText,fontWeight:"normal",fontSize:S.fontSize,textAlign:"center",backgroundColor:S.colorFillAlter,border:`${S.lineWidth}px ${S.lineType} ${S.colorBorder}`,borderRadius:S.borderRadius,transition:`all ${S.motionDurationSlow}`,lineHeight:1,[`${b}-select`]:{margin:`-${S.paddingBlock+1}px -${S.paddingInline}px`,[`&${b}-select-single:not(${b}-select-customize-input)`]:{[`${b}-select-selector`]:{backgroundColor:"inherit",border:`${S.lineWidth}px ${S.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${b}-select-selector`]:{color:S.colorPrimary}}},[`${b}-cascader-picker`]:{margin:`-9px -${S.paddingInline}px`,backgroundColor:"transparent",[`${b}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${c}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${c}-search-with-button &`]:{zIndex:0}}},[`> ${c}:first-child, ${c}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${c}-affix-wrapper`]:{[`&:not(:first-child) ${c}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${c}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${c}:last-child, ${c}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${c}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${c}-search &`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius}},[`&:not(:first-child), ${c}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${c}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,E.dF)()),{[`${c}-group-addon, ${c}-group-wrap, > ${c}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:S.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${c}-affix-wrapper, & > ${c}-number-affix-wrapper, & > ${b}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-S.lineWidth,borderInlineEndWidth:S.lineWidth},[`${c}`]:{float:"none"},[`& > ${b}-select > ${b}-select-selector, & > ${b}-select-auto-complete ${c}, & > ${b}-cascader-picker ${c}, & > ${c}-group-wrapper ${c}`]:{borderInlineEndWidth:S.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${b}-select-focused`]:{zIndex:1},[`& > ${b}-select > ${b}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${b}-select:first-child > ${b}-select-selector, & > ${b}-select-auto-complete:first-child ${c}, & > ${b}-cascader-picker:first-child ${c}`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius},[`& > *:last-child, & > ${b}-select:last-child > ${b}-select-selector, & > ${b}-cascader-picker:last-child ${c}, & > ${b}-cascader-picker-focused:last-child ${c}`]:{borderInlineEndWidth:S.lineWidth,borderStartEndRadius:S.borderRadius,borderEndEndRadius:S.borderRadius},[`& > ${b}-select-auto-complete ${c}`]:{verticalAlign:"top"},[`${c}-group-wrapper + ${c}-group-wrapper`]:{marginInlineStart:-S.lineWidth,[`${c}-affix-wrapper`]:{borderRadius:0}},[`${c}-group-wrapper:not(:last-child)`]:{[`&${c}-search > ${c}-group`]:{[`& > ${c}-group-addon > ${c}-search-button`]:{borderRadius:0},[`& > ${c}`]:{borderStartStartRadius:S.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:S.borderRadius}}}})}},Oe=S=>{const{componentCls:c,controlHeightSM:b,lineWidth:I}=S,R=(b-I*2-16)/2;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(S)),N(S)),Se(S,c)),{'&[type="color"]':{height:S.controlHeight,[`&${c}-lg`]:{height:S.controlHeightLG},[`&${c}-sm`]:{height:b,paddingTop:R,paddingBottom:R}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},V=S=>{const{componentCls:c}=S;return{[`${c}-clear-icon`]:{margin:0,color:S.colorTextQuaternary,fontSize:S.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${S.motionDurationSlow}`,"&:hover":{color:S.colorTextTertiary},"&:active":{color:S.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${S.inputAffixPadding}px`}}}},Ge=S=>{const{componentCls:c,inputAffixPadding:b,colorTextDescription:I,motionDurationSlow:$,colorIcon:R,colorIconHover:ye,iconCls:ze}=S;return{[`${c}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(S)),{display:"inline-flex",[`&:not(${c}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},D(S)),{zIndex:1,[`${c}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${c}[disabled]`]:{background:"transparent"}},[`> input${c}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${c}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:S.paddingXS}},"&-show-count-suffix":{color:I},"&-show-count-has-suffix":{marginInlineEnd:S.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),V(S)),{[`${ze}${c}-password-icon`]:{color:R,cursor:"pointer",transition:`all ${$}`,"&:hover":{color:ye}}}),Se(S,`${c}-affix-wrapper`))}},nt=S=>{const{componentCls:c,colorError:b,colorWarning:I,borderRadiusLG:$,borderRadiusSM:R}=S;return{[`${c}-group`]:Object.assign(Object.assign(Object.assign({},(0,E.Wf)(S)),fe(S)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${c}-group-addon`]:{borderRadius:$,fontSize:S.fontSizeLG}},"&-sm":{[`${c}-group-addon`]:{borderRadius:R}},"&-status-error":{[`${c}-group-addon`]:{color:b,borderColor:b}},"&-status-warning":{[`${c}-group-addon`]:{color:I,borderColor:I}},"&-disabled":{[`${c}-group-addon`]:Object.assign({},me(S))},[`&:not(${c}-compact-first-item):not(${c}-compact-last-item)${c}-compact-item`]:{[`${c}, ${c}-group-addon`]:{borderRadius:0}},[`&:not(${c}-compact-last-item)${c}-compact-first-item`]:{[`${c}, ${c}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${c}-compact-first-item)${c}-compact-last-item`]:{[`${c}, ${c}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Ze=S=>{const{componentCls:c,antCls:b}=S,I=`${c}-search`;return{[I]:{[`${c}`]:{"&:hover, &:focus":{borderColor:S.colorPrimaryHover,[`+ ${c}-group-addon ${I}-button:not(${b}-btn-primary)`]:{borderInlineStartColor:S.colorPrimaryHover}}},[`${c}-affix-wrapper`]:{borderRadius:0},[`${c}-lg`]:{lineHeight:S.lineHeightLG-2e-4},[`> ${c}-group`]:{[`> ${c}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${I}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:S.borderRadius,borderEndEndRadius:S.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${I}-button:not(${b}-btn-primary)`]:{color:S.colorTextDescription,"&:hover":{color:S.colorPrimaryHover},"&:active":{color:S.colorPrimaryActive},[`&${b}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${I}-button`]:{height:S.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${I}-button`]:{height:S.controlHeightLG},[`&-small ${I}-button`]:{height:S.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${c}-compact-item`]:{[`&:not(${c}-compact-last-item)`]:{[`${c}-group-addon`]:{[`${c}-search-button`]:{marginInlineEnd:-S.lineWidth,borderRadius:0}}},[`&:not(${c}-compact-first-item)`]:{[`${c},${c}-affix-wrapper`]:{borderRadius:0}},[`> ${c}-group-addon ${c}-search-button, > ${c}, ${c}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${c}-affix-wrapper-focused`]:{zIndex:2}}}}},tt=S=>{const{componentCls:c,paddingLG:b}=S,I=`${c}-textarea`;return{[I]:{position:"relative","&-show-count":{[`> ${c}`]:{height:"100%"},[`${c}-data-count`]:{position:"absolute",bottom:-S.fontSize*S.lineHeight,insetInlineEnd:0,color:S.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${c}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${I}-has-feedback`]:{[`${c}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${c}-affix-wrapper`]:{padding:0,[`> textarea${c}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${c}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${c}-clear-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,insetBlockStart:S.paddingXS},[`${I}-suffix`]:{position:"absolute",top:0,insetInlineEnd:S.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function j(S){return(0,C.TS)(S,{inputAffixPadding:S.paddingXXS})}const Z=S=>{const{controlHeight:c,fontSize:b,lineHeight:I,lineWidth:$,controlHeightSM:R,controlHeightLG:ye,fontSizeLG:ze,lineHeightLG:Pe,paddingSM:be,controlPaddingHorizontalSM:ot,controlPaddingHorizontal:Ve,colorFillAlter:je,colorPrimaryHover:le,controlOutlineWidth:K,controlOutline:k,colorErrorOutline:ee,colorWarningOutline:te}=S;return{paddingBlock:Math.max(Math.round((c-b*I)/2*10)/10-$,3),paddingBlockSM:Math.max(Math.round((R-b*I)/2*10)/10-$,0),paddingBlockLG:Math.ceil((ye-ze*Pe)/2*10)/10-$,paddingInline:be-$,paddingInlineSM:ot-$,paddingInlineLG:Ve-$,addonBg:je,activeBorderColor:le,hoverBorderColor:le,activeShadow:`0 0 0 ${K}px ${k}`,errorActiveShadow:`0 0 0 ${K}px ${ee}`,warningActiveShadow:`0 0 0 ${K}px ${te}`}};Ee.ZP=(0,_.Z)("Input",S=>{const c=(0,C.TS)(S,j(S));return[Oe(c),tt(c),Ge(c),nt(c),Ze(c),(0,q.c)(c)]},Z)},57809:function(en,Ee,f){"use strict";var E=f(92310),q=f.n(E),C=f(77861),_=f(2738),p=f(59301),D=f(53487),T=f(62892),me=f(19080),ne=f(36355),y=f(1684),Se=f(93891),N=f(19716),fe=f(32441),Oe=f(33234),V=f(14154),Ge=f(58582),nt=f(84443),Ze=f(66339),tt=function(b,I){var $={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&I.indexOf(R)<0&&($[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,R=Object.getOwnPropertySymbols(b);ye{var $,{prefixCls:R,bordered:ye=!0,className:ze,rootClassName:Pe,getPopupContainer:be,popupClassName:ot,dropdownClassName:Ve,listHeight:je=256,placement:le,listItemHeight:K=24,size:k,disabled:ee,notFoundContent:te,status:_e,builtinPlacements:We,dropdownMatchSelectWidth:oe,popupMatchSelectWidth:Te,direction:ue,style:bt,allowClear:Dt}=b,St=tt(b,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:qe,getPrefixCls:Ot,renderEmpty:at,direction:zt,virtual:F,popupMatchSelectWidth:he,popupOverflow:G,select:Q}=p.useContext(ne.E_),se=Ot("select",R),we=Ot(),pe=ue!=null?ue:zt,{compactSize:ae,compactItemClassnames:ce}=(0,Oe.ri)(se,pe),[He,Ie]=(0,V.Z)(se),ge=p.useMemo(()=>{const{mode:sn}=St;if(sn!=="combobox")return sn===j?"combobox":sn},[St.mode]),Ke=ge==="multiple"||ge==="tags",xe=(0,nt.Z)(St.suffixIcon,St.showArrow),Qe=($=Te!=null?Te:oe)!==null&&$!==void 0?$:he,{status:A,hasFeedback:rt,isFormItemInput:ut,feedbackIcon:Fe}=p.useContext(fe.aM),ht=(0,me.F)(A,_e);let Pt;te!==void 0?Pt=te:ge==="combobox"?Pt=null:Pt=(at==null?void 0:at("Select"))||p.createElement(Se.Z,{componentName:"Select"});const{suffixIcon:Kt,itemIcon:tn,removeIcon:gt,clearIcon:_t}=(0,Ze.Z)(Object.assign(Object.assign({},St),{multiple:Ke,hasFeedback:rt,feedbackIcon:Fe,showSuffixIcon:xe,prefixCls:se,showArrow:St.showArrow,componentName:"Select"})),kt=Dt===!0?{clearIcon:_t}:Dt,gn=(0,_.Z)(St,["suffixIcon","itemIcon"]),nn=q()(ot||Ve,{[`${se}-dropdown-${pe}`]:pe==="rtl"},Pe,Ie),cn=(0,N.Z)(sn=>{var An;return(An=k!=null?k:ae)!==null&&An!==void 0?An:sn}),Ln=p.useContext(y.Z),Hn=ee!=null?ee:Ln,Un=q()({[`${se}-lg`]:cn==="large",[`${se}-sm`]:cn==="small",[`${se}-rtl`]:pe==="rtl",[`${se}-borderless`]:!ye,[`${se}-in-form-item`]:ut},(0,me.Z)(se,ht,rt),ce,Q==null?void 0:Q.className,ze,Pe,Ie),ln=p.useMemo(()=>le!==void 0?le:pe==="rtl"?"bottomRight":"bottomLeft",[le,pe]),_n=(0,Ge.Z)(We,G);return He(p.createElement(C.ZP,Object.assign({ref:I,virtual:F,showSearch:Q==null?void 0:Q.showSearch},gn,{style:Object.assign(Object.assign({},Q==null?void 0:Q.style),bt),dropdownMatchSelectWidth:Qe,builtinPlacements:_n,transitionName:(0,T.m)(we,"slide-up",St.transitionName),listHeight:je,listItemHeight:K,mode:ge,prefixCls:se,placement:ln,direction:pe,suffixIcon:Kt,menuItemSelectedIcon:tn,removeIcon:gt,allowClear:kt,notFoundContent:Pt,className:Un,getPopupContainer:be||qe,dropdownClassName:nn,disabled:Hn})))},S=p.forwardRef(Z),c=(0,D.Z)(S);S.SECRET_COMBOBOX_MODE_DO_NOT_USE=j,S.Option=C.Wx,S.OptGroup=C.Xo,S._InternalPanelDoNotUseOrYouWillBeFired=c,Ee.default=S},14154:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return S}});var E=f(17313),q=f(74207),C=f(37613),_=f(83116),p=f(13826),D=f(92899);const T=c=>{const{optionHeight:b,optionFontSize:I,optionLineHeight:$,optionPadding:R}=c;return{position:"relative",display:"block",minHeight:b,padding:R,color:c.colorText,fontWeight:"normal",fontSize:I,lineHeight:$,boxSizing:"border-box"}};var ne=c=>{const{antCls:b,componentCls:I}=c,$=`${I}-item`,R=`&${b}-slide-up-enter${b}-slide-up-enter-active`,ye=`&${b}-slide-up-appear${b}-slide-up-appear-active`,ze=`&${b}-slide-up-leave${b}-slide-up-leave-active`,Pe=`${I}-dropdown-placement-`;return[{[`${I}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(c)),{position:"absolute",top:-9999,zIndex:c.zIndexPopup,boxSizing:"border-box",padding:c.paddingXXS,overflow:"hidden",fontSize:c.fontSize,fontVariant:"initial",backgroundColor:c.colorBgElevated,borderRadius:c.borderRadiusLG,outline:"none",boxShadow:c.boxShadowSecondary,[` ${R}${Pe}bottomLeft, ${ye}${Pe}bottomLeft `]:{animationName:p.fJ},[` ${R}${Pe}topLeft, ${ye}${Pe}topLeft, ${R}${Pe}topRight, ${ye}${Pe}topRight `]:{animationName:p.Qt},[`${ze}${Pe}bottomLeft`]:{animationName:p.Uw},[` ${ze}${Pe}topLeft, ${ze}${Pe}topRight `]:{animationName:p.ly},"&-hidden":{display:"none"},[`${$}`]:Object.assign(Object.assign({},T(c)),{cursor:"pointer",transition:`background ${c.motionDurationSlow} ease`,borderRadius:c.borderRadiusSM,"&-group":{color:c.colorTextDescription,fontSize:c.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${$}-option-disabled)`]:{backgroundColor:c.optionActiveBg},[`&-selected:not(${$}-option-disabled)`]:{color:c.optionSelectedColor,fontWeight:c.optionSelectedFontWeight,backgroundColor:c.optionSelectedBg,[`${$}-option-state`]:{color:c.colorPrimary}},"&-disabled":{[`&${$}-option-selected`]:{backgroundColor:c.colorBgContainerDisabled},color:c.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:c.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,p.oN)(c,"slide-up"),(0,p.oN)(c,"slide-down"),(0,D.Fm)(c,"move-up"),(0,D.Fm)(c,"move-down")]};const y=2,Se=c=>{let{controlHeightSM:b,controlHeight:I,lineWidth:$}=c;const R=(I-b)/2-$,ye=Math.ceil(R/2);return[R,ye]};function N(c,b){const{componentCls:I,iconCls:$}=c,R=`${I}-selection-overflow`,ye=c.multipleSelectItemHeight,[ze]=Se(c),Pe=b?`${I}-${b}`:"";return{[`${I}-multiple${Pe}`]:{fontSize:c.fontSize,[R]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${I}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ze-y}px ${y*2}px`,borderRadius:c.borderRadius,[`${I}-show-search&`]:{cursor:"text"},[`${I}-disabled&`]:{background:c.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${y}px 0`,lineHeight:`${ye}px`,visibility:"hidden",content:'"\\a0"'}},[` &${I}-show-arrow ${I}-selector, &${I}-allow-clear ${I}-selector `]:{paddingInlineEnd:c.fontSizeIcon+c.controlPaddingHorizontal},[`${I}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ye,marginTop:y,marginBottom:y,lineHeight:`${ye-c.lineWidth*2}px`,background:c.multipleItemBg,border:`${c.lineWidth}px ${c.lineType} ${c.multipleItemBorderColor}`,borderRadius:c.borderRadiusSM,cursor:"default",transition:`font-size ${c.motionDurationSlow}, line-height ${c.motionDurationSlow}, height ${c.motionDurationSlow}`,userSelect:"none",marginInlineEnd:y*2,paddingInlineStart:c.paddingXS,paddingInlineEnd:c.paddingXS/2,[`${I}-disabled&`]:{color:c.multipleItemColorDisabled,borderColor:c.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:c.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,E.Ro)()),{display:"inline-flex",alignItems:"center",color:c.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${$}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c.colorIconHover}})},[`${R}-item + ${R}-item`]:{[`${I}-selection-search`]:{marginInlineStart:0}},[`${I}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:c.inputPaddingHorizontalBase-ze,"\n &-input,\n &-mirror\n ":{height:ye,fontFamily:c.fontFamily,lineHeight:`${ye}px`,transition:`all ${c.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${I}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:c.inputPaddingHorizontalBase,insetInlineEnd:c.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${c.motionDurationSlow}`}}}}var Oe=c=>{const{componentCls:b}=c,I=(0,C.TS)(c,{controlHeight:c.controlHeightSM,multipleSelectItemHeight:c.controlHeightXS,borderRadius:c.borderRadiusSM,borderRadiusSM:c.borderRadiusXS}),$=(0,C.TS)(c,{fontSize:c.fontSizeLG,controlHeight:c.controlHeightLG,multipleSelectItemHeight:c.multipleItemHeightLG,borderRadius:c.borderRadiusLG,borderRadiusSM:c.borderRadius}),[,R]=Se(c);return[N(c),N(I,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:c.controlPaddingHorizontalSM-c.lineWidth},[`${b}-selection-search`]:{marginInlineStart:R}}},N($,"lg")]};function V(c,b){const{componentCls:I,inputPaddingHorizontalBase:$,borderRadius:R}=c,ye=c.controlHeight-c.lineWidth*2,ze=Math.ceil(c.fontSize*1.25),Pe=b?`${I}-${b}`:"";return{[`${I}-single${Pe}`]:{fontSize:c.fontSize,[`${I}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(c)),{display:"flex",borderRadius:R,[`${I}-selection-search`]:{position:"absolute",top:0,insetInlineStart:$,insetInlineEnd:$,bottom:0,"&-input":{width:"100%"}},[` ${I}-selection-item, ${I}-selection-placeholder `]:{padding:0,lineHeight:`${ye}px`,transition:`all ${c.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ye}px`}},[`${I}-selection-item`]:{position:"relative",userSelect:"none"},[`${I}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${I}-selection-item:after`,`${I}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${I}-show-arrow ${I}-selection-item, &${I}-show-arrow ${I}-selection-placeholder `]:{paddingInlineEnd:ze},[`&${I}-open ${I}-selection-item`]:{color:c.colorTextPlaceholder},[`&:not(${I}-customize-input)`]:{[`${I}-selector`]:{width:"100%",height:c.controlHeight,padding:`0 ${$}px`,[`${I}-selection-search-input`]:{height:ye},"&:after":{lineHeight:`${ye}px`}}},[`&${I}-customize-input`]:{[`${I}-selector`]:{"&:after":{display:"none"},[`${I}-selection-search`]:{position:"static",width:"100%"},[`${I}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${$}px`,"&:after":{display:"none"}}}}}}}function Ge(c){const{componentCls:b}=c,I=c.controlPaddingHorizontalSM-c.lineWidth;return[V(c),V((0,C.TS)(c,{controlHeight:c.controlHeightSM,borderRadius:c.borderRadiusSM}),"sm"),{[`${b}-single${b}-sm`]:{[`&:not(${b}-customize-input)`]:{[`${b}-selection-search`]:{insetInlineStart:I,insetInlineEnd:I},[`${b}-selector`]:{padding:`0 ${I}px`},[`&${b}-show-arrow ${b}-selection-search`]:{insetInlineEnd:I+c.fontSize*1.5},[` &${b}-show-arrow ${b}-selection-item, &${b}-show-arrow ${b}-selection-placeholder `]:{paddingInlineEnd:c.fontSize*1.5}}}},V((0,C.TS)(c,{controlHeight:c.singleItemHeightLG,fontSize:c.fontSizeLG,borderRadius:c.borderRadiusLG}),"lg")]}const nt=c=>{const{componentCls:b,selectorBg:I}=c;return{position:"relative",backgroundColor:I,border:`${c.lineWidth}px ${c.lineType} ${c.colorBorder}`,transition:`all ${c.motionDurationMid} ${c.motionEaseInOut}`,input:{cursor:"pointer"},[`${b}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${b}-disabled&`]:{color:c.colorTextDisabled,background:c.colorBgContainerDisabled,cursor:"not-allowed",[`${b}-multiple&`]:{background:c.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Ze=function(c,b){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:$,borderHoverColor:R,outlineColor:ye,antCls:ze}=b,Pe=I?{[`${$}-selector`]:{borderColor:R}}:{};return{[c]:{[`&:not(${$}-disabled):not(${$}-customize-input):not(${ze}-pagination-size-changer)`]:Object.assign(Object.assign({},Pe),{[`${$}-focused& ${$}-selector`]:{borderColor:R,boxShadow:`0 0 0 ${b.controlOutlineWidth}px ${ye}`,outline:0},[`&:hover ${$}-selector`]:{borderColor:R}})}}},tt=c=>{const{componentCls:b}=c;return{[`${b}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},j=c=>{const{componentCls:b,inputPaddingHorizontalBase:I,iconCls:$}=c;return{[b]:Object.assign(Object.assign({},(0,E.Wf)(c)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${b}-customize-input) ${b}-selector`]:Object.assign(Object.assign({},nt(c)),tt(c)),[`${b}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},E.vS),[`${b}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:c.colorTextPlaceholder,pointerEvents:"none"}),[`${b}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:I,height:c.fontSizeIcon,marginTop:-c.fontSizeIcon/2,color:c.colorTextQuaternary,fontSize:c.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[$]:{verticalAlign:"top",transition:`transform ${c.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${b}-suffix)`]:{pointerEvents:"auto"}},[`${b}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${b}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:I,zIndex:1,display:"inline-block",width:c.fontSizeIcon,height:c.fontSizeIcon,marginTop:-c.fontSizeIcon/2,color:c.colorTextQuaternary,fontSize:c.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:c.clearBg,cursor:"pointer",opacity:0,transition:`color ${c.motionDurationMid} ease, opacity ${c.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:c.colorTextTertiary}},"&:hover":{[`${b}-clear`]:{opacity:1}}}),[`${b}-has-feedback`]:{[`${b}-clear`]:{insetInlineEnd:I+c.fontSize+c.paddingXS}}}},Z=c=>{const{componentCls:b}=c;return[{[b]:{[`&-borderless ${b}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${b}-in-form-item`]:{width:"100%"}}},j(c),Ge(c),Oe(c),ne(c),{[`${b}-rtl`]:{direction:"rtl"}},Ze(b,(0,C.TS)(c,{borderHoverColor:c.colorPrimaryHover,outlineColor:c.controlOutline})),Ze(`${b}-status-error`,(0,C.TS)(c,{borderHoverColor:c.colorErrorHover,outlineColor:c.colorErrorOutline}),!0),Ze(`${b}-status-warning`,(0,C.TS)(c,{borderHoverColor:c.colorWarningHover,outlineColor:c.colorWarningOutline}),!0),(0,q.c)(c,{borderElCls:`${b}-selector`,focusElCls:`${b}-focused`})]};var S=(0,_.Z)("Select",(c,b)=>{let{rootPrefixCls:I}=b;const $=(0,C.TS)(c,{rootPrefixCls:I,inputPaddingHorizontalBase:c.paddingSM-1,multipleSelectItemHeight:c.multipleItemHeight});return[Z($)]},c=>{const{fontSize:b,lineHeight:I,controlHeight:$,controlPaddingHorizontal:R,zIndexPopupBase:ye,colorText:ze,fontWeightStrong:Pe,controlItemBgActive:be,controlItemBgHover:ot,colorBgContainer:Ve,colorFillSecondary:je,controlHeightLG:le,controlHeightSM:K,colorBgContainerDisabled:k,colorTextDisabled:ee}=c;return{zIndexPopup:ye+50,optionSelectedColor:ze,optionSelectedFontWeight:Pe,optionSelectedBg:be,optionActiveBg:ot,optionPadding:`${($-b*I)/2}px ${R}px`,optionFontSize:b,optionLineHeight:I,optionHeight:$,selectorBg:Ve,clearBg:Ve,singleItemHeightLG:le,multipleItemBg:je,multipleItemBorderColor:"transparent",multipleItemHeight:K,multipleItemHeightLG:$,multipleSelectorBgDisabled:k,multipleItemColorDisabled:ee,multipleItemBorderColorDisabled:"transparent"}})},58582:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return q}});const E=C=>{const p={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:C==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},p),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},p),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},p),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},p),{points:["br","tr"],offset:[0,-4]})}};function q(C,_){return C||E(_)}},84443:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return E}});function E(q,C){return C!==void 0?C:q!==null}},66339:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});var E=f(40001),q=f(19248),C=f(99267),_=f(84105),p=f(58617),D=f(47472),T=f(59301);function me(ne){let{suffixIcon:y,clearIcon:Se,menuItemSelectedIcon:N,removeIcon:fe,loading:Oe,multiple:V,hasFeedback:Ge,prefixCls:nt,showSuffixIcon:Ze,feedbackIcon:tt,showArrow:j,componentName:Z}=ne;const S=Se!=null?Se:T.createElement(q.Z,null),c=R=>y===null&&!Ge&&!j?null:T.createElement(T.Fragment,null,Ze!==!1&&R,Ge&&tt);let b=null;if(y!==void 0)b=c(y);else if(Oe)b=c(T.createElement(p.Z,{spin:!0}));else{const R=`${nt}-suffix`;b=ye=>{let{open:ze,showSearch:Pe}=ye;return c(ze&&Pe?T.createElement(D.Z,{className:R}):T.createElement(_.Z,{className:R}))}}let I=null;N!==void 0?I=N:V?I=T.createElement(E.Z,null):I=null;let $=null;return fe!==void 0?$=fe:$=T.createElement(C.Z,null),{clearIcon:S,suffixIcon:b,itemIcon:I,removeIcon:$}}},8378:function(en,Ee){"use strict";const f=E=>({[E.componentCls]:{[`${E.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${E.motionDurationMid} ${E.motionEaseInOut}, opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}},[`${E.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${E.motionDurationMid} ${E.motionEaseInOut}, opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}}});Ee.Z=f},92899:function(en,Ee,f){"use strict";f.d(Ee,{Fm:function(){return N}});var E=f(93083),q=f(95406);const C=new E.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_=new E.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),p=new E.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D=new E.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),T=new E.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),me=new E.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ne=new E.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new E.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Se={"move-up":{inKeyframes:ne,outKeyframes:y},"move-down":{inKeyframes:C,outKeyframes:_},"move-left":{inKeyframes:p,outKeyframes:D},"move-right":{inKeyframes:T,outKeyframes:me}},N=(fe,Oe)=>{const{antCls:V}=fe,Ge=`${V}-${Oe}`,{inKeyframes:nt,outKeyframes:Ze}=Se[Oe];return[(0,q.R)(Ge,nt,Ze,fe.motionDurationMid),{[` ${Ge}-enter, ${Ge}-appear `]:{opacity:0,animationTimingFunction:fe.motionEaseOutCirc},[`${Ge}-leave`]:{animationTimingFunction:fe.motionEaseInOutCirc}}]}},13826:function(en,Ee,f){"use strict";f.d(Ee,{Qt:function(){return p},Uw:function(){return _},fJ:function(){return C},ly:function(){return D},oN:function(){return N}});var E=f(93083),q=f(95406);const C=new E.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_=new E.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),p=new E.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),D=new E.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),T=new E.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),me=new E.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ne=new E.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),y=new E.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Se={"slide-up":{inKeyframes:C,outKeyframes:_},"slide-down":{inKeyframes:p,outKeyframes:D},"slide-left":{inKeyframes:T,outKeyframes:me},"slide-right":{inKeyframes:ne,outKeyframes:y}},N=(fe,Oe)=>{const{antCls:V}=fe,Ge=`${V}-${Oe}`,{inKeyframes:nt,outKeyframes:Ze}=Se[Oe];return[(0,q.R)(Ge,nt,Ze,fe.motionDurationMid),{[` ${Ge}-enter, ${Ge}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:fe.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ge}-leave`]:{animationTimingFunction:fe.motionEaseInQuint}}]}},89780:function(en){(function(Ee,f){en.exports=f()})(this,function(){"use strict";var Ee=navigator.userAgent,f=navigator.platform,E=/gecko\/\d/i.test(Ee),q=/MSIE \d/.test(Ee),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),_=/Edge\/(\d+)/.exec(Ee),p=q||C||_,D=p&&(q?document.documentMode||6:+(_||C)[1]),T=!_&&/WebKit\//.test(Ee),me=T&&/Qt\/\d+\.\d+/.test(Ee),ne=!_&&/Chrome\//.test(Ee),y=/Opera\//.test(Ee),Se=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),fe=/PhantomJS/.test(Ee),Oe=!_&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),V=/Android/.test(Ee),Ge=Oe||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),nt=Oe||/Mac/.test(f),Ze=/\bCrOS\b/.test(Ee),tt=/win/i.test(f),j=y&&Ee.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(y=!1,T=!0);var Z=nt&&(me||y&&(j==null||j<12.11)),S=E||p&&D>=9;function c(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,t){var r=e.className,n=c(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function I(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function $(e,t){return I(e).appendChild(t)}function R(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=le(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 r=+new Date+e;(!this.id||r=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var Dt=[""];function St(e){for(;Dt.length<=e;)Dt.push(qe(Dt)+" ");return Dt[e]}function qe(e){return e[e.length-1]}function Ot(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||he.test(e))}function Q(e,t){return t?t.source.indexOf("\\w")>-1&&G(e)?!0:t.test(e):G(e)}function se(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var we=/[\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 pe(e){return e.charCodeAt(0)>=768&&we.test(e)}function ae(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function He(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),a.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Ie=null;function ge(e,t,r){var n;Ie=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Ie=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Ie=i)}return n!=null?n:Ie}var Ke=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(u,v,g){this.level=u,this.from=v,this.to=g}return function(u,v){var g=v=="ltr"?"L":"R";if(u.length==0||v=="ltr"&&!n.test(u))return!1;for(var O=u.length,w=[],z=0;z-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Fe(e,t){var r=rt(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function tn(e){e.prototype.on=function(t,r){A(this,t,r)},e.prototype.off=function(t,r){ut(this,t,r)}}function gt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _t(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function kt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function gn(e){gt(e),_t(e)}function nn(e){return e.target||e.srcElement}function cn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),nt&&e.ctrlKey&&t==1&&(t=3),t}var Ln=function(){if(p&&D<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),Hn;function Un(e){if(Hn==null){var t=R("span","\u200B");$(e,R("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Hn=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&D<8))}var r=Hn?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var ln;function _n(e){if(ln!=null)return ln;var t=$(e,document.createTextNode("A\u062EA")),r=ze(t,0,1).getBoundingClientRect(),n=ze(t,1,2).getBoundingClientRect();return I(e),!r||r.left==r.right?!1:ln=n.right-r.right<3}var sn=` b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){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?(r.push(o.slice(0,a)),t+=a+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},An=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(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},hn=function(){var e=R("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Cn=null;function xn(e){if(Cn!=null)return Cn;var t=$(e,R("span","x")),r=t.getBoundingClientRect(),n=ze(t,0,1).getBoundingClientRect();return Cn=Math.abs(r.left-n.left)>1}var fn={},Mn={};function mr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),fn[e]=t}function cr(e,t){Mn[e]=t}function vn(e){if(typeof e=="string"&&Mn.hasOwnProperty(e))e=Mn[e];else if(e&&typeof e.name=="string"&&Mn.hasOwnProperty(e.name)){var t=Mn[e.name];typeof t=="string"&&(t={name:t}),e=F(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return vn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return vn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ct(e,t){t=vn(t);var r=fn[t.name];if(!r)return ct(e,"text/plain");var n=r(e,t);if(mt.hasOwnProperty(t.name)){var i=mt[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var mt={};function m(e,t){var r=mt.hasOwnProperty(e)?mt[e]:mt[e]={};K(t,r)}function P(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function H(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function d(e,t,r){return e.startState?e.startState(t,r):!0}var h=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};h.prototype.eol=function(){return this.pos>=this.string.length},h.prototype.sol=function(){return this.pos==this.lineStart},h.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},h.prototype.next=function(){if(this.post},h.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},h.prototype.skipToEnd=function(){this.pos=this.string.length},h.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},h.prototype.backUp=function(e){this.pos-=e},h.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},h.prototype.current=function(){return this.string.slice(this.start,this.pos)},h.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},h.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},h.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function x(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 r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?M(r,x(e,r).text.length):re(t,x(e,t.line).text.length)}function re(e,t){var r=e.ch;return r==null||r>t?M(e.line,t):r<0?M(e.line,0):e}function Me(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},Je.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}},Je.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Je.fromSaved=function(e,t,r){return t instanceof st?new Je(e,P(e.mode,t.state),r,t.lookAhead):new Je(e,P(e.mode,t),r)},Je.prototype.save=function(e){var t=e!==!1?P(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new st(t,this.maxLookAhead):t};function Xe(e,t,r,n){var i=[e.state.modeGen],o={};Qt(e,t.text,e.doc.mode,r,function(u,v){return i.push(u,v)},o,n);for(var a=r.state,l=function(u){r.baseTokens=i;var v=e.state.overlays[u],g=1,O=0;r.state=!0,Qt(e,t.text,v.mode,r,function(w,z){for(var Y=g;Ow&&i.splice(g,1,w,i[g+1],ve),g+=2,O=Math.min(w,ve)}if(z)if(v.opaque)i.splice(Y,g-Y,w,"overlay "+z),g=Y+2;else for(;Ye.options.maxHighlightLength&&P(e.doc.mode,n.state),o=Xe(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Je(n,!0,t);var o=Mt(e,t,r),a=o>n.first&&x(n,o-1).stateAfter,l=a?Je.fromSaved(n,a,o):new Je(n,d(n.mode),o);return n.iter(o,t,function(s){Ft(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var rn=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Gt(e,t,r,n){var i=e.doc,o=i.mode,a;t=X(i,t);var l=x(i,t.line),s=Rt(e,t.line,r),u=new h(l.text,e.options.tabSize,s),v;for(n&&(v=[]);(n||u.pose.options.maxHighlightLength?(l=!1,a&&Ft(e,t,n,v.pos),v.pos=t.length,g=null):g=Ht(wt(r,v,n.state,O),o),O){var w=O[0].name;w&&(g="m-"+(g?w+" "+g:w))}if(!l||u!=g){for(;sa;--l){if(l<=o.first)return o.first;var s=x(o,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof st?u.lookAhead:0)<=o.modeFrontier))return l;var v=k(s.text,null,e.options.tabSize);(i==null||n>v)&&(i=l-1,n=v)}return i}function xt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=x(e,n).stateAfter;if(i&&(!(i instanceof st)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Bt(a,o.from,s?null:o.to))}}return n}function It(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var Ye=0;Ye0)){var v=[s,1],g=U(u.from,l.from),O=U(u.to,l.to);(g<0||!a.inclusiveLeft&&!g)&&v.push({from:u.from,to:l.from}),(O>0||!a.inclusiveRight&&!O)&&v.push({from:l.to,to:u.to}),i.splice.apply(i,v),s+=v.length-3}}return i}function qt(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!n||mn(n,o.marker)<0)&&(n=o.marker)}return n}function $e(e,t,r,n,i){var o=x(e,t),a=Et&&o.markedSpans;if(a)for(var l=0;l=0&&g<=0||v<=0&&g>=0)&&(v<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?U(u.to,r)>=0:U(u.to,r)>0)||v>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?U(u.from,n)<=0:U(u.from,n)<0)))return!0}}}function et(e){for(var t;t=wn(e);)e=t.find(-1,!0).line;return e}function on(e){for(var t;t=En(e);)e=t.find(1,!0).line;return e}function On(e){for(var t,r;t=En(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function nr(e,t){var r=x(e,t),n=et(r);return r==n?t:W(n)}function $n(e,t){if(t>e.lastLine())return t;var r=x(e,t),n;if(!zn(e,r))return t;for(;n=En(r);)r=n.find(1,!0).line;return W(r)+1}function zn(e,t){var r=Et&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var rr=function(e,t,r){this.text=e,Vt(this,t),this.height=r?r(this):1};rr.prototype.lineNo=function(){return W(this)},tn(rr);function Kr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),qt(e),Vt(e,r);var i=n?n(e):1;i!=e.height&&B(e,i)}function Xr(e){e.parent=null,qt(e)}var li={},Yr={};function xr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Yr:li;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Qr(e,t){var r=ye("span",null,null,T?"padding-right: .1px":null),n={pre:ye("pre",[r],"CodeMirror-line"),content:r,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;n.pos=0,n.addToken=Bi,_n(e.display.measure)&&(a=xe(o,e.doc.direction))&&(n.addToken=si(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&W(o);Ci(o,n,Ut(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=Ve(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=Ve(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Un(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(T){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Ve(n.pre.className,n.textClass||"")),n}function Ir(e){var t=R("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Bi(e,t,r,n,i,o,a){if(t){var l=e.splitSpaces?Si(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,v;if(!s.test(t))e.col+=t.length,v=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,v),p&&D<9&&(u=!0),e.pos+=t.length;else{v=document.createDocumentFragment();for(var g=0;;){s.lastIndex=g;var O=s.exec(t),w=O?O.index-g:t.length-g;if(w){var z=document.createTextNode(l.slice(g,g+w));p&&D<9?v.appendChild(R("span",[z])):v.appendChild(z),e.map.push(e.pos,e.pos+w,z),e.col+=w,e.pos+=w}if(!O)break;g+=w+1;var Y=void 0;if(O[0]==" "){var ve=e.cm.options.tabSize,Re=ve-e.col%ve;Y=v.appendChild(R("span",St(Re),"cm-tab")),Y.setAttribute("role","presentation"),Y.setAttribute("cm-text"," "),e.col+=Re}else O[0]=="\r"||O[0]==` `?(Y=v.appendChild(R("span",O[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Y.setAttribute("cm-text",O[0]),e.col+=1):(Y=e.cm.options.specialCharPlaceholder(O[0]),Y.setAttribute("cm-text",O[0]),p&&D<9?v.appendChild(R("span",[Y])):v.appendChild(Y),e.col+=1);e.map.push(e.pos,e.pos+1,Y),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,r||n||i||u||o||a){var Ue=r||"";n&&(Ue+=n),i&&(Ue+=i);var Le=R("span",[v],Ue,o);if(a)for(var Ye in a)a.hasOwnProperty(Ye)&&Ye!="style"&&Ye!="class"&&Le.setAttribute(Ye,a[Ye]);return e.content.appendChild(Le)}e.content.appendChild(v)}}function Si(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&g.from<=u));O++);if(g.to>=v)return e(r,n,i,o,a,l,s);e(r,n.slice(0,g.to-u),i,o,null,l,s),o=null,n=n.slice(g.to-u),u=g.to}}}function Ur(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Ci(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var a=1;as||Zt.collapsed&&pt.to==s&&pt.from==s)){if(pt.to!=null&&pt.to!=s&&w>pt.to&&(w=pt.to,Y=""),Zt.className&&(z+=" "+Zt.className),Zt.css&&(O=(O?O+";":"")+Zt.css),Zt.startStyle&&pt.from==s&&(ve+=" "+Zt.startStyle),Zt.endStyle&&pt.to==w&&(Ye||(Ye=[])).push(Zt.endStyle,pt.to),Zt.title&&((Ue||(Ue={})).title=Zt.title),Zt.attributes)for(var Sn in Zt.attributes)(Ue||(Ue={}))[Sn]=Zt.attributes[Sn];Zt.collapsed&&(!Re||mn(Re.marker,Zt)<0)&&(Re=pt)}else pt.from>s&&w>pt.from&&(w=pt.from)}if(Ye)for(var Qn=0;Qn=l)break;for(var Cr=Math.min(l,w);;){if(v){var vr=s+v.length;if(!Re){var Zn=vr>Cr?v.slice(0,Cr-s):v;t.addToken(t,Zn,g?g+z:z,ve,s+Zn.length==w?Y:"",O,Ue)}if(vr>=Cr){v=v.slice(Cr-s),s=Cr;break}s=vr,ve=""}v=i.slice(o,o=r[u++]),g=xr(r[u++],t.cm.options)}}}function xi(e,t,r){this.line=t,this.rest=On(t),this.size=this.rest?W(qe(this.rest))-r+1:1,this.node=this.text=null,this.hidden=zn(e,t)}function jr(e,t,r){for(var n=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function ji(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ko(e,t){t=et(t);var r=W(t),n=e.display.externalMeasured=new xi(e.doc,t,r);n.lineN=r;var i=n.built=Qr(e,n);return n.text=i.pre,$(e.display.lineMeasure,i.pre),n}function _i(e,t,r,n){return Pr(e,Jr(e,t),r,n)}function ki(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(n=e[u+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),r=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[(u-=3)+2],a="left";if(r=="right"&&i==s-l)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function Yt(e,t,r,n){var i=Gi(t.map,r,n),o=i.node,a=i.start,l=i.end,s=i.collapse,u;if(o.nodeType==3){for(var v=0;v<4;v++){for(;a&&pe(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l0&&(s=n="right");var g;e.options.lineWrapping&&(g=o.getClientRects()).length>1?u=g[n=="right"?g.length-1:0]:u=o.getBoundingClientRect()}if(p&&D<9&&!a&&(!u||!u.left&&!u.right)){var O=o.parentNode.getClientRects()[0];O?u={left:O.left,right:O.left+Oi(e.display),top:O.top,bottom:O.bottom}:u=So}for(var w=u.top-t.rect.top,z=u.bottom-t.rect.top,Y=(w+z)/2,ve=t.view.measure.heights,Re=0;Re=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a(u=="before"?s-1:s,u=="before");function v(z,Y,ve){var Re=l[Y],Ue=Re.level==1;return a(ve?z-1:z,Ue!=ve)}var g=ge(l,s,u),O=Ie,w=v(s,g,u=="before");return O!=null&&(w.other=v(s,O,u!="before")),w}function Ca(e,t){var r=0;t=X(e.doc,t),e.options.lineWrapping||(r=Oi(e.display)*t.ch);var n=x(e.doc,t.line),i=Pn(n)+wi(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Uo(e,t,r,n,i){var o=M(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function jo(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Uo(n.first,0,null,-1,-1);var i=ie(n,r),o=n.first+n.size-1;if(i>o)return Uo(n.first+n.size-1,x(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=x(n,i);;){var l=Zl(e,a,i,t,r),s=ke(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=x(n,i=u.line)}}function xa(e,t,r,n){n-=_r(t);var i=t.text.length,o=ce(function(a){return Pr(e,r,a-1).bottom<=n},i,0);return i=ce(function(a){return Pr(e,r,a).top>n},o,i),{begin:o,end:i}}function wa(e,t,r,n){r||(r=Jr(e,t));var i=wr(e,t,Pr(e,r,n),"line").top;return xa(e,t,r,i)}function _o(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Zl(e,t,r,n,i){i-=Pn(t);var o=Jr(e,t),a=_r(t),l=0,s=t.text.length,u=!0,v=xe(t,e.doc.direction);if(v){var g=(e.options.lineWrapping?Ul:Kl)(e,t,r,o,v,n,i);u=g.level!=1,l=u?g.from:g.to-1,s=u?g.to:g.from-1}var O=null,w=null,z=ce(function(Ct){var pt=Pr(e,o,Ct);return pt.top+=a,pt.bottom+=a,_o(pt,n,i,!1)?(pt.top<=i&&pt.left<=n&&(O=Ct,w=pt),!0):!1},l,s),Y,ve,Re=!1;if(w){var Ue=n-w.left=Ye.bottom?1:0}return z=ae(t.text,z,1),Uo(r,z,ve,Re,n-Y)}function Kl(e,t,r,n,i,o,a){var l=ce(function(g){var O=i[g],w=O.level!=1;return _o(br(e,M(r,w?O.to:O.from,w?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=s.level!=1,v=br(e,M(r,u?s.from:s.to,u?"after":"before"),"line",t,n);_o(v,o,a,!0)&&v.top>a&&(s=i[l-1])}return s}function Ul(e,t,r,n,i,o,a){var l=xa(e,t,n,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var v=null,g=null,O=0;O=u||w.to<=s)){var z=w.level!=1,Y=Pr(e,n,z?Math.min(u,w.to)-1:Math.max(s,w.from)).right,ve=Yve)&&(v=w,g=ve)}}return v||(v=i[i.length-1]),v.fromu&&(v={from:v.from,to:u,level:v.level}),v}var fi;function Ei(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(fi==null){fi=R("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)fi.appendChild(document.createTextNode("x")),fi.appendChild(R("br"));fi.appendChild(document.createTextNode("x"))}$(e.measure,fi);var r=fi.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),I(e.measure),r||1}function Oi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=R("span","xxxxxxxxxx"),r=R("pre",[t],"CodeMirror-line-like");$(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ko(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=o.offsetLeft+o.clientLeft+i,n[l]=o.clientWidth}return{fixedPos:Go(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Go(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ea(e){var t=Ei(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Oi(e.display)-3);return function(i){if(zn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=x(e.doc,s.line).text).length==s.ch){var v=k(u,u.length,e.options.tabSize)-u.length;s=M(s.line,Math.max(0,Math.round((o-yo(e.display).left)/Oi(e.display))-v))}return s}function hi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&nr(e.doc,t)i.viewFrom?ei(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=Co(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):ei(e)}else if(r>=i.viewTo){var a=Co(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):ei(e)}else{var l=Co(e,t,t,-1),s=Co(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat(jr(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):ei(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[hi(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);te(a,r)==-1&&a.push(r)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Co(e,t,r,n){var i=hi(e,t),o,a=e.display.view;if(!Et||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;nr(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function jl(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=jr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=jr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,hi(e,r)))),n.viewTo=r}function Oa(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||l.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Ii(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ra(e){e.state.focused||(e.display.input.focus(),Yo(e))}function La(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ii(e))},100)}function Yo(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,ot(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),T&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Xo(e))}function Ii(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function wo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||v<-.005)&&(B(i.line,a),Ta(i.line),i.rest))for(var g=0;ge.display.sizerWidth){var O=Math.ceil(l/Oi(e.display));O>e.display.maxLineLength&&(e.display.maxLineLength=O,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Ta(e){if(e.widgets)for(var t=0;t=a&&(o=ie(t,Pn(x(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function kl(e,t){if(!ht(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!fe){var o=R("div","\u200B",null,`position: absolute; top: `+(t.top-r.viewOffset-wi(e.display))+`px; height: `+(t.bottom-t.top+Dr(e)+r.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 Gl(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(t=t.ch?M(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?M(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=br(e,t),s=!r||r==t?l:br(e,r);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n};var u=Qo(e,i),v=e.doc.scrollTop,g=e.doc.scrollLeft;if(u.scrollTop!=null&&(Qi(e,u.scrollTop),Math.abs(e.doc.scrollTop-v)>1&&(a=!0)),u.scrollLeft!=null&&(vi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-g)>1&&(a=!0)),!a)break}return i}function Vl(e,t){var r=Qo(e,t);r.scrollTop!=null&&Qi(e,r.scrollTop),r.scrollLeft!=null&&vi(e,r.scrollLeft)}function Qo(e,t){var r=e.display,n=Ei(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=Ui(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Ki(r),s=t.topl-n;if(t.topi+o){var v=Math.min(t.top,(u?l:t.bottom)-o);v!=i&&(a.scrollTop=v)}var g=e.options.fixedGutter?0:r.gutters.offsetWidth,O=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-g,w=Br(e)-r.gutters.offsetWidth,z=t.right-t.left>w;return z&&(t.right=t.left+w),t.left<10?a.scrollLeft=0:t.leftw+O-3&&(a.scrollLeft=t.right+(z?0:10)-w),a}function Jo(e,t){t!=null&&(Oo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mi(e){Oo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Yi(e,t,r){(t!=null||r!=null)&&Oo(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Xl(e,t){Oo(e),e.curOp.scrollToPos=t}function Oo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Ca(e,t.from),n=Ca(e,t.to);Da(e,r,n,t.margin)}}function Da(e,t,r,n){var i=Qo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Yi(e,i.scrollLeft,i.scrollTop)}function Qi(e,t){Math.abs(e.doc.scrollTop-t)<2||(E||ea(e,{top:t}),Pa(e,t,!0),E&&ea(e),eo(e,100))}function Pa(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,za(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ji(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Ki(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?r:0,docHeight:n,scrollHeight:n+Dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var pi=function(e,t,r){this.cm=r;var n=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),A(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),A(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n: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=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n: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&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=nt&&!N?"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},pi.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var i=e.getBoundingClientRect(),o=r=="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,n)}t.set(1e3,n)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qi=function(){};qi.prototype.update=function(){return{bottom:0,right:0}},qi.prototype.setScrollLeft=function(){},qi.prototype.setScrollTop=function(){},qi.prototype.clear=function(){};function Ri(e,t){t||(t=Ji(e));var r=e.display.barWidth,n=e.display.barHeight;Na(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&wo(e),Na(e,Ji(e)),r=e.display.barWidth,n=e.display.barHeight}function Na(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var Aa={native:pi,null:qi};function Fa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Aa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),A(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?vi(e,t):Qi(e,t)},e),e.display.scrollbars.addClass&&ot(e.display.wrapper,e.display.scrollbars.addClass)}var Yl=0;function gi(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:++Yl},ui(e.curOp)}function mi(e){var t=e.curOp;t&&Tt(t,function(r){for(var n=0;n=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Io(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ql(e){e.updatedDisplay=e.mustUpdate&&qo(e.cm,e.update)}function es(e){var t=e.cm,r=t.display;e.updatedDisplay&&wo(t),e.barMeasure=Ji(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_i(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Br(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function ts(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Rt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?P(t.mode,n.state):null,s=Xe(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var u=o.styleClasses,v=s.classes;v?o.styleClasses=v:u&&(o.styleClasses=null);for(var g=!a||a.length!=o.styles.length||u!=v&&(!u||!v||u.bgClass!=v.bgClass||u.textClass!=v.textClass),O=0;!g&&Or)return eo(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Sr(e,function(){for(var o=0;o=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Oa(e)==0)return!1;Wa(e)&&(ei(e),t.dims=ko(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Et&&(o=nr(e.doc,o),a=$n(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;jl(e,o,a),r.viewOffset=Pn(x(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Oa(e);if(!l&&s==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var u=os(e);return s>4&&(r.lineDiv.style.display="none"),ls(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,as(u),I(r.cursorDiv),I(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,eo(e,400)),r.updateLineNumbers=null,!0}function $a(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Br(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Ki(e.display)-Ui(e),r.top)}),t.visible=Eo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Eo(e.display,e.doc,r));if(!qo(e,t))break;wo(e);var i=Ji(e);Xi(e),Ri(e,i),na(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 ea(e,t){var r=new Io(e,t);if(qo(e,r)){wo(e),$a(e,r);var n=Ji(e);Xi(e),Ri(e,n),na(e,n),r.finish()}}function ls(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function l(z){var Y=z.nextSibling;return T&&nt&&e.display.currentWheelTarget==z?z.style.display="none":z.parentNode.removeChild(z),Y}for(var s=n.view,u=n.viewFrom,v=0;v-1&&(w=!1),bn(e,g,u,r)),w&&(I(g.lineNumber),g.lineNumber.appendChild(document.createTextNode(De(e.options,u)))),a=g.node.nextSibling}u+=g.size}for(;a;)a=l(a)}function ta(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function na(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+Dr(e)+"px"}function za(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Go(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;aa.clientWidth,s=a.scrollHeight>a.clientHeight;if(n&&l||i&&s){if(i&&nt&&T){e:for(var u=t.target,v=o.view;u!=a;u=u.parentNode)for(var g=0;g=0&&U(e,n.to())<=0)return r}return-1};var un=function(e,t){this.anchor=e,this.head=t};un.prototype.from=function(){return Ne(this.anchor,this.head)},un.prototype.to=function(){return Ae(this.anchor,this.head)},un.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(O,w){return U(O.from(),w.from())}),r=te(t,i);for(var o=1;o0:s>=0){var u=Ne(l.from(),a.from()),v=Ae(l.to(),a.to()),g=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new un(g?v:u,g?u:v))}}return new Or(t,r)}function ti(e,t){return new Or([new un(e,t||e)],0)}function ni(e){return e.text?M(e.from.line+e.text.length-1,qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ka(e,t){if(U(e,t.from)<0)return e;if(U(e,t.to)<=0)return ni(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ni(t).ch-t.to.ch),M(r,n)}function ia(e,t){for(var r=[],n=0;n1&&e.remove(l.line+1,z-1),e.insert(l.line+1,Re)}it(e,"change",e,t)}function ri(e,t,r){function n(i,o,a){if(i.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges)return e.done.pop(),qe(e.done)}function Va(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==n||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==n)))l=qe(a.changes),U(t.from,t.to)==0&&U(t.from,l.to)==0?l.to=ni(t):a.changes.push(la(e,t));else{var s=qe(i.done);for((!s||!s.ranges)&&Lo(e.sel,i.done),a={changes:[la(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(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Fe(e,"historyAdded")}function hs(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vs(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||hs(e,o,qe(i.done),t))?i.done[i.done.length-1]=t:Lo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ga(i.undone)}function Lo(e,t){var r=qe(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Xa(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function ps(e){if(!e)return null;for(var t,r=0;r-1&&(qe(l)[g]=u[g],delete u[g])}}return n}function sa(e,t,r,n){if(n){var i=e.anchor;if(r){var o=U(t,i)<0;o!=U(r,i)<0?(i=t,t=r):o!=U(t,r)<0&&(t=r)}return new un(i,t)}else return new un(r||t,t)}function To(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),or(e,new Or([sa(e.sel.primary(),t,r,i)],0),n)}function Qa(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(Fe(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(r){var g=s.find(n<0?1:-1),O=void 0;if((n<0?v:u)&&(g=rl(e,g,-n,g&&g.line==t.line?o:null)),g&&g.line==t.line&&(O=U(g,r))&&(n<0?O<0:O>0))return Ti(e,g,t,n,i)}var w=s.find(n<0?-1:1);return(n<0?u:v)&&(w=rl(e,w,n,w.line==t.line?o:null)),w?Ti(e,w,t,n,i):null}}return t}function Po(e,t,r,n,i){var o=n||1,a=Ti(e,t,r,o,i)||!i&&Ti(e,t,r,o,!0)||Ti(e,t,r,-o,i)||!i&&Ti(e,t,r,-o,!0);return a||(e.cantEdit=!0,M(e.first,0))}function rl(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?X(e,M(t.line-1)):null:r>0&&t.ch==(n||x(e,t.line)).text.length?t.line=0;--i)al(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else al(e,t)}}function al(e,t){if(!(t.text.length==1&&t.text[0]==""&&U(t.from,t.to)==0)){var r=ia(e,t);Va(e,t,r,e.cm?e.cm.curOp.id:NaN),ro(e,t,r,ft(e,t));var n=[];ri(e,function(i,o){!o&&te(n,i.history)==-1&&(cl(i.history,t),n.push(i.history)),ro(i,t,null,ft(i,t))})}}function No(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--w){var z=O(w);if(z)return z.v}}}}function ll(e,t){if(t!=0&&(e.first+=t,e.sel=new Or(Ot(e.sel.ranges,function(i){return new un(M(i.anchor.line+t,i.anchor.ch),M(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:M(o,x(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=L(e,t.from,t.to),r||(r=ia(e,t)),e.cm?ys(e.cm,t,n):aa(e,t,n),Do(e,r,oe),e.cantEdit&&Po(e,M(e.firstLine(),0))&&(e.cantEdit=!1)}}function ys(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=W(et(x(n,o.line))),n.iter(s,a.line+1,function(w){if(w==i.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Pt(e),aa(n,t,r,Ea(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(w){var z=kn(w);z>i.maxLineLength&&(i.maxLine=w,i.maxLineLength=z,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),xt(n,o.line),eo(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line==a.line&&t.text.length==1&&!ja(e.doc,t)?qr(e,o.line,"text"):dr(e,o.line,a.line+1,u);var v=Kt(e,"changes"),g=Kt(e,"change");if(g||v){var O={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};g&&it(e,"change",e,O),v&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(O)}e.display.selForContextMenu=null}function Pi(e,t,r,n,i){var o;n||(n=r),U(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Di(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r1||!(this.children[0]instanceof oo))){var l=[];this.collapse(l),this.children=[new oo(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=v,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&dr(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tl(e.doc)),e&&it(e,"markerCleared",e,this,n,i),t&&mi(e),this.parent&&this.parent.clear()}},ii.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=ye("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if($e(e,t.line,t,r,o)||t.line!=r.line&&$e(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");At()}o.addToHistory&&Va(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,u;if(e.iter(l,r.line+1,function(g){s&&o.collapsed&&!s.options.lineWrapping&&et(g)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&B(g,0),Tn(g,new Bt(o,l==t.line?t.ch:null,l==r.line?r.ch:null)),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(g){zn(e,g)&&B(g,0)}),o.clearOnEnter&&A(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(pn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++dl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)dr(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var v=t.line;v<=r.line;v++)qr(s,v,"text");o.atomic&&tl(s.doc),it(s,"markerAdded",s,o)}return o}var so=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;s--)Di(this,n[s]);l?qa(this,l):this.cm&&Mi(this.cm)}),undo:Yn(function(){No(this,"undo")}),redo:Yn(function(){No(this,"redo")}),undoSelection:Yn(function(){No(this,"undo",!0)}),redoSelection:Yn(function(){No(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=X(this,e),t=X(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!r||r(s.marker))&&n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r}),X(this,M(r,t))},indexFromPos:function(e){e=X(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var v=e.dataTransfer.getData("Text");if(v){var g;if(t.state.draggingText&&!t.state.draggingText.copy&&(g=t.listSelections()),Do(t.doc,ti(r,r)),g)for(var O=0;O=0;l--)Pi(e.doc,"",n[l].from,n[l].to,"+delete");Mi(e)})}function ca(e,t,r){var n=ae(e.text,t+r,r);return n<0||n>e.text.length?null:n}function fa(e,t,r){var n=ca(e,t.ch,r);return n==null?null:new M(t.line,n,r<0?"after":"before")}function da(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=xe(r,t.doc.direction);if(o){var a=i<0?qe(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",u;if(a.level>0||t.doc.direction=="rtl"){var v=Jr(t,r);u=i<0?r.text.length-1:0;var g=Pr(t,v,u).top;u=ce(function(O){return Pr(t,v,O).top==g},i<0==(a.level==1)?a.from:a.to-1,u),s=="before"&&(u=ca(r,u,1))}else u=i<0?a.to:a.from;return new M(n,u,s)}}return new M(n,i<0?r.text.length:0,i<0?"before":"after")}function Ps(e,t,r,n){var i=xe(t,e.doc.direction);if(!i)return fa(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=ge(i,r.ch,r.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(n>0?a.to>r.ch:a.from=a.from&&O>=v.begin)){var w=g?"before":"after";return new M(r.line,O,w)}}var z=function(Re,Ue,Le){for(var Ye=function(Sn,Qn){return Qn?new M(r.line,l(Sn,1),"before"):new M(r.line,Sn,"after")};Re>=0&&Re0==(Ct.level!=1),Zt=pt?Le.begin:l(Le.end,-1);if(Ct.from<=Zt&&Zt0?v.end:l(v.begin,-1);return ve!=null&&!(n>0&&ve==t.text.length)&&(Y=z(n>0?0:i.length-1,n,u(ve)),Y)?Y:null}var fo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),oe)},killLine:function(e){return Fi(e,function(t){if(t.empty()){var r=x(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new M(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),M(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=x(e.doc,i.line-1).text;a&&(i=new M(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),M(i.line-1,a.length-1),i,"+transpose"))}}r.push(new un(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Sr(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&U(t,this.pos)==0&&r==this.button};var vo,po;function Hs(e,t){var r=+new Date;return po&&po.compare(r,e,t)?(vo=po=null,"triple"):vo&&vo.compare(r,e,t)?(po=new va(r,e,t),vo=null,"double"):(vo=new va(r,e,t),po=null,"single")}function Rl(e){var t=this,r=t.display;if(!(ht(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,$r(r,e)){T||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!pa(t,e)){var n=di(t,e),i=cn(e),o=n?Hs(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Bs(t,i,n,o,e))&&(i==1?n?Ks(t,n,o,e):nn(e)==r.scroller&>(e):i==2?(n&&To(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(S?t.display.input.onContextMenu(e):La(t)))}}}function Bs(e,t,r,n,i){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,ho(e,bl(o,i),i,function(a){if(typeof a=="string"&&(a=fo[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,r)!=We}finally{e.state.suppressEdits=!1}return l})}function Zs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Ze?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=nt?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(nt?r.altKey:r.ctrlKey)),i}function Ks(e,t,r,n){p?setTimeout(le(Ra,e),0):e.curOp.focus=be();var i=Zs(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&Ln&&!e.isReadOnly()&&r=="single"&&(a=o.contains(t))>-1&&(U((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(U(a.to(),t)>0||t.xRel<0)?Us(e,n,t,i):js(e,n,t,i)}function Us(e,t,r,n){var i=e.display,o=!1,a=Xn(e,function(u){T&&(i.scroller.draggable=!1),e.state.draggingText=!1,ut(i.wrapper.ownerDocument,"mouseup",a),ut(i.wrapper.ownerDocument,"mousemove",l),ut(i.scroller,"dragstart",s),ut(i.scroller,"drop",a),o||(gt(u),n.addNew||To(e.doc,r,null,null,n.extend),T&&!Se||p&&D==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};T&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),A(i.wrapper.ownerDocument,"mouseup",a),A(i.wrapper.ownerDocument,"mousemove",l),A(i.scroller,"dragstart",s),A(i.scroller,"drop",a),La(e),setTimeout(function(){return i.input.focus()},20)}function Ll(e,t,r){if(r=="char")return new un(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new un(M(t.line,0),X(e.doc,M(t.line+1,0)));var n=r(e,t);return new un(n.from,n.to)}function js(e,t,r,n){var i=e.display,o=e.doc;gt(t);var a,l,s=o.sel,u=s.ranges;if(n.addNew&&!n.extend?(l=o.sel.contains(r),l>-1?a=u[l]:a=new un(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new un(r,r)),r=di(e,t,!0,!0),l=-1;else{var v=Ll(e,r,n.unit);n.extend?a=sa(a,v.anchor,v.head,n.extend):a=v}n.addNew?l==-1?(l=u.length,or(o,zr(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&n.unit=="char"&&!n.extend?(or(o,zr(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):ua(o,l,a,Te):(l=0,or(o,new Or([a],0),Te),s=o.sel);var g=r;function O(Le){if(U(g,Le)!=0)if(g=Le,n.unit=="rectangle"){for(var Ye=[],Ct=e.options.tabSize,pt=k(x(o,r.line).text,r.ch,Ct),Zt=k(x(o,Le.line).text,Le.ch,Ct),Sn=Math.min(pt,Zt),Qn=Math.max(pt,Zt),Nn=Math.min(r.line,Le.line),Cr=Math.min(e.lastLine(),Math.max(r.line,Le.line));Nn<=Cr;Nn++){var vr=x(o,Nn).text,Zn=bt(vr,Sn,Ct);Sn==Qn?Ye.push(new un(M(Nn,Zn),M(Nn,Zn))):vr.length>Zn&&Ye.push(new un(M(Nn,Zn),M(Nn,bt(vr,Qn,Ct))))}Ye.length||Ye.push(new un(r,r)),or(o,zr(e,s.ranges.slice(0,l).concat(Ye),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Le)}else{var pr=a,tr=Ll(e,Le,n.unit),jn=pr.anchor,Kn;U(tr.anchor,jn)>0?(Kn=tr.head,jn=Ne(pr.from(),tr.anchor)):(Kn=tr.anchor,jn=Ae(pr.to(),tr.head));var Fn=s.ranges.slice(0);Fn[l]=_s(e,new un(X(o,jn),Kn)),or(o,zr(e,Fn,l),Te)}}var w=i.wrapper.getBoundingClientRect(),z=0;function Y(Le){var Ye=++z,Ct=di(e,Le,!0,n.unit=="rectangle");if(Ct)if(U(Ct,g)!=0){e.curOp.focus=be(),O(Ct);var pt=Eo(i,o);(Ct.line>=pt.to||Ct.linew.bottom?20:0;Zt&&setTimeout(Xn(e,function(){z==Ye&&(i.scroller.scrollTop+=Zt,Y(Le))}),50)}}function ve(Le){e.state.selectingText=!1,z=1/0,Le&&(gt(Le),i.input.focus()),ut(i.wrapper.ownerDocument,"mousemove",Re),ut(i.wrapper.ownerDocument,"mouseup",Ue),o.history.lastSelOrigin=null}var Re=Xn(e,function(Le){Le.buttons===0||!cn(Le)?ve(Le):Y(Le)}),Ue=Xn(e,ve);e.state.selectingText=Ue,A(i.wrapper.ownerDocument,"mousemove",Re),A(i.wrapper.ownerDocument,"mouseup",Ue)}function _s(e,t){var r=t.anchor,n=t.head,i=x(e.doc,r.line);if(U(r,n)==0&&r.sticky==n.sticky)return t;var o=xe(i);if(!o)return t;var a=ge(o,r.ch,r.sticky),l=o[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s=a+(l.from==r.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(n.line!=r.line)u=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var v=ge(o,n.ch,n.sticky),g=v-a||(n.ch-r.ch)*(l.level==1?-1:1);v==s-1||v==s?u=g<0:u=g>0}var O=o[s+(u?-1:0)],w=u==(O.level==1),z=w?O.from:O.to,Y=w?"after":"before";return r.ch==z&&r.sticky==Y?t:new un(new M(r.line,z,Y),n)}function Tl(e,t,r,n){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(O){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&>(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Kt(e,r))return kt(t);o-=l.top-a.viewOffset;for(var s=0;s=i){var v=ie(e.doc,o),g=e.display.gutterSpecs[s];return Fe(e,r,e,v,g.className,t),kt(t)}}}function pa(e,t){return Tl(e,t,"gutterClick",!0)}function Dl(e,t){$r(e.display,t)||ks(e,t)||ht(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function ks(e,t){return Kt(e,"gutterContextMenu")?Tl(e,t,"gutterContextMenu",!1):!1}function Pl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),In(e)}var $i={toString:function(){return"CodeMirror.Init"}},Nl={},zo={};function Gs(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(l,s,u){u!=$i&&o(l,s,u)}:o)}e.defineOption=r,e.Init=$i,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,oa(n)},!0),r("indentUnit",2,oa,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){no(n),In(n),dr(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],a=n.doc.first;n.doc.iter(function(s){for(var u=0;;){var v=s.text.indexOf(i,u);if(v==-1)break;u=v+i.length,o.push(M(a,v))}a++});for(var l=o.length-1;l>=0;l--)Pi(n.doc,i,o[l],M(o[l].line,o[l].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,i,o){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=$i&&n.refresh()}),r("specialCharPlaceholder",Ir,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",Ge?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!tt),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Pl(n),to(n)},!0),r("keyMap","default",function(n,i,o){var a=Fo(i),l=o!=$i&&Fo(o);l&&l.detach&&l.detach(n,a),a.attach&&a.attach(n,l||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Xs,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=ra(i,n.options.lineNumbers),to(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Go(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Ri(n)},!0),r("scrollbarStyle","native",function(n){Fa(n),Ri(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=ra(n.options.gutters,i),to(n)},!0),r("firstLineNumber",1,to,!0),r("lineNumberFormatter",function(n){return n},to,!0),r("showCursorWhenSelecting",!1,Xi,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Ii(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,Vs),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Xi,!0),r("singleCursorHeightPerLine",!0,Xi,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,no,!0),r("addModeClass",!1,no,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,no,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function Vs(e,t,r){var n=r&&r!=$i;if(!t!=!n){var i=e.display.dragFunctions,o=t?A:ut;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 Xs(e){e.options.lineWrapping?(ot(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),er(e)),Vo(e),dr(e),In(e),setTimeout(function(){return Ri(e)},100)}function Rn(e,t){var r=this;if(!(this instanceof Rn))return new Rn(e,t);this.options=t=t?K(t):{},K(Nl,t,!1);var n=t.value;typeof n=="string"?n=new hr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Rn.inputStyles[t.inputStyle](this),o=this.display=new ss(e,n,i,t);o.wrapper.CodeMirror=this,Pl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fa(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&&!Ge&&o.input.focus(),p&&D<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ys(this),Ms(),gi(this),this.curOp.forceUpdate=!0,_a(this,n),t.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Yo(r)},20):Ii(this);for(var a in zo)zo.hasOwnProperty(a)&&zo[a](this,t[a],$i);Wa(this),t.finishInit&&t.finishInit(this);for(var l=0;l20*20}A(t.scroller,"touchstart",function(s){if(!ht(e,s)&&!o(s)&&!pa(e,s)){t.input.ensurePolled(),clearTimeout(r);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-n.end<=300?n:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),A(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),A(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!$r(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var v=e.coordsChar(t.activeTouch,"page"),g;!u.prev||a(u,u.prev)?g=new un(v,v):!u.prev.prev||a(u,u.prev.prev)?g=e.findWordAt(v):g=new un(M(v.line,0),X(e.doc,M(v.line+1,0))),e.setSelection(g.anchor,g.head),e.focus(),gt(s)}i()}),A(t.scroller,"touchcancel",i),A(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Qi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),A(t.scroller,"mousewheel",function(s){return Za(e,s)}),A(t.scroller,"DOMMouseScroll",function(s){return Za(e,s)}),A(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){ht(e,s)||gn(s)},over:function(s){ht(e,s)||(Is(e,s),gn(s))},start:function(s){return Os(e,s)},drop:Xn(e,Es),leave:function(s){ht(e,s)||pl(e)}};var l=t.input.getField();A(l,"keyup",function(s){return Il.call(e,s)}),A(l,"keydown",Xn(e,Ol)),A(l,"keypress",Xn(e,Ml)),A(l,"focus",function(s){return Yo(e,s)}),A(l,"blur",function(s){return Ii(e,s)})}var ga=[];Rn.defineInitHook=function(e){return ga.push(e)};function go(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=Rt(e,t).state:r="prev");var a=e.options.tabSize,l=x(i,t),s=k(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u=l.text.match(/^\s*/)[0],v;if(!n&&!/\S/.test(l.text))v=0,r="not";else if(r=="smart"&&(v=i.mode.indent(o,l.text.slice(u.length),l.text),v==We||v>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?v=k(x(i,t-1).text,null,a):v=0:r=="add"?v=s+e.options.indentUnit:r=="subtract"?v=s-e.options.indentUnit:typeof r=="number"&&(v=s+r),v=Math.max(0,v);var g="",O=0;if(e.options.indentWithTabs)for(var w=Math.floor(v/a);w;--w)O+=a,g+=" ";if(Oa,s=sn(t),u=null;if(l&&n.ranges.length>1)if(Wr&&Wr.text.join(` `)==t){if(n.ranges.length%Wr.text.length==0){u=[];for(var v=0;v=0;O--){var w=n.ranges[O],z=w.from(),Y=w.to();w.empty()&&(r&&r>0?z=M(z.line,z.ch-r):e.state.overwrite&&!l?Y=M(Y.line,Math.min(x(o,Y.line).text.length,Y.ch+qe(s).length)):l&&Wr&&Wr.lineWise&&Wr.text.join(` `)==s.join(` `)&&(z=Y=M(z.line,0)));var ve={from:z,to:Y,text:u?u[O%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Di(e.doc,ve),it(e,"inputRead",e,ve)}t&&!l&&Fl(e,t),Mi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=g),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Al(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Sr(t,function(){return ma(t,r,0,null,"paste")}),!0}function Fl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=go(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(x(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=go(e,i.head.line,"smart"));a&&it(e,"electricInput",e,i.head.line)}}}function $l(e){for(var t=[],r=[],n=0;no&&(go(this,l.head.line,n,!0),o=l.head.line,a==this.doc.sel.primIndex&&Mi(this));else{var s=l.from(),u=l.to(),v=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var g=v;g0&&ua(this.doc,a,new un(s,O[a].to()),oe)}}}),getTokenAt:function(n,i){return Gt(this,n,i)},getLineTokens:function(n,i){return Gt(this,M(n),i,!0)},getTokenTypeAt:function(n){n=X(this.doc,n);var i=Ut(this,x(this.doc,n.line)),o=0,a=(i.length-1)/2,l=n.ch,s;if(l==0)s=i[2];else for(;;){var u=o+a>>1;if((u?i[u*2-1]:0)>=l)a=u;else if(i[u*2+1]s&&(n=s,a=!0),l=x(this.doc,n)}else l=n;return wr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Pn(l):0)},defaultTextHeight:function(){return Ei(this.display)},defaultCharWidth:function(){return Oi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,a,l){var s=this.display;n=br(this,X(this.doc,n));var u=n.bottom,v=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")u=n.top;else if(a=="above"||a=="near"){var g=Math.max(s.wrapper.clientHeight,this.doc.height),O=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>g)&&n.top>i.offsetHeight?u=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=g&&(u=n.bottom),v+i.offsetWidth>O&&(v=O-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",l=="right"?(v=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?v=0:l=="middle"&&(v=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=v+"px"),o&&Vl(this,{left:v,top:u,right:v+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:sr(Ol),triggerOnKeyPress:sr(Ml),triggerOnKeyUp:Il,triggerOnMouseDown:sr(Rl),execCommand:function(n){if(fo.hasOwnProperty(n))return fo[n].call(null,this)},triggerElectric:sr(function(n){Fl(this,n)}),findPosH:function(n,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=X(this.doc,n),u=0;u0&&v(o.charAt(a-1));)--a;for(;l.5||this.options.lineWrapping)&&Vo(this),Fe(this,"refresh",this)}),swapDoc:sr(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),_a(this,n),In(this),this.display.input.reset(),Yi(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,it(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},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}},tn(e),e.registerHelper=function(n,i,o){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=o},e.registerGlobalHelper=function(n,i,o,a){e.registerHelper(n,i,a),r[n]._global.push({pred:o,val:a})}}function ya(e,t,r,n,i){var o=t,a=r,l=x(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var Ue=t.line+s;return Ue=e.first+e.size?!1:(t=new M(Ue,t.ch,t.sticky),l=x(e,Ue))}function v(Ue){var Le;if(n=="codepoint"){var Ye=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(Ye)?Le=null:Le=new M(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(Ye>=55296&&Ye<56320?2:1))),-r)}else i?Le=Ps(e.cm,l,t,r):Le=fa(l,t,r);if(Le==null)if(!Ue&&u())t=da(i,e.cm,l,t.line,s);else return!1;else t=Le;return!0}if(n=="char"||n=="codepoint")v();else if(n=="column")v(!0);else if(n=="word"||n=="group")for(var g=null,O=n=="group",w=e.cm&&e.cm.getHelper(t,"wordChars"),z=!0;!(r<0&&!v(!z));z=!1){var Y=l.text.charAt(t.ch)||` `,ve=Q(Y,w)?"w":O&&Y==` `?"n":!O||/\s/.test(Y)?null:"p";if(O&&!z&&!ve&&(ve="s"),g&&g!=ve){r<0&&(r=1,v(),t.sticky="after");break}if(ve&&(g=ve),r>0&&!v(!z))break}var Re=Po(e,t,o,a,!0);return Be(o,Re)&&(Re.hitSide=!0),Re}function Hl(e,t,r,n){var i=e.doc,o=t.left,a;if(n=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*Ei(e.display),3);a=(r>0?t.bottom:t.top)+r*s}else n=="line"&&(a=r>0?t.bottom+3:t.top-3);for(var u;u=jo(e,o,a),!!u.outside;){if(r<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=r*5}return u}var dn=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};dn.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;zl(i,n.options.spellcheck,n.options.autocorrect,n.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}A(i,"paste",function(l){!o(l)||ht(n,l)||Al(l,n)||D<=11&&setTimeout(Xn(n,function(){return t.updateFromDOM()}),20)}),A(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),A(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),A(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),A(i,"touchstart",function(){return r.forceCompositionEnd()}),A(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||ht(n,l))){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var s=$l(n);Wo({lineWise:!0,text:s.text}),l.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,oe),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=Wr.text.join(` `);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var v=Wl(),g=v.firstChild;n.display.lineSpace.insertBefore(v,n.display.lineSpace.firstChild),g.value=Wr.text.join(` `);var O=document.activeElement;je(g),setTimeout(function(){n.display.lineSpace.removeChild(v),O.focus(),O==i&&r.showPrimarySelection()},50)}}A(i,"copy",a),A(i,"cut",a)},dn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},dn.prototype.prepareSelection=function(){var e=Ia(this.cm,!1);return e.focus=document.activeElement==this.div,e},dn.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},dn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},dn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line=t.display.viewFrom&&Bl(t,n)||{node:l[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(n=M(n.line-1,x(e.doc,n.line-1).length)),i.ch==x(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;n.line==t.viewFrom||(o=hi(e,n.line))==0?(a=W(t.view[0].line),l=t.view[0].node):(a=W(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=hi(e,i.line),u,v;if(s==t.view.length-1?(u=t.viewTo-1,v=t.lineDiv.lastChild):(u=W(t.view[s+1].line)-1,v=t.view[s+1].node.previousSibling),!l)return!1;for(var g=e.doc.splitLines(qs(e,l,v,a,u)),O=L(e.doc,M(a,0),M(u,x(e.doc,u).text.length));g.length>1&&O.length>1;)if(qe(g)==qe(O))g.pop(),O.pop(),u--;else if(g[0]==O[0])g.shift(),O.shift(),a++;else break;for(var w=0,z=0,Y=g[0],ve=O[0],Re=Math.min(Y.length,ve.length);wn.ch&&Ue.charCodeAt(Ue.length-z-1)==Le.charCodeAt(Le.length-z-1);)w--,z++;g[g.length-1]=Ue.slice(0,Ue.length-z).replace(/^\u200b+/,""),g[0]=g[0].slice(w).replace(/\u200b+$/,"");var Ct=M(a,w),pt=M(u,O.length?qe(O).length-z:0);if(g.length>1||g[0]||U(Ct,pt))return Pi(e.doc,g,Ct,pt,"+input"),!0},dn.prototype.ensurePolled=function(){this.forceCompositionEnd()},dn.prototype.reset=function(){this.forceCompositionEnd()},dn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},dn.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))},dn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Sr(this.cm,function(){return dr(e.cm)})},dn.prototype.setUneditable=function(e){e.contentEditable="false"},dn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Xn(this.cm,ma)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},dn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},dn.prototype.onContextMenu=function(){},dn.prototype.resetPosition=function(){},dn.prototype.needsContentAttribute=!0;function Bl(e,t){var r=ki(e,t.line);if(!r||r.hidden)return null;var n=x(e.doc,t.line),i=ji(r,n,t.line),o=xe(n,e.doc.direction),a="left";if(o){var l=ge(o,t.ch);a=l%2?"right":"left"}var s=Gi(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function Js(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function zi(e,t){return t&&(e.bad=!0),e}function qs(e,t,r,n,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(w){return function(z){return z.id==w}}function v(){a&&(o+=l,s&&(o+=l),a=s=!1)}function g(w){w&&(v(),o+=w)}function O(w){if(w.nodeType==1){var z=w.getAttribute("cm-text");if(z){g(z);return}var Y=w.getAttribute("cm-marker"),ve;if(Y){var Re=e.findMarks(M(n,0),M(i+1,0),u(+Y));Re.length&&(ve=Re[0].find(0))&&g(L(e.doc,ve.from,ve.to).join(l));return}if(w.getAttribute("contenteditable")=="false")return;var Ue=/^(pre|div|p|li|table|br)$/i.test(w.nodeName);if(!/^br$/i.test(w.nodeName)&&w.textContent.length==0)return;Ue&&v();for(var Le=0;Le=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),A(i,"paste",function(a){ht(n,a)||Al(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!ht(n,a)){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=$l(n);Wo({lineWise:!0,text:l.text}),a.type=="cut"?n.setSelections(l.ranges,null,oe):(r.prevInput="",i.value=l.text.join(` `),je(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}A(i,"cut",o),A(i,"copy",o),A(e.scroller,"paste",function(a){if(!($r(e,a)||ht(n,a))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),A(e.lineSpace,"selectstart",function(a){$r(e,a)||gt(a)}),A(i,"compositionstart",function(){var a=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:a,range:n.markText(a,n.getCursor("to"),{className:"CodeMirror-composing"})}}),A(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Wn.prototype.createField=function(e){this.wrapper=Wl(),this.textarea=this.wrapper.firstChild},Wn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Ia(e);if(e.options.moveInputWithCursor){var i=br(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},Wn.prototype.showSelection=function(e){var t=this.cm,r=t.display;$(r.cursorDiv,e.cursors),$(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wn.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&je(this.textarea),p&&D>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",p&&D>=9&&(this.hasSelection=null))}},Wn.prototype.getField=function(){return this.textarea},Wn.prototype.supportsTouch=function(){return!1},Wn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||be()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wn.prototype.blur=function(){this.textarea.blur()},Wn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wn.prototype.receivedFocus=function(){this.slowPoll()},Wn.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},Wn.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||An(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(p&&D>=9&&this.hasSelection===i||nt&&/[\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&&!n&&(n="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(n.length,i.length);a1e3||i.indexOf(` `)>-1?r.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},Wn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wn.prototype.onKeyPress=function(){p&&D>=9&&(this.hasSelection=null),this.fastPoll()},Wn.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=di(r,e),a=n.scroller.scrollTop;if(!o||y)return;var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(o)==-1&&Xn(r,or)(r.doc,ti(o),oe);var s=i.style.cssText,u=t.wrapper.style.cssText,v=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-v.top-5)+"px; left: "+(e.clientX-v.left-5)+`px; z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var g;T&&(g=window.scrollY),n.input.focus(),T&&window.scrollTo(null,g),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=w,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function O(){if(i.selectionStart!=null){var Y=r.somethingSelected(),ve="\u200B"+(Y?i.value:"");i.value="\u21DA",i.value=ve,t.prevInput=Y?"":"\u200B",i.selectionStart=1,i.selectionEnd=ve.length,n.selForContextMenu=r.doc.sel}}function w(){if(t.contextMenuPending==w&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,p&&D<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!p||p&&D<9)&&O();var Y=0,ve=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?Xn(r,il)(r):Y++<10?n.detectingSelectAll=setTimeout(ve,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ve,200)}}if(p&&D>=9&&O(),S){gn(e);var z=function(){ut(window,"mouseup",z),setTimeout(w,20)};A(window,"mouseup",z)}else setTimeout(w,50)},Wn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wn.prototype.setUneditable=function(){},Wn.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?K(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 r=be();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(A(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=n,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,n(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ut(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Rn(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function nu(e){e.off=ut,e.on=A,e.wheelEventPixels=us,e.Doc=hr,e.splitLines=sn,e.countColumn=k,e.findColumn=bt,e.isWordChar=G,e.Pass=We,e.signal=Fe,e.Line=rr,e.changeEnd=ni,e.scrollbarModel=Aa,e.Pos=M,e.cmpPos=U,e.modes=fn,e.mimeModes=Mn,e.resolveMode=vn,e.getMode=ct,e.modeExtensions=mt,e.extendMode=m,e.copyState=P,e.startState=d,e.innerMode=H,e.commands=fo,e.keyMap=Gr,e.keyName=Sl,e.isModifierKey=yl,e.lookupKey=Ai,e.normalizeKeyMap=Ds,e.StringStream=h,e.SharedTextMarker=so,e.TextMarker=ii,e.LineWidget=lo,e.e_preventDefault=gt,e.e_stopPropagation=_t,e.e_stop=gn,e.addClass=ot,e.contains=Pe,e.rmClass=b,e.keyNames=oi}Gs(Rn),Qs(Rn);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Bo in hr.prototype)hr.prototype.hasOwnProperty(Bo)&&te(ru,Bo)<0&&(Rn.prototype[Bo]=function(e){return function(){return e.apply(this.doc,arguments)}}(hr.prototype[Bo]));return tn(hr),Rn.inputStyles={textarea:Wn,contenteditable:dn},Rn.defineMode=function(e){!Rn.defaults.mode&&e!="null"&&(Rn.defaults.mode=e),mr.apply(this,arguments)},Rn.defineMIME=cr,Rn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Rn.defineMIME("text/plain","null"),Rn.defineExtension=function(e,t){Rn.prototype[e]=t},Rn.defineDocExtension=function(e,t){hr.prototype[e]=t},Rn.fromTextArea=tu,nu(Rn),Rn.version="5.58.2",Rn})},93681:function(en,Ee,f){"use strict";f.r(Ee),f.d(Ee,{BaseInput:function(){return y},default:function(){return tt}});var E=f(92413),q=f(33708),C=f(400),_=f(39559),p=f(92310),D=f.n(p),T=f(59301),me=f(5643),ne=function(Z){var S,c,b=Z.inputElement,I=Z.prefixCls,$=Z.prefix,R=Z.suffix,ye=Z.addonBefore,ze=Z.addonAfter,Pe=Z.className,be=Z.style,ot=Z.disabled,Ve=Z.readOnly,je=Z.focused,le=Z.triggerFocus,K=Z.allowClear,k=Z.value,ee=Z.handleReset,te=Z.hidden,_e=Z.classes,We=Z.classNames,oe=Z.dataAttrs,Te=Z.styles,ue=Z.components,bt=(ue==null?void 0:ue.affixWrapper)||"span",Dt=(ue==null?void 0:ue.groupWrapper)||"span",St=(ue==null?void 0:ue.wrapper)||"span",qe=(ue==null?void 0:ue.groupAddon)||"span",Ot=(0,T.useRef)(null),at=function(Ie){var ge;(ge=Ot.current)!==null&&ge!==void 0&&ge.contains(Ie.target)&&(le==null||le())},zt=function(){var Ie;if(!K)return null;var ge=!ot&&!Ve&&k,Ke="".concat(I,"-clear-icon"),xe=(0,_.Z)(K)==="object"&&K!==null&&K!==void 0&&K.clearIcon?K.clearIcon:"\u2716";return T.createElement("span",{onClick:ee,onMouseDown:function(A){return A.preventDefault()},className:D()(Ke,(Ie={},(0,C.Z)(Ie,"".concat(Ke,"-hidden"),!ge),(0,C.Z)(Ie,"".concat(Ke,"-has-suffix"),!!R),Ie)),role:"button",tabIndex:-1},xe)},F=(0,T.cloneElement)(b,{value:k,hidden:te,className:D()((S=b.props)===null||S===void 0?void 0:S.className,!(0,me.X3)(Z)&&!(0,me.He)(Z)&&Pe)||null,style:(0,q.Z)((0,q.Z)({},(c=b.props)===null||c===void 0?void 0:c.style),!(0,me.X3)(Z)&&!(0,me.He)(Z)?be:{})});if((0,me.X3)(Z)){var he,G="".concat(I,"-affix-wrapper"),Q=D()(G,(he={},(0,C.Z)(he,"".concat(G,"-disabled"),ot),(0,C.Z)(he,"".concat(G,"-focused"),je),(0,C.Z)(he,"".concat(G,"-readonly"),Ve),(0,C.Z)(he,"".concat(G,"-input-with-clear-btn"),R&&K&&k),he),!(0,me.He)(Z)&&Pe,_e==null?void 0:_e.affixWrapper,We==null?void 0:We.affixWrapper),se=(R||K)&&T.createElement("span",{className:D()("".concat(I,"-suffix"),We==null?void 0:We.suffix),style:Te==null?void 0:Te.suffix},zt(),R);F=T.createElement(bt,(0,E.Z)({className:Q,style:(0,q.Z)((0,q.Z)({},(0,me.He)(Z)?void 0:be),Te==null?void 0:Te.affixWrapper),hidden:!(0,me.He)(Z)&&te,onClick:at},oe==null?void 0:oe.affixWrapper,{ref:Ot}),$&&T.createElement("span",{className:D()("".concat(I,"-prefix"),We==null?void 0:We.prefix),style:Te==null?void 0:Te.prefix},$),(0,T.cloneElement)(b,{value:k,hidden:null}),se)}if((0,me.He)(Z)){var we="".concat(I,"-group"),pe="".concat(we,"-addon"),ae=D()("".concat(I,"-wrapper"),we,_e==null?void 0:_e.wrapper),ce=D()("".concat(I,"-group-wrapper"),Pe,_e==null?void 0:_e.group);return T.createElement(Dt,{className:ce,style:be,hidden:te},T.createElement(St,{className:ae},ye&&T.createElement(qe,{className:pe},ye),(0,T.cloneElement)(F,{hidden:null}),ze&&T.createElement(qe,{className:pe},ze)))}return F},y=ne,Se=f(26407),N=f(33606),fe=f(37061),Oe=f(18929),V=f(2738),Ge=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],nt=(0,T.forwardRef)(function(j,Z){var S=j.autoComplete,c=j.onChange,b=j.onFocus,I=j.onBlur,$=j.onPressEnter,R=j.onKeyDown,ye=j.prefixCls,ze=ye===void 0?"rc-input":ye,Pe=j.disabled,be=j.htmlSize,ot=j.className,Ve=j.maxLength,je=j.suffix,le=j.showCount,K=j.type,k=K===void 0?"text":K,ee=j.classes,te=j.classNames,_e=j.styles,We=(0,fe.Z)(j,Ge),oe=(0,Oe.Z)(j.defaultValue,{value:j.value}),Te=(0,N.Z)(oe,2),ue=Te[0],bt=Te[1],Dt=(0,T.useState)(!1),St=(0,N.Z)(Dt,2),qe=St[0],Ot=St[1],at=(0,T.useRef)(null),zt=function(ce){at.current&&(0,me.nH)(at.current,ce)};(0,T.useImperativeHandle)(Z,function(){return{focus:zt,blur:function(){var ce;(ce=at.current)===null||ce===void 0||ce.blur()},setSelectionRange:function(ce,He,Ie){var ge;(ge=at.current)===null||ge===void 0||ge.setSelectionRange(ce,He,Ie)},select:function(){var ce;(ce=at.current)===null||ce===void 0||ce.select()},input:at.current}}),(0,T.useEffect)(function(){Ot(function(ae){return ae&&Pe?!1:ae})},[Pe]);var F=function(ce){j.value===void 0&&bt(ce.target.value),at.current&&(0,me.rJ)(at.current,ce,c)},he=function(ce){$&&ce.key==="Enter"&&$(ce),R==null||R(ce)},G=function(ce){Ot(!0),b==null||b(ce)},Q=function(ce){Ot(!1),I==null||I(ce)},se=function(ce){bt(""),zt(),at.current&&(0,me.rJ)(at.current,ce,c)},we=function(){var ce=(0,V.Z)(j,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return T.createElement("input",(0,E.Z)({autoComplete:S},ce,{onChange:F,onFocus:G,onBlur:Q,onKeyDown:he,className:D()(ze,(0,C.Z)({},"".concat(ze,"-disabled"),Pe),te==null?void 0:te.input),style:_e==null?void 0:_e.input,ref:at,size:be,type:k}))},pe=function(){var ce=Number(Ve)>0;if(je||le){var He=(0,me.D7)(ue),Ie=(0,Se.Z)(He).length,ge=(0,_.Z)(le)==="object"?le.formatter({value:He,count:Ie,maxLength:Ve}):"".concat(Ie).concat(ce?" / ".concat(Ve):"");return T.createElement(T.Fragment,null,!!le&&T.createElement("span",{className:D()("".concat(ze,"-show-count-suffix"),(0,C.Z)({},"".concat(ze,"-show-count-has-suffix"),!!je),te==null?void 0:te.count),style:(0,q.Z)({},_e==null?void 0:_e.count)},ge),je)}return null};return T.createElement(y,(0,E.Z)({},We,{prefixCls:ze,className:ot,inputElement:we(),handleReset:se,value:(0,me.D7)(ue),focused:qe,triggerFocus:zt,suffix:pe(),disabled:Pe,classes:ee,classNames:te,styles:_e}))}),Ze=nt,tt=Ze},5643:function(en,Ee,f){"use strict";f.d(Ee,{D7:function(){return p},He:function(){return E},X3:function(){return q},nH:function(){return _},rJ:function(){return C}});function E(D){return!!(D.addonBefore||D.addonAfter)}function q(D){return!!(D.prefix||D.suffix||D.allowClear)}function C(D,T,me,ne){if(me){var y=T;if(T.type==="click"){var Se=D.cloneNode(!0);y=Object.create(T,{target:{value:Se},currentTarget:{value:Se}}),Se.value="",me(y);return}if(ne!==void 0){y=Object.create(T,{target:{value:D},currentTarget:{value:D}}),D.value=ne,me(y);return}me(y)}}function _(D,T){if(D){D.focus(T);var me=T||{},ne=me.cursor;if(ne){var y=D.value.length;switch(ne){case"start":D.setSelectionRange(0,0);break;case"end":D.setSelectionRange(y,y);break;default:D.setSelectionRange(0,y)}}}}function p(D){return typeof D=="undefined"||D===null?"":String(D)}},11780:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return le}});var E=f(92413),q=f(33708),C=f(33606),_=f(37061),p=f(59301),D=f(92310),T=f.n(D),me=f(29301),ne=f(34280),y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Se=void 0;function N(K,k){var ee=K.prefixCls,te=K.invalidate,_e=K.item,We=K.renderItem,oe=K.responsive,Te=K.responsiveDisabled,ue=K.registerSize,bt=K.itemKey,Dt=K.className,St=K.style,qe=K.children,Ot=K.display,at=K.order,zt=K.component,F=zt===void 0?"div":zt,he=(0,_.Z)(K,y),G=oe&&!Ot;function Q(ce){ue(bt,ce)}p.useEffect(function(){return function(){Q(null)}},[]);var se=We&&_e!==Se?We(_e,{index:at}):qe,we;te||(we={opacity:G?0:1,height:G?0:Se,overflowY:G?"hidden":Se,order:oe?at:Se,pointerEvents:G?"none":Se,position:G?"absolute":Se});var pe={};G&&(pe["aria-hidden"]=!0);var ae=p.createElement(F,(0,E.Z)({className:T()(!te&&ee,Dt),style:(0,q.Z)((0,q.Z)({},we),St)},pe,he,{ref:k}),se);return oe&&(ae=p.createElement(me.Z,{onResize:function(He){var Ie=He.offsetWidth;Q(Ie)},disabled:Te},ae)),ae}var fe=p.forwardRef(N);fe.displayName="Item";var Oe=fe,V=f(6089),Ge=f(4676),nt=f(16089);function Ze(K){if(typeof MessageChannel=="undefined")(0,nt.Z)(K);else{var k=new MessageChannel;k.port1.onmessage=function(){return K()},k.port2.postMessage(void 0)}}function tt(){var K=p.useRef(null),k=function(te){K.current||(K.current=[],Ze(function(){(0,Ge.unstable_batchedUpdates)(function(){K.current.forEach(function(_e){_e()}),K.current=null})})),K.current.push(te)};return k}function j(K,k){var ee=p.useState(k),te=(0,C.Z)(ee,2),_e=te[0],We=te[1],oe=(0,V.Z)(function(Te){K(function(){We(Te)})});return[_e,oe]}var Z=p.createContext(null),S=["component"],c=["className"],b=["className"],I=function(k,ee){var te=p.useContext(Z);if(!te){var _e=k.component,We=_e===void 0?"div":_e,oe=(0,_.Z)(k,S);return p.createElement(We,(0,E.Z)({},oe,{ref:ee}))}var Te=te.className,ue=(0,_.Z)(te,c),bt=k.className,Dt=(0,_.Z)(k,b);return p.createElement(Z.Provider,{value:null},p.createElement(Oe,(0,E.Z)({ref:ee,className:T()(Te,bt)},ue,Dt)))},$=p.forwardRef(I);$.displayName="RawItem";var R=$,ye=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ze="responsive",Pe="invalidate";function be(K){return"+ ".concat(K.length," ...")}function ot(K,k){var ee=K.prefixCls,te=ee===void 0?"rc-overflow":ee,_e=K.data,We=_e===void 0?[]:_e,oe=K.renderItem,Te=K.renderRawItem,ue=K.itemKey,bt=K.itemWidth,Dt=bt===void 0?10:bt,St=K.ssr,qe=K.style,Ot=K.className,at=K.maxCount,zt=K.renderRest,F=K.renderRawRest,he=K.suffix,G=K.component,Q=G===void 0?"div":G,se=K.itemComponent,we=K.onVisibleChange,pe=(0,_.Z)(K,ye),ae=St==="full",ce=tt(),He=j(ce,null),Ie=(0,C.Z)(He,2),ge=Ie[0],Ke=Ie[1],xe=ge||0,Qe=j(ce,new Map),A=(0,C.Z)(Qe,2),rt=A[0],ut=A[1],Fe=j(ce,0),ht=(0,C.Z)(Fe,2),Pt=ht[0],Kt=ht[1],tn=j(ce,0),gt=(0,C.Z)(tn,2),_t=gt[0],kt=gt[1],gn=j(ce,0),nn=(0,C.Z)(gn,2),cn=nn[0],Ln=nn[1],Hn=(0,p.useState)(null),Un=(0,C.Z)(Hn,2),ln=Un[0],_n=Un[1],sn=(0,p.useState)(null),An=(0,C.Z)(sn,2),hn=An[0],Cn=An[1],xn=p.useMemo(function(){return hn===null&&ae?Number.MAX_SAFE_INTEGER:hn||0},[hn,ge]),fn=(0,p.useState)(!1),Mn=(0,C.Z)(fn,2),mr=Mn[0],cr=Mn[1],vn="".concat(te,"-item"),ct=Math.max(Pt,_t),mt=at===ze,m=We.length&&mt,P=at===Pe,H=m||typeof at=="number"&&We.length>at,d=(0,p.useMemo)(function(){var re=We;return m?ge===null&&ae?re=We:re=We.slice(0,Math.min(We.length,xe/Dt)):typeof at=="number"&&(re=We.slice(0,at)),re},[We,Dt,ge,at,m]),h=(0,p.useMemo)(function(){return m?We.slice(xn+1):We.slice(d.length)},[We,d,m,xn]),x=(0,p.useCallback)(function(re,Me){var st;return typeof ue=="function"?ue(re):(st=ue&&(re==null?void 0:re[ue]))!==null&&st!==void 0?st:Me},[ue]),L=(0,p.useCallback)(oe||function(re){return re},[oe]);function J(re,Me,st){hn===re&&(Me===void 0||Me===ln)||(Cn(re),st||(cr(rexe){J(Je-1,re-Xe-cn+_t);break}}he&&De(0)+cn>xe&&_n(null)}},[xe,rt,_t,cn,x,d]);var M=mr&&!!h.length,U={};ln!==null&&m&&(U={position:"absolute",left:ln,top:0});var Be={prefixCls:vn,responsive:m,component:se,invalidate:P},Ce=Te?function(re,Me){var st=x(re,Me);return p.createElement(Z.Provider,{key:st,value:(0,q.Z)((0,q.Z)({},Be),{},{order:Me,item:re,itemKey:st,registerSize:W,display:Me<=xn})},Te(re,Me))}:function(re,Me){var st=x(re,Me);return p.createElement(Oe,(0,E.Z)({},Be,{order:Me,key:st,item:re,renderItem:L,itemKey:st,registerSize:W,display:Me<=xn}))},Ae={order:M?xn:Number.MAX_SAFE_INTEGER,className:"".concat(vn,"-rest"),registerSize:ie,display:M},Ne=zt||be,lt=F?p.createElement(Z.Provider,{value:(0,q.Z)((0,q.Z)({},Be),Ae)},F(h)):p.createElement(Oe,(0,E.Z)({},Be,Ae),typeof Ne=="function"?Ne(h):Ne),X=p.createElement(Q,(0,E.Z)({className:T()(!P&&te,Ot),style:qe,ref:k},pe),d.map(Ce),H?lt:null,he&&p.createElement(Oe,(0,E.Z)({},Be,{responsive:mt,responsiveDisabled:!m,order:xn,className:"".concat(vn,"-suffix"),registerSize:de,display:!0,style:U}),he));return mt?p.createElement(me.Z,{onResize:B,disabled:!m},X):X}var Ve=p.forwardRef(ot);Ve.displayName="Overflow",Ve.Item=R,Ve.RESPONSIVE=ze,Ve.INVALIDATE=Pe;var je=Ve,le=je},17115:function(en,Ee,f){"use strict";f.d(Ee,{ZP:function(){return T}});var E=f(33606),q=f(59301),C=f(47273),_=0,p=(0,C.Z)();function D(){var me;return p?(me=_,_+=1):me="TEST_OR_SSR",me}function T(me){var ne=q.useState(),y=(0,E.Z)(ne,2),Se=y[0],N=y[1];return q.useEffect(function(){N("rc_select_".concat(D()))},[]),me||Se}},77861:function(en,Ee,f){"use strict";f.d(Ee,{Ac:function(){return Ke},Xo:function(){return kt},Wx:function(){return nn},ZP:function(){return H},lk:function(){return Z}});var E=f(92413),q=f(26407),C=f(400),_=f(33708),p=f(33606),D=f(37061),T=f(39559),me=f(18929),ne=f(48736),y=f(59301),Se=f(92310),N=f.n(Se),fe=f(34280),Oe=f(49658),V=f(10228),Ge=f(8654),nt=function(h){var x=h.className,L=h.customizeIcon,J=h.customizeIconProps,B=h.onMouseDown,W=h.onClick,ie=h.children,de;return typeof L=="function"?de=L(J):de=L,y.createElement("span",{className:x,onMouseDown:function(M){M.preventDefault(),B&&B(M)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:W,"aria-hidden":!0},de!==void 0?de:y.createElement("span",{className:N()(x.split(/\s+/).map(function(De){return"".concat(De,"-icon")}))},ie))},Ze=nt;function tt(d,h,x,L,J){var B=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,W=arguments.length>6?arguments[6]:void 0,ie=arguments.length>7?arguments[7]:void 0,de=y.useMemo(function(){if((0,T.Z)(L)==="object")return L.clearIcon;if(J)return J},[L,J]),De=y.useMemo(function(){return!!(!B&&L&&(x.length||W)&&!(ie==="combobox"&&W===""))},[L,B,x.length,W,ie]);return{allowClear:De,clearIcon:y.createElement(Ze,{className:"".concat(d,"-clear"),onMouseDown:h,customizeIcon:de},"\xD7")}}var j=y.createContext(null);function Z(){return y.useContext(j)}function S(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,h=y.useState(!1),x=(0,p.Z)(h,2),L=x[0],J=x[1],B=y.useRef(null),W=function(){window.clearTimeout(B.current)};y.useEffect(function(){return W},[]);var ie=function(De,M){W(),B.current=window.setTimeout(function(){J(De),M&&M()},d)};return[L,ie,W]}function c(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,h=y.useRef(null),x=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(x.current)}},[]);function L(J){(J||h.current===null)&&(h.current=J),window.clearTimeout(x.current),x.current=window.setTimeout(function(){h.current=null},d)}return[function(){return h.current},L]}function b(d,h,x,L){var J=y.useRef(null);J.current={open:h,triggerOpen:x,customizedTrigger:L},y.useEffect(function(){function B(W){var ie;if(!((ie=J.current)!==null&&ie!==void 0&&ie.customizedTrigger)){var de=W.target;de.shadowRoot&&W.composed&&(de=W.composedPath()[0]||de),J.current.open&&d().filter(function(De){return De}).every(function(De){return!De.contains(de)&&De!==de})&&J.current.triggerOpen(!1)}}return window.addEventListener("mousedown",B),function(){return window.removeEventListener("mousedown",B)}},[])}var I=f(26112),$=f(11780),R=function(h,x){var L,J,B=h.prefixCls,W=h.id,ie=h.inputElement,de=h.disabled,De=h.tabIndex,M=h.autoFocus,U=h.autoComplete,Be=h.editable,Ce=h.activeDescendantId,Ae=h.value,Ne=h.maxLength,lt=h.onKeyDown,X=h.onMouseDown,re=h.onChange,Me=h.onPaste,st=h.onCompositionStart,Je=h.onCompositionEnd,Xe=h.open,Ut=h.attrs,Rt=ie||y.createElement("input",null),Ft=Rt,Nt=Ft.ref,wt=Ft.props,rn=wt.onKeyDown,Gt=wt.onChange,Ht=wt.onMouseDown,Qt=wt.onCompositionStart,Mt=wt.onCompositionEnd,xt=wt.style;return(0,ne.Kp)(!("maxLength"in Rt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Rt=y.cloneElement(Rt,(0,_.Z)((0,_.Z)((0,_.Z)({type:"search"},wt),{},{id:W,ref:(0,Ge.sQ)(x,Nt),disabled:de,tabIndex:De,autoComplete:U||"off",autoFocus:M,className:N()("".concat(B,"-selection-search-input"),(L=Rt)===null||L===void 0||(J=L.props)===null||J===void 0?void 0:J.className),role:"combobox","aria-label":"Search","aria-expanded":Xe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(W,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(W,"_list"),"aria-activedescendant":Xe?Ce:void 0},Ut),{},{value:Be?Ae:"",maxLength:Ne,readOnly:!Be,unselectable:Be?null:"on",style:(0,_.Z)((0,_.Z)({},xt),{},{opacity:Be?null:0}),onKeyDown:function(Et){lt(Et),rn&&rn(Et)},onMouseDown:function(Et){X(Et),Ht&&Ht(Et)},onChange:function(Et){re(Et),Gt&&Gt(Et)},onCompositionStart:function(Et){st(Et),Qt&&Qt(Et)},onCompositionEnd:function(Et){Je(Et),Mt&&Mt(Et)},onPaste:Me})),Rt},ye=y.forwardRef(R);ye.displayName="Input";var ze=ye;function Pe(d){return Array.isArray(d)?d:d!==void 0?[d]:[]}var be=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=be;function Ve(d){return d!=null}function je(d){return!d&&d!==0}function le(d){return["string","number"].includes((0,T.Z)(d))}function K(d){var h=void 0;return d&&(le(d.title)?h=d.title.toString():le(d.label)&&(h=d.label.toString())),h}function k(d,h){ot?y.useLayoutEffect(d,h):y.useEffect(d,h)}function ee(d){var h;return(h=d.key)!==null&&h!==void 0?h:d.value}var te=function(h){h.preventDefault(),h.stopPropagation()},_e=function(h){var x=h.id,L=h.prefixCls,J=h.values,B=h.open,W=h.searchValue,ie=h.autoClearSearchValue,de=h.inputRef,De=h.placeholder,M=h.disabled,U=h.mode,Be=h.showSearch,Ce=h.autoFocus,Ae=h.autoComplete,Ne=h.activeDescendantId,lt=h.tabIndex,X=h.removeIcon,re=h.maxTagCount,Me=h.maxTagTextLength,st=h.maxTagPlaceholder,Je=st===void 0?function(Lt){return"+ ".concat(Lt.length," ...")}:st,Xe=h.tagRender,Ut=h.onToggleOpen,Rt=h.onRemove,Ft=h.onInputChange,Nt=h.onInputPaste,wt=h.onInputKeyDown,rn=h.onInputMouseDown,Gt=h.onInputCompositionStart,Ht=h.onInputCompositionEnd,Qt=y.useRef(null),Mt=(0,y.useState)(0),xt=(0,p.Z)(Mt,2),$t=xt[0],Et=xt[1],pn=(0,y.useState)(!1),At=(0,p.Z)(pn,2),Bt=At[0],Jt=At[1],jt="".concat(L,"-selection"),Tn=B||U==="multiple"&&ie===!1||U==="tags"?W:"",Bn=U==="tags"||U==="multiple"&&ie===!1||Be&&(B||Bt);k(function(){Et(Qt.current.scrollWidth)},[Tn]);function It(Lt,an,mn,Dn,wn){return y.createElement("span",{className:N()("".concat(jt,"-item"),(0,C.Z)({},"".concat(jt,"-item-disabled"),mn)),title:K(Lt)},y.createElement("span",{className:"".concat(jt,"-item-content")},an),Dn&&y.createElement(Ze,{className:"".concat(jt,"-item-remove"),onMouseDown:te,onClick:wn,customizeIcon:X},"\xD7"))}function ft(Lt,an,mn,Dn,wn){var En=function($e){te($e),Ut(!B)};return y.createElement("span",{onMouseDown:En},Xe({label:an,value:Lt,disabled:mn,closable:Dn,onClose:wn}))}function vt(Lt){var an=Lt.disabled,mn=Lt.label,Dn=Lt.value,wn=!M&&!an,En=mn;if(typeof Me=="number"&&(typeof mn=="string"||typeof mn=="number")){var ke=String(En);ke.length>Me&&(En="".concat(ke.slice(0,Me),"..."))}var $e=function(on){on&&on.stopPropagation(),Rt(Lt)};return typeof Xe=="function"?ft(Dn,En,an,wn,$e):It(Lt,En,an,wn,$e)}function Xt(Lt){var an=typeof Je=="function"?Je(Lt):Je;return It({title:an},an,!1)}var qt=y.createElement("div",{className:"".concat(jt,"-search"),style:{width:$t},onFocus:function(){Jt(!0)},onBlur:function(){Jt(!1)}},y.createElement(ze,{ref:de,open:B,prefixCls:L,id:x,inputElement:null,disabled:M,autoFocus:Ce,autoComplete:Ae,editable:Bn,activeDescendantId:Ne,value:Tn,onKeyDown:wt,onMouseDown:rn,onChange:Ft,onPaste:Nt,onCompositionStart:Gt,onCompositionEnd:Ht,tabIndex:lt,attrs:(0,I.Z)(h,!0)}),y.createElement("span",{ref:Qt,className:"".concat(jt,"-search-mirror"),"aria-hidden":!0},Tn,"\xA0")),Vt=y.createElement($.Z,{prefixCls:"".concat(jt,"-overflow"),data:J,renderItem:vt,renderRest:Xt,suffix:qt,itemKey:ee,maxCount:re});return y.createElement(y.Fragment,null,Vt,!J.length&&!Tn&&y.createElement("span",{className:"".concat(jt,"-placeholder")},De))},We=_e,oe=function(h){var x=h.inputElement,L=h.prefixCls,J=h.id,B=h.inputRef,W=h.disabled,ie=h.autoFocus,de=h.autoComplete,De=h.activeDescendantId,M=h.mode,U=h.open,Be=h.values,Ce=h.placeholder,Ae=h.tabIndex,Ne=h.showSearch,lt=h.searchValue,X=h.activeValue,re=h.maxLength,Me=h.onInputKeyDown,st=h.onInputMouseDown,Je=h.onInputChange,Xe=h.onInputPaste,Ut=h.onInputCompositionStart,Rt=h.onInputCompositionEnd,Ft=h.title,Nt=y.useState(!1),wt=(0,p.Z)(Nt,2),rn=wt[0],Gt=wt[1],Ht=M==="combobox",Qt=Ht||Ne,Mt=Be[0],xt=lt||"";Ht&&X&&!rn&&(xt=X),y.useEffect(function(){Ht&&Gt(!1)},[Ht,X]);var $t=M!=="combobox"&&!U&&!Ne?!1:!!xt,Et=Ft===void 0?K(Mt):Ft,pn=function(){if(Mt)return null;var Bt=$t?{visibility:"hidden"}:void 0;return y.createElement("span",{className:"".concat(L,"-selection-placeholder"),style:Bt},Ce)};return y.createElement(y.Fragment,null,y.createElement("span",{className:"".concat(L,"-selection-search")},y.createElement(ze,{ref:B,prefixCls:L,id:J,open:U,inputElement:x,disabled:W,autoFocus:ie,autoComplete:de,editable:Qt,activeDescendantId:De,value:xt,onKeyDown:Me,onMouseDown:st,onChange:function(Bt){Gt(!0),Je(Bt)},onPaste:Xe,onCompositionStart:Ut,onCompositionEnd:Rt,tabIndex:Ae,attrs:(0,I.Z)(h,!0),maxLength:Ht?re:void 0})),!Ht&&Mt?y.createElement("span",{className:"".concat(L,"-selection-item"),title:Et,style:$t?{visibility:"hidden"}:void 0},Mt.label):null,pn())},Te=oe;function ue(d){return![V.Z.ESC,V.Z.SHIFT,V.Z.BACKSPACE,V.Z.TAB,V.Z.WIN_KEY,V.Z.ALT,V.Z.META,V.Z.WIN_KEY_RIGHT,V.Z.CTRL,V.Z.SEMICOLON,V.Z.EQUALS,V.Z.CAPS_LOCK,V.Z.CONTEXT_MENU,V.Z.F1,V.Z.F2,V.Z.F3,V.Z.F4,V.Z.F5,V.Z.F6,V.Z.F7,V.Z.F8,V.Z.F9,V.Z.F10,V.Z.F11,V.Z.F12].includes(d)}var bt=function(h,x){var L=(0,y.useRef)(null),J=(0,y.useRef)(!1),B=h.prefixCls,W=h.open,ie=h.mode,de=h.showSearch,De=h.tokenWithEnter,M=h.autoClearSearchValue,U=h.onSearch,Be=h.onSearchSubmit,Ce=h.onToggleOpen,Ae=h.onInputKeyDown,Ne=h.domRef;y.useImperativeHandle(x,function(){return{focus:function(){L.current.focus()},blur:function(){L.current.blur()}}});var lt=c(0),X=(0,p.Z)(lt,2),re=X[0],Me=X[1],st=function(xt){var $t=xt.which;($t===V.Z.UP||$t===V.Z.DOWN)&&xt.preventDefault(),Ae&&Ae(xt),$t===V.Z.ENTER&&ie==="tags"&&!J.current&&!W&&(Be==null||Be(xt.target.value)),ue($t)&&Ce(!0)},Je=function(){Me(!0)},Xe=(0,y.useRef)(null),Ut=function(xt){U(xt,!0,J.current)!==!1&&Ce(!0)},Rt=function(){J.current=!0},Ft=function(xt){J.current=!1,ie!=="combobox"&&Ut(xt.target.value)},Nt=function(xt){var $t=xt.target.value;if(De&&Xe.current&&/[\r\n]/.test(Xe.current)){var Et=Xe.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$t=$t.replace(Et,Xe.current)}Xe.current=null,Ut($t)},wt=function(xt){var $t=xt.clipboardData,Et=$t.getData("text");Xe.current=Et},rn=function(xt){var $t=xt.target;if($t!==L.current){var Et=document.body.style.msTouchAction!==void 0;Et?setTimeout(function(){L.current.focus()}):L.current.focus()}},Gt=function(xt){var $t=re();xt.target!==L.current&&!$t&&ie!=="combobox"&&xt.preventDefault(),(ie!=="combobox"&&(!de||!$t)||!W)&&(W&&M!==!1&&U("",!0,!1),Ce())},Ht={inputRef:L,onInputKeyDown:st,onInputMouseDown:Je,onInputChange:Nt,onInputPaste:wt,onInputCompositionStart:Rt,onInputCompositionEnd:Ft},Qt=ie==="multiple"||ie==="tags"?y.createElement(We,(0,E.Z)({},h,Ht)):y.createElement(Te,(0,E.Z)({},h,Ht));return y.createElement("div",{ref:Ne,className:"".concat(B,"-selector"),onClick:rn,onMouseDown:Gt},Qt)},Dt=y.forwardRef(bt);Dt.displayName="Selector";var St=Dt,qe=f(35593),Ot=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],at=function(h){var x=h===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:x,adjustY:1},htmlRegion:"scroll"}}},zt=function(h,x){var L=h.prefixCls,J=h.disabled,B=h.visible,W=h.children,ie=h.popupElement,de=h.animation,De=h.transitionName,M=h.dropdownStyle,U=h.dropdownClassName,Be=h.direction,Ce=Be===void 0?"ltr":Be,Ae=h.placement,Ne=h.builtinPlacements,lt=h.dropdownMatchSelectWidth,X=h.dropdownRender,re=h.dropdownAlign,Me=h.getPopupContainer,st=h.empty,Je=h.getTriggerDOMNode,Xe=h.onPopupVisibleChange,Ut=h.onPopupMouseEnter,Rt=(0,D.Z)(h,Ot),Ft="".concat(L,"-dropdown"),Nt=ie;X&&(Nt=X(ie));var wt=y.useMemo(function(){return Ne||at(lt)},[Ne,lt]),rn=de?"".concat(Ft,"-").concat(de):De,Gt=typeof lt=="number",Ht=y.useMemo(function(){return Gt?null:lt===!1?"minWidth":"width"},[lt,Gt]),Qt=M;Gt&&(Qt=(0,_.Z)((0,_.Z)({},Qt),{},{width:lt}));var Mt=y.useRef(null);return y.useImperativeHandle(x,function(){return{getPopupElement:function(){return Mt.current}}}),y.createElement(qe.Z,(0,E.Z)({},Rt,{showAction:Xe?["click"]:[],hideAction:Xe?["click"]:[],popupPlacement:Ae||(Ce==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wt,prefixCls:Ft,popupTransitionName:rn,popup:y.createElement("div",{ref:Mt,onMouseEnter:Ut},Nt),stretch:Ht,popupAlign:re,popupVisible:B,getPopupContainer:Me,popupClassName:N()(U,(0,C.Z)({},"".concat(Ft,"-empty"),st)),popupStyle:Qt,getTriggerDOMNode:Je,onPopupVisibleChange:Xe}),W)},F=y.forwardRef(zt);F.displayName="SelectTrigger";var he=F,G=f(34589);function Q(d,h){var x=d.key,L;return"value"in d&&(L=d.value),x!=null?x:L!==void 0?L:"rc-index-key-".concat(h)}function se(d,h){var x=d||{},L=x.label,J=x.value,B=x.options,W=x.groupLabel,ie=L||(h?"children":"label");return{label:ie,value:J||"value",options:B||"options",groupLabel:W||ie}}function we(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=h.fieldNames,L=h.childrenAsData,J=[],B=se(x,!1),W=B.label,ie=B.value,de=B.options,De=B.groupLabel;function M(U,Be){U.forEach(function(Ce){if(Be||!(de in Ce)){var Ae=Ce[ie];J.push({key:Q(Ce,J.length),groupOption:Be,data:Ce,label:Ce[W],value:Ae})}else{var Ne=Ce[De];Ne===void 0&&L&&(Ne=Ce.label),J.push({key:Q(Ce,J.length),group:!0,data:Ce,label:Ne}),M(Ce[de],!0)}})}return M(d,!1),J}function pe(d){var h=(0,_.Z)({},d);return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,ne.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),h}}),h}function ae(d,h){if(!h||!h.length)return null;var x=!1;function L(B,W){var ie=(0,G.Z)(W),de=ie[0],De=ie.slice(1);if(!de)return[B];var M=B.split(de);return x=x||M.length>1,M.reduce(function(U,Be){return[].concat((0,q.Z)(U),(0,q.Z)(L(Be,De)))},[]).filter(function(U){return U})}var J=L(d,h);return x?J: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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],He=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ie(d){return d==="tags"||d==="multiple"}var ge=y.forwardRef(function(d,h){var x,L,J=d.id,B=d.prefixCls,W=d.className,ie=d.showSearch,de=d.tagRender,De=d.direction,M=d.omitDomProps,U=d.displayValues,Be=d.onDisplayValuesChange,Ce=d.emptyOptions,Ae=d.notFoundContent,Ne=Ae===void 0?"Not Found":Ae,lt=d.onClear,X=d.mode,re=d.disabled,Me=d.loading,st=d.getInputElement,Je=d.getRawInputElement,Xe=d.open,Ut=d.defaultOpen,Rt=d.onDropdownVisibleChange,Ft=d.activeValue,Nt=d.onActiveValueChange,wt=d.activeDescendantId,rn=d.searchValue,Gt=d.autoClearSearchValue,Ht=d.onSearch,Qt=d.onSearchSplit,Mt=d.tokenSeparators,xt=d.allowClear,$t=d.suffixIcon,Et=d.clearIcon,pn=d.OptionList,At=d.animation,Bt=d.transitionName,Jt=d.dropdownStyle,jt=d.dropdownClassName,Tn=d.dropdownMatchSelectWidth,Bn=d.dropdownRender,It=d.dropdownAlign,ft=d.placement,vt=d.builtinPlacements,Xt=d.getPopupContainer,qt=d.showAction,Vt=qt===void 0?[]:qt,Lt=d.onFocus,an=d.onBlur,mn=d.onKeyUp,Dn=d.onKeyDown,wn=d.onMouseDown,En=(0,D.Z)(d,ce),ke=Ie(X),$e=(ie!==void 0?ie:ke)||X==="combobox",et=(0,_.Z)({},En);He.forEach(function(Yt){delete et[Yt]}),M==null||M.forEach(function(Yt){delete et[Yt]});var on=y.useState(!1),On=(0,p.Z)(on,2),nr=On[0],$n=On[1];y.useEffect(function(){$n((0,Oe.Z)())},[]);var zn=y.useRef(null),qn=y.useRef(null),Pn=y.useRef(null),kn=y.useRef(null),er=y.useRef(null),rr=S(),Kr=(0,p.Z)(rr,3),Xr=Kr[0],li=Kr[1],Yr=Kr[2];y.useImperativeHandle(h,function(){var Yt,Wt;return{focus:(Yt=kn.current)===null||Yt===void 0?void 0:Yt.focus,blur:(Wt=kn.current)===null||Wt===void 0?void 0:Wt.blur,scrollTo:function(ir){var In;return(In=er.current)===null||In===void 0?void 0:In.scrollTo(ir)}}});var xr=y.useMemo(function(){var Yt;if(X!=="combobox")return rn;var Wt=(Yt=U[0])===null||Yt===void 0?void 0:Yt.value;return typeof Wt=="string"||typeof Wt=="number"?String(Wt):""},[rn,X,U]),Qr=X==="combobox"&&typeof st=="function"&&st()||null,Ir=typeof Je=="function"&&Je(),Bi=(0,Ge.x1)(qn,Ir==null||(x=Ir.props)===null||x===void 0?void 0:x.ref),Si=y.useState(!1),si=(0,p.Z)(Si,2),Ur=si[0],Ci=si[1];(0,fe.Z)(function(){Ci(!0)},[]);var xi=(0,me.Z)(!1,{defaultValue:Ut,value:Xe}),jr=(0,p.Z)(xi,2),Ar=jr[0],ui=jr[1],dt=Ur?Ar:!1,Tt=!Ne&&Ce;(re||Tt&&dt&&X==="combobox")&&(dt=!1);var yt=Tt?!1:dt,it=y.useCallback(function(Yt){var Wt=Yt!==void 0?Yt:!dt;re||(ui(Wt),dt!==Wt&&(Rt==null||Rt(Wt)))},[re,dt,ui,Rt]),yn=y.useMemo(function(){return(Mt||[]).some(function(Yt){return[` `,`\r `].includes(Yt)})},[Mt]),bn=function(Wt,Vn,ir){var In=!0,lr=Wt;Nt==null||Nt(null);var yr=ir?null:ae(Wt,Mt);return X!=="combobox"&&yr&&(lr="",Qt==null||Qt(yr),it(!1),In=!1),Ht&&xr!==lr&&Ht(lr,{source:Vn?"typing":"effect"}),In},fr=function(Wt){!Wt||!Wt.trim()||Ht(Wt,{source:"submit"})};y.useEffect(function(){!dt&&!ke&&X!=="combobox"&&bn("",!1,!1)},[dt]),y.useEffect(function(){Ar&&re&&ui(!1),re&&li(!1)},[re]);var Mr=c(),Fr=(0,p.Z)(Mr,2),Gn=Fr[0],Rr=Fr[1],ci=function(Wt){var Vn=Gn(),ir=Wt.which;if(ir===V.Z.ENTER&&(X!=="combobox"&&Wt.preventDefault(),dt||it(!0)),Rr(!!xr),ir===V.Z.BACKSPACE&&!Vn&&ke&&!xr&&U.length){for(var In=(0,q.Z)(U),lr=null,yr=In.length-1;yr>=0;yr-=1){var _r=In[yr];if(!_r.disabled){In.splice(yr,1),lr=_r;break}}lr&&Be(In,{type:"remove",values:[lr]})}for(var wr=arguments.length,kr=new Array(wr>1?wr-1:0),Nr=1;Nr1?Vn-1:0),In=1;In1?yr-1:0),wr=1;wr1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ut.Z)(d).map(function(x,L){if(!y.isValidElement(x)||!x.type)return null;var J=x,B=J.type.isSelectOptGroup,W=J.key,ie=J.props,de=ie.children,De=(0,D.Z)(ie,ht);return h||!B?Pt(x):(0,_.Z)((0,_.Z)({key:"__RC_SELECT_GRP__".concat(W===null?L:W,"__"),label:W},De),{},{options:Kt(de)})}).filter(function(x){return x})}function tn(d,h,x,L,J){return y.useMemo(function(){var B=d,W=!d;W&&(B=Kt(h));var ie=new Map,de=new Map,De=function(Be,Ce,Ae){Ae&&typeof Ae=="string"&&Be.set(Ce[Ae],Ce)};function M(U){for(var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:1,Xt=Nt.length,qt=0;qt1&&arguments[1]!==void 0?arguments[1]:!1;$t(ft);var Xt={source:vt?"keyboard":"mouse"},qt=Nt[ft];if(!qt){Ne(null,-1,Xt);return}Ne(qt.value,ft,Xt)};(0,y.useEffect)(function(){Et(lt!==!1?Ht(0):-1)},[Nt.length,De]);var pn=y.useCallback(function(It){return Me.has(It)&&de!=="combobox"},[de,(0,q.Z)(Me).toString(),Me.size]);(0,y.useEffect)(function(){var It=setTimeout(function(){if(!ie&&W&&Me.size===1){var vt=Array.from(Me)[0],Xt=Nt.findIndex(function(qt){var Vt=qt.data;return Vt.value===vt});Xt!==-1&&(Et(Xt),Gt(Xt))}});if(W){var ft;(ft=wt.current)===null||ft===void 0||ft.scrollTo(void 0)}return function(){return clearTimeout(It)}},[W,De,Ae.length]);var At=function(ft){ft!==void 0&&X(ft,{selected:!Me.has(ft)}),ie||M(!1)};if(y.useImperativeHandle(x,function(){return{onKeyDown:function(ft){var vt=ft.which,Xt=ft.ctrlKey;switch(vt){case V.Z.N:case V.Z.P:case V.Z.UP:case V.Z.DOWN:{var qt=0;if(vt===V.Z.UP?qt=-1:vt===V.Z.DOWN?qt=1:_n()&&Xt&&(vt===V.Z.N?qt=1:vt===V.Z.P&&(qt=-1)),qt!==0){var Vt=Ht(xt+qt,qt);Gt(Vt),Et(Vt,!0)}break}case V.Z.ENTER:{var Lt=Nt[xt];Lt&&!Lt.data.disabled?At(Lt.value):At(void 0),W&&ft.preventDefault();break}case V.Z.ESC:M(!1),W&&ft.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ft){Gt(ft)}}}),Nt.length===0)return y.createElement("div",{role:"listbox",id:"".concat(B,"_list"),className:"".concat(Ft,"-empty"),onMouseDown:rn},U);var Bt=Object.keys(st).map(function(It){return st[It]}),Jt=function(ft){return ft.label};function jt(It,ft){var vt=It.group;return{role:vt?"presentation":"option",id:"".concat(B,"_list_").concat(ft)}}var Tn=function(ft){var vt=Nt[ft];if(!vt)return null;var Xt=vt.data||{},qt=Xt.value,Vt=vt.group,Lt=(0,I.Z)(Xt,!0),an=Jt(vt);return vt?y.createElement("div",(0,E.Z)({"aria-label":typeof an=="string"&&!Vt?an:null},Lt,{key:ft},jt(vt,ft),{"aria-selected":pn(qt)}),qt):null},Bn={role:"listbox",id:"".concat(B,"_list")};return y.createElement(y.Fragment,null,Je&&y.createElement("div",(0,E.Z)({},Bn,{style:{height:0,width:0,overflow:"hidden"}}),Tn(xt-1),Tn(xt),Tn(xt+1)),y.createElement(Hn.Z,{itemKey:"key",ref:wt,data:Nt,height:Ut,itemHeight:Rt,fullHeight:!1,onMouseDown:rn,onScroll:Be,virtual:Je,direction:Xe,innerProps:Je?null:Bn},function(It,ft){var vt,Xt=It.group,qt=It.groupOption,Vt=It.data,Lt=It.label,an=It.value,mn=Vt.key;if(Xt){var Dn,wn=(Dn=Vt.title)!==null&&Dn!==void 0?Dn:An(Lt)?Lt.toString():void 0;return y.createElement("div",{className:N()(Ft,"".concat(Ft,"-group")),title:wn},Lt!==void 0?Lt:mn)}var En=Vt.disabled,ke=Vt.title,$e=Vt.children,et=Vt.style,on=Vt.className,On=(0,D.Z)(Vt,sn),nr=(0,Ln.Z)(On,Bt),$n=pn(an),zn="".concat(Ft,"-option"),qn=N()(Ft,zn,on,(vt={},(0,C.Z)(vt,"".concat(zn,"-grouped"),qt),(0,C.Z)(vt,"".concat(zn,"-active"),xt===ft&&!En),(0,C.Z)(vt,"".concat(zn,"-disabled"),En),(0,C.Z)(vt,"".concat(zn,"-selected"),$n),vt)),Pn=Jt(It),kn=!re||typeof re=="function"||$n,er=typeof Pn=="number"?Pn:Pn||an,rr=An(er)?er.toString():void 0;return ke!==void 0&&(rr=ke),y.createElement("div",(0,E.Z)({},(0,I.Z)(nr),Je?{}:jt(It,ft),{"aria-selected":$n,className:qn,title:rr,onMouseMove:function(){xt===ft||En||Et(ft)},onClick:function(){En||At(an)},style:et}),y.createElement("div",{className:"".concat(zn,"-content")},er),y.isValidElement(re)||$n,kn&&y.createElement(Ze,{className:"".concat(Ft,"-option-state"),customizeIcon:re,customizeIconProps:{isSelected:$n}},$n?"\u2713":null))}))},Cn=y.forwardRef(hn);Cn.displayName="OptionList";var xn=Cn;function fn(d){var h=d.mode,x=d.options,L=d.children,J=d.backfill,B=d.allowClear,W=d.placeholder,ie=d.getInputElement,de=d.showSearch,De=d.onSearch,M=d.defaultOpen,U=d.autoFocus,Be=d.labelInValue,Ce=d.value,Ae=d.inputValue,Ne=d.optionLabelProp,lt=isMultiple(h),X=de!==void 0?de:lt||h==="combobox",re=x||convertChildrenToData(L);if(warning(h!=="tags"||re.every(function(Xe){return!Xe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Me=re.some(function(Xe){return Xe.options?Xe.options.some(function(Ut){return typeof("value"in Ut?Ut.value:Ut.key)=="number"}):typeof("value"in Xe?Xe.value:Xe.key)=="number"});warning(!Me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(h!=="combobox"||!Ne,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(h==="combobox"||!J,"`backfill` only works with `combobox` mode."),warning(h==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),noteOnce(h!=="combobox"||!ie||!B||!W,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),De&&!X&&h!=="combobox"&&h!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!M||U,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ce!=null){var st=toArray(Ce);warning(!Be||st.every(function(Xe){return _typeof(Xe)==="object"&&("key"in Xe||"value"in Xe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!lt||Array.isArray(Ce),"`value` should be array when `mode` is `multiple` or `tags`")}if(L){var Je=null;toNodeArray(L).some(function(Xe){if(!React.isValidElement(Xe)||!Xe.type)return!1;var Ut=Xe,Rt=Ut.type;if(Rt.isSelectOption)return!1;if(Rt.isSelectOptGroup){var Ft=toNodeArray(Xe.props.children).every(function(Nt){return!React.isValidElement(Nt)||!Xe.type||Nt.type.isSelectOption?!0:(Je=Nt.type,!1)});return!Ft}return Je=Rt,!0}),Je&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Je.displayName||Je.name||Je,"`.")),warning(Ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Mn(d,h){if(d){var x=function L(J){for(var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=0;W2&&arguments[2]!==void 0?arguments[2]:{},it=yt.source,yn=it===void 0?"keyboard":it;Bi(Tt),W&&L==="combobox"&&dt!==null&&yn==="keyboard"&&Yr(String(dt))},[W,L]),Ur=function(Tt,yt,it){var yn=function(){var Hr,Lr=on(Tt);return[xt?{label:Lr==null?void 0:Lr[jt.label],value:Tt,key:(Hr=Lr==null?void 0:Lr.key)!==null&&Hr!==void 0?Hr:Tt}:Tt,pe(Lr)]};if(yt&&Ce){var bn=yn(),fr=(0,p.Z)(bn,2),Mr=fr[0],Fr=fr[1];Ce(Mr,Fr)}else if(!yt&&Ae&&it!=="clear"){var Gn=yn(),Rr=(0,p.Z)(Gn,2),ci=Rr[0],Zi=Rr[1];Ae(ci,Zi)}},Ci=gt(function(dt,Tt){var yt,it=At?Tt.selected:!0;it?yt=At?[].concat((0,q.Z)(et),[dt]):[dt]:yt=et.filter(function(yn){return yn.value!==dt}),rr(yt),Ur(dt,it),L==="combobox"?Yr(""):(!Ie||Be)&&(ft(""),Yr(""))}),xi=function(Tt,yt){rr(Tt);var it=yt.type,yn=yt.values;(it==="remove"||it==="clear")&&yn.forEach(function(bn){Ur(bn.value,!1,it)})},jr=function(Tt,yt){if(ft(Tt),Yr(null),yt.source==="submit"){var it=(Tt||"").trim();if(it){var yn=Array.from(new Set([].concat((0,q.Z)(nr),[it])));rr(yn),Ur(it,!0),ft("")}return}yt.source!=="blur"&&(L==="combobox"&&rr(Tt),M==null||M(Tt))},Ar=function(Tt){var yt=Tt;L!=="tags"&&(yt=Tt.map(function(yn){var bn=qt.get(yn);return bn==null?void 0:bn.value}).filter(function(yn){return yn!==void 0}));var it=Array.from(new Set([].concat((0,q.Z)(nr),(0,q.Z)(yt))));rr(it),it.forEach(function(yn){Ur(yn,!0)})},ui=y.useMemo(function(){var dt=Ft!==!1&<!==!1;return(0,_.Z)((0,_.Z)({},vt),{},{flattenOptions:er,onActiveValue:si,defaultActiveFirstOption:Si,onSelect:Ci,menuItemSelectedIcon:Rt,rawValues:nr,fieldNames:jt,virtual:dt,direction:Nt,listHeight:rn,listItemHeight:Ht,childrenAsData:Bt})},[vt,er,si,Si,Ci,Rt,nr,jt,Ft,lt,rn,Ht,Bt]);return y.createElement(ln.Provider,{value:ui},y.createElement(Ke,(0,E.Z)({},Et,{id:pn,prefixCls:B,ref:h,omitDomProps:vn,mode:L,displayValues:On,onDisplayValuesChange:xi,direction:Nt,searchValue:It,onSearch:jr,autoClearSearchValue:Be,onSearchSplit:Ar,dropdownMatchSelectWidth:lt,OptionList:xn,emptyOptions:!er.length,activeValue:li,activeDescendantId:"".concat(pn,"_list_").concat(Ir)})))}),m=mt;m.Option=nn,m.OptGroup=kt;var P=m,H=P},9296:function(en,Ee,f){"use strict";f.r(Ee),f.d(Ee,{ResizableTextArea:function(){return ye},default:function(){return je}});var E=f(92413),q=f(33708),C=f(400),_=f(39559),p=f(33606),D=f(37061),T=f(26407),me=f(92310),ne=f.n(me),y=f(93681),Se=f(5643),N=f(18929),fe=f(59301),Oe=f(29301),V=f(34280),Ge=f(16089),nt=` 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; `,Ze=["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"],tt={},j;function Z(le){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=le.getAttribute("id")||le.getAttribute("data-reactid")||le.getAttribute("name");if(K&&tt[k])return tt[k];var ee=window.getComputedStyle(le),te=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),_e=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),We=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),oe=Ze.map(function(ue){return"".concat(ue,":").concat(ee.getPropertyValue(ue))}).join(";"),Te={sizingStyle:oe,paddingSize:_e,borderSize:We,boxSizing:te};return K&&k&&(tt[k]=Te),Te}function S(le){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),le.getAttribute("wrap")?j.setAttribute("wrap",le.getAttribute("wrap")):j.removeAttribute("wrap");var te=Z(le,K),_e=te.paddingSize,We=te.borderSize,oe=te.boxSizing,Te=te.sizingStyle;j.setAttribute("style","".concat(Te,";").concat(nt)),j.value=le.value||le.placeholder||"";var ue=void 0,bt=void 0,Dt,St=j.scrollHeight;if(oe==="border-box"?St+=We:oe==="content-box"&&(St-=_e),k!==null||ee!==null){j.value=" ";var qe=j.scrollHeight-_e;k!==null&&(ue=qe*k,oe==="border-box"&&(ue=ue+_e+We),St=Math.max(ue,St)),ee!==null&&(bt=qe*ee,oe==="border-box"&&(bt=bt+_e+We),Dt=St>bt?"":"hidden",St=Math.min(bt,St))}var Ot={height:St,overflowY:Dt,resize:"none"};return ue&&(Ot.minHeight=ue),bt&&(Ot.maxHeight=bt),Ot}var c=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],b=0,I=1,$=2,R=fe.forwardRef(function(le,K){var k=le,ee=k.prefixCls,te=k.onPressEnter,_e=k.defaultValue,We=k.value,oe=k.autoSize,Te=k.onResize,ue=k.className,bt=k.style,Dt=k.disabled,St=k.onChange,qe=k.onInternalAutoSize,Ot=(0,D.Z)(k,c),at=(0,N.Z)(_e,{value:We,postState:function(kt){return kt!=null?kt:""}}),zt=(0,p.Z)(at,2),F=zt[0],he=zt[1],G=function(kt){he(kt.target.value),St==null||St(kt)},Q=fe.useRef();fe.useImperativeHandle(K,function(){return{textArea:Q.current}});var se=fe.useMemo(function(){return oe&&(0,_.Z)(oe)==="object"?[oe.minRows,oe.maxRows]:[]},[oe]),we=(0,p.Z)(se,2),pe=we[0],ae=we[1],ce=!!oe,He=function(){try{if(document.activeElement===Q.current){var kt=Q.current,gn=kt.selectionStart,nn=kt.selectionEnd,cn=kt.scrollTop;Q.current.setSelectionRange(gn,nn),Q.current.scrollTop=cn}}catch(Ln){}},Ie=fe.useState($),ge=(0,p.Z)(Ie,2),Ke=ge[0],xe=ge[1],Qe=fe.useState(),A=(0,p.Z)(Qe,2),rt=A[0],ut=A[1],Fe=function(){xe(b)};(0,V.Z)(function(){ce&&Fe()},[We,pe,ae,ce]),(0,V.Z)(function(){if(Ke===b)xe(I);else if(Ke===I){var _t=S(Q.current,!1,pe,ae);xe($),ut(_t)}else He()},[Ke]);var ht=fe.useRef(),Pt=function(){Ge.Z.cancel(ht.current)},Kt=function(kt){Ke===$&&(Te==null||Te(kt),oe&&(Pt(),ht.current=(0,Ge.Z)(function(){Fe()})))};fe.useEffect(function(){return Pt},[]);var tn=ce?rt:null,gt=(0,q.Z)((0,q.Z)({},bt),tn);return(Ke===b||Ke===I)&&(gt.overflowY="hidden",gt.overflowX="hidden"),fe.createElement(Oe.Z,{onResize:Kt,disabled:!(oe||Te)},fe.createElement("textarea",(0,E.Z)({},Ot,{ref:Q,style:gt,className:ne()(ee,ue,(0,C.Z)({},"".concat(ee,"-disabled"),Dt)),disabled:Dt,value:F,onChange:G})))}),ye=R,ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Pe(le,K){return(0,T.Z)(le||"").slice(0,K).join("")}function be(le,K,k,ee){var te=k;return le?te=Pe(k,ee):(0,T.Z)(K||"").lengthee&&(te=K),te}var ot=fe.forwardRef(function(le,K){var k,ee=le.defaultValue,te=le.value,_e=le.onFocus,We=le.onBlur,oe=le.onChange,Te=le.allowClear,ue=le.maxLength,bt=le.onCompositionStart,Dt=le.onCompositionEnd,St=le.suffix,qe=le.prefixCls,Ot=qe===void 0?"rc-textarea":qe,at=le.classes,zt=le.showCount,F=le.className,he=le.style,G=le.disabled,Q=le.hidden,se=le.classNames,we=le.styles,pe=le.onResize,ae=(0,D.Z)(le,ze),ce=(0,N.Z)(ee,{value:te,defaultValue:ee}),He=(0,p.Z)(ce,2),Ie=He[0],ge=He[1],Ke=(0,fe.useRef)(null),xe=fe.useState(!1),Qe=(0,p.Z)(xe,2),A=Qe[0],rt=Qe[1],ut=fe.useState(!1),Fe=(0,p.Z)(ut,2),ht=Fe[0],Pt=Fe[1],Kt=fe.useRef(),tn=fe.useRef(0),gt=fe.useState(null),_t=(0,p.Z)(gt,2),kt=_t[0],gn=_t[1],nn=function(){var ct;(ct=Ke.current)===null||ct===void 0||ct.textArea.focus()};(0,fe.useImperativeHandle)(K,function(){return{resizableTextArea:Ke.current,focus:nn,blur:function(){var ct;(ct=Ke.current)===null||ct===void 0||ct.textArea.blur()}}}),(0,fe.useEffect)(function(){rt(function(vn){return!G&&vn})},[G]);var cn=Number(ue)>0,Ln=function(ct){Pt(!0),Kt.current=Ie,tn.current=ct.currentTarget.selectionStart,bt==null||bt(ct)},Hn=function(ct){Pt(!1);var mt=ct.currentTarget.value;if(cn){var m,P=tn.current>=ue+1||tn.current===((m=Kt.current)===null||m===void 0?void 0:m.length);mt=be(P,Kt.current,mt,ue)}mt!==Ie&&(ge(mt),(0,Se.rJ)(ct.currentTarget,ct,oe,mt)),Dt==null||Dt(ct)},Un=function(ct){var mt=ct.target.value;if(!ht&&cn){var m=ct.target.selectionStart>=ue+1||ct.target.selectionStart===mt.length||!ct.target.selectionStart;mt=be(m,Ie,mt,ue)}ge(mt),(0,Se.rJ)(ct.currentTarget,ct,oe,mt)},ln=function(ct){var mt=ae.onPressEnter,m=ae.onKeyDown;ct.key==="Enter"&&mt&&mt(ct),m==null||m(ct)},_n=function(ct){rt(!0),_e==null||_e(ct)},sn=function(ct){rt(!1),We==null||We(ct)},An=function(ct){var mt;ge(""),nn(),(0,Se.rJ)((mt=Ke.current)===null||mt===void 0?void 0:mt.textArea,ct,oe)},hn=(0,Se.D7)(Ie);!ht&&cn&&te==null&&(hn=Pe(hn,ue));var Cn=St,xn;if(zt){var fn=(0,T.Z)(hn).length;(0,_.Z)(zt)==="object"?xn=zt.formatter({value:hn,count:fn,maxLength:ue}):xn="".concat(fn).concat(cn?" / ".concat(ue):""),Cn=fe.createElement(fe.Fragment,null,Cn,fe.createElement("span",{className:ne()("".concat(Ot,"-data-count"),se==null?void 0:se.count),style:we==null?void 0:we.count},xn))}var Mn=function(ct){var mt;pe==null||pe(ct),(mt=Ke.current)!==null&&mt!==void 0&&mt.textArea.style.height&&gn(!0)},mr=!ae.autoSize&&!zt&&!Te,cr=fe.createElement(y.BaseInput,{value:hn,allowClear:Te,handleReset:An,suffix:Cn,prefixCls:Ot,classes:{affixWrapper:ne()(at==null?void 0:at.affixWrapper,(k={},(0,C.Z)(k,"".concat(Ot,"-show-count"),zt),(0,C.Z)(k,"".concat(Ot,"-textarea-allow-clear"),Te),k))},disabled:G,focused:A,className:F,style:(0,q.Z)((0,q.Z)({},he),kt&&!mr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xn=="string"?xn:void 0}},hidden:Q,inputElement:fe.createElement(ye,(0,E.Z)({},ae,{onKeyDown:ln,onChange:Un,onFocus:_n,onBlur:sn,onCompositionStart:Ln,onCompositionEnd:Hn,className:se==null?void 0:se.textarea,style:(0,q.Z)((0,q.Z)({},we==null?void 0:we.textarea),{},{resize:he==null?void 0:he.resize}),disabled:G,prefixCls:Ot,onResize:Mn,ref:Ke}))});return cr}),Ve=ot,je=Ve},4409:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return zt}});var E=f(92413),q=f(39559),C=f(33708),_=f(400),p=f(33606),D=f(37061),T=f(92310),me=f.n(T),ne=f(29301),y=f(70425),Se=f(34280),N=f(59301),fe=f(4676),Oe=N.forwardRef(function(F,he){var G=F.height,Q=F.offsetY,se=F.offsetX,we=F.children,pe=F.prefixCls,ae=F.onInnerResize,ce=F.innerProps,He=F.rtl,Ie=F.extra,ge={},Ke={display:"flex",flexDirection:"column"};return Q!==void 0&&(ge={height:G,position:"relative",overflow:"hidden"},Ke=(0,C.Z)((0,C.Z)({},Ke),{},(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({transform:"translateY(".concat(Q,"px)")},He?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),N.createElement("div",{style:ge},N.createElement(ne.Z,{onResize:function(Qe){var A=Qe.offsetHeight;A&&ae&&ae()}},N.createElement("div",(0,E.Z)({style:Ke,className:me()((0,_.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:he},ce),we,Ie)))});Oe.displayName="Filler";var V=Oe;function Ge(F){var he=F.children,G=F.setRef,Q=N.useCallback(function(se){G(se)},[]);return N.cloneElement(he,{ref:Q})}function nt(F,he,G,Q,se,we,pe,ae){var ce=ae.getKey;return F.slice(he,G+1).map(function(He,Ie){var ge=he+Ie,Ke=pe(He,ge,{style:{width:Q},offsetX:se}),xe=ce(He);return N.createElement(Ge,{key:xe,setRef:function(A){return we(He,A)}},Ke)})}function Ze(F,he,G,Q){var se=G-F,we=he-G,pe=Math.min(se,we)*2;if(Q<=pe){var ae=Math.floor(Q/2);return Q%2?G+ae+1:G-ae}return se>we?G-(Q-we):G+(Q-se)}function tt(F,he,G){var Q=F.length,se=he.length,we,pe;if(Q===0&&se===0)return null;Q2&&arguments[2]!==void 0?arguments[2]:!1,ge=ce?He<0&&ae.current.left||He>0&&ae.current.right:He<0&&ae.current.top||He>0&&ae.current.bottom;return Ie&&ge?(clearTimeout(we.current),se.current=!1):(!ge||se.current)&&pe(),!se.current&&ge}};function I(F,he,G,Q,se,we,pe){var ae=(0,N.useRef)(0),ce=(0,N.useRef)(null),He=(0,N.useRef)(null),Ie=(0,N.useRef)(!1),ge=b(he,G,Q,se);function Ke(Fe,ht){if(Z.Z.cancel(ce.current),!ge(!1,ht)){var Pt=Fe;if(!Pt._virtualHandled)Pt._virtualHandled=!0;else return;ae.current+=ht,He.current=ht,c||Pt.preventDefault(),ce.current=(0,Z.Z)(function(){var Kt=Ie.current?10:1;pe(ae.current*Kt,!1),ae.current=0})}}function xe(Fe,ht){pe(ht,!0),c||Fe.preventDefault()}var Qe=(0,N.useRef)(null),A=(0,N.useRef)(null);function rt(Fe){if(F){Z.Z.cancel(A.current),A.current=(0,Z.Z)(function(){Qe.current=null},2);var ht=Fe.deltaX,Pt=Fe.deltaY,Kt=Fe.shiftKey,tn=ht,gt=Pt;(Qe.current==="sx"||!Qe.current&&Kt&&Pt&&!ht)&&(tn=Pt,gt=0,Qe.current="sx");var _t=Math.abs(tn),kt=Math.abs(gt);Qe.current===null&&(Qe.current=we&&_t>kt?"x":"y"),Qe.current==="y"?Ke(Fe,gt):xe(Fe,tn)}}function ut(Fe){F&&(Ie.current=Fe.detail===He.current)}return[rt,ut]}function $(F,he,G,Q){var se=N.useMemo(function(){return[new Map,[]]},[F,G.id,Q]),we=(0,p.Z)(se,2),pe=we[0],ae=we[1],ce=function(Ie){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie,Ke=pe.get(Ie),xe=pe.get(ge);if(Ke===void 0||xe===void 0)for(var Qe=F.length,A=ae.length;A0&&arguments[0]!==void 0?arguments[0]:!1;Ie();var Qe=function(){var ut=!1;ae.current.forEach(function(Fe,ht){if(Fe&&Fe.offsetParent){var Pt=(0,R.ZP)(Fe),Kt=Pt.offsetHeight,tn=getComputedStyle(Pt),gt=tn.marginTop,_t=tn.marginBottom,kt=ot(gt),gn=ot(_t),nn=Kt+kt+gn;ce.current.get(ht)!==nn&&(ce.current.set(ht,nn),ut=!0)}}),ut&&pe(function(Fe){return Fe+1})};if(xe)Qe();else{He.current+=1;var A=He.current;Promise.resolve().then(function(){A===He.current&&Qe()})}}function Ke(xe,Qe){var A=F(xe),rt=ae.current.get(A);Qe?(ae.current.set(A,Qe),ge()):ae.current.delete(A),!rt!=!Qe&&(Qe?he==null||he(xe):G==null||G(xe))}return(0,N.useEffect)(function(){return Ie},[]),[Ke,ge,ce.current,we]}var je=14/15;function le(F,he,G){var Q=(0,N.useRef)(!1),se=(0,N.useRef)(0),we=(0,N.useRef)(0),pe=(0,N.useRef)(null),ae=(0,N.useRef)(null),ce,He=function(xe){if(Q.current){var Qe=Math.ceil(xe.touches[0].pageX),A=Math.ceil(xe.touches[0].pageY),rt=se.current-Qe,ut=we.current-A,Fe=Math.abs(rt)>Math.abs(ut);Fe?se.current=Qe:we.current=A;var ht=G(Fe,Fe?rt:ut,!1,xe);ht&&xe.preventDefault(),clearInterval(ae.current),ht&&(ae.current=setInterval(function(){Fe?rt*=je:ut*=je;var Pt=Math.floor(Fe?rt:ut);(!G(Fe,Pt,!0)||Math.abs(Pt)<=.1)&&clearInterval(ae.current)},16))}},Ie=function(){Q.current=!1,ce()},ge=function(xe){ce(),xe.touches.length===1&&!Q.current&&(Q.current=!0,se.current=Math.ceil(xe.touches[0].pageX),we.current=Math.ceil(xe.touches[0].pageY),pe.current=xe.target,pe.current.addEventListener("touchmove",He,{passive:!1}),pe.current.addEventListener("touchend",Ie,{passive:!0}))};ce=function(){pe.current&&(pe.current.removeEventListener("touchmove",He),pe.current.removeEventListener("touchend",Ie))},(0,Se.Z)(function(){return F&&he.current.addEventListener("touchstart",ge,{passive:!0}),function(){var Ke;(Ke=he.current)===null||Ke===void 0||Ke.removeEventListener("touchstart",ge),ce(),clearInterval(ae.current)}},[F])}function K(F){return Math.floor(Math.pow(F,.5))}function k(F,he){var G="touches"in F?F.touches[0]:F;return G[he?"pageX":"pageY"]-window[he?"scrollX":"scrollY"]}function ee(F,he,G){N.useEffect(function(){var Q=he.current;if(F&&Q){var se=!1,we,pe,ae=function(){Z.Z.cancel(we)},ce=function Ke(){ae(),we=(0,Z.Z)(function(){G(pe),Ke()})},He=function(xe){if(!xe.target.draggable){var Qe=xe;Qe._virtualHandled||(Qe._virtualHandled=!0,se=!0)}},Ie=function(){se=!1,ae()},ge=function(xe){if(se){var Qe=k(xe,!1),A=Q.getBoundingClientRect(),rt=A.top,ut=A.bottom;if(Qe<=rt){var Fe=rt-Qe;pe=-K(Fe),ce()}else if(Qe>=ut){var ht=Qe-ut;pe=K(ht),ce()}else ae()}};return Q.addEventListener("mousedown",He),Q.ownerDocument.addEventListener("mouseup",Ie),Q.ownerDocument.addEventListener("mousemove",ge),function(){Q.removeEventListener("mousedown",He),Q.ownerDocument.removeEventListener("mouseup",Ie),Q.ownerDocument.removeEventListener("mousemove",ge),ae()}}},[F])}var te=10;function _e(F,he,G,Q,se,we,pe,ae){var ce=N.useRef(),He=N.useState(null),Ie=(0,p.Z)(He,2),ge=Ie[0],Ke=Ie[1];return(0,Se.Z)(function(){if(ge&&ge.times=0;Hn-=1){var Un=se(he[Hn]),ln=G.get(Un);if(ln===void 0){Fe=!0;break}if(Ln-=ln,Ln<=0)break}switch(Kt){case"top":Pt=gt-rt;break;case"bottom":Pt=_t-ut+rt;break;default:{var _n=F.current.scrollTop,sn=_n+ut;gt<_n?ht="top":_t>sn&&(ht="bottom")}}Pt!==null&&pe(Pt),Pt!==ge.lastTop&&(Fe=!0)}Fe&&Ke((0,C.Z)((0,C.Z)({},ge),{},{times:ge.times+1,targetAlign:ht,lastTop:Pt}))}},[ge,F.current]),function(xe){if(xe==null){ae();return}if(Z.Z.cancel(ce.current),typeof xe=="number")pe(xe);else if(xe&&(0,q.Z)(xe)==="object"){var Qe,A=xe.align;"index"in xe?Qe=xe.index:Qe=he.findIndex(function(Fe){return se(Fe)===xe.key});var rt=xe.offset,ut=rt===void 0?0:rt;Ke({times:0,index:Qe,offset:ut,originAlign:A})}}}var We=N.forwardRef(function(F,he){var G=F.prefixCls,Q=F.rtl,se=F.scrollOffset,we=F.scrollRange,pe=F.onStartMove,ae=F.onStopMove,ce=F.onScroll,He=F.horizontal,Ie=F.spinSize,ge=F.containerSize,Ke=F.style,xe=F.thumbStyle,Qe=F.showScrollBar,A=N.useState(!1),rt=(0,p.Z)(A,2),ut=rt[0],Fe=rt[1],ht=N.useState(null),Pt=(0,p.Z)(ht,2),Kt=Pt[0],tn=Pt[1],gt=N.useState(null),_t=(0,p.Z)(gt,2),kt=_t[0],gn=_t[1],nn=!Q,cn=N.useRef(),Ln=N.useRef(),Hn=N.useState(Qe),Un=(0,p.Z)(Hn,2),ln=Un[0],_n=Un[1],sn=N.useRef(),An=function(){Qe===!0||Qe===!1||(clearTimeout(sn.current),_n(!0),sn.current=setTimeout(function(){_n(!1)},3e3))},hn=we-ge||0,Cn=ge-Ie||0,xn=N.useMemo(function(){if(se===0||hn===0)return 0;var P=se/hn;return P*Cn},[se,hn,Cn]),fn=function(H){H.stopPropagation(),H.preventDefault()},Mn=N.useRef({top:xn,dragging:ut,pageY:Kt,startTop:kt});Mn.current={top:xn,dragging:ut,pageY:Kt,startTop:kt};var mr=function(H){Fe(!0),tn(k(H,He)),gn(Mn.current.top),pe(),H.stopPropagation(),H.preventDefault()};N.useEffect(function(){var P=function(x){x.preventDefault()},H=cn.current,d=Ln.current;return H.addEventListener("touchstart",P,{passive:!1}),d.addEventListener("touchstart",mr,{passive:!1}),function(){H.removeEventListener("touchstart",P),d.removeEventListener("touchstart",mr)}},[]);var cr=N.useRef();cr.current=hn;var vn=N.useRef();vn.current=Cn,N.useEffect(function(){if(ut){var P,H=function(x){var L=Mn.current,J=L.dragging,B=L.pageY,W=L.startTop;Z.Z.cancel(P);var ie=cn.current.getBoundingClientRect(),de=ge/(He?ie.width:ie.height);if(J){var De=(k(x,He)-B)*de,M=W;!nn&&He?M-=De:M+=De;var U=cr.current,Be=vn.current,Ce=Be?M/Be:0,Ae=Math.ceil(Ce*U);Ae=Math.max(Ae,0),Ae=Math.min(Ae,U),P=(0,Z.Z)(function(){ce(Ae,He)})}},d=function(){Fe(!1),ae()};return window.addEventListener("mousemove",H,{passive:!0}),window.addEventListener("touchmove",H,{passive:!0}),window.addEventListener("mouseup",d,{passive:!0}),window.addEventListener("touchend",d,{passive:!0}),function(){window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",d),window.removeEventListener("touchend",d),Z.Z.cancel(P)}}},[ut]),N.useEffect(function(){return An(),function(){clearTimeout(sn.current)}},[se]),N.useImperativeHandle(he,function(){return{delayHidden:An}});var ct="".concat(G,"-scrollbar"),mt={position:"absolute",visibility:ln?null:"hidden"},m={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return He?(mt.height=8,mt.left=0,mt.right=0,mt.bottom=0,m.height="100%",m.width=Ie,nn?m.left=xn:m.right=xn):(mt.width=8,mt.top=0,mt.bottom=0,nn?mt.right=0:mt.left=0,m.width="100%",m.height=Ie,m.top=xn),N.createElement("div",{ref:cn,className:me()(ct,(0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(ct,"-horizontal"),He),"".concat(ct,"-vertical"),!He),"".concat(ct,"-visible"),ln)),style:(0,C.Z)((0,C.Z)({},mt),Ke),onMouseDown:fn,onMouseMove:An},N.createElement("div",{ref:Ln,className:me()("".concat(ct,"-thumb"),(0,_.Z)({},"".concat(ct,"-thumb-moving"),ut)),style:(0,C.Z)((0,C.Z)({},m),xe),onMouseDown:mr}))}),oe=We,Te=20;function ue(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=F/he*F;return isNaN(G)&&(G=0),G=Math.max(G,Te),Math.floor(G)}var bt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dt=[],St={overflowY:"auto",overflowAnchor:"none"};function qe(F,he){var G=F.prefixCls,Q=G===void 0?"rc-virtual-list":G,se=F.className,we=F.height,pe=F.itemHeight,ae=F.fullHeight,ce=ae===void 0?!0:ae,He=F.style,Ie=F.data,ge=F.children,Ke=F.itemKey,xe=F.virtual,Qe=F.direction,A=F.scrollWidth,rt=F.component,ut=rt===void 0?"div":rt,Fe=F.onScroll,ht=F.onVirtualScroll,Pt=F.onVisibleChange,Kt=F.innerProps,tn=F.extraRender,gt=F.styles,_t=F.showScrollBar,kt=_t===void 0?"optional":_t,gn=(0,D.Z)(F,bt),nn=N.useCallback(function(ke){return typeof Ke=="function"?Ke(ke):ke==null?void 0:ke[Ke]},[Ke]),cn=Ve(nn,null,null),Ln=(0,p.Z)(cn,4),Hn=Ln[0],Un=Ln[1],ln=Ln[2],_n=Ln[3],sn=!!(xe!==!1&&we&&pe),An=N.useMemo(function(){return Object.values(ln.maps).reduce(function(ke,$e){return ke+$e},0)},[ln.id,ln.maps]),hn=sn&&Ie&&(Math.max(pe*Ie.length,An)>we||!!A),Cn=Qe==="rtl",xn=me()(Q,(0,_.Z)({},"".concat(Q,"-rtl"),Cn),se),fn=Ie||Dt,Mn=(0,N.useRef)(),mr=(0,N.useRef)(),cr=(0,N.useRef)(),vn=(0,N.useState)(0),ct=(0,p.Z)(vn,2),mt=ct[0],m=ct[1],P=(0,N.useState)(0),H=(0,p.Z)(P,2),d=H[0],h=H[1],x=(0,N.useState)(!1),L=(0,p.Z)(x,2),J=L[0],B=L[1],W=function(){B(!0)},ie=function(){B(!1)},de={getKey:nn};function De(ke){m(function($e){var et;typeof ke=="function"?et=ke($e):et=ke;var on=Qt(et);return Mn.current.scrollTop=on,on})}var M=(0,N.useRef)({start:0,end:fn.length}),U=(0,N.useRef)(),Be=j(fn,nn),Ce=(0,p.Z)(Be,1),Ae=Ce[0];U.current=Ae;var Ne=N.useMemo(function(){if(!sn)return{scrollHeight:void 0,start:0,end:fn.length-1,offset:void 0};if(!hn){var ke;return{scrollHeight:((ke=mr.current)===null||ke===void 0?void 0:ke.offsetHeight)||0,start:0,end:fn.length-1,offset:void 0}}for(var $e=0,et,on,On,nr=fn.length,$n=0;$n=mt&&et===void 0&&(et=$n,on=$e),kn>mt+we&&On===void 0&&(On=$n),$e=kn}return et===void 0&&(et=0,on=0,On=Math.ceil(we/pe)),On===void 0&&(On=fn.length-1),On=Math.min(On+1,fn.length-1),{scrollHeight:$e,start:et,end:On,offset:on}},[hn,sn,mt,fn,_n,we]),lt=Ne.scrollHeight,X=Ne.start,re=Ne.end,Me=Ne.offset;M.current.start=X,M.current.end=re,N.useLayoutEffect(function(){var ke=ln.getRecord();if(ke.size===1){var $e=Array.from(ke)[0],et=nn(fn[X]);if(et===$e){var on=ln.get($e),On=on-pe;De(function(nr){return nr+On})}}ln.resetRecord()},[lt]);var st=N.useState({width:0,height:we}),Je=(0,p.Z)(st,2),Xe=Je[0],Ut=Je[1],Rt=function($e){Ut({width:$e.offsetWidth,height:$e.offsetHeight})},Ft=(0,N.useRef)(),Nt=(0,N.useRef)(),wt=N.useMemo(function(){return ue(Xe.width,A)},[Xe.width,A]),rn=N.useMemo(function(){return ue(Xe.height,lt)},[Xe.height,lt]),Gt=lt-we,Ht=(0,N.useRef)(Gt);Ht.current=Gt;function Qt(ke){var $e=ke;return Number.isNaN(Ht.current)||($e=Math.min($e,Ht.current)),$e=Math.max($e,0),$e}var Mt=mt<=0,xt=mt>=Gt,$t=d<=0,Et=d>=A,pn=b(Mt,xt,$t,Et),At=function(){return{x:Cn?-d:d,y:mt}},Bt=(0,N.useRef)(At()),Jt=(0,y.useEvent)(function(ke){if(ht){var $e=(0,C.Z)((0,C.Z)({},At()),ke);(Bt.current.x!==$e.x||Bt.current.y!==$e.y)&&(ht($e),Bt.current=$e)}});function jt(ke,$e){var et=ke;$e?((0,fe.flushSync)(function(){h(et)}),Jt()):De(et)}function Tn(ke){var $e=ke.currentTarget.scrollTop;$e!==mt&&De($e),Fe==null||Fe(ke),Jt()}var Bn=function($e){var et=$e,on=A?A-Xe.width:0;return et=Math.max(et,0),et=Math.min(et,on),et},It=(0,y.useEvent)(function(ke,$e){$e?((0,fe.flushSync)(function(){h(function(et){var on=et+(Cn?-ke:ke);return Bn(on)})}),Jt()):De(function(et){var on=et+ke;return on})}),ft=I(sn,Mt,xt,$t,Et,!!A,It),vt=(0,p.Z)(ft,2),Xt=vt[0],qt=vt[1];le(sn,Mn,function(ke,$e,et,on){var On=on;return pn(ke,$e,et)?!1:!On||!On._virtualHandled?(On&&(On._virtualHandled=!0),Xt({preventDefault:function(){},deltaX:ke?$e:0,deltaY:ke?0:$e}),!0):!1}),ee(hn,Mn,function(ke){De(function($e){return $e+ke})}),(0,Se.Z)(function(){function ke(et){var on=Mt&&et.detail<0,On=xt&&et.detail>0;sn&&!on&&!On&&et.preventDefault()}var $e=Mn.current;return $e.addEventListener("wheel",Xt,{passive:!1}),$e.addEventListener("DOMMouseScroll",qt,{passive:!0}),$e.addEventListener("MozMousePixelScroll",ke,{passive:!1}),function(){$e.removeEventListener("wheel",Xt),$e.removeEventListener("DOMMouseScroll",qt),$e.removeEventListener("MozMousePixelScroll",ke)}},[sn,Mt,xt]),(0,Se.Z)(function(){if(A){var ke=Bn(d);h(ke),Jt({x:ke})}},[Xe.width,A]);var Vt=function(){var $e,et;($e=Ft.current)===null||$e===void 0||$e.delayHidden(),(et=Nt.current)===null||et===void 0||et.delayHidden()},Lt=_e(Mn,fn,ln,pe,nn,function(){return Un(!0)},De,Vt);N.useImperativeHandle(he,function(){return{nativeElement:cr.current,getScrollInfo:At,scrollTo:function($e){function et(on){return on&&(0,q.Z)(on)==="object"&&("left"in on||"top"in on)}et($e)?($e.left!==void 0&&h(Bn($e.left)),Lt($e.top)):Lt($e)}}}),(0,Se.Z)(function(){if(Pt){var ke=fn.slice(X,re+1);Pt(ke,fn)}},[X,re,fn]);var an=$(fn,nn,ln,pe),mn=tn==null?void 0:tn({start:X,end:re,virtual:hn,offsetX:d,offsetY:Me,rtl:Cn,getSize:an}),Dn=nt(fn,X,re,A,d,Hn,ge,de),wn=null;we&&(wn=(0,C.Z)((0,_.Z)({},ce?"height":"maxHeight",we),St),sn&&(wn.overflowY="hidden",A&&(wn.overflowX="hidden"),J&&(wn.pointerEvents="none")));var En={};return Cn&&(En.dir="rtl"),N.createElement("div",(0,E.Z)({ref:cr,style:(0,C.Z)((0,C.Z)({},He),{},{position:"relative"}),className:xn},En,gn),N.createElement(ne.Z,{onResize:Rt},N.createElement(ut,{className:"".concat(Q,"-holder"),style:wn,ref:Mn,onScroll:Tn,onMouseEnter:Vt},N.createElement(V,{prefixCls:Q,height:lt,offsetX:d,offsetY:Me,scrollWidth:A,onInnerResize:Un,ref:mr,innerProps:Kt,rtl:Cn,extra:mn},Dn))),hn&<>we&&N.createElement(oe,{ref:Ft,prefixCls:Q,scrollOffset:mt,scrollRange:lt,rtl:Cn,onScroll:jt,onStartMove:W,onStopMove:ie,spinSize:rn,containerSize:Xe.height,style:gt==null?void 0:gt.verticalScrollBar,thumbStyle:gt==null?void 0:gt.verticalScrollBarThumb,showScrollBar:kt}),hn&&A>Xe.width&&N.createElement(oe,{ref:Nt,prefixCls:Q,scrollOffset:d,scrollRange:A,rtl:Cn,onScroll:jt,onStartMove:W,onStopMove:ie,spinSize:wt,containerSize:Xe.width,horizontal:!0,style:gt==null?void 0:gt.horizontalScrollBar,thumbStyle:gt==null?void 0:gt.horizontalScrollBarThumb,showScrollBar:kt}))}var Ot=N.forwardRef(qe);Ot.displayName="List";var at=Ot,zt=at},16722:function(en,Ee,f){"use strict";f.d(Ee,{Z:function(){return me}});const E=ne=>typeof ne=="object"&&ne!=null&&ne.nodeType===1,q=(ne,y)=>(!y||ne!=="hidden")&&ne!=="visible"&&ne!=="clip",C=(ne,y)=>{if(ne.clientHeight{const fe=(Oe=>{if(!Oe.ownerDocument||!Oe.ownerDocument.defaultView)return null;try{return Oe.ownerDocument.defaultView.frameElement}catch(V){return null}})(N);return!!fe&&(fe.clientHeightOey||Oe>ne&&V=y&&Ge>=Se?Oe-ne-N:V>y&&GeSe?V-y+fe:0,p=ne=>{const y=ne.parentElement;return y==null?ne.getRootNode().host||null:y},D=(ne,y)=>{var Se,N,fe,Oe;if(typeof document=="undefined")return[];const{scrollMode:V,block:Ge,inline:nt,boundary:Ze,skipOverflowHiddenElements:tt}=y,j=typeof Ze=="function"?Ze:We=>We!==Ze;if(!E(ne))throw new TypeError("Invalid target");const Z=document.scrollingElement||document.documentElement,S=[];let c=ne;for(;E(c)&&j(c);){if(c=p(c),c===Z){S.push(c);break}c!=null&&c===document.body&&C(c)&&!C(document.documentElement)||c!=null&&C(c,tt)&&S.push(c)}const b=(N=(Se=window.visualViewport)==null?void 0:Se.width)!=null?N:innerWidth,I=(Oe=(fe=window.visualViewport)==null?void 0:fe.height)!=null?Oe:innerHeight,{scrollX:$,scrollY:R}=window,{height:ye,width:ze,top:Pe,right:be,bottom:ot,left:Ve}=ne.getBoundingClientRect(),{top:je,right:le,bottom:K,left:k}=(We=>{const oe=window.getComputedStyle(We);return{top:parseFloat(oe.scrollMarginTop)||0,right:parseFloat(oe.scrollMarginRight)||0,bottom:parseFloat(oe.scrollMarginBottom)||0,left:parseFloat(oe.scrollMarginLeft)||0}})(ne);let ee=Ge==="start"||Ge==="nearest"?Pe-je:Ge==="end"?ot+K:Pe+ye/2-je+K,te=nt==="center"?Ve+ze/2-k+le:nt==="end"?be+le:Ve-k;const _e=[];for(let We=0;We=0&&Ve>=0&&ot<=I&&be<=b&&(oe===Z&&!C(oe)||Pe>=bt&&ot<=St&&Ve>=qe&&be<=Dt))return _e;const Ot=getComputedStyle(oe),at=parseInt(Ot.borderLeftWidth,10),zt=parseInt(Ot.borderTopWidth,10),F=parseInt(Ot.borderRightWidth,10),he=parseInt(Ot.borderBottomWidth,10);let G=0,Q=0;const se="offsetWidth"in oe?oe.offsetWidth-oe.clientWidth-at-F:0,we="offsetHeight"in oe?oe.offsetHeight-oe.clientHeight-zt-he:0,pe="offsetWidth"in oe?oe.offsetWidth===0?0:ue/oe.offsetWidth:0,ae="offsetHeight"in oe?oe.offsetHeight===0?0:Te/oe.offsetHeight:0;if(Z===oe)G=Ge==="start"?ee:Ge==="end"?ee-I:Ge==="nearest"?_(R,R+I,I,zt,he,R+ee,R+ee+ye,ye):ee-I/2,Q=nt==="start"?te:nt==="center"?te-b/2:nt==="end"?te-b:_($,$+b,b,at,F,$+te,$+te+ze,ze),G=Math.max(0,G+R),Q=Math.max(0,Q+$);else{G=Ge==="start"?ee-bt-zt:Ge==="end"?ee-St+he+we:Ge==="nearest"?_(bt,St,Te,zt,he+we,ee,ee+ye,ye):ee-(bt+Te/2)+we/2,Q=nt==="start"?te-qe-at:nt==="center"?te-(qe+ue/2)+se/2:nt==="end"?te-Dt+F+se:_(qe,Dt,ue,at,F+se,te,te+ze,ze);const{scrollLeft:ce,scrollTop:He}=oe;G=ae===0?0:Math.max(0,Math.min(He+G/ae,oe.scrollHeight-Te/ae+we)),Q=pe===0?0:Math.max(0,Math.min(ce+Q/pe,oe.scrollWidth-ue/pe+se)),ee+=He-G,te+=ce-Q}_e.push({el:oe,top:G,left:Q})}return _e},T=ne=>ne===!1?{block:"end",inline:"nearest"}:(y=>y===Object(y)&&Object.keys(y).length!==0)(ne)?ne:{block:"start",inline:"nearest"};function me(ne,y){if(!ne.isConnected||!(fe=>{let Oe=fe;for(;Oe&&Oe.parentNode;){if(Oe.parentNode===document)return!0;Oe=Oe.parentNode instanceof ShadowRoot?Oe.parentNode.host:Oe.parentNode}return!1})(ne))return;const Se=(fe=>{const Oe=window.getComputedStyle(fe);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(ne);if((fe=>typeof fe=="object"&&typeof fe.behavior=="function")(y))return y.behavior(D(ne,y));const N=typeof y=="boolean"||y==null?void 0:y.behavior;for(const{el:fe,top:Oe,left:V}of D(ne,T(y))){const Ge=Oe-Se.top+Se.bottom,nt=V-Se.left+Se.right;fe.scroll({top:Ge,left:nt,behavior:N})}}}}]);