!(function(){var su=Object.defineProperty,cu=Object.defineProperties;var uu=Object.getOwnPropertyDescriptors;var ic=Object.getOwnPropertySymbols;var Uc=Object.prototype.hasOwnProperty,Gc=Object.prototype.propertyIsEnumerable;var Mc=Math.pow,Vc=(Bn,rn,ee)=>rn in Bn?su(Bn,rn,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Bn[rn]=ee,Oo=(Bn,rn)=>{for(var ee in rn||(rn={}))Uc.call(rn,ee)&&Vc(Bn,ee,rn[ee]);if(ic)for(var ee of ic(rn))Gc.call(rn,ee)&&Vc(Bn,ee,rn[ee]);return Bn},fi=(Bn,rn)=>cu(Bn,uu(rn));var ac=(Bn,rn)=>{var ee={};for(var b in Bn)Uc.call(Bn,b)&&rn.indexOf(b)<0&&(ee[b]=Bn[b]);if(Bn!=null&&ic)for(var b of ic(Bn))rn.indexOf(b)<0&&Gc.call(Bn,b)&&(ee[b]=Bn[b]);return ee};var Xc=(Bn,rn,ee)=>new Promise((b,Me)=>{var ce=pe=>{try{Pe(ee.next(pe))}catch(be){Me(be)}},et=pe=>{try{Pe(ee.throw(pe))}catch(be){Me(be)}},Pe=pe=>pe.done?b(pe.value):Promise.resolve(pe.value).then(ce,et);Pe((ee=ee.apply(Bn,rn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1306],{89489:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},59477:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},40001:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={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"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},49198:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},73331:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={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"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},15277:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={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"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},52671:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},8657:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},56082:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},33853:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},15075:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},43531:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},61485:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={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"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},47472:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={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"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},87395:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(60499),Me=ee(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(ue,$e){return Me.createElement(Pe.Z,(0,b.Z)({},ue,{ref:$e,icon:et}))},be=Me.forwardRef(pe),Ve=be},87954:function(Bn,rn,ee){"use strict";ee.d(rn,{LB:function(){return tr},y9:function(){return io},g4:function(){return Zt},we:function(){return an},pE:function(){return Ot},VK:function(){return yt},Cj:function(){return vr},O1:function(){return br},Zj:function(){return cr},VT:function(){return Ue},Dy:function(){return Re}});var b=ee(59301),Me=ee(4676),ce=ee(35241);const et={display:"none"};function Pe(Oe){let{id:We,value:bt}=Oe;return b.createElement("div",{id:We,style:et},bt)}function pe(Oe){let{id:We,announcement:bt,ariaLiveType:Ze="assertive"}=Oe;const dt={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return b.createElement("div",{id:We,style:dt,role:"status","aria-live":Ze,"aria-atomic":!0},bt)}function be(){const[Oe,We]=(0,b.useState)("");return{announce:(0,b.useCallback)(Ze=>{Ze!=null&&We(Ze)},[]),announcement:Oe}}const Ve=(0,b.createContext)(null);function Ie(Oe){const We=(0,b.useContext)(Ve);(0,b.useEffect)(()=>{if(!We)throw new Error("useDndMonitor must be used within a children of ");return We(Oe)},[Oe,We])}function ue(){const[Oe]=(0,b.useState)(()=>new Set),We=(0,b.useCallback)(Ze=>(Oe.add(Ze),()=>Oe.delete(Ze)),[Oe]);return[(0,b.useCallback)(Ze=>{let{type:dt,event:at}=Ze;Oe.forEach(Mt=>{var Bt;return(Bt=Mt[dt])==null?void 0:Bt.call(Mt,at)})},[Oe]),We]}const $e={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. `},Ee={onDragStart(Oe){let{active:We}=Oe;return"Picked up draggable item "+We.id+"."},onDragOver(Oe){let{active:We,over:bt}=Oe;return bt?"Draggable item "+We.id+" was moved over droppable area "+bt.id+".":"Draggable item "+We.id+" is no longer over a droppable area."},onDragEnd(Oe){let{active:We,over:bt}=Oe;return bt?"Draggable item "+We.id+" was dropped over droppable area "+bt.id:"Draggable item "+We.id+" was dropped."},onDragCancel(Oe){let{active:We}=Oe;return"Dragging was cancelled. Draggable item "+We.id+" was dropped."}};function Rt(Oe){let{announcements:We=Ee,container:bt,hiddenTextDescribedById:Ze,screenReaderInstructions:dt=$e}=Oe;const{announce:at,announcement:Mt}=be(),Bt=(0,ce.Ld)("DndLiveRegion"),[Wt,En]=(0,b.useState)(!1);if((0,b.useEffect)(()=>{En(!0)},[]),Ie((0,b.useMemo)(()=>({onDragStart(hn){let{active:Ln}=hn;at(We.onDragStart({active:Ln}))},onDragMove(hn){let{active:Ln,over:Gn}=hn;We.onDragMove&&at(We.onDragMove({active:Ln,over:Gn}))},onDragOver(hn){let{active:Ln,over:Gn}=hn;at(We.onDragOver({active:Ln,over:Gn}))},onDragEnd(hn){let{active:Ln,over:Gn}=hn;at(We.onDragEnd({active:Ln,over:Gn}))},onDragCancel(hn){let{active:Ln,over:Gn}=hn;at(We.onDragCancel({active:Ln,over:Gn}))}}),[at,We])),!Wt)return null;const Rn=b.createElement(b.Fragment,null,b.createElement(Pe,{id:Ze,value:dt.draggable}),b.createElement(pe,{id:Bt,announcement:Mt}));return bt?(0,Me.createPortal)(Rn,bt):Rn}var ot;(function(Oe){Oe.DragStart="dragStart",Oe.DragMove="dragMove",Oe.DragEnd="dragEnd",Oe.DragCancel="dragCancel",Oe.DragOver="dragOver",Oe.RegisterDroppable="registerDroppable",Oe.SetDroppableDisabled="setDroppableDisabled",Oe.UnregisterDroppable="unregisterDroppable"})(ot||(ot={}));function st(){}function Ue(Oe,We){return(0,b.useMemo)(()=>({sensor:Oe,options:We!=null?We:{}}),[Oe,We])}function Re(){for(var Oe=arguments.length,We=new Array(Oe),bt=0;bt[...We].filter(Ze=>Ze!=null),[...We])}const ft=Object.freeze({x:0,y:0});function kt(Oe,We){return Math.sqrt(Math.pow(Oe.x-We.x,2)+Math.pow(Oe.y-We.y,2))}function en(Oe,We){const bt=(0,ce.DC)(Oe);if(!bt)return"0 0";const Ze={x:(bt.x-We.left)/We.width*100,y:(bt.y-We.top)/We.height*100};return Ze.x+"% "+Ze.y+"%"}function Qe(Oe,We){let{data:{value:bt}}=Oe,{data:{value:Ze}}=We;return bt-Ze}function Ae(Oe,We){let{data:{value:bt}}=Oe,{data:{value:Ze}}=We;return Ze-bt}function tt(Oe){let{left:We,top:bt,height:Ze,width:dt}=Oe;return[{x:We,y:bt},{x:We+dt,y:bt},{x:We,y:bt+Ze},{x:We+dt,y:bt+Ze}]}function nt(Oe,We){if(!Oe||Oe.length===0)return null;const[bt]=Oe;return We?bt[We]:bt}function zt(Oe,We,bt){return We===void 0&&(We=Oe.left),bt===void 0&&(bt=Oe.top),{x:We+Oe.width*.5,y:bt+Oe.height*.5}}const Ot=Oe=>{let{collisionRect:We,droppableRects:bt,droppableContainers:Ze}=Oe;const dt=zt(We,We.left,We.top),at=[];for(const Mt of Ze){const{id:Bt}=Mt,Wt=bt.get(Bt);if(Wt){const En=kt(zt(Wt),dt);at.push({id:Bt,data:{droppableContainer:Mt,value:En}})}}return at.sort(Qe)},ht=Oe=>{let{collisionRect:We,droppableRects:bt,droppableContainers:Ze}=Oe;const dt=tt(We),at=[];for(const Mt of Ze){const{id:Bt}=Mt,Wt=bt.get(Bt);if(Wt){const En=tt(Wt),Rn=dt.reduce((Ln,Gn,lr)=>Ln+kt(En[lr],Gn),0),hn=Number((Rn/4).toFixed(4));at.push({id:Bt,data:{droppableContainer:Mt,value:hn}})}}return at.sort(Qe)};function Ct(Oe,We){const bt=Math.max(We.top,Oe.top),Ze=Math.max(We.left,Oe.left),dt=Math.min(We.left+We.width,Oe.left+Oe.width),at=Math.min(We.top+We.height,Oe.top+Oe.height),Mt=dt-Ze,Bt=at-bt;if(Ze{let{collisionRect:We,droppableRects:bt,droppableContainers:Ze}=Oe;const dt=[];for(const at of Ze){const{id:Mt}=at,Bt=bt.get(Mt);if(Bt){const Wt=Ct(Bt,We);Wt>0&&dt.push({id:Mt,data:{droppableContainer:at,value:Wt}})}}return dt.sort(Ae)};function ke(Oe,We){const{top:bt,left:Ze,bottom:dt,right:at}=We;return bt<=Oe.y&&Oe.y<=dt&&Ze<=Oe.x&&Oe.x<=at}const xe=Oe=>{let{droppableContainers:We,droppableRects:bt,pointerCoordinates:Ze}=Oe;if(!Ze)return[];const dt=[];for(const at of We){const{id:Mt}=at,Bt=bt.get(Mt);if(Bt&&ke(Ze,Bt)){const En=tt(Bt).reduce((hn,Ln)=>hn+kt(Ze,Ln),0),Rn=Number((En/4).toFixed(4));dt.push({id:Mt,data:{droppableContainer:at,value:Rn}})}}return dt.sort(Qe)};function se(Oe,We,bt){return fi(Oo({},Oe),{scaleX:We&&bt?We.width/bt.width:1,scaleY:We&&bt?We.height/bt.height:1})}function It(Oe,We){return Oe&&We?{x:Oe.left-We.left,y:Oe.top-We.top}:ft}function _e(Oe){return function(bt){for(var Ze=arguments.length,dt=new Array(Ze>1?Ze-1:0),at=1;atfi(Oo({},Mt),{top:Mt.top+Oe*Bt.y,bottom:Mt.bottom+Oe*Bt.y,left:Mt.left+Oe*Bt.x,right:Mt.right+Oe*Bt.x}),Oo({},bt))}}const Ye=_e(1);function Ft(Oe){if(Oe.startsWith("matrix3d(")){const We=Oe.slice(9,-1).split(/, /);return{x:+We[12],y:+We[13],scaleX:+We[0],scaleY:+We[5]}}else if(Oe.startsWith("matrix(")){const We=Oe.slice(7,-1).split(/, /);return{x:+We[4],y:+We[5],scaleX:+We[0],scaleY:+We[3]}}return null}function Ce(Oe,We,bt){const Ze=Ft(We);if(!Ze)return Oe;const{scaleX:dt,scaleY:at,x:Mt,y:Bt}=Ze,Wt=Oe.left-Mt-(1-dt)*parseFloat(bt),En=Oe.top-Bt-(1-at)*parseFloat(bt.slice(bt.indexOf(" ")+1)),Rn=dt?Oe.width/dt:Oe.width,hn=at?Oe.height/at:Oe.height;return{width:Rn,height:hn,top:En,right:Wt+Rn,bottom:En+hn,left:Wt}}const he={ignoreTransform:!1};function yt(Oe,We){We===void 0&&(We=he);let bt=Oe.getBoundingClientRect();if(We.ignoreTransform){const{transform:En,transformOrigin:Rn}=(0,ce.Jj)(Oe).getComputedStyle(Oe);En&&(bt=Ce(bt,En,Rn))}const{top:Ze,left:dt,width:at,height:Mt,bottom:Bt,right:Wt}=bt;return{top:Ze,left:dt,width:at,height:Mt,bottom:Bt,right:Wt}}function Vt(Oe){return yt(Oe,{ignoreTransform:!0})}function Lt(Oe){const We=Oe.innerWidth,bt=Oe.innerHeight;return{top:0,left:0,right:We,bottom:bt,width:We,height:bt}}function me(Oe,We){return We===void 0&&(We=(0,ce.Jj)(Oe).getComputedStyle(Oe)),We.position==="fixed"}function qe(Oe,We){We===void 0&&(We=(0,ce.Jj)(Oe).getComputedStyle(Oe));const bt=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(dt=>{const at=We[dt];return typeof at=="string"?bt.test(at):!1})}function it(Oe,We){const bt=[];function Ze(dt){if(We!=null&&bt.length>=We||!dt)return bt;if((0,ce.qk)(dt)&&dt.scrollingElement!=null&&!bt.includes(dt.scrollingElement))return bt.push(dt.scrollingElement),bt;if(!(0,ce.Re)(dt)||(0,ce.vZ)(dt)||bt.includes(dt))return bt;const at=(0,ce.Jj)(Oe).getComputedStyle(dt);return dt!==Oe&&qe(dt,at)&&bt.push(dt),me(dt,at)?bt:Ze(dt.parentNode)}return Oe?Ze(Oe):bt}function Xt(Oe){const[We]=it(Oe,1);return We!=null?We:null}function Xe(Oe){return!ce.Nq||!Oe?null:(0,ce.FJ)(Oe)?Oe:(0,ce.UG)(Oe)?(0,ce.qk)(Oe)||Oe===(0,ce.r3)(Oe).scrollingElement?window:(0,ce.Re)(Oe)?Oe:null:null}function Gt(Oe){return(0,ce.FJ)(Oe)?Oe.scrollX:Oe.scrollLeft}function Fe(Oe){return(0,ce.FJ)(Oe)?Oe.scrollY:Oe.scrollTop}function dn(Oe){return{x:Gt(Oe),y:Fe(Oe)}}var $t;(function(Oe){Oe[Oe.Forward=1]="Forward",Oe[Oe.Backward=-1]="Backward"})($t||($t={}));function ae(Oe){return!ce.Nq||!Oe?!1:Oe===document.scrollingElement}function ne(Oe){const We={x:0,y:0},bt=ae(Oe)?{height:window.innerHeight,width:window.innerWidth}:{height:Oe.clientHeight,width:Oe.clientWidth},Ze={x:Oe.scrollWidth-bt.width,y:Oe.scrollHeight-bt.height},dt=Oe.scrollTop<=We.y,at=Oe.scrollLeft<=We.x,Mt=Oe.scrollTop>=Ze.y,Bt=Oe.scrollLeft>=Ze.x;return{isTop:dt,isLeft:at,isBottom:Mt,isRight:Bt,maxScroll:Ze,minScroll:We}}const te={x:.2,y:.2};function ie(Oe,We,bt,Ze,dt){let{top:at,left:Mt,right:Bt,bottom:Wt}=bt;Ze===void 0&&(Ze=10),dt===void 0&&(dt=te);const{isTop:En,isBottom:Rn,isLeft:hn,isRight:Ln}=ne(Oe),Gn={x:0,y:0},lr={x:0,y:0},sr={height:We.height*dt.y,width:We.width*dt.x};return!En&&at<=We.top+sr.height?(Gn.y=$t.Backward,lr.y=Ze*Math.abs((We.top+sr.height-at)/sr.height)):!Rn&&Wt>=We.bottom-sr.height&&(Gn.y=$t.Forward,lr.y=Ze*Math.abs((We.bottom-sr.height-Wt)/sr.height)),!Ln&&Bt>=We.right-sr.width?(Gn.x=$t.Forward,lr.x=Ze*Math.abs((We.right-sr.width-Bt)/sr.width)):!hn&&Mt<=We.left+sr.width&&(Gn.x=$t.Backward,lr.x=Ze*Math.abs((We.left+sr.width-Mt)/sr.width)),{direction:Gn,speed:lr}}function de(Oe){if(Oe===document.scrollingElement){const{innerWidth:at,innerHeight:Mt}=window;return{top:0,left:0,right:at,bottom:Mt,width:at,height:Mt}}const{top:We,left:bt,right:Ze,bottom:dt}=Oe.getBoundingClientRect();return{top:We,left:bt,right:Ze,bottom:dt,width:Oe.clientWidth,height:Oe.clientHeight}}function re(Oe){return Oe.reduce((We,bt)=>(0,ce.IH)(We,dn(bt)),ft)}function le(Oe){return Oe.reduce((We,bt)=>We+Gt(bt),0)}function Se(Oe){return Oe.reduce((We,bt)=>We+Fe(bt),0)}function Ge(Oe,We){if(We===void 0&&(We=yt),!Oe)return;const{top:bt,left:Ze,bottom:dt,right:at}=We(Oe);Xt(Oe)&&(dt<=0||at<=0||bt>=window.innerHeight||Ze>=window.innerWidth)&&Oe.scrollIntoView({block:"center",inline:"center"})}const He=[["x",["left","right"],le],["y",["top","bottom"],Se]];class Le{constructor(We,bt){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const Ze=it(bt),dt=re(Ze);this.rect=Oo({},We),this.width=We.width,this.height=We.height;for(const[at,Mt,Bt]of He)for(const Wt of Mt)Object.defineProperty(this,Wt,{get:()=>{const En=Bt(Ze),Rn=dt[at]-En;return this.rect[Wt]+Rn},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class rt{constructor(We){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(bt=>{var Ze;return(Ze=this.target)==null?void 0:Ze.removeEventListener(...bt)})},this.target=We}add(We,bt,Ze){var dt;(dt=this.target)==null||dt.addEventListener(We,bt,Ze),this.listeners.push([We,bt,Ze])}}function ut(Oe){const{EventTarget:We}=(0,ce.Jj)(Oe);return Oe instanceof We?Oe:(0,ce.r3)(Oe)}function At(Oe,We){const bt=Math.abs(Oe.x),Ze=Math.abs(Oe.y);return typeof We=="number"?Math.sqrt(Mc(bt,2)+Mc(Ze,2))>We:"x"in We&&"y"in We?bt>We.x&&Ze>We.y:"x"in We?bt>We.x:"y"in We?Ze>We.y:!1}var Ne;(function(Oe){Oe.Click="click",Oe.DragStart="dragstart",Oe.Keydown="keydown",Oe.ContextMenu="contextmenu",Oe.Resize="resize",Oe.SelectionChange="selectionchange",Oe.VisibilityChange="visibilitychange"})(Ne||(Ne={}));function Be(Oe){Oe.preventDefault()}function Ut(Oe){Oe.stopPropagation()}var Zt;(function(Oe){Oe.Space="Space",Oe.Down="ArrowDown",Oe.Right="ArrowRight",Oe.Left="ArrowLeft",Oe.Up="ArrowUp",Oe.Esc="Escape",Oe.Enter="Enter",Oe.Tab="Tab"})(Zt||(Zt={}));const mn={start:[Zt.Space,Zt.Enter],cancel:[Zt.Esc],end:[Zt.Space,Zt.Enter,Zt.Tab]},vn=(Oe,We)=>{let{currentCoordinates:bt}=We;switch(Oe.code){case Zt.Right:return fi(Oo({},bt),{x:bt.x+25});case Zt.Left:return fi(Oo({},bt),{x:bt.x-25});case Zt.Down:return fi(Oo({},bt),{y:bt.y+25});case Zt.Up:return fi(Oo({},bt),{y:bt.y-25})}};class jt{constructor(We){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=We;const{event:{target:bt}}=We;this.props=We,this.listeners=new rt((0,ce.r3)(bt)),this.windowListeners=new rt((0,ce.Jj)(bt)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ne.Resize,this.handleCancel),this.windowListeners.add(Ne.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ne.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:We,onStart:bt}=this.props,Ze=We.node.current;Ze&&Ge(Ze),bt(ft)}handleKeyDown(We){if((0,ce.vd)(We)){const{active:bt,context:Ze,options:dt}=this.props,{keyboardCodes:at=mn,coordinateGetter:Mt=vn,scrollBehavior:Bt="smooth"}=dt,{code:Wt}=We;if(at.end.includes(Wt)){this.handleEnd(We);return}if(at.cancel.includes(Wt)){this.handleCancel(We);return}const{collisionRect:En}=Ze.current,Rn=En?{x:En.left,y:En.top}:ft;this.referenceCoordinates||(this.referenceCoordinates=Rn);const hn=Mt(We,{active:bt,context:Ze.current,currentCoordinates:Rn});if(hn){const Ln=(0,ce.$X)(hn,Rn),Gn={x:0,y:0},{scrollableAncestors:lr}=Ze.current;for(const sr of lr){const pr=We.code,{isTop:mr,isRight:kr,isLeft:xr,isBottom:Gr,maxScroll:Or,minScroll:Dr}=ne(sr),Ar=de(sr),_r={x:Math.min(pr===Zt.Right?Ar.right-Ar.width/2:Ar.right,Math.max(pr===Zt.Right?Ar.left:Ar.left+Ar.width/2,hn.x)),y:Math.min(pr===Zt.Down?Ar.bottom-Ar.height/2:Ar.bottom,Math.max(pr===Zt.Down?Ar.top:Ar.top+Ar.height/2,hn.y))},fo=pr===Zt.Right&&!kr||pr===Zt.Left&&!xr,ko=pr===Zt.Down&&!Gr||pr===Zt.Up&&!mr;if(fo&&_r.x!==hn.x){const Io=sr.scrollLeft+Ln.x,Vo=pr===Zt.Right&&Io<=Or.x||pr===Zt.Left&&Io>=Dr.x;if(Vo&&!Ln.y){sr.scrollTo({left:Io,behavior:Bt});return}Vo?Gn.x=sr.scrollLeft-Io:Gn.x=pr===Zt.Right?sr.scrollLeft-Or.x:sr.scrollLeft-Dr.x,Gn.x&&sr.scrollBy({left:-Gn.x,behavior:Bt});break}else if(ko&&_r.y!==hn.y){const Io=sr.scrollTop+Ln.y,Vo=pr===Zt.Down&&Io<=Or.y||pr===Zt.Up&&Io>=Dr.y;if(Vo&&!Ln.x){sr.scrollTo({top:Io,behavior:Bt});return}Vo?Gn.y=sr.scrollTop-Io:Gn.y=pr===Zt.Down?sr.scrollTop-Or.y:sr.scrollTop-Dr.y,Gn.y&&sr.scrollBy({top:-Gn.y,behavior:Bt});break}}this.handleMove(We,(0,ce.IH)((0,ce.$X)(hn,this.referenceCoordinates),Gn))}}}handleMove(We,bt){const{onMove:Ze}=this.props;We.preventDefault(),Ze(bt)}handleEnd(We){const{onEnd:bt}=this.props;We.preventDefault(),this.detach(),bt()}handleCancel(We){const{onCancel:bt}=this.props;We.preventDefault(),this.detach(),bt()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}jt.activators=[{eventName:"onKeyDown",handler:(Oe,We,bt)=>{let{keyboardCodes:Ze=mn,onActivation:dt}=We,{active:at}=bt;const{code:Mt}=Oe.nativeEvent;if(Ze.start.includes(Mt)){const Bt=at.activatorNode.current;return Bt&&Oe.target!==Bt?!1:(Oe.preventDefault(),dt==null||dt({event:Oe.nativeEvent}),!0)}return!1}}];function Cn(Oe){return!!(Oe&&"distance"in Oe)}function on(Oe){return!!(Oe&&"delay"in Oe)}class Je{constructor(We,bt,Ze){var dt;Ze===void 0&&(Ze=ut(We.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=We,this.events=bt;const{event:at}=We,{target:Mt}=at;this.props=We,this.events=bt,this.document=(0,ce.r3)(Mt),this.documentListeners=new rt(this.document),this.listeners=new rt(Ze),this.windowListeners=new rt((0,ce.Jj)(Mt)),this.initialCoordinates=(dt=(0,ce.DC)(at))!=null?dt:ft,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:We,props:{options:{activationConstraint:bt,bypassActivationConstraint:Ze}}}=this;if(this.listeners.add(We.move.name,this.handleMove,{passive:!1}),this.listeners.add(We.end.name,this.handleEnd),We.cancel&&this.listeners.add(We.cancel.name,this.handleCancel),this.windowListeners.add(Ne.Resize,this.handleCancel),this.windowListeners.add(Ne.DragStart,Be),this.windowListeners.add(Ne.VisibilityChange,this.handleCancel),this.windowListeners.add(Ne.ContextMenu,Be),this.documentListeners.add(Ne.Keydown,this.handleKeydown),bt){if(Ze!=null&&Ze({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(on(bt)){this.timeoutId=setTimeout(this.handleStart,bt.delay),this.handlePending(bt);return}if(Cn(bt)){this.handlePending(bt);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(We,bt){const{active:Ze,onPending:dt}=this.props;dt(Ze,We,this.initialCoordinates,bt)}handleStart(){const{initialCoordinates:We}=this,{onStart:bt}=this.props;We&&(this.activated=!0,this.documentListeners.add(Ne.Click,Ut,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ne.SelectionChange,this.removeTextSelection),bt(We))}handleMove(We){var bt;const{activated:Ze,initialCoordinates:dt,props:at}=this,{onMove:Mt,options:{activationConstraint:Bt}}=at;if(!dt)return;const Wt=(bt=(0,ce.DC)(We))!=null?bt:ft,En=(0,ce.$X)(dt,Wt);if(!Ze&&Bt){if(Cn(Bt)){if(Bt.tolerance!=null&&At(En,Bt.tolerance))return this.handleCancel();if(At(En,Bt.distance))return this.handleStart()}if(on(Bt)&&At(En,Bt.tolerance))return this.handleCancel();this.handlePending(Bt,En);return}We.cancelable&&We.preventDefault(),Mt(Wt)}handleEnd(){const{onAbort:We,onEnd:bt}=this.props;this.detach(),this.activated||We(this.props.active),bt()}handleCancel(){const{onAbort:We,onCancel:bt}=this.props;this.detach(),this.activated||We(this.props.active),bt()}handleKeydown(We){We.code===Zt.Esc&&this.handleCancel()}removeTextSelection(){var We;(We=this.document.getSelection())==null||We.removeAllRanges()}}const Tt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class an extends Je{constructor(We){const{event:bt}=We,Ze=(0,ce.r3)(bt.target);super(We,Tt,Ze)}}an.activators=[{eventName:"onPointerDown",handler:(Oe,We)=>{let{nativeEvent:bt}=Oe,{onActivation:Ze}=We;return!bt.isPrimary||bt.button!==0?!1:(Ze==null||Ze({event:bt}),!0)}}];const _t={move:{name:"mousemove"},end:{name:"mouseup"}};var je;(function(Oe){Oe[Oe.RightClick=2]="RightClick"})(je||(je={}));class Pt extends Je{constructor(We){super(We,_t,(0,ce.r3)(We.event.target))}}Pt.activators=[{eventName:"onMouseDown",handler:(Oe,We)=>{let{nativeEvent:bt}=Oe,{onActivation:Ze}=We;return bt.button===je.RightClick?!1:(Ze==null||Ze({event:bt}),!0)}}];const Kt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class nn extends Je{constructor(We){super(We,Kt)}static setup(){return window.addEventListener(Kt.move.name,We,{capture:!1,passive:!1}),function(){window.removeEventListener(Kt.move.name,We)};function We(){}}}nn.activators=[{eventName:"onTouchStart",handler:(Oe,We)=>{let{nativeEvent:bt}=Oe,{onActivation:Ze}=We;const{touches:dt}=bt;return dt.length>1?!1:(Ze==null||Ze({event:bt}),!0)}}];var On;(function(Oe){Oe[Oe.Pointer=0]="Pointer",Oe[Oe.DraggableRect=1]="DraggableRect"})(On||(On={}));var _n;(function(Oe){Oe[Oe.TreeOrder=0]="TreeOrder",Oe[Oe.ReversedTreeOrder=1]="ReversedTreeOrder"})(_n||(_n={}));function nr(Oe){let{acceleration:We,activator:bt=On.Pointer,canScroll:Ze,draggingRect:dt,enabled:at,interval:Mt=5,order:Bt=_n.TreeOrder,pointerCoordinates:Wt,scrollableAncestors:En,scrollableAncestorRects:Rn,delta:hn,threshold:Ln}=Oe;const Gn=Zn({delta:hn,disabled:!at}),[lr,sr]=(0,ce.Yz)(),pr=(0,b.useRef)({x:0,y:0}),mr=(0,b.useRef)({x:0,y:0}),kr=(0,b.useMemo)(()=>{switch(bt){case On.Pointer:return Wt?{top:Wt.y,bottom:Wt.y,left:Wt.x,right:Wt.x}:null;case On.DraggableRect:return dt}},[bt,dt,Wt]),xr=(0,b.useRef)(null),Gr=(0,b.useCallback)(()=>{const Dr=xr.current;if(!Dr)return;const Ar=pr.current.x*mr.current.x,_r=pr.current.y*mr.current.y;Dr.scrollBy(Ar,_r)},[]),Or=(0,b.useMemo)(()=>Bt===_n.TreeOrder?[...En].reverse():En,[Bt,En]);(0,b.useEffect)(()=>{if(!at||!En.length||!kr){sr();return}for(const Dr of Or){if((Ze==null?void 0:Ze(Dr))===!1)continue;const Ar=En.indexOf(Dr),_r=Rn[Ar];if(!_r)continue;const{direction:fo,speed:ko}=ie(Dr,_r,kr,We,Ln);for(const Io of["x","y"])Gn[Io][fo[Io]]||(ko[Io]=0,fo[Io]=0);if(ko.x>0||ko.y>0){sr(),xr.current=Dr,lr(Gr,Mt),pr.current=ko,mr.current=fo;return}}pr.current={x:0,y:0},mr.current={x:0,y:0},sr()},[We,Gr,Ze,sr,at,Mt,JSON.stringify(kr),JSON.stringify(Gn),lr,En,Or,Rn,JSON.stringify(Ln)])}const ir={x:{[$t.Backward]:!1,[$t.Forward]:!1},y:{[$t.Backward]:!1,[$t.Forward]:!1}};function Zn(Oe){let{delta:We,disabled:bt}=Oe;const Ze=(0,ce.D9)(We);return(0,ce.Gj)(dt=>{if(bt||!Ze||!dt)return ir;const at={x:Math.sign(We.x-Ze.x),y:Math.sign(We.y-Ze.y)};return{x:{[$t.Backward]:dt.x[$t.Backward]||at.x===-1,[$t.Forward]:dt.x[$t.Forward]||at.x===1},y:{[$t.Backward]:dt.y[$t.Backward]||at.y===-1,[$t.Forward]:dt.y[$t.Forward]||at.y===1}}},[bt,We,Ze])}function er(Oe,We){const bt=We!=null?Oe.get(We):void 0,Ze=bt?bt.node.current:null;return(0,ce.Gj)(dt=>{var at;return We==null?null:(at=Ze!=null?Ze:dt)!=null?at:null},[Ze,We])}function kn(Oe,We){return(0,b.useMemo)(()=>Oe.reduce((bt,Ze)=>{const{sensor:dt}=Ze,at=dt.activators.map(Mt=>({eventName:Mt.eventName,handler:We(Mt.handler,Ze)}));return[...bt,...at]},[]),[Oe,We])}var cn;(function(Oe){Oe[Oe.Always=0]="Always",Oe[Oe.BeforeDragging=1]="BeforeDragging",Oe[Oe.WhileDragging=2]="WhileDragging"})(cn||(cn={}));var bn;(function(Oe){Oe.Optimized="optimized"})(bn||(bn={}));const St=new Map;function Et(Oe,We){let{dragging:bt,dependencies:Ze,config:dt}=We;const[at,Mt]=(0,b.useState)(null),{frequency:Bt,measure:Wt,strategy:En}=dt,Rn=(0,b.useRef)(Oe),hn=pr(),Ln=(0,ce.Ey)(hn),Gn=(0,b.useCallback)(function(mr){mr===void 0&&(mr=[]),!Ln.current&&Mt(kr=>kr===null?mr:kr.concat(mr.filter(xr=>!kr.includes(xr))))},[Ln]),lr=(0,b.useRef)(null),sr=(0,ce.Gj)(mr=>{if(hn&&!bt)return St;if(!mr||mr===St||Rn.current!==Oe||at!=null){const kr=new Map;for(let xr of Oe){if(!xr)continue;if(at&&at.length>0&&!at.includes(xr.id)&&xr.rect.current){kr.set(xr.id,xr.rect.current);continue}const Gr=xr.node.current,Or=Gr?new Le(Wt(Gr),Gr):null;xr.rect.current=Or,Or&&kr.set(xr.id,Or)}return kr}return mr},[Oe,at,bt,hn,Wt]);return(0,b.useEffect)(()=>{Rn.current=Oe},[Oe]),(0,b.useEffect)(()=>{hn||Gn()},[bt,hn]),(0,b.useEffect)(()=>{at&&at.length>0&&Mt(null)},[JSON.stringify(at)]),(0,b.useEffect)(()=>{hn||typeof Bt!="number"||lr.current!==null||(lr.current=setTimeout(()=>{Gn(),lr.current=null},Bt))},[Bt,hn,Gn,...Ze]),{droppableRects:sr,measureDroppableContainers:Gn,measuringScheduled:at!=null};function pr(){switch(En){case cn.Always:return!1;case cn.BeforeDragging:return bt;default:return!bt}}}function sn(Oe,We){return(0,ce.Gj)(bt=>Oe?bt||(typeof We=="function"?We(Oe):Oe):null,[We,Oe])}function Pn(Oe,We){return sn(Oe,We)}function Tn(Oe){let{callback:We,disabled:bt}=Oe;const Ze=(0,ce.zX)(We),dt=(0,b.useMemo)(()=>{if(bt||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:at}=window;return new at(Ze)},[Ze,bt]);return(0,b.useEffect)(()=>()=>dt==null?void 0:dt.disconnect(),[dt]),dt}function Jt(Oe){let{callback:We,disabled:bt}=Oe;const Ze=(0,ce.zX)(We),dt=(0,b.useMemo)(()=>{if(bt||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:at}=window;return new at(Ze)},[bt]);return(0,b.useEffect)(()=>()=>dt==null?void 0:dt.disconnect(),[dt]),dt}function wn(Oe){return new Le(yt(Oe),Oe)}function gn(Oe,We,bt){We===void 0&&(We=wn);const[Ze,dt]=(0,b.useState)(null);function at(){dt(Wt=>{if(!Oe)return null;if(Oe.isConnected===!1){var En;return(En=Wt!=null?Wt:bt)!=null?En:null}const Rn=We(Oe);return JSON.stringify(Wt)===JSON.stringify(Rn)?Wt:Rn})}const Mt=Tn({callback(Wt){if(Oe)for(const En of Wt){const{type:Rn,target:hn}=En;if(Rn==="childList"&&hn instanceof HTMLElement&&hn.contains(Oe)){at();break}}}}),Bt=Jt({callback:at});return(0,ce.LI)(()=>{at(),Oe?(Bt==null||Bt.observe(Oe),Mt==null||Mt.observe(document.body,{childList:!0,subtree:!0})):(Bt==null||Bt.disconnect(),Mt==null||Mt.disconnect())},[Oe]),Ze}function Nn(Oe){const We=sn(Oe);return It(Oe,We)}const An=[];function rr(Oe){const We=(0,b.useRef)(Oe),bt=(0,ce.Gj)(Ze=>Oe?Ze&&Ze!==An&&Oe&&We.current&&Oe.parentNode===We.current.parentNode?Ze:it(Oe):An,[Oe]);return(0,b.useEffect)(()=>{We.current=Oe},[Oe]),bt}function Qt(Oe){const[We,bt]=(0,b.useState)(null),Ze=(0,b.useRef)(Oe),dt=(0,b.useCallback)(at=>{const Mt=Xe(at.target);Mt&&bt(Bt=>Bt?(Bt.set(Mt,dn(Mt)),new Map(Bt)):null)},[]);return(0,b.useEffect)(()=>{const at=Ze.current;if(Oe!==at){Mt(at);const Bt=Oe.map(Wt=>{const En=Xe(Wt);return En?(En.addEventListener("scroll",dt,{passive:!0}),[En,dn(En)]):null}).filter(Wt=>Wt!=null);bt(Bt.length?new Map(Bt):null),Ze.current=Oe}return()=>{Mt(Oe),Mt(at)};function Mt(Bt){Bt.forEach(Wt=>{const En=Xe(Wt);En==null||En.removeEventListener("scroll",dt)})}},[dt,Oe]),(0,b.useMemo)(()=>Oe.length?We?Array.from(We.values()).reduce((at,Mt)=>(0,ce.IH)(at,Mt),ft):re(Oe):ft,[Oe,We])}function Yt(Oe,We){We===void 0&&(We=[]);const bt=(0,b.useRef)(null);return(0,b.useEffect)(()=>{bt.current=null},We),(0,b.useEffect)(()=>{const Ze=Oe!==ft;Ze&&!bt.current&&(bt.current=Oe),!Ze&&bt.current&&(bt.current=null)},[Oe]),bt.current?(0,ce.$X)(Oe,bt.current):ft}function xn(Oe){(0,b.useEffect)(()=>{if(!ce.Nq)return;const We=Oe.map(bt=>{let{sensor:Ze}=bt;return Ze.setup==null?void 0:Ze.setup()});return()=>{for(const bt of We)bt==null||bt()}},Oe.map(We=>{let{sensor:bt}=We;return bt}))}function Vn(Oe,We){return(0,b.useMemo)(()=>Oe.reduce((bt,Ze)=>{let{eventName:dt,handler:at}=Ze;return bt[dt]=Mt=>{at(Mt,We)},bt},{}),[Oe,We])}function jn(Oe){return(0,b.useMemo)(()=>Oe?Lt(Oe):null,[Oe])}const vt=[];function Dt(Oe,We){We===void 0&&(We=yt);const[bt]=Oe,Ze=jn(bt?(0,ce.Jj)(bt):null),[dt,at]=(0,b.useState)(vt);function Mt(){at(()=>Oe.length?Oe.map(Wt=>ae(Wt)?Ze:new Le(We(Wt),Wt)):vt)}const Bt=Jt({callback:Mt});return(0,ce.LI)(()=>{Bt==null||Bt.disconnect(),Mt(),Oe.forEach(Wt=>Bt==null?void 0:Bt.observe(Wt))},[Oe]),dt}function Te(Oe){if(!Oe)return null;if(Oe.children.length>1)return Oe;const We=Oe.children[0];return(0,ce.Re)(We)?We:Oe}function gt(Oe){let{measure:We}=Oe;const[bt,Ze]=(0,b.useState)(null),dt=(0,b.useCallback)(En=>{for(const{target:Rn}of En)if((0,ce.Re)(Rn)){Ze(hn=>{const Ln=We(Rn);return hn?fi(Oo({},hn),{width:Ln.width,height:Ln.height}):Ln});break}},[We]),at=Jt({callback:dt}),Mt=(0,b.useCallback)(En=>{const Rn=Te(En);at==null||at.disconnect(),Rn&&(at==null||at.observe(Rn)),Ze(Rn?We(Rn):null)},[We,at]),[Bt,Wt]=(0,ce.wm)(Mt);return(0,b.useMemo)(()=>({nodeRef:Bt,rect:bt,setRef:Wt}),[bt,Bt,Wt])}const Ke=[{sensor:an,options:{}},{sensor:jt,options:{}}],wt={current:{}},Ht={draggable:{measure:Vt},droppable:{measure:Vt,strategy:cn.WhileDragging,frequency:bn.Optimized},dragOverlay:{measure:yt}};class Hn extends Map{get(We){var bt;return We!=null&&(bt=super.get(We))!=null?bt:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(We=>{let{disabled:bt}=We;return!bt})}getNodeFor(We){var bt,Ze;return(bt=(Ze=this.get(We))==null?void 0:Ze.node.current)!=null?bt:void 0}}const Jn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Hn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:st},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ht,measureDroppableContainers:st,windowRect:null,measuringScheduled:!1},lt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:st,draggableNodes:new Map,over:null,measureDroppableContainers:st},mt=(0,b.createContext)(lt),pt=(0,b.createContext)(Jn);function xt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Hn}}}function fn(Oe,We){switch(We.type){case ot.DragStart:return fi(Oo({},Oe),{draggable:fi(Oo({},Oe.draggable),{initialCoordinates:We.initialCoordinates,active:We.active})});case ot.DragMove:return Oe.draggable.active==null?Oe:fi(Oo({},Oe),{draggable:fi(Oo({},Oe.draggable),{translate:{x:We.coordinates.x-Oe.draggable.initialCoordinates.x,y:We.coordinates.y-Oe.draggable.initialCoordinates.y}})});case ot.DragEnd:case ot.DragCancel:return fi(Oo({},Oe),{draggable:fi(Oo({},Oe.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case ot.RegisterDroppable:{const{element:bt}=We,{id:Ze}=bt,dt=new Hn(Oe.droppable.containers);return dt.set(Ze,bt),fi(Oo({},Oe),{droppable:fi(Oo({},Oe.droppable),{containers:dt})})}case ot.SetDroppableDisabled:{const{id:bt,key:Ze,disabled:dt}=We,at=Oe.droppable.containers.get(bt);if(!at||Ze!==at.key)return Oe;const Mt=new Hn(Oe.droppable.containers);return Mt.set(bt,fi(Oo({},at),{disabled:dt})),fi(Oo({},Oe),{droppable:fi(Oo({},Oe.droppable),{containers:Mt})})}case ot.UnregisterDroppable:{const{id:bt,key:Ze}=We,dt=Oe.droppable.containers.get(bt);if(!dt||Ze!==dt.key)return Oe;const at=new Hn(Oe.droppable.containers);return at.delete(bt),fi(Oo({},Oe),{droppable:fi(Oo({},Oe.droppable),{containers:at})})}default:return Oe}}function In(Oe){let{disabled:We}=Oe;const{active:bt,activatorEvent:Ze,draggableNodes:dt}=(0,b.useContext)(mt),at=(0,ce.D9)(Ze),Mt=(0,ce.D9)(bt==null?void 0:bt.id);return(0,b.useEffect)(()=>{if(!We&&!Ze&&at&&Mt!=null){if(!(0,ce.vd)(at)||document.activeElement===at.target)return;const Bt=dt.get(Mt);if(!Bt)return;const{activatorNode:Wt,node:En}=Bt;if(!Wt.current&&!En.current)return;requestAnimationFrame(()=>{for(const Rn of[Wt.current,En.current]){if(!Rn)continue;const hn=(0,ce.so)(Rn);if(hn){hn.focus();break}}})}},[Ze,We,dt,Mt,at]),null}function pn(Oe,We){let dt=We,{transform:bt}=dt,Ze=ac(dt,["transform"]);return Oe!=null&&Oe.length?Oe.reduce((at,Mt)=>Mt(Oo({transform:at},Ze)),bt):bt}function Sn(Oe){return(0,b.useMemo)(()=>({draggable:Oo(Oo({},Ht.draggable),Oe==null?void 0:Oe.draggable),droppable:Oo(Oo({},Ht.droppable),Oe==null?void 0:Oe.droppable),dragOverlay:Oo(Oo({},Ht.dragOverlay),Oe==null?void 0:Oe.dragOverlay)}),[Oe==null?void 0:Oe.draggable,Oe==null?void 0:Oe.droppable,Oe==null?void 0:Oe.dragOverlay])}function $n(Oe){let{activeNode:We,measure:bt,initialRect:Ze,config:dt=!0}=Oe;const at=(0,b.useRef)(!1),{x:Mt,y:Bt}=typeof dt=="boolean"?{x:dt,y:dt}:dt;(0,ce.LI)(()=>{if(!Mt&&!Bt||!We){at.current=!1;return}if(at.current||!Ze)return;const En=We==null?void 0:We.node.current;if(!En||En.isConnected===!1)return;const Rn=bt(En),hn=It(Rn,Ze);if(Mt||(hn.x=0),Bt||(hn.y=0),at.current=!0,Math.abs(hn.x)>0||Math.abs(hn.y)>0){const Ln=Xt(En);Ln&&Ln.scrollBy({top:hn.y,left:hn.x})}},[We,Mt,Bt,Ze,bt])}const qn=(0,b.createContext)(fi(Oo({},ft),{scaleX:1,scaleY:1}));var ur;(function(Oe){Oe[Oe.Uninitialized=0]="Uninitialized",Oe[Oe.Initializing=1]="Initializing",Oe[Oe.Initialized=2]="Initialized"})(ur||(ur={}));const tr=(0,b.memo)(function(We){var bt,Ze,dt,at;let gl=We,{id:Mt,accessibility:Bt,autoScroll:Wt=!0,children:En,sensors:Rn=Ke,collisionDetection:hn=De,measuring:Ln,modifiers:Gn}=gl,lr=ac(gl,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const sr=(0,b.useReducer)(fn,void 0,xt),[pr,mr]=sr,[kr,xr]=ue(),[Gr,Or]=(0,b.useState)(ur.Uninitialized),Dr=Gr===ur.Initialized,{draggable:{active:Ar,nodes:_r,translate:fo},droppable:{containers:ko}}=pr,Io=Ar!=null?_r.get(Ar):null,Vo=(0,b.useRef)({initial:null,translated:null}),Qr=(0,b.useMemo)(()=>{var ea;return Ar!=null?{id:Ar,data:(ea=Io==null?void 0:Io.data)!=null?ea:wt,rect:Vo}:null},[Ar,Io]),Vr=(0,b.useRef)(null),[_o,Uo]=(0,b.useState)(null),[ni,Zi]=(0,b.useState)(null),Si=(0,ce.Ey)(lr,Object.values(lr)),Ai=(0,ce.Ld)("DndDescribedBy",Mt),Oi=(0,b.useMemo)(()=>ko.getEnabled(),[ko]),Go=Sn(Ln),{droppableRects:Di,measureDroppableContainers:ya,measuringScheduled:Qi}=Et(Oi,{dragging:Dr,dependencies:[fo.x,fo.y],config:Go.droppable}),Qo=er(_r,Ar),Ha=(0,b.useMemo)(()=>ni?(0,ce.DC)(ni):null,[ni]),Ba=ul(),wo=Pn(Qo,Go.draggable.measure);$n({activeNode:Ar!=null?_r.get(Ar):null,config:Ba.layoutShiftCompensation,initialRect:wo,measure:Go.draggable.measure});const Eo=gn(Qo,Go.draggable.measure,wo),Zr=gn(Qo?Qo.parentElement:null),Pr=(0,b.useRef)({activatorEvent:null,active:null,activeNode:Qo,collisionRect:null,collisions:null,droppableRects:Di,draggableNodes:_r,draggingNode:null,draggingNodeRect:null,droppableContainers:ko,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Jr=ko.getNodeFor((bt=Pr.current.over)==null?void 0:bt.id),mo=gt({measure:Go.dragOverlay.measure}),ui=(Ze=mo.nodeRef.current)!=null?Ze:Qo,Zo=Dr?(dt=mo.rect)!=null?dt:Eo:null,$o=!!(mo.nodeRef.current&&mo.rect),Ro=Nn($o?null:Eo),hi=jn(ui?(0,ce.Jj)(ui):null),wi=rr(Dr?Jr!=null?Jr:Qo:null),Bi=Dt(wi),qi=pn(Gn,{transform:{x:fo.x-Ro.x,y:fo.y-Ro.y,scaleX:1,scaleY:1},activatorEvent:ni,active:Qr,activeNodeRect:Eo,containerNodeRect:Zr,draggingNodeRect:Zo,over:Pr.current.over,overlayNodeRect:mo.rect,scrollableAncestors:wi,scrollableAncestorRects:Bi,windowRect:hi}),oa=Ha?(0,ce.IH)(Ha,fo):null,Ui=Qt(wi),ja=Yt(Ui),Pa=Yt(Ui,[Eo]),ia=(0,ce.IH)(qi,ja),Sa=Zo?Ye(Zo,qi):null,Wa=Qr&&Sa?hn({active:Qr,collisionRect:Sa,droppableRects:Di,droppableContainers:Oi,pointerCoordinates:oa}):null,Ra=nt(Wa,"id"),[Qa,pl]=(0,b.useState)(null),kl=$o?qi:(0,ce.IH)(qi,Pa),Al=se(kl,(at=Qa==null?void 0:Qa.rect)!=null?at:null,Eo),Bl=(0,b.useRef)(null),ml=(0,b.useCallback)((ea,Gi)=>{let{sensor:pi,options:zo}=Gi;if(Vr.current==null)return;const Po=_r.get(Vr.current);if(!Po)return;const ci=ea.nativeEvent,Pi=new pi({active:Vr.current,activeNode:Po,event:ci,options:zo,context:Pr,onAbort(ri){if(!_r.get(ri))return;const{onDragAbort:zi}=Si.current,la={id:ri};zi==null||zi(la),kr({type:"onDragAbort",event:la})},onPending(ri,aa,zi,la){if(!_r.get(ri))return;const{onDragPending:ca}=Si.current,ua={id:ri,constraint:aa,initialCoordinates:zi,offset:la};ca==null||ca(ua),kr({type:"onDragPending",event:ua})},onStart(ri){const aa=Vr.current;if(aa==null)return;const zi=_r.get(aa);if(!zi)return;const{onDragStart:la}=Si.current,sa={activatorEvent:ci,active:{id:aa,data:zi.data,rect:Vo}};(0,Me.unstable_batchedUpdates)(()=>{la==null||la(sa),Or(ur.Initializing),mr({type:ot.DragStart,initialCoordinates:ri,active:aa}),kr({type:"onDragStart",event:sa}),Uo(Bl.current),Zi(ci)})},onMove(ri){mr({type:ot.DragMove,coordinates:ri})},onEnd:gi(ot.DragEnd),onCancel:gi(ot.DragCancel)});Bl.current=Pi;function gi(ri){return function(){return Xc(this,null,function*(){const{active:zi,collisions:la,over:sa,scrollAdjustedTranslate:ca}=Pr.current;let ua=null;if(zi&&ca){const{cancelDrop:_a}=Si.current;ua={activatorEvent:ci,active:zi,collisions:la,delta:ca,over:sa},ri===ot.DragEnd&&typeof _a=="function"&&(yield Promise.resolve(_a(ua)))&&(ri=ot.DragCancel)}Vr.current=null,(0,Me.unstable_batchedUpdates)(()=>{mr({type:ri}),Or(ur.Uninitialized),pl(null),Uo(null),Zi(null),Bl.current=null;const _a=ri===ot.DragEnd?"onDragEnd":"onDragCancel";if(ua){const Il=Si.current[_a];Il==null||Il(ua),kr({type:_a,event:ua})}})})}}},[_r]),qa=(0,b.useCallback)((ea,Gi)=>(pi,zo)=>{const Po=pi.nativeEvent,ci=_r.get(zo);if(Vr.current!==null||!ci||Po.dndKit||Po.defaultPrevented)return;const Pi={active:ci};ea(pi,Gi.options,Pi)===!0&&(Po.dndKit={capturedBy:Gi.sensor},Vr.current=zo,ml(pi,Gi))},[_r,ml]),rl=kn(Rn,qa);xn(Rn),(0,ce.LI)(()=>{Eo&&Gr===ur.Initializing&&Or(ur.Initialized)},[Eo,Gr]),(0,b.useEffect)(()=>{const{onDragMove:ea}=Si.current,{active:Gi,activatorEvent:pi,collisions:zo,over:Po}=Pr.current;if(!Gi||!pi)return;const ci={active:Gi,activatorEvent:pi,collisions:zo,delta:{x:ia.x,y:ia.y},over:Po};(0,Me.unstable_batchedUpdates)(()=>{ea==null||ea(ci),kr({type:"onDragMove",event:ci})})},[ia.x,ia.y]),(0,b.useEffect)(()=>{const{active:ea,activatorEvent:Gi,collisions:pi,droppableContainers:zo,scrollAdjustedTranslate:Po}=Pr.current;if(!ea||Vr.current==null||!Gi||!Po)return;const{onDragOver:ci}=Si.current,Pi=zo.get(Ra),gi=Pi&&Pi.rect.current?{id:Pi.id,rect:Pi.rect.current,data:Pi.data,disabled:Pi.disabled}:null,ri={active:ea,activatorEvent:Gi,collisions:pi,delta:{x:Po.x,y:Po.y},over:gi};(0,Me.unstable_batchedUpdates)(()=>{pl(gi),ci==null||ci(ri),kr({type:"onDragOver",event:ri})})},[Ra]),(0,ce.LI)(()=>{Pr.current={activatorEvent:ni,active:Qr,activeNode:Qo,collisionRect:Sa,collisions:Wa,droppableRects:Di,draggableNodes:_r,draggingNode:ui,draggingNodeRect:Zo,droppableContainers:ko,over:Qa,scrollableAncestors:wi,scrollAdjustedTranslate:ia},Vo.current={initial:Zo,translated:Sa}},[Qr,Qo,Wa,Sa,_r,ui,Zo,Di,ko,Qa,wi,ia]),nr(fi(Oo({},Ba),{delta:fo,draggingRect:Sa,pointerCoordinates:oa,scrollableAncestors:wi,scrollableAncestorRects:Bi}));const vl=(0,b.useMemo)(()=>({active:Qr,activeNode:Qo,activeNodeRect:Eo,activatorEvent:ni,collisions:Wa,containerNodeRect:Zr,dragOverlay:mo,draggableNodes:_r,droppableContainers:ko,droppableRects:Di,over:Qa,measureDroppableContainers:ya,scrollableAncestors:wi,scrollableAncestorRects:Bi,measuringConfiguration:Go,measuringScheduled:Qi,windowRect:hi}),[Qr,Qo,Eo,ni,Wa,Zr,mo,_r,ko,Di,Qa,ya,wi,Bi,Go,Qi,hi]),El=(0,b.useMemo)(()=>({activatorEvent:ni,activators:rl,active:Qr,activeNodeRect:Eo,ariaDescribedById:{draggable:Ai},dispatch:mr,draggableNodes:_r,over:Qa,measureDroppableContainers:ya}),[ni,rl,Qr,Eo,mr,Ai,_r,Qa,ya]);return b.createElement(Ve.Provider,{value:xr},b.createElement(mt.Provider,{value:El},b.createElement(pt.Provider,{value:vl},b.createElement(qn.Provider,{value:Al},En)),b.createElement(In,{disabled:(Bt==null?void 0:Bt.restoreFocus)===!1})),b.createElement(Rt,fi(Oo({},Bt),{hiddenTextDescribedById:Ai})));function ul(){const ea=(_o==null?void 0:_o.autoScrollEnabled)===!1,Gi=typeof Wt=="object"?Wt.enabled===!1:Wt===!1,pi=Dr&&!ea&&!Gi;return typeof Wt=="object"?fi(Oo({},Wt),{enabled:pi}):{enabled:pi}}}),Xn=(0,b.createContext)(null),or="button",dr="Draggable";function br(Oe){let{id:We,data:bt,disabled:Ze=!1,attributes:dt}=Oe;const at=(0,ce.Ld)(dr),{activators:Mt,activatorEvent:Bt,active:Wt,activeNodeRect:En,ariaDescribedById:Rn,draggableNodes:hn,over:Ln}=(0,b.useContext)(mt),{role:Gn=or,roleDescription:lr="draggable",tabIndex:sr=0}=dt!=null?dt:{},pr=(Wt==null?void 0:Wt.id)===We,mr=(0,b.useContext)(pr?qn:Xn),[kr,xr]=(0,ce.wm)(),[Gr,Or]=(0,ce.wm)(),Dr=Vn(Mt,We),Ar=(0,ce.Ey)(bt);(0,ce.LI)(()=>(hn.set(We,{id:We,key:at,node:kr,activatorNode:Gr,data:Ar}),()=>{const fo=hn.get(We);fo&&fo.key===at&&hn.delete(We)}),[hn,We]);const _r=(0,b.useMemo)(()=>({role:Gn,tabIndex:sr,"aria-disabled":Ze,"aria-pressed":pr&&Gn===or?!0:void 0,"aria-roledescription":lr,"aria-describedby":Rn.draggable}),[Ze,Gn,sr,pr,lr,Rn.draggable]);return{active:Wt,activatorEvent:Bt,activeNodeRect:En,attributes:_r,isDragging:pr,listeners:Ze?void 0:Dr,node:kr,over:Ln,setNodeRef:xr,setActivatorNodeRef:Or,transform:mr}}function vr(){return(0,b.useContext)(pt)}const Tr="Droppable",Br={timeout:25};function cr(Oe){let{data:We,disabled:bt=!1,id:Ze,resizeObserverConfig:dt}=Oe;const at=(0,ce.Ld)(Tr),{active:Mt,dispatch:Bt,over:Wt,measureDroppableContainers:En}=(0,b.useContext)(mt),Rn=(0,b.useRef)({disabled:bt}),hn=(0,b.useRef)(!1),Ln=(0,b.useRef)(null),Gn=(0,b.useRef)(null),{disabled:lr,updateMeasurementsFor:sr,timeout:pr}=Oo(Oo({},Br),dt),mr=(0,ce.Ey)(sr!=null?sr:Ze),kr=(0,b.useCallback)(()=>{if(!hn.current){hn.current=!0;return}Gn.current!=null&&clearTimeout(Gn.current),Gn.current=setTimeout(()=>{En(Array.isArray(mr.current)?mr.current:[mr.current]),Gn.current=null},pr)},[pr]),xr=Jt({callback:kr,disabled:lr||!Mt}),Gr=(0,b.useCallback)((_r,fo)=>{xr&&(fo&&(xr.unobserve(fo),hn.current=!1),_r&&xr.observe(_r))},[xr]),[Or,Dr]=(0,ce.wm)(Gr),Ar=(0,ce.Ey)(We);return(0,b.useEffect)(()=>{!xr||!Or.current||(xr.disconnect(),hn.current=!1,xr.observe(Or.current))},[Or,xr]),(0,b.useEffect)(()=>(Bt({type:ot.RegisterDroppable,element:{id:Ze,key:at,disabled:bt,node:Or,rect:Ln,data:Ar}}),()=>Bt({type:ot.UnregisterDroppable,key:at,id:Ze})),[Ze]),(0,b.useEffect)(()=>{bt!==Rn.current.disabled&&(Bt({type:ot.SetDroppableDisabled,id:Ze,key:at,disabled:bt}),Rn.current.disabled=bt)},[Ze,at,bt,Bt]),{active:Mt,rect:Ln,isOver:(Wt==null?void 0:Wt.id)===Ze,node:Or,over:Wt,setNodeRef:Dr}}function Er(Oe){let{animation:We,children:bt}=Oe;const[Ze,dt]=(0,b.useState)(null),[at,Mt]=(0,b.useState)(null),Bt=(0,ce.D9)(bt);return!bt&&!Ze&&Bt&&dt(Bt),(0,ce.LI)(()=>{if(!at)return;const Wt=Ze==null?void 0:Ze.key,En=Ze==null?void 0:Ze.props.id;if(Wt==null||En==null){dt(null);return}Promise.resolve(We(En,at)).then(()=>{dt(null)})},[We,Ze,at]),b.createElement(b.Fragment,null,bt,Ze?(0,b.cloneElement)(Ze,{ref:Mt}):null)}const Wr={x:0,y:0,scaleX:1,scaleY:1};function Rr(Oe){let{children:We}=Oe;return b.createElement(mt.Provider,{value:lt},b.createElement(qn.Provider,{value:Wr},We))}const Sr={position:"fixed",touchAction:"none"},Fr=Oe=>(0,ce.vd)(Oe)?"transform 250ms ease":void 0,$r=(0,b.forwardRef)((Oe,We)=>{let{as:bt,activatorEvent:Ze,adjustScale:dt,children:at,className:Mt,rect:Bt,style:Wt,transform:En,transition:Rn=Fr}=Oe;if(!Bt)return null;const hn=dt?En:fi(Oo({},En),{scaleX:1,scaleY:1}),Ln=Oo(fi(Oo({},Sr),{width:Bt.width,height:Bt.height,top:Bt.top,left:Bt.left,transform:ce.ux.Transform.toString(hn),transformOrigin:dt&&Ze?en(Ze,Bt):void 0,transition:typeof Rn=="function"?Rn(Ze):Rn}),Wt);return b.createElement(bt,{className:Mt,style:Ln,ref:We},at)}),yr={duration:250,easing:"ease",keyframes:Oe=>{let{transform:{initial:We,final:bt}}=Oe;return[{transform:ce.ux.Transform.toString(We)},{transform:ce.ux.Transform.toString(bt)}]},sideEffects:(Oe=>We=>{let{active:bt,dragOverlay:Ze}=We;const dt={},{styles:at,className:Mt}=Oe;if(at!=null&&at.active)for(const[Bt,Wt]of Object.entries(at.active))Wt!==void 0&&(dt[Bt]=bt.node.style.getPropertyValue(Bt),bt.node.style.setProperty(Bt,Wt));if(at!=null&&at.dragOverlay)for(const[Bt,Wt]of Object.entries(at.dragOverlay))Wt!==void 0&&Ze.node.style.setProperty(Bt,Wt);return Mt!=null&&Mt.active&&bt.node.classList.add(Mt.active),Mt!=null&&Mt.dragOverlay&&Ze.node.classList.add(Mt.dragOverlay),function(){for(const[Wt,En]of Object.entries(dt))bt.node.style.setProperty(Wt,En);Mt!=null&&Mt.active&&bt.node.classList.remove(Mt.active)}})({styles:{active:{opacity:"0"}}})};function Xr(Oe){let{config:We,draggableNodes:bt,droppableContainers:Ze,measuringConfiguration:dt}=Oe;return(0,ce.zX)((at,Mt)=>{if(We===null)return;const Bt=bt.get(at);if(!Bt)return;const Wt=Bt.node.current;if(!Wt)return;const En=Te(Mt);if(!En)return;const{transform:Rn}=(0,ce.Jj)(Mt).getComputedStyle(Mt),hn=Ft(Rn);if(!hn)return;const Ln=typeof We=="function"?We:go(We);return Ge(Wt,dt.draggable.measure),Ln({active:{id:at,data:Bt.data,node:Wt,rect:dt.draggable.measure(Wt)},draggableNodes:bt,dragOverlay:{node:Mt,rect:dt.dragOverlay.measure(En)},droppableContainers:Ze,measuringConfiguration:dt,transform:hn})})}function go(Oe){const{duration:We,easing:bt,sideEffects:Ze,keyframes:dt}=Oo(Oo({},yr),Oe);return at=>{let kr=at,{active:Mt,dragOverlay:Bt,transform:Wt}=kr,En=ac(kr,["active","dragOverlay","transform"]);if(!We)return;const Rn={x:Bt.rect.left-Mt.rect.left,y:Bt.rect.top-Mt.rect.top},hn={scaleX:Wt.scaleX!==1?Mt.rect.width*Wt.scaleX/Bt.rect.width:1,scaleY:Wt.scaleY!==1?Mt.rect.height*Wt.scaleY/Bt.rect.height:1},Ln=Oo({x:Wt.x-Rn.x,y:Wt.y-Rn.y},hn),Gn=dt(fi(Oo({},En),{active:Mt,dragOverlay:Bt,transform:{initial:Wt,final:Ln}})),[lr]=Gn,sr=Gn[Gn.length-1];if(JSON.stringify(lr)===JSON.stringify(sr))return;const pr=Ze==null?void 0:Ze(Oo({active:Mt,dragOverlay:Bt},En)),mr=Bt.node.animate(Gn,{duration:We,easing:bt,fill:"forwards"});return new Promise(xr=>{mr.onfinish=()=>{pr==null||pr(),xr()}})}}let So=0;function to(Oe){return(0,b.useMemo)(()=>{if(Oe!=null)return So++,So},[Oe])}const io=b.memo(Oe=>{let{adjustScale:We=!1,children:bt,dropAnimation:Ze,style:dt,transition:at,modifiers:Mt,wrapperElement:Bt="div",className:Wt,zIndex:En=999}=Oe;const{activatorEvent:Rn,active:hn,activeNodeRect:Ln,containerNodeRect:Gn,draggableNodes:lr,droppableContainers:sr,dragOverlay:pr,over:mr,measuringConfiguration:kr,scrollableAncestors:xr,scrollableAncestorRects:Gr,windowRect:Or}=vr(),Dr=(0,b.useContext)(qn),Ar=to(hn==null?void 0:hn.id),_r=pn(Mt,{activatorEvent:Rn,active:hn,activeNodeRect:Ln,containerNodeRect:Gn,draggingNodeRect:pr.rect,over:mr,overlayNodeRect:pr.rect,scrollableAncestors:xr,scrollableAncestorRects:Gr,transform:Dr,windowRect:Or}),fo=sn(Ln),ko=Xr({config:Ze,draggableNodes:lr,droppableContainers:sr,measuringConfiguration:kr}),Io=fo?pr.setRef:void 0;return b.createElement(Rr,null,b.createElement(Er,{animation:ko},hn&&Ar?b.createElement($r,{key:Ar,id:hn.id,ref:Io,as:Bt,activatorEvent:Rn,adjustScale:We,className:Wt,transition:at,rect:fo,style:Oo({zIndex:En},dt),transform:_r},bt):null))})},18257:function(Bn,rn,ee){"use strict";ee.d(rn,{DL:function(){return be}});var b=ee(35241);function Me(ue){return $e=>{let{transform:Ee}=$e;return fi(Oo({},Ee),{x:Math.ceil(Ee.x/ue)*ue,y:Math.ceil(Ee.y/ue)*ue})}}const ce=ue=>{let{transform:$e}=ue;return fi(Oo({},$e),{y:0})};function et(ue,$e,Ee){const Rt=Oo({},ue);return $e.top+ue.y<=Ee.top?Rt.y=Ee.top-$e.top:$e.bottom+ue.y>=Ee.top+Ee.height&&(Rt.y=Ee.top+Ee.height-$e.bottom),$e.left+ue.x<=Ee.left?Rt.x=Ee.left-$e.left:$e.right+ue.x>=Ee.left+Ee.width&&(Rt.x=Ee.left+Ee.width-$e.right),Rt}const Pe=ue=>{let{containerNodeRect:$e,draggingNodeRect:Ee,transform:Rt}=ue;return!Ee||!$e?Rt:et(Rt,Ee,$e)},pe=ue=>{let{draggingNodeRect:$e,transform:Ee,scrollableAncestorRects:Rt}=ue;const ot=Rt[0];return!$e||!ot?Ee:et(Ee,$e,ot)},be=ue=>{let{transform:$e}=ue;return fi(Oo({},$e),{x:0})},Ve=ue=>{let{transform:$e,draggingNodeRect:Ee,windowRect:Rt}=ue;return!Ee||!Rt?$e:et($e,Ee,Rt)},Ie=ue=>{let{activatorEvent:$e,draggingNodeRect:Ee,transform:Rt}=ue;if(Ee&&$e){const ot=getEventCoordinates($e);if(!ot)return Rt;const st=ot.x-Ee.left,Ue=ot.y-Ee.top;return fi(Oo({},Rt),{x:Rt.x+st-Ee.width/2,y:Rt.y+Ue-Ee.height/2})}return Rt}},19719:function(Bn,rn,ee){"use strict";ee.d(rn,{Fo:function(){return en},Rp:function(){return et},U2:function(){return Rt},nB:function(){return Ct},qw:function(){return Ue}});var b=ee(59301),Me=ee(87954),ce=ee(35241);function et(Ye,Ft,Ce){const he=Ye.slice();return he.splice(Ce<0?he.length+Ce:Ce,0,he.splice(Ft,1)[0]),he}function Pe(Ye,Ft,Ce){const he=Ye.slice();return he[Ft]=Ye[Ce],he[Ce]=Ye[Ft],he}function pe(Ye,Ft){return Ye.reduce((Ce,he,yt)=>{const Vt=Ft.get(he);return Vt&&(Ce[yt]=Vt),Ce},Array(Ye.length))}function be(Ye){return Ye!==null&&Ye>=0}function Ve(Ye,Ft){if(Ye===Ft)return!0;if(Ye.length!==Ft.length)return!1;for(let Ce=0;Ce{var Ft;let{rects:Ce,activeNodeRect:he,activeIndex:yt,overIndex:Vt,index:Lt}=Ye;const me=(Ft=Ce[yt])!=null?Ft:he;if(!me)return null;const qe=Ee(Ce,Lt,yt);if(Lt===yt){const it=Ce[Vt];return it?Oo({x:ytyt&&Lt<=Vt?Oo({x:-me.width-qe,y:0},ue):Lt=Vt?Oo({x:me.width+qe,y:0},ue):Oo({x:0,y:0},ue)};function Ee(Ye,Ft,Ce){const he=Ye[Ft],yt=Ye[Ft-1],Vt=Ye[Ft+1];return!he||!yt&&!Vt?0:Ce{let{rects:Ft,activeIndex:Ce,overIndex:he,index:yt}=Ye;const Vt=et(Ft,he,Ce),Lt=Ft[yt],me=Vt[yt];return!me||!Lt?null:{x:me.left-Lt.left,y:me.top-Lt.top,scaleX:me.width/Lt.width,scaleY:me.height/Lt.height}},ot=Ye=>{let{activeIndex:Ft,index:Ce,rects:he,overIndex:yt}=Ye,Vt,Lt;return Ce===Ft&&(Vt=he[Ce],Lt=he[yt]),Ce===yt&&(Vt=he[Ce],Lt=he[Ft]),!Lt||!Vt?null:{x:Lt.left-Vt.left,y:Lt.top-Vt.top,scaleX:Lt.width/Vt.width,scaleY:Lt.height/Vt.height}},st={scaleX:1,scaleY:1},Ue=Ye=>{var Ft;let{activeIndex:Ce,activeNodeRect:he,index:yt,rects:Vt,overIndex:Lt}=Ye;const me=(Ft=Vt[Ce])!=null?Ft:he;if(!me)return null;if(yt===Ce){const it=Vt[Lt];return it?Oo({x:0,y:CeCe&&yt<=Lt?Oo({x:0,y:-me.height-qe},st):yt=Lt?Oo({x:0,y:me.height+qe},st):Oo({x:0,y:0},st)};function Re(Ye,Ft,Ce){const he=Ye[Ft],yt=Ye[Ft-1],Vt=Ye[Ft+1];return he?Cehe.map(le=>typeof le=="object"&&"id"in le?le.id:le),[he]),dn=Lt!=null,$t=Lt?Fe.indexOf(Lt.id):-1,ae=it?Fe.indexOf(it.id):-1,ne=(0,b.useRef)(Fe),te=!Ve(Fe,ne.current),ie=ae!==-1&&$t===-1||te,de=Ie(Vt);(0,ce.LI)(()=>{te&&dn&&Xt(Fe)},[te,Fe,dn,Xt]),(0,b.useEffect)(()=>{ne.current=Fe},[Fe]);const re=(0,b.useMemo)(()=>({activeIndex:$t,containerId:Xe,disabled:de,disableTransforms:ie,items:Fe,overIndex:ae,useDragOverlay:Gt,sortedRects:pe(Fe,qe),strategy:yt}),[$t,Xe,de.draggable,de.droppable,ie,Fe,ae,qe,Gt,yt]);return b.createElement(kt.Provider,{value:re},Ft)}const Qe=Ye=>{let{id:Ft,items:Ce,activeIndex:he,overIndex:yt}=Ye;return et(Ce,he,yt).indexOf(Ft)},Ae=Ye=>{let{containerId:Ft,isSorting:Ce,wasDragging:he,index:yt,items:Vt,newIndex:Lt,previousItems:me,previousContainerId:qe,transition:it}=Ye;return!it||!he||me!==Vt&&yt===Lt?!1:Ce?!0:Lt!==yt&&Ft===qe},tt={duration:200,easing:"ease"},nt="transform",zt=ce.ux.Transition.toString({property:nt,duration:0,easing:"linear"}),Ot={roleDescription:"sortable"};function ht(Ye){let{disabled:Ft,index:Ce,node:he,rect:yt}=Ye;const[Vt,Lt]=(0,b.useState)(null),me=(0,b.useRef)(Ce);return(0,ce.LI)(()=>{if(!Ft&&Ce!==me.current&&he.current){const qe=yt.current;if(qe){const it=(0,Me.VK)(he.current,{ignoreTransform:!0}),Xt={x:qe.left-it.left,y:qe.top-it.top,scaleX:qe.width/it.width,scaleY:qe.height/it.height};(Xt.x||Xt.y)&&Lt(Xt)}}Ce!==me.current&&(me.current=Ce)},[Ft,Ce,he,yt]),(0,b.useEffect)(()=>{Vt&&Lt(null)},[Vt]),Vt}function Ct(Ye){let{animateLayoutChanges:Ft=Ae,attributes:Ce,disabled:he,data:yt,getNewIndex:Vt=Qe,id:Lt,strategy:me,resizeObserverConfig:qe,transition:it=tt}=Ye;const{items:Xt,containerId:Xe,activeIndex:Gt,disabled:Fe,disableTransforms:dn,sortedRects:$t,overIndex:ae,useDragOverlay:ne,strategy:te}=(0,b.useContext)(kt),ie=De(he,Fe),de=Xt.indexOf(Lt),re=(0,b.useMemo)(()=>Oo({sortable:{containerId:Xe,index:de,items:Xt}},yt),[Xe,yt,de,Xt]),le=(0,b.useMemo)(()=>Xt.slice(Xt.indexOf(Lt)),[Xt,Lt]),{rect:Se,node:Ge,isOver:He,setNodeRef:Le}=(0,Me.Zj)({id:Lt,data:re,disabled:ie.droppable,resizeObserverConfig:Oo({updateMeasurementsFor:le},qe)}),{active:rt,activatorEvent:ut,activeNodeRect:At,attributes:Ne,setNodeRef:Be,listeners:Ut,isDragging:Zt,over:mn,setActivatorNodeRef:vn,transform:jt}=(0,Me.O1)({id:Lt,data:re,attributes:Oo(Oo({},Ot),Ce),disabled:ie.draggable}),Cn=(0,ce.HB)(Le,Be),on=!!rt,Je=on&&!dn&&be(Gt)&&be(ae),Tt=!ne&&Zt,an=Tt&&Je?jt:null,_t=me!=null?me:te,je=Je?an!=null?an:_t({rects:$t,activeNodeRect:At,activeIndex:Gt,overIndex:ae,index:de}):null,Pt=be(Gt)&&be(ae)?Vt({id:Lt,items:Xt,activeIndex:Gt,overIndex:ae}):de,Kt=rt==null?void 0:rt.id,nn=(0,b.useRef)({activeId:Kt,items:Xt,newIndex:Pt,containerId:Xe}),On=Xt!==nn.current.items,_n=Ft({active:rt,containerId:Xe,isDragging:Zt,isSorting:on,id:Lt,index:de,items:Xt,newIndex:nn.current.newIndex,previousItems:nn.current.items,previousContainerId:nn.current.containerId,transition:it,wasDragging:nn.current.activeId!=null}),nr=ht({disabled:!_n,index:de,node:Ge,rect:Se});return(0,b.useEffect)(()=>{on&&nn.current.newIndex!==Pt&&(nn.current.newIndex=Pt),Xe!==nn.current.containerId&&(nn.current.containerId=Xe),Xt!==nn.current.items&&(nn.current.items=Xt)},[on,Pt,Xe,Xt]),(0,b.useEffect)(()=>{if(Kt===nn.current.activeId)return;if(Kt&&!nn.current.activeId){nn.current.activeId=Kt;return}const Zn=setTimeout(()=>{nn.current.activeId=Kt},50);return()=>clearTimeout(Zn)},[Kt]),{active:rt,activeIndex:Gt,attributes:Ne,data:re,rect:Se,index:de,newIndex:Pt,items:Xt,isOver:He,isSorting:on,isDragging:Zt,listeners:Ut,node:Ge,overIndex:ae,over:mn,setNodeRef:Cn,setActivatorNodeRef:vn,setDroppableNodeRef:Le,setDraggableNodeRef:Be,transform:nr!=null?nr:je,transition:ir()};function ir(){if(nr||On&&nn.current.newIndex===de)return zt;if(!(Tt&&!(0,ce.vd)(ut)||!it)&&(on||_n))return ce.ux.Transition.toString(fi(Oo({},it),{property:nt}))}}function De(Ye,Ft){var Ce,he;return typeof Ye=="boolean"?{draggable:Ye,droppable:!1}:{draggable:(Ce=Ye==null?void 0:Ye.draggable)!=null?Ce:Ft.draggable,droppable:(he=Ye==null?void 0:Ye.droppable)!=null?he:Ft.droppable}}function ke(Ye){if(!Ye)return!1;const Ft=Ye.data.current;return!!(Ft&&"sortable"in Ft&&typeof Ft.sortable=="object"&&"containerId"in Ft.sortable&&"items"in Ft.sortable&&"index"in Ft.sortable)}const xe=[Me.g4.Down,Me.g4.Right,Me.g4.Up,Me.g4.Left],se=(Ye,Ft)=>{let{context:{active:Ce,collisionRect:he,droppableRects:yt,droppableContainers:Vt,over:Lt,scrollableAncestors:me}}=Ft;if(xe.includes(Ye.code)){if(Ye.preventDefault(),!Ce||!he)return;const qe=[];Vt.getEnabled().forEach(Xe=>{if(!Xe||Xe!=null&&Xe.disabled)return;const Gt=yt.get(Xe.id);if(Gt)switch(Ye.code){case KeyboardCode.Down:he.topGt.top&&qe.push(Xe);break;case KeyboardCode.Left:he.left>Gt.left&&qe.push(Xe);break;case KeyboardCode.Right:he.left1&&(Xt=it[1].id),Xt!=null){const Xe=Vt.get(Ce.id),Gt=Vt.get(Xt),Fe=Gt?yt.get(Gt.id):null,dn=Gt==null?void 0:Gt.node.current;if(dn&&Fe&&Xe&&Gt){const ae=getScrollableAncestors(dn).some((le,Se)=>me[Se]!==le),ne=It(Xe,Gt),te=_e(Xe,Gt),ie=ae||!ne?{x:0,y:0}:{x:te?he.width-Fe.width:0,y:te?he.height-Fe.height:0},de={x:Fe.left,y:Fe.top};return ie.x&&ie.y?de:subtract(de,ie)}}}};function It(Ye,Ft){return!ke(Ye)||!ke(Ft)?!1:Ye.data.current.sortable.containerId===Ft.data.current.sortable.containerId}function _e(Ye,Ft){return!ke(Ye)||!ke(Ft)||!It(Ye,Ft)?!1:Ye.data.current.sortable.indexIt=>{xe.forEach(_e=>_e(It))},xe)}const ce=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function et(ke){const xe=Object.prototype.toString.call(ke);return xe==="[object Window]"||xe==="[object global]"}function Pe(ke){return"nodeType"in ke}function pe(ke){var xe,se;return ke?et(ke)?ke:Pe(ke)&&(xe=(se=ke.ownerDocument)==null?void 0:se.defaultView)!=null?xe:window:window}function be(ke){const{Document:xe}=pe(ke);return ke instanceof xe}function Ve(ke){return et(ke)?!1:ke instanceof pe(ke).HTMLElement}function Ie(ke){return ke instanceof pe(ke).SVGElement}function ue(ke){return ke?et(ke)?ke.document:Pe(ke)?be(ke)?ke:Ve(ke)||Ie(ke)?ke.ownerDocument:document:document:document}const $e=ce?b.useLayoutEffect:b.useEffect;function Ee(ke){const xe=(0,b.useRef)(ke);return $e(()=>{xe.current=ke}),(0,b.useCallback)(function(){for(var se=arguments.length,It=new Array(se),_e=0;_e{ke.current=setInterval(It,_e)},[]),se=(0,b.useCallback)(()=>{ke.current!==null&&(clearInterval(ke.current),ke.current=null)},[]);return[xe,se]}function ot(ke,xe){xe===void 0&&(xe=[ke]);const se=(0,b.useRef)(ke);return $e(()=>{se.current!==ke&&(se.current=ke)},xe),se}function st(ke,xe){const se=(0,b.useRef)();return(0,b.useMemo)(()=>{const It=ke(se.current);return se.current=It,It},[...xe])}function Ue(ke){const xe=Ee(ke),se=(0,b.useRef)(null),It=(0,b.useCallback)(_e=>{_e!==se.current&&(xe==null||xe(_e,se.current)),se.current=_e},[]);return[se,It]}function Re(ke){const xe=(0,b.useRef)();return(0,b.useEffect)(()=>{xe.current=ke},[ke]),xe.current}let ft={};function kt(ke,xe){return(0,b.useMemo)(()=>{if(xe)return xe;const se=ft[ke]==null?0:ft[ke]+1;return ft[ke]=se,ke+"-"+se},[ke,xe])}function en(ke){return function(xe){for(var se=arguments.length,It=new Array(se>1?se-1:0),_e=1;_e{const Ce=Object.entries(Ft);for(const[he,yt]of Ce){const Vt=Ye[he];Vt!=null&&(Ye[he]=Vt+ke*yt)}return Ye},Oo({},xe))}}const Qe=en(1),Ae=en(-1);function tt(ke){return"clientX"in ke&&"clientY"in ke}function nt(ke){if(!ke)return!1;const{KeyboardEvent:xe}=pe(ke.target);return xe&&ke instanceof xe}function zt(ke){if(!ke)return!1;const{TouchEvent:xe}=pe(ke.target);return xe&&ke instanceof xe}function Ot(ke){if(zt(ke)){if(ke.touches&&ke.touches.length){const{clientX:xe,clientY:se}=ke.touches[0];return{x:xe,y:se}}else if(ke.changedTouches&&ke.changedTouches.length){const{clientX:xe,clientY:se}=ke.changedTouches[0];return{x:xe,y:se}}}return tt(ke)?{x:ke.clientX,y:ke.clientY}:null}const ht=Object.freeze({Translate:{toString(ke){if(!ke)return;const{x:xe,y:se}=ke;return"translate3d("+(xe?Math.round(xe):0)+"px, "+(se?Math.round(se):0)+"px, 0)"}},Scale:{toString(ke){if(!ke)return;const{scaleX:xe,scaleY:se}=ke;return"scaleX("+xe+") scaleY("+se+")"}},Transform:{toString(ke){if(ke)return[ht.Translate.toString(ke),ht.Scale.toString(ke)].join(" ")}},Transition:{toString(ke){let{property:xe,duration:se,easing:It}=ke;return xe+" "+se+"ms "+It}}}),Ct="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function De(ke){return ke.matches(Ct)?ke:ke.querySelector(Ct)}},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Bn,rn){"use strict";rn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(Bn,rn){"use strict";rn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},59435:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=Object.defineProperty,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,pe=(Ie,ue,$e)=>ue in Ie?Me(Ie,ue,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ie[ue]=$e,be=(Ie,ue)=>{for(var $e in ue||(ue={}))et.call(ue,$e)&&pe(Ie,$e,ue[$e]);if(ce)for(var $e of ce(ue))Pe.call(ue,$e)&&pe(Ie,$e,ue[$e]);return Ie};const Ve=Ie=>React.createElement("svg",be({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ie),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));rn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},77264:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=Object.defineProperty,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,pe=(Ie,ue,$e)=>ue in Ie?Me(Ie,ue,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ie[ue]=$e,be=(Ie,ue)=>{for(var $e in ue||(ue={}))et.call(ue,$e)&&pe(Ie,$e,ue[$e]);if(ce)for(var $e of ce(ue))Pe.call(ue,$e)&&pe(Ie,$e,ue[$e]);return Ie};const Ve=Ie=>React.createElement("svg",be({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ie),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));rn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Bn={},rn="5.0",ee={},b=null,Me=!1,ce=!1,et=null,Pe=!1,pe=null,be=null,Ve=0;Ve4?parseFloat(me):5};Bn.setHTML5Codebase=function(me,qe){be=me,yt(me,qe)},Bn.setJavaCodebase=Bn.setJavaCodebaseVersion=Bn.isCompiledInstalled=Bn.setPreCompiledScriptPath=Bn.setPreCompiledResourcePath=function(){},Bn.setHTML5CodebaseVersion=function(me,qe){var it=parseFloat(me);if(it!==NaN&&it<5){console.log("The GeoGebra HTML5 codebase version "+it+" is deprecated. Using version latest instead.");return}pe=me,he(me,qe)},Bn.getHTML5CodebaseVersion=function(){return ot},Bn.getParameters=function(){return ee},Bn.setFontsCSSURL=function(me){en=me},Bn.setGiacJSURL=function(me){},Bn.setJNLPFile=function(me){ue=me},Bn.setJNLPBaseDir=function(me){},Bn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var qe="auto",it=ee.id,Xt,Xe=!1,Gt=0;Gt=5)return!0;var me=Bn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},Bn.startAnimation=function(){var me=Bn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},Bn.stopAnimation=function(){var me=Bn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},Bn.getAppletObject=function(){var me=ee.id!==void 0?ee.id:"ggbApplet";return window[me]},Bn.resize=function(){};var Ct=function(me,qe,it){var Xt=document.createElement("param");Xt.setAttribute("name",qe),Xt.setAttribute("value",it),me.appendChild(Xt)},De=function(me){return me&&me!=="false"},ke=function(me,qe,it){Ae(ot)<=4.2&&(it=!0);var Xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ot||ggbHTML5LoadedCodebaseIsWebSimple&&!Ue)&&(Xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var Gt=qe.width,Fe=qe.height;if(qe.disableAutoScale=qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():qe.disableAutoScale,qe.width!==void 0)if(Ae(ot)<=4.4)De(qe.showToolBar)&&(qe.height-=7),De(qe.showAlgebraInput)&&(qe.height-=37),qe.width<605&&De(qe.showToolBar)&&(qe.width=605,Gt=605);else{var dn=100;(De(qe.showToolBar)||De(qe.showMenuBar))&&(qe.hasOwnProperty("customToolBar")&&(qe.customToolbar=qe.customToolBar),dn=De(qe.showMenuBar)?245:155),Gt=5?(qe.appletOnLoad=function(ut){var At=me.querySelector(".ggb_preview");At&&At.parentNode.removeChild(At),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(ut)},te||ne.appendChild(ie)):Xe.appendChild(ie),ne.appendChild(Xe),te||me.appendChild(ne),setTimeout(function(){Bn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(Xe),me.appendChild(de),qe.appletOnLoad=function(ut){Bn.resize(),ae(ut)}}function re(ut,At){At&&typeof At.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ut,At.appletOnLoad):renderGGBElement(ut),Vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",At)}function le(ut,At){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ut,params:At}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ne){re(Ne.article,Ne.params)}),html5AppletsToProcess=null)},Ae(ot)<5&&(ut.className+=" geogebraweb")):re(ut,At)}if(Xt){scriptLoadStarted=!0;for(var Se=0;Se0?($t.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):ke($t,qe,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Rt=Xt,ke(me,qe,!1);if(!window.GGBT_wsf_view)for(Fe=0;Feme/4*3&&($t=me/4*3),ae=$t/5.8,dn.setAttribute("src",ft),dn.setAttribute("width",$t),dn.setAttribute("height",ae);var ne=(me-$t)/2,te=(qe-ae)/2;dn.style.left=ne+"px",dn.style.top=te+"px",Xe.appendChild(dn)}}return Xe.appendChild(Fe),Xe},Ft=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},Ce=["web","webSimple","web3d","tablet","tablet3d","phone"],he=function(me,qe){if(ot=me,qe){yt(ot,!0);return}var it=!Me;if(it){var Xt=Ae(ot);!isNaN(Xt)&&Xt<4.4&&(it=!1)}var Xe,Gt;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var Fe=ot.indexOf("//");Fe>0?Gt=ot:Fe===0?Gt=Xe+ot:Gt="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in Ce)if(ot.slice(Ce[dn].length*-1)===Ce[dn]||ot.slice((Ce[dn].length+1)*-1)===Ce[dn]+"/"){yt(Gt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&it&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!De(ee.showToolBar)&&!De(ee.showMenuBar)&&!De(ee.showAlgebraInput)&&!De(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Gt+="webSimple/":Gt+="web3d/",yt(Gt,!1)},yt=function(me,qe){if(me.requirejs){$e=me;return}me.slice(-1)!=="/"&&(me+="/"),$e=me,qe===null&&(qe=me.indexOf("http")===-1),Ee=qe,st="web.nocache.js",Ue=!1;var it=$e.split("/");it.length>1&&(!qe&&it[it.length-2]==="webSimple"?(st="webSimple.nocache.js",Ue=!0):Ce.indexOf(it[it.length-2])>=0&&(st=it[it.length-2]+".nocache.js")),it=me.split("/"),ot=it[it.length-3],ot.substr(0,4)==="test"?ot=ot.substr(4,1)+"."+ot.substr(5,1):(ot.substr(0,3)==="war"||ot.substr(0,4)==="beta")&&(ot="5.0");var Xt=parseFloat(ot);Xt!==NaN&&Xt<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xt+" is deprecated. Using version latest instead."),he("5.0",qe))},Vt=function(me,qe){window.console&&window.console.log&&(!qe||typeof qe.showLogging=="undefined"||qe.showLogging&&qe.showLogging!=="false")&&console.log(me)};ee.material_id!==void 0?zt(Lt):Lt();function Lt(){var me=rn;pe!==null?me=pe:parseFloat(me)<5&&(me="5.0"),he(me,!1),be!==null&&yt(be,Ee),Pe=!0}return Bn},GGBAppletUtils=function(){"use strict";function Bn(){return window.GGBT_wsf_edit!==void 0}function rn(Pe,pe){pe!=1?(Pe.style.transformOrigin="0% 0% 0px",Pe.style.webkitTransformOrigin="0% 0% 0px",Pe.style.transform="scale("+pe+","+pe+")",Pe.style.webkitTransform="scale("+pe+","+pe+")",Pe.style.maxWidth="initial",Pe.querySelector(".ggb_preview")!==null&&(Pe.querySelector(".ggb_preview").style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Pe.style.transform="none",Pe.style.webkitTransform="none")}function ee(Pe,pe,be,Ve,Ie,ue){var $e=null;if(ue!=null&&ue!="")for(var Ee=Pe.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+ue+" ")>-1){$e=Ee;break}else Ee=Ee.parentNode;var Rt=0,ot=0,st=0,Ue=0,Re=0,ft=0,kt=0;if($e)Rt=$e.offsetWidth,ot=Math.max(Ve?$e.offsetWidth:0,$e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Rt=Math.min(window.innerWidth,document.documentElement.clientWidth),ot=Math.min(window.innerHeight,document.documentElement.clientHeight),st=Rt):(Rt=window.innerWidth,ot=window.innerHeight,st=window.innerWidth),Pe){var en=Pe.getBoundingClientRect();en.left>0&&en.left<=Rt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(Re=Rt-en.width-en.left,ft=st<=480?10:30):(ft=en.left,Re=st<=480?10:30),Ue=ft+Re)}if(Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=Pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ue=40,kt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ue=0,kt=40)}}return Pe&&((be===void 0||!be)&&pe>0&&pe+Ue1&&(ue=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))Ie=b(Pe,pe,ue,be,Pe.scaleContainerClass);else return Ve;return ue&&(!Pe.hasOwnProperty("scale")||Ve===1)?Ie:Math.min(Ve,Ie)}function ce(Pe){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),be=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=Pe.getBoundingClientRect(),Ie=(pe-Ve.width)/2,ue=(be-Ve.height)/2;ue<0&&(ue=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Pe.style.left="40px":Pe.style.left=Ie+"px",Pe.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?Pe.style.top="40px":Pe.style.top=ue+"px",Pe.style.left=Ie+"px")}function et(Pe,pe){var be=Pe.querySelector(".appletParameters");if(be){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==be.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}if(be.parentElement&&/fullscreen/.test(be.parentElement.className))return;var Ve=Me(pe,Pe);Bn()&&be.setAttribute("data-param-scale",Ve);for(var Ie=null,ue=0;ue=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Bn){var rn=c[Bn];return rn==null?null:rn},r=d,webModule.__errFn=e}function B(){function Bn(Pe){var pe=Pe.lastIndexOf(rb);pe==-1&&(pe=Pe.length);var be=Pe.indexOf(sb);be==-1&&(be=Pe.length);var Ve=Pe.lastIndexOf(tb,Math.min(be,pe));return Ve>=O?Pe.substring(O,Ve+P):W}function rn(Pe){if(!Pe.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=Pe+vb,Pe=Bn(pe.src)}return Pe}function ee(){var Pe=__gwt_getMetaProperty(wb);return Pe!=null?Pe:W}function b(){for(var Pe=o.getElementsByTagName(_),pe=O;peO?Pe[Pe.length-P].href:W}function ce(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var et=ee();return et==W&&(et=b()),et==W&&(et=Me()),et==W&&ce()&&(et=Bn(o.location.href)),et=rn(et),et}function C(Bn){return Bn.match(/^\//)||Bn.match(/^[a-zA-Z]+:\/\//)?Bn:webModule.__moduleBase+Bn}function D(){var Bn=[],rn=O,ee=[],b=[];function Me(Pe){var pe=b[Pe](),be=ee[Pe];if(pe in be)return pe;var Ve=[];for(var Ie in be)Ve[be[Ie]]=Ie;throw r&&r(Pe,Ve,pe),null}if(__gwt_isKnownPropertyValue=function(Pe,pe){return pe in ee[Pe]},webModule.__getPropMap=function(){var Pe={};for(var pe in ee)ee.hasOwnProperty(pe)&&(Pe[pe]=Me(pe));return Pe},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ce;try{ce=Cb;var et=ce.indexOf(Db);et!=-1&&(rn=parseInt(ce.substring(et+P),$),ce=ce.substring(O,et))}catch(Pe){}return webModule.__softPermutationId=rn,C(ce+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(Bn,rn,ee){"use strict";ee.d(rn,{Ax:function(){return et},Ds:function(){return Pe},KI:function(){return be},SI:function(){return ce},f1:function(){return Me}});var b=ee(14185);function Me(Ve){let Ie=!0;if(Ve.length>0){for(let ue=0;uenew Promise((st,Ue)=>{var Re=en=>{try{kt(ot.next(en))}catch(Qe){Ue(Qe)}},ft=en=>{try{kt(ot.throw(en))}catch(Qe){Ue(Qe)}},kt=en=>en.done?st(en.value):Promise.resolve(en.value).then(Re,ft);kt((ot=ot.apply(Ee,Rt)).next())}),$e=({data:Ee,className:Rt,fullWidth:ot,style:st={},onClose:Ue,onOk:Re,showFullTools:ft,noAssociationId:kt})=>{const en=(0,b.useRef)(null),Qe=(0,b.useRef)(null),Ae=(0,b.useRef)(null),tt=(0,b.useRef)(null),[nt,zt]=(0,b.useState)(!1),[Ot,ht]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&Ct()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[Ee==null?void 0:Ee.visible]);const Ct=()=>Ie(void 0,null,function*(){zt(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const se=yield(0,Ve.ZJ)(Ee==null?void 0:Ee.src);en.current.src="",en.current.src=se,en.current.onload=function(){xe()},zt(!1),ht("")}),De=se=>Ie(void 0,null,function*(){zt(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const It=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:se.dataUrl}});It!=null&&It.id&&!kt?(yield(0,be.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:It==null?void 0:It.id,settings:JSON.stringify(se.state)}})).status===0&&Re():It!=null&&It.id&&Re(It),zt(!1),ht("")}),ke=()=>{const se=document.querySelector('a[href="https://markerjs.com/"]');se&&se.parentNode&&(se.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(_e=>{const Ye=document.querySelector(_e.name);Ye&&Ye.setAttribute("title",_e.title)})},xe=()=>{Qe.current=new pe.hP(en.current),Qe.current.targetRoot=tt.current,Qe.current.addEventListener("render",De),Qe.current.addEventListener("beforeclose",Ue),ft&&(Qe.current.availableMarkerTypes=Qe.current.ALL_MARKER_TYPES,Qe.current.uiStyleSettings.redoButtonVisible=!0,Qe.current.uiStyleSettings.notesButtonVisible=!0,Qe.current.uiStyleSettings.zoomButtonVisible=!0,Qe.current.uiStyleSettings.zoomOutButtonVisible=!0,Qe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Qe.current.uiStyleSettings,Qe.current.show(),Ee!=null&&Ee.snapshotData&&Qe.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ke()},300)};return b.createElement(b.Fragment,null,(Ee==null?void 0:Ee.visible)&&b.createElement(Pe.Z,{spinning:nt,tip:Ot,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:tt,className:et()(Me.imageDimensions,Rt,ot?Me.fullWidth:""),style:st},b.createElement("img",{className:Me.img,ref:en}))))}},9057:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=ee(77019),ce=ee(5269),et=ee(31691),Pe=ee(7939),pe=ee(35883),be=ee(74501),Ve=ee(48136),Ie=ee(59301);const ue=(0,b.forwardRef)(({callback:$e,showSaveButton:Ee,value:Rt=""},ot)=>{const st=(0,b.useRef)(),Ue=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Re=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],ft=Qe=>{st.current.setValue(st.current.getValue()+" "+Qe.value+" ")},kt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(Me.Z,{className:be.Z.lists,gutter:[10,10]},Ue.map((Qe,Ae)=>Ie.createElement(ce.Z,{flex:"110px",className:be.Z.item},Ie.createElement("div",null,Ie.createElement(pe.Z,{value:`$$${Qe.value}$$`}),Qe.name),Ie.createElement("div",{className:be.Z.children},Qe.children.map((tt,nt)=>Ie.createElement("div",{key:nt},Ie.createElement("h1",null,tt.name),Ie.createElement(Me.Z,{gutter:[10,10]},tt.data.map((zt,Ot)=>Ie.createElement(ce.Z,{key:Ot,onClick:()=>ft(zt),className:be.Z.diamond},Ie.createElement(pe.Z,{value:"`$$"+zt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Me.Z,{className:be.Z.lists,gutter:[10,10]},Re.map((Qe,Ae)=>Ie.createElement(ce.Z,{flex:"110px",className:be.Z.item},Ie.createElement("div",null,Ie.createElement(pe.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),Ie.createElement("div",{className:be.Z.children},Qe.children.map((tt,nt)=>Ie.createElement("div",{key:nt},tt.name&&Ie.createElement("h1",null,tt.name),Ie.createElement(Me.Z,{gutter:[10,10]},tt.data.map((zt,Ot)=>Ie.createElement(ce.Z,{key:Ot,onClick:()=>ft(zt),className:be.Z.diamond},Ie.createElement(pe.Z,{value:"`$$"+zt.value+"$$`"}))))))))))}],en=()=>{var Qe=document.createElement("div");Qe.innerHTML=st.current.getValue();var Ae=Qe.innerText;return $e&&$e(Ae),Ae};return(0,b.useImperativeHandle)(ot,()=>({getData:en})),Ie.createElement("div",{className:be.Z.mathWrap},Ie.createElement(et.default,{defaultActiveKey:"1",items:kt}),Ie.createElement("math-field",{locale:"zh_cn",className:be.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:st,style:{width:800,marginTop:30,fontSize:18}},Rt||""),Ee&&Ie.createElement("div",{className:be.Z.button},Ie.createElement(Pe.ZP,{size:"large",onClick:en,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});rn.Z=ue},90736:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=ee(4977),ce=ee(7939),et=Object.defineProperty,Pe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ue=(ot,st,Ue)=>st in ot?et(ot,st,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):ot[st]=Ue,$e=(ot,st)=>{for(var Ue in st||(st={}))Ve.call(st,Ue)&&ue(ot,Ue,st[Ue]);if(be)for(var Ue of be(st))Ie.call(st,Ue)&&ue(ot,Ue,st[Ue]);return ot},Ee=(ot,st)=>Pe(ot,pe(st));const Rt=({img:ot,buttonProps:st={},styles:Ue={},customText:Re,ButtonText:ft,ButtonClick:kt,Buttonclass:en,ButtonTwo:Qe,imgStyles:Ae,loading:tt=!1,className:nt=""})=>b.createElement("section",{className:`tc animated fadeIn ${nt}`,style:$e({color:"#999",margin:"100px auto",visibility:tt?"hidden":"visible"},Ue)},b.createElement("img",{src:ot||Me,style:Ee($e({},Ae),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Re||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ft&&b.createElement(ce.ZP,$e({className:en,onClick:kt},st),ft),Qe&&Qe);rn.Z=Rt},86974:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return en}});var b=ee(59301),Me={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ce=ee(7939),et=ee(70557),Pe=ee(34728),pe=ee(25399),be=ee(76406),Ve=ee(84849),Ie=ee(90736),ue=ee(14185),$e=ee(52078),Ee=ee(59301),Rt=Object.defineProperty,ot=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Re=(Qe,Ae,tt)=>Ae in Qe?Rt(Qe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Qe[Ae]=tt,ft=(Qe,Ae)=>{for(var tt in Ae||(Ae={}))st.call(Ae,tt)&&Re(Qe,tt,Ae[tt]);if(ot)for(var tt of ot(Ae))Ue.call(Ae,tt)&&Re(Qe,tt,Ae[tt]);return Qe},kt=(Qe,Ae,tt)=>new Promise((nt,zt)=>{var Ot=De=>{try{Ct(tt.next(De))}catch(ke){zt(ke)}},ht=De=>{try{Ct(tt.throw(De))}catch(ke){zt(ke)}},Ct=De=>De.done?nt(De.value):Promise.resolve(De.value).then(Ot,ht);Ct((tt=tt.apply(Qe,Ae)).next())}),en=({editOffice:Qe="view",data:Ae,issaver:tt,onSaver:nt,theme:zt,type:Ot,filename:ht,monacoEditor:Ct,className:De,style:ke,close:xe,onClose:se,hasMask:It,disabledDownload:_e,onImgDimensions:Ye,showNodata:Ft,recordInfo:Ce})=>{const[he,yt]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Vt,Lt]=(0,b.useState)(""),[me,qe]=(0,b.useState)(),it=window.ENV==="build"?"/react/build":"",Xt=location.host.startsWith("localhost")?ue.Z.PROXY_SERVER:ue.Z.API_SERVER,Gt=10*(1024*1024),Fe=(0,b.useRef)();Ae!=null&&Ae.startsWith("/api")&&Ot!=="txt"&&(Ae=ue.Z.API_SERVER+Ae);const dn=de=>de.substring(de.lastIndexOf("/")+1).split(".").pop();ht&&Ct&&(Ct.filename=ht),(0,b.useEffect)(()=>{var de,re;const le=(re=(de=document.cookie)==null?void 0:de.replace(/\s/g,""))==null?void 0:re.split(";");le==null||le.map(Se=>{let Ge=Se.split("=");Ge[0]==="_educoder_session"&&Lt(Ge[1])})},[]),(0,b.useEffect)(()=>{Ot==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?qe({url:Ae,fileType:dn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Ae.indexOf("coze")>-1?qe({url:Ae,fileType:"doc",model:"view"}):ae())},[Ot,Ae]);function $t(de){return kt(this,null,function*(){de.data.type==="pdfdata"&&(nt(de.data.data),window.removeEventListener("message",$t,!1)),console.log("mess---:",de.data)})}const ae=()=>kt(void 0,null,function*(){console.log("data:",Ae);let de=Ae;Ae.startsWith("http")||(de=location.origin+de);let re=new URL(de).pathname.split("/").pop();const le=yield(0,Ve.gJ)({attachment_id:re});le.url=Xt+le.url,qe(le)}),ne=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){te();return}(0,be.Sv)(ht||"educoder",Ae,ht)},te=()=>{Ce&&(0,$e.fc)({id:Ce==null?void 0:Ce.id,watch_type:1,course_id:Ce==null?void 0:Ce.course_id}),(0,be.Nd)(ht||"educoder",decodeURIComponent(Ae))};(0,b.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=de=>{var re;((re=de==null?void 0:de.data)==null?void 0:re.type)==="closePop"&&se()};return Ee.createElement("div",{style:ft({},ke||{}),className:`${It&&Me.bgBlack} ${Ot?Me.wrp:"hide"}`},!!Ot&&xe&&Ee.createElement("div",{id:"closePop",className:Me.close,ref:Fe},!!Ye&&Ee.createElement(pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},Ee.createElement("span",{onClick:()=>{se(),Ye()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!_e&&window.parent===window&&Ee.createElement(pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},Ee.createElement("span",{onClick:te},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),tt&&Ee.createElement(pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Fe.current},Ee.createElement("span",{className:"",onClick:()=>{const de=document.getElementById("pdfiframe");window.addEventListener("message",$t,!1),setTimeout(()=>{de.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},Ee.createElement("span",{className:"",onClick:()=>{se()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${Me[De]} ${De} ${Me.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(Pe.ZP,ft({},Ct)))),Ot==="audio"&&Ee.createElement("audio",{controls:!0,src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),Ot==="video"&&Ee.createElement(Ee.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Ot==="office"&&me&&Ee.createElement("iframe",{src:`${it}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${Xt+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${Qe}&officeServer=${ue.Z.ONLYOFFICE}&disabledDownload=${!!_e}`}),Ot==="html"&&Ee.createElement("iframe",{src:Ae+"&disposition=inline"}),Ot==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${it}/js/pdf/index.html?filename=${ht||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!_e}&model=${Qe}`}),Ot==="image"&&Ee.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Ot==="other"||Ot==="download")&&Ee.createElement(Ee.Fragment,null,Ft?Ee.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ce.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:_e},"\u4E0B\u8F7D")}):Ee.createElement(ce.ZP,{type:"primary",size:"middle",onClick:ne,disabled:_e},Ee.createElement(et.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ot==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ae||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},78130:function(Bn,rn,ee){"use strict";ee.d(rn,{h:function(){return st},x:function(){return Ue}});var b=ee(39116),Me=ee(42168),ce=ee(35883),et=ee(59301),Pe=Object.defineProperty,pe=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,$e=(Re,ft,kt)=>ft in Re?Pe(Re,ft,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Re[ft]=kt,Ee=(Re,ft)=>{for(var kt in ft||(ft={}))Ie.call(ft,kt)&&$e(Re,kt,ft[kt]);if(Ve)for(var kt of Ve(ft))ue.call(ft,kt)&&$e(Re,kt,ft[kt]);return Re},Rt=(Re,ft)=>pe(Re,be(ft)),ot=(Re,ft)=>{var kt={};for(var en in Re)Ie.call(Re,en)&&ft.indexOf(en)<0&&(kt[en]=Re[en]);if(Re!=null&&Ve)for(var en of Ve(Re))ft.indexOf(en)<0&&ue.call(Re,en)&&(kt[en]=Re[en]);return kt};const st=Re=>{var ft=Re,{value:kt,onChange:en,scrollId:Qe}=ft,Ae=ot(ft,["value","onChange","scrollId"]);return et.createElement("div",{id:Qe||""},et.createElement(b.Z,Rt(Ee({},Ae),{defaultValue:kt,onChange:(tt,nt)=>{nt!=null&&nt.length?en(tt,nt):en(tt)}})))},Ue=({value:Re,onChange:ft,placeholder:kt,height:en=140,isEdit:Qe,miniToolbar:Ae,watch:tt=!0})=>Qe?et.createElement(b.Z,{watch:tt,isFocus:!0,height:en||void 0,placeholder:kt,defaultValue:Re,onChange:ft,miniToolbar:Ae}):et.createElement("div",{style:{cursor:"pointer"}},Re?et.createElement(ce.Z,{className:Me.Z.inputBorder,value:Re}):et.createElement("div",{className:`${Me.Z.inputBorder} ${Me.Z.placeholder} inputBorderError`},kt))},35883:function(Bn,rn,ee){"use strict";ee.d(rn,{z:function(){return Ct},Z:function(){return De}});var b=ee(59301),Me=ee(46214),ce=ee(20047),et=ee(64018),Pe=ee(16471),pe=ee(14185),be=ee(76406),Ve=ee(15342),Ie=ee(44104),ue=ee(7939),$e=ee(1012),Ee=ee(86974),Rt=ee(59301),st=({html:ke})=>{const xe=(0,b.useRef)(null),se=(0,b.useRef)(null),It=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,b.useEffect)(()=>{const _e=xe.current.attachShadow({mode:"open"});se.current=document.createElement("div"),se.current.className="markdown-body",se.current.innerHTML=ke,_e.appendChild(se.current);const Ye=document.createElement("style");return Ye.textContent=It,_e.appendChild(Ye),()=>{_e.innerHTML=""}},[]),(0,b.useEffect)(()=>{se.current&&(se.current.innerHTML=ke)},[ke]),Rt.createElement("div",{ref:xe})};function Ue(ke){const xe=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],se=new RegExp(`\\b(${xe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),It=/]*>/gi;return ke.replace(se,"").replace(It,"").trim()}var Re={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ft=Object.defineProperty,kt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ae=(ke,xe,se)=>xe in ke?ft(ke,xe,{enumerable:!0,configurable:!0,writable:!0,value:se}):ke[xe]=se,tt=(ke,xe)=>{for(var se in xe||(xe={}))en.call(xe,se)&&Ae(ke,se,xe[se]);if(kt)for(var se of kt(xe))Qe.call(xe,se)&&Ae(ke,se,xe[se]);return ke};const nt="@\u2581\u2581@",zt="@\u2581@",Ot=/]*>/g;function ht(ke){let xe=document.createElement("div");return xe.innerHTML=ke,xe.childNodes.length===0?"":xe.childNodes[0].nodeValue}const Ct=(ke,xe)=>{ke=ke||"";const se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,It=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return xe?ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(se,(Ft,Ce,he,yt,Vt,Lt,me)=>{const qe=Ce||yt||Lt,it=he||Vt||me||"?";return pe.Z.API_SERVER+"/api/attachments/"+qe+it+"&t="+(0,be.Jn)(qe,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ke=ke.replace(Ye,(Ft,Ce,he,yt,Vt,Lt,me)=>{const qe=Ce||yt||Lt,it=he||Vt||me||"?";return pe.Z.API_SERVER+"/attachments/download/"+qe+it+"&t="+(0,be.Jn)(qe,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(se,(Ft,Ce,he,yt,Vt,Lt,me)=>{const qe=Ce||yt||Lt,it=he||Vt||me||"?";return pe.Z.API_SERVER+"/api/attachments/"+qe+it+"&t="+(0,be.Jn)(qe,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(It,(Ft,Ce,he,yt,Vt)=>{const Lt=Ce||yt,me=he||Vt||"";return'"'+pe.Z.API_SERVER+"/api/attachments/"+Lt+me+Lt+me+"&t="+(0,be.Jn)(Lt,Date.now())}).replace(_e,(Ft,Ce,he,yt,Vt)=>{const Lt=Ce||yt,me=he||Vt||"";return"("+pe.Z.API_SERVER+"/files/uploads/"+Lt+me+Lt+me+"&t="+(0,be.Jn)(Lt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),ke)};var De=({value:ke="",edit:xe=!1,className:se,showTextOnly:It,showLines:_e,style:Ye={},stylesPrev:Ft={},highlightKeywords:Ce,showProgramFill:he,isProgramFill:yt,disabledFill:Vt=!1,programFillValue:Lt,openEditor:me=()=>{},onFillChange:qe=Xe=>{},onFillBlur:it=()=>{},onFillFocus:Xt=()=>{}})=>{let Xe=Ue(String(ke||""));const Gt=(0,b.useRef)(),Fe=(0,b.useRef)(),[dn,$t]=(0,b.useState)(""),[ae,ne]=(0,b.useState)("office"),[te,ie]=(0,b.useState)([]),de=(0,b.useRef)("a"+(0,$e.Z)()),re={},le=jt=>//i.test(jt||""),Se=(jt,Cn,on)=>{const Je=document.createElement(jt===zt?"input":"textarea");Je.style.width="100%",Je.style.height=jt===zt?"40px":"151px",Je.rows=5,Je.spellcheck=!1,Je.name="edu-program-fill",Je.placeholder="\u8BF7\u8F93\u5165",Je.dataset.id=Cn;const Tt=Object.keys(re).length;return re[Tt]=Je,`${Je.outerHTML}`};function Ge(jt){return jt=jt.replace(/!\[.*?\]\(.*?\)/g,""),jt=jt.replace(/\[.*?\]\(.*?\)/g,""),jt=jt.replace(new RegExp("","gs"),""),jt=jt.replace(//g,""),jt=jt.replace(//g,""),jt=jt.replace(new RegExp(".*?<\\/video>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/audio>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/style>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/script>","gs"),""),jt}const He=jt=>!It&&le(Xe)?jt:jt.replace(/([\s\S]+?)<\/style>/gim,function(Cn,on){let Je=on.replace(/(\n|\r)/g,"").split("}"),Tt=[];return Je.map(an=>{an!=""&&Tt.push(`.${de.current} ${an}`)}),``}),Le=(0,b.useMemo)(()=>{(0,ce.Iy)();try{const Je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Tt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,an=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,_t=/\(\/attachments\/download\//g;Xe=Xe.replace(_t,"("+pe.Z.API_SERVER+"/attachments/download/").replace(Je,"("+pe.Z.API_SERVER+"/api/attachments/").replace(Tt,'"'+pe.Z.API_SERVER+"/api/attachments/").replace(an,'"'+pe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Gt.current.style.display="none"}catch(Je){}if(he){let Je=-1;return Xe=Xe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Tt,an,_t){var je;return++Je,Se(Tt,Je,(je=Lt==null?void 0:Lt[Je])==null?void 0:je.value.replaceAll("<","<").replaceAll(">",">"))}),`
${He(Xe||"")}
`}let jt=He(Xe);jt=(0,ce.ZP)(jt);const Cn=(0,ce.ez)();Xe.match(/\[TOC\]/)&&(jt=jt.replace("

[TOC]

",(0,ce.Qv)()),(0,ce.Iy)()),jt=jt.replace(/(__special_katext_id_\d+__)/g,(Je,Tt)=>{const{type:an,expression:_t}=Cn[Tt];return(0,Ve.renderToString)(ht(_t)||"",{displayMode:an==="block",throwOnError:!1,output:"html"})}),jt=jt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const on=document.createElement("div");if(on.innerHTML=jt,It)return on.innerText;if(Ce){const Je=Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ne(on,Je),on.innerHTML}return setTimeout(()=>Zt(),500),on.innerHTML},[Xe,Ce]);(0,b.useEffect)(()=>{Be.current&&Be.current.querySelectorAll(["input","textarea"]).forEach(Cn=>{Cn.oninput=rt,Cn.onblur=ut,Cn.onfocus=At})},[te]),(0,b.useEffect)(()=>{var jt,Cn,on,Je,Tt;if(Lt!=null&&Lt.length)try{const an=Be.current.querySelectorAll(".edu-program-fill-score"),_t=Be.current.querySelectorAll('[name="edu-program-fill"]');for(const[je,Pt]of _t.entries())Pt.value=((jt=Lt==null?void 0:Lt[je])==null?void 0:jt.value)||"",((Cn=Lt==null?void 0:Lt[je])==null?void 0:Cn.type)==="warning"?Pt.className="program-fill-warning":((on=Lt==null?void 0:Lt[je])==null?void 0:on.type)==="success"?Pt.className="program-fill-success":Pt.className="";for(const[je,Pt]of an.entries())Pt.innerHTML=(Je=Lt==null?void 0:Lt[je])!=null&&Je.score?`${(Tt=Lt==null?void 0:Lt[je])==null?void 0:Tt.score}\u5206`:"";ie(Lt)}catch(an){console.log(an,"error")}},[Lt]);const rt=jt=>{te[jt.target.dataset.id]=te[jt.target.dataset.id]||{},te[jt.target.dataset.id].value=jt.target.value,ie([...te]),qe(te,jt.target.dataset.id)},ut=jt=>{te[jt.target.dataset.id]=te[jt.target.dataset.id]||{},te[jt.target.dataset.id].value=jt.target.value,ie([...te]),it(te,jt.target.dataset.id)},At=jt=>{te[jt.target.dataset.id]=te[jt.target.dataset.id]||{},te[jt.target.dataset.id].value=jt.target.value,ie([...te]),Xt(te,jt.target.dataset.id)};function Ne(jt,Cn){return jt.childNodes.forEach(on=>{var Je;if(on.childNodes.length>0)Ne(on,Cn);else if(on.nodeName!=="IMG")if(on.innerHTML)on.innerHTML=(Je=on.innerHTML)==null?void 0:Je.replace(new RegExp(Cn,"gi"),'$&');else{const Tt=document.createElement("span");Tt.innerHTML=on.textContent.replace(new RegExp(Cn,"gi"),'$&'),on.replaceWith(Tt)}})}const Be=(0,b.useRef)();ce.jb.WebkitLineClamp=_e,_e&&(Ye=tt(tt({},Ye),ce.jb));function Ut(jt){let Cn=jt.target;if(Cn.tagName.toUpperCase()==="A"){let on=Cn.getAttribute("href");if(on.indexOf("office")>-1)jt.preventDefault(),$t(on),ne("office");else if(on.indexOf("application/pdf")>-1)jt.preventDefault(),$t(on),ne("pdf");else if(on.indexOf("text/html")>-1)jt.preventDefault(),$t(on),ne("html");else if(on.startsWith("#")){jt.preventDefault();let Je=document.getElementById(on.replace("#",""));Je&&Je.scrollIntoView(!0)}}}const Zt=()=>{var jt;const Cn=(jt=Be.current)==null?void 0:jt.querySelectorAll("video");Cn==null||Cn.forEach(on=>{if(on.oncontextmenu=()=>!1,on.src.indexOf(".m3u8")>-1&&!on.canPlayType("application/vnd.apple.mpegurl")){if(Pe.ZP.isSupported()){var Je=new Pe.ZP;Je.loadSource(on.src),Je.attachMedia(on)}}})};(0,b.useEffect)(()=>{if(Be.current&&Le&&Le.match(Ot)&&window.PR.prettyPrint(),Be.current)return Be.current.addEventListener("click",Ut),()=>{var jt;(jt=Be.current)==null||jt.removeEventListener("click",Ut),(0,ce.AL)(),(0,ce.Iy)()}},[Le,Be.current,Ut]);const mn=jt=>{jt.target.nodeName==="IMG"&&jt.target.className.indexOf("draw-flowchart")>-1?(Gt.current.style.zIndex=1,Gt.current.style.display="flex",Gt.current.style.width=jt.target.clientWidth+"px",Gt.current.style.height=jt.target.clientHeight+"px",Gt.current.style.top=jt.target.offsetTop+"px",Gt.current.style.left=jt.target.offsetLeft+"px",jt.target.id&&(Fe.current=jt.target.id)):Gt.current.style.display="none"},vn=()=>{Gt.current.style.display="none"};return(0,b.useEffect)(()=>{var jt;const Cn=on=>{on.preventDefault(),on.clipboardData.setData("text",window.getSelection().toString())};return(jt=Be.current)==null||jt.addEventListener("copy",Cn),()=>{var on;(on=Be.current)==null||on.removeEventListener("copy",Cn)}},[Be.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:vn},It&&b.createElement("div",{ref:Be,className:`${Re.mdBody} `},Le),!It&&!le(Le)&&b.createElement("div",{ref:Be,style:tt({},Ye),onMouseOver:mn,className:`${se||""} ${Vt?"disabled-fill":""} markdown-body ${Re.mdBody} ${de.current}`,dangerouslySetInnerHTML:{__html:Le}}),!It&&le(Le)&&b.createElement(st,{html:Le}),b.createElement("div",{ref:Gt,className:`${Re.button} ${xe?"":Re.previewFlowChart}`},b.createElement(Ie.Z,null,b.createElement(ue.ZP,{onClick:()=>{xe?me(Fe.current):($t(Fe.current),ne("flowChart"))}},xe?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(Ee.Z,{close:!0,data:dn,type:dn!=null&&dn.length?ae:"",style:tt({},Ft),onClose:()=>$t("")}))}},28267:function(Bn,rn,ee){"use strict";ee.d(rn,{h:function(){return Qe}});var b=ee(59301),Me=ee(82326),ce=ee(28284),et=ee(7939),Pe=ee(89780),pe=ee.n(Pe),be=ee(88319),Ve=ee(94896),Ie=Object.defineProperty,ue=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,st=(Ae,tt,nt)=>tt in Ae?Ie(Ae,tt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ae[tt]=nt,Ue=(Ae,tt)=>{for(var nt in tt||(tt={}))Rt.call(tt,nt)&&st(Ae,nt,tt[nt]);if(Ee)for(var nt of Ee(tt))ot.call(tt,nt)&&st(Ae,nt,tt[nt]);return Ae},Re=(Ae,tt)=>ue(Ae,$e(tt));const ft=Me.default.Option,kt={labelCol:{span:4},wrapperCol:{span:20}},en={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"]};rn.Z=({callback:Ae,onCancel:tt})=>{const[nt,zt]=(0,b.useState)("python");function Ot(Ct){zt(en[Ct][1])}function ht(Ct){Ae(Ct)}return b.createElement(ce.default,Re(Ue({},kt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ht,style:{width:500}}),b.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(Me.default,{getPopupContainer:Ct=>Ct.parentNode,onChange:Ot},Object.keys(en).map(Ct=>b.createElement(ft,{key:Ct,value:Ct},en[Ct][0])))),b.createElement(ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(Qe,{mode:nt})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(et.ZP,{type:"ghost",onClick:tt},"\u53D6\u6D88")))};function Qe({value:Ae,onChange:tt,mode:nt,options:zt={}}){const Ot=(0,b.useRef)(),[ht,Ct]=(0,b.useState)();return(0,b.useEffect)(()=>{if(ht){let De=function(ke){const xe=ke.getValue();tt&&tt(xe)};return ht.on("change",De),()=>{ht.off("change",De)}}},[ht,tt]),(0,b.useEffect)(()=>{ht&&ht.setOption("mode",nt)},[ht,nt]),(0,b.useEffect)(()=>{ht&&(Ae!==ht.getValue()||Ae==="")&&setTimeout(()=>{ht.setValue(Ae||"")},300)},[ht,Ae]),(0,b.useEffect)(()=>{if(Ot.current&&!ht){const De=pe().fromTextArea(Ot.current,Ue({mode:nt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},zt));Ct(De)}},[Ot.current,ht]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ot}))}},39116:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return St}});var b=ee(59301),Me=ee(44283),ce=ee(89780),et=ee.n(ce),Pe=ee(76374),pe=ee(88319),be=ee(6313),Ve=ee(25717),Ie=ee(99498),ue=ee(25419),$e=ee(67549),Ee=ee(35883),Rt=({value:Et="",className:sn,showTextOnly:Pn,showLines:Tn,style:Jt={}})=>{const wn=(0,b.useMemo)(()=>"",[Et]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:wn}}))},ot=Object.defineProperty,st=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,en=(Et,sn,Pn)=>sn in Et?ot(Et,sn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Et[sn]=Pn,Qe=(Et,sn)=>{for(var Pn in sn||(sn={}))ft.call(sn,Pn)&&en(Et,Pn,sn[Pn]);if(Re)for(var Pn of Re(sn))kt.call(sn,Pn)&&en(Et,Pn,sn[Pn]);return Et},Ae=(Et,sn)=>st(Et,Ue(sn));let tt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function nt({onActionCallback:Et,title:sn,icon:Pn,actionName:Tn,className:Jt="",children:wn}){function gn(){Et(Tn)}return b.createElement("a",{title:sn,className:Jt,onClick:gn},b.createElement("i",{className:`${Pn}`}),wn)}var zt=({watch:Et,showNullButton:sn,showNullProgramButton:Pn,onActionCallback:Tn,fullScreen:Jt,insertTemp:wn,hidetoolBar:gn,extraUse:Nn})=>{const An=[...tt,{title:`${Et?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Et?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!gn&&An.map((rr,Qt)=>b.createElement("li",{key:Qt},rr.actionName?b.createElement(nt,Ae(Qe({},rr),{onActionCallback:Tn})):b.createElement("span",{className:"v-line"}))),sn?b.createElement("li",null,b.createElement(nt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Pn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,wn&&b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wn}`,onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&b.createElement("li",null,Nn),b.createElement("li",{className:"btn-full-screen"},b.createElement(nt,{icon:`${Jt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},Ot=ee(88487),ht=ee(28284),Ct=ee(37568),De=ee(7939),ke=Object.defineProperty,xe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ft=(Et,sn,Pn)=>sn in Et?ke(Et,sn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Et[sn]=Pn,Ce=(Et,sn)=>{for(var Pn in sn||(sn={}))_e.call(sn,Pn)&&Ft(Et,Pn,sn[Pn]);if(It)for(var Pn of It(sn))Ye.call(sn,Pn)&&Ft(Et,Pn,sn[Pn]);return Et},he=(Et,sn)=>xe(Et,se(sn));const yt={labelCol:{span:4},wrapperCol:{span:20}};var Vt=({callback:Et,onCancel:sn})=>{function Pn(Tn){Et(Tn)}return b.createElement(ht.default,he(Ce({},yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pn,style:{width:500}}),b.createElement(ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(Ct.default,null)),b.createElement(ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(Ct.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(De.ZP,{type:"ghost",onClick:sn},"\u53D6\u6D88")))},Lt=ee(28267),me=ee(53332),qe=ee(62957),it=ee(77019),Xt=ee(40254),Xe=ee(59301),Gt=({callback:Et,onCancel:sn})=>{const Pn=document.createElement("canvas"),Tn=Pn.getContext("2d");Pn.width=1e3,Pn.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,Pn.width,Pn.height);const Jt=Pn.toDataURL("image/png");return Xe.createElement(qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(it.Z,{style:{height:"100vh"}},Xe.createElement(Xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jt,visible:!0,title:String(Date.now())},onOk:wn=>{Et({src:wn.url})},onClose:sn})))},Fe=ee(36207),dn=ee(5269),$t=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),ie=(0,b.forwardRef)(({onCancel:Et,editImgId:sn,callback:Pn},Tn)=>{let Jt=(0,b.useRef)(),wn=(0,b.useRef)(),gn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const An=(0,b.useRef)(!1);console.log("ref:",Tn);const[rr,Qt]=(0,b.useState)(0),[Yt,xn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{Qt(1)},[]),(0,b.useImperativeHandle)(Tn,()=>({setHeight:xn})),ne.createElement("div",{ref:An,className:"body-overflow-initial"},ne.createElement(Fe.Z,{width:"100vw",height:Yt,footer:null,closable:!0,placement:"bottom",open:!!rr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Vn=>{Pn({src:`/api/attachments/${Vn}`,id:Vn})})},title:ne.createElement(it.Z,{align:"middle"},ne.createElement(dn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(dn.Z,{onClick:()=>{xn(Yt==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(dn.Z,{onClick:()=>{window.saveDrawData(Vn=>{if(Vn===null){$t.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}$t.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Pn({src:`/api/attachments/${Vn}`,id:Vn,disabledClose:!0})})}},ne.createElement(De.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${sn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:wn})))}),de=ee(14185),re=ee(47889),le=ee(4875);const Se=re.ZP.Group,Ge={margin:"0 8px"};var He=({callback:Et,onCancel:sn})=>{function Pn(Tn){Et(Tn)}return b.createElement(ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Ge},"\u884C\u6570"),b.createElement(ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:Ge},"\u5217\u6570"),b.createElement(ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(le.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(ht.default.Item,{name:"align"},b.createElement(Se,null,b.createElement(re.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(re.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(re.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(re.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(De.ZP,{type:"ghost",onClick:sn},"\u53D6\u6D88")))},Le=ee(58755),rt=ee(84915),ut=ee.n(rt),Ne=(0,b.forwardRef)(({use3d:Et,width:sn,height:Pn,callback:Tn,showSaveButton:Jt},wn)=>{const gn=(0,b.useRef)(),Nn=(0,b.useRef)(),[An,rr]=(0,b.useState)(!1),Qt=(0,b.useRef)({id:gn,appName:"graphing",width:sn||1e3,height:Pn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Nn.current=new(ut())(Qt.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const Yt=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(xn),xn};return(0,b.useEffect)(()=>{Qt.current.appName=An?"3D":"graphing",Nn.current.inject("applet_container")},[An]),(0,b.useEffect)(()=>{rr(Et)},[Et]),(0,b.useImperativeHandle)(wn,()=>({getImgData:Yt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),b.createElement(it.Z,{align:"middle"},b.createElement(dn.Z,{flex:1},b.createElement(Le.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:An,onChange:xn=>rr(xn)})),b.createElement(dn.Z,null,b.createElement(De.ZP,{size:"large",onClick:Yt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Be=ee(9057);const Ut="link",Zt="upload-image",mn="add-flowchart",vn="draw-image",jt="add-flowchart",Cn="code-block",on="add-table",Je="------------",Tt={default:Je,left:`:${Je}`,center:`:${Je}:`,right:`${Je}:`};var an=ee(79006),_t=ee(76406);function je(){}let Pt=0;const Kt=1e4,nn="\u2581",On="@\u2581\u2581@",_n="@\u2581@",nr=` **\u6A21\u677F\u6807\u9898** \u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ir=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Zn(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}const kn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",cn={[kn+"-B"]:"bold",[kn+"-I"]:"italic"},bn={[Ut]:"\u6DFB\u52A0\u94FE\u63A5",[Cn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Zt]:"\u6DFB\u52A0\u56FE\u7247",[vn]:"\u6DFB\u52A0\u753B\u56FE",[mn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[on]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var St=({defaultValue:Et="",onChange:sn,width:Pn="100%",height:Tn=400,miniToolbar:Jt=!1,isFocus:wn=!1,watch:gn,insertTemp:Nn,mode:An="markdown",id:rr="markdown-editor-id",showResizeBar:Qt=!1,noStorage:Yt=!1,showNullButton:xn=!1,showNullProgramButton:Vn=!1,hidetoolBar:jn=!1,fullScreen:vt=!1,onBlur:Dt,onCMBeforeChange:Te,onFullScreen:gt,className:Ke="",disablePaste:wt=!1,disabled:Ht=!1,disabledFill:Hn=!1,placeholder:Jn="",values:lt="",extraUse:mt,onAddBlank:pt})=>{const[xt,fn]=(0,b.useState)(null),[In,pn]=(0,b.useState)(Et),[Sn,$n]=(0,b.useState)(gn),[qn,ur]=(0,b.useState)(vt),[tr,Xn]=(0,b.useState)(""),[or,dr]=(0,b.useState)(0),[br,vr]=(0,b.useState)(Tn),[Tr,Br]=(0,b.useState)(!1),[cr,Er]=(0,b.useState)(0),[Wr,Rr]=(0,b.useState)(0),Sr=(0,b.useRef)(),Fr=(0,b.useRef)(),$r=(0,b.useRef)(),wr=(0,b.useRef)(),gr=(0,b.useRef)(),yr=(0,b.useRef)(),Xr=(0,Me.useDispatch)();(0,b.useEffect)(()=>{const hn=window.scrollY||window.pageYOffset;pn(lt),xt==null||xt.setValue(lt),window.scrollTo(0,hn)},[lt]),(0,b.useEffect)(()=>{gt==null||gt(qn)},[qn]),(0,b.useEffect)(()=>{if(Sr.current){let hn=function(Gn,lr){var sr;if(wt){lr.preventDefault();return}const pr=lr.clipboardData;if(pr){const mr=pr.types.toString(),kr=pr.items;if(mr==="Files"||pr.types.indexOf("Files")>-1){if(lr.preventDefault(),An=="stex")return;try{let xr=kr[1];((sr=kr[0])==null?void 0:sr.kind)==="file"&&(xr=kr[0]);const Gr=xr.getAsFile(),Or=Gr.name.split(".").pop();(0,me.I)(Gr,Dr=>{var Ar,_r,fo;Dr.id?((Ar=Gr==null?void 0:Gr.type)==null?void 0:Ar.indexOf("image"))>-1?Ln.replaceSelection(``):((_r=Gr==null?void 0:Gr.type)==null?void 0:_r.indexOf("video"))>-1?Ln.replaceSelection(``):((fo=Gr==null?void 0:Gr.type)==null?void 0:fo.indexOf("pdf"))>-1?Ln.replaceSelection(`${Gr.name}`):ir.includes(Or)?Ln.replaceSelection(`${Gr.name}`):Ln.replaceSelection(`[${Gr.name}](/api/attachments/${Dr.id}?type=${Dr.content_type})`):(Dr==null?void 0:Dr.status)===401&&(document.location.href="/user/login")})}catch(xr){$t.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ln=et().fromTextArea(Sr.current,{mode:An,lineNumbers:!Jt,lineWrapping:!0,value:Et,autoCloseTags:!0,autoCloseBrackets:!0});return Ln.on("keyup",function(Gn,lr){lr.keyCode===8&&(Gn.getValue()==""?Ln.setOption("placeholder",Jn):Ln.setOption("placeholder",null))}),Ln.on("keydown",function(Gn,lr){if(lr.keyCode===8){var sr=So(Gn);sr&&lr.preventDefault()}}),wn&&Ln.focus(),Ln.on("paste",hn),Ht&&Ln.on("beforeChange",function(Gn,lr){(lr.origin==="paste"||lr.origin==="+input")&&lr.cancel()}),fn(Ln),()=>{Ln.off("paste",hn)}}},[]);const go=(0,b.useCallback)(()=>{if(Fr.current)try{}catch(hn){console.log(hn,"---- to set md editor body height")}},[br,Fr,qn]);(0,b.useEffect)(()=>{function hn(){let Ln=new Pe.Z(Gn=>{for(let lr of Gn)(lr.target.offsetHeight>0||lr.target.offsetWidth>0)&&(go(),xt.setSize("100%","100%"),xt.refresh())});return Ln.observe(Sr.current.parentElement),Ln}if(xt){const Ln=hn();return()=>{var Gn,lr;(Gn=Sr.current)!=null&&Gn.parentElement&&Ln.unobserve((lr=Sr.current)==null?void 0:lr.parentElement)}}},[xt,go]),(0,b.useEffect)(()=>{if(xt){let hn=[];for(const[Ln,Gn]of Object.entries(cn)){let lr={[Ln]:()=>{to(Gn)}};hn.push(lr),xt.addKeyMap(lr)}return()=>{for(let Ln of hn)xt.removeKeyMap(Ln)}}},[xt]),(0,b.useEffect)(()=>{vt!==qn&&ur(vt)},[vt]),(0,an.Z)(()=>{if(!Yt&&or>0){let hn=new Date().getTime(),Ln=window.sessionStorage.getItem(rr);hn>=or+Kt&&(!Ln||Ln!==In)&&(window.sessionStorage.setItem(rr,In),Br(!0))}},Kt),(0,b.useEffect)(()=>{$n(gn)},[xt,gn]),(0,b.useEffect)(()=>{xt&&wn&&xt.focus()},[xt,wn]),(0,b.useEffect)(()=>{if(Sn&&xt){let hn=function(Gn){let lr=Gn.target;if(wr.current){let sr=lr.scrollTop/lr.scrollHeight;wr.current.scrollTop=wr.current.scrollHeight*sr}};const Ln=xt.getScrollerElement();return Ln.addEventListener("scroll",hn),()=>{Ln.removeEventListener("scroll",hn)}}},[xt,Sn]),(0,b.useEffect)(()=>{if(xt&&Te){let hn=function(Ln,Gn){Te(Ln,Gn)};return xt.on("beforeChange",hn),()=>{xt.off("beforeChange",hn)}}},[xt,Te]),(0,b.useEffect)(()=>{if(xt&&Dt){let hn=function(){Dt(xt.getValue())};return xt.on("blur",hn),()=>{xt.off("blur",hn)}}},[xt,Dt]);function So(hn,Ln){var Gn=hn.getDoc(),lr=Gn.getCursor(),sr=Gn.getLine(lr.line),pr=sr.charAt(lr.ch-1),mr=sr.lastIndexOf("@\u2581@",lr.ch),kr=sr.lastIndexOf("@\u2581\u2581@",lr.ch),xr=mr>kr?mr:kr,Gr=mr>kr?3:4;if(On.indexOf(pr)===-1)return null;if(console.log("change1:",Ln,hn,sr,lr,xr,mr,kr,pr),xr>=0&&lr.ch-xr<5){var Or=xr+Gr;return Gn.replaceRange("",{line:lr.line,ch:xr},{line:lr.line,ch:Or}),{line:lr.line,ch:Or}}return null}(0,b.useEffect)(()=>{if(xt){let hn=function(Ln,Gn){const lr=Ln.getValue();pn(lr),dr(new Date().getTime()),Ln.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),sn&&(Vn?sn(lr,Mt(lr)):sn(lr))};return xt.on("change",hn),()=>{xt.off("change",hn)}}},[xt,sn]),(0,b.useEffect)(()=>{if(xt)if(Et==null)xt.setValue(""),pn("");else{const hn=window.scrollY||window.pageYOffset;Et!==xt.getValue()&&(xt.setValue(Et),pn(Et),xt.setCursor(Ht?1:xt.lineCount(),0),window.scrollTo(0,hn))}},[xt,Et]);const to=(0,b.useCallback)(hn=>{const Ln=xt.getCursor(),Gn=xt.getSelection();let lr=Gn.split(` `);switch(hn){case"bold":return xt.replaceSelection("**"+Gn+"**"),Gn===""&&xt.setCursor(Ln.line,Ln.ch+2),xt.focus();case"italic":return xt.replaceSelection("*"+Gn+"*"),Gn===""&&xt.setCursor(Ln.line,Ln.ch+1),xt.focus();case"code":return xt.replaceSelection("`"+Gn+"`"),Gn===""&&xt.setCursor(Ln.line,Ln.ch+1),xt.focus();case"inline-latex":return(0,_t.Ye)(Xr)?void 0:(Xn("inline-latex"),xt.focus());case"latex":return xt.replaceSelection("```latex\n"+Gn+"\n```"),xt.setCursor(Ln.line+1,Gn.length+1),xt.focus();case"line-break":return xt.replaceSelection(`
`),xt.focus();case"list-ul":return Gn===""?xt.replaceSelection("- "+Gn):xt.replaceSelection(lr.map(sr=>sr===""?"":`- ${sr}`).join(` `)),xt.focus();case"list-ol":return Gn===""?xt.replaceSelection("1. "+Gn):xt.replaceSelection(lr.map((sr,pr)=>sr===""?"":`${pr+1}. ${sr}`).join(` `)),xt.focus();case"add-null-ch":pt==null||pt();return;case"add-signal":return Gn===""&&xt.setCursor(Ln.line,Ln.ch),xt.replaceSelection(_n),xt.focus();case"add-multiple":return Gn===""&&xt.setCursor(Ln.line,Ln.ch),xt.replaceSelection(On),xt.focus();case"inster-template-1":return Gn===""&&xt.setCursor(Ln.line,Ln.ch),xt.replaceSelection(nr),xt.focus();case"eraser":return xt.setValue(""),xt.focus();case"trigger-watch":return $n(!Sn),xt.focus();case"trigger-full-screen":return ur(!qn),xt.focus();case Ut:Xn(Ut);return;case Cn:Xn(Cn);return;case Zt:Xn(Zt);return;case vn:Xn(vn);return;case"maths-latex":if((0,_t.Ye)(Xr))return;Xn("maths-latex");return;case mn:gr.current="",sessionStorage.removeItem("file_id"),Xn(mn);return;case on:Xn(on);return;default:throw new Error}},[xt,Sn,qn]),io=(0,b.useCallback)((hn,Ln)=>{var Gn,lr,sr,pr,mr,kr;hn!=null&&hn.disabledClose||Xn("");const{src:xr,alt:Gr,id:Or}=hn||{};switch(tr){case Ut:const{title:ko,link:Io}=hn;return xt.replaceSelection(`[${ko}](${Io})`),xt.focus();case Cn:const{language:Vo,content:Qr}=hn;return xt.replaceSelection(["```"+Vo,Qr,"```"].join(` `)),xt.focus();case"maths-latex":for(var Dr=atob(hn),Ar=new Uint8Array(Dr.length),_r=0;_r{Ai.id?xt.replaceSelection(`![,](/api/attachments/${Ai.id}?type=${Ai.content_type})`):(Ai==null?void 0:Ai.status)===401&&(document.location.href="/user/login")}),xt.focus();case"inline-latex":return(0,_t.Ye)(Xr)?void 0:(xt.replaceSelection("`$$"+hn+"$$`"),xt.focus());case jt:return Or?(xt.getValue().indexOf(xr)===-1?xt.replaceSelection(`
${Gr||
`):document.getElementById(Or).src=de.Z.API_SERVER+xr+"?t="+Date.now(),xt.focus()):void 0;case Zt:case vn:const Vr=Ln,_o=(sr=(lr=(Gn=Vr==null?void 0:Vr.name)==null?void 0:Gn.split("."))==null?void 0:lr.pop)==null?void 0:sr.call(lr);return((pr=Vr==null?void 0:Vr.type)==null?void 0:pr.indexOf("image"))>-1||!(Vr!=null&&Vr.type)?Vr!=null&&Vr.align||Vr!=null&&Vr.width?xt.replaceSelection(`

${Gr||

`):xt.replaceSelection(`${Gr||`):((mr=Vr==null?void 0:Vr.type)==null?void 0:mr.indexOf("video"))>-1?xt.replaceSelection(``):((kr=Vr==null?void 0:Vr.type)==null?void 0:kr.indexOf("pdf"))>-1?xt.replaceSelection(`${Vr.name}`):ir.includes(_o)?xt.replaceSelection(`${Vr.name}`):xt.replaceSelection(`[${Vr.name}](${xr})`),xt.focus();case on:const{row:Uo,col:ni,align:Zi}=hn;let Si=` `;for(let Ai=0;Ai{switch(tr){case Ut:return b.createElement(Vt,{callback:io,onCancel:We});case Cn:return b.createElement(Lt.Z,{callback:io,onCancel:We});case Zt:return b.createElement(me.Z,{callback:io,onCancel:We});case mn:return b.createElement(ie,{editImgId:gr.current,callback:io,onCancel:We});case on:return b.createElement(He,{callback:io,onCancel:We});case"maths-latex":return b.createElement(Ne,{showSaveButton:!0,callback:io});case"inline-latex":return b.createElement(Be.Z,{showSaveButton:!0,callback:io});default:return null}},[tr]);function We(){Xn("")}(0,b.useEffect)(()=>{if($r.current){let hn=function(mr){sr=!0,pr=mr.pageY},Ln=function(){sr=!1},Gn=function(mr){if(sr){let kr=mr.pageY-pr;kr<0&&(kr=0),kr>300&&(kr=300);let xr=Tn+kr+"px";vr(xr)}},lr=$r.current,sr=!1,pr=0;return lr.addEventListener("mousedown",hn),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",Ln),()=>{lr.removeEventListener("mousedown",hn),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",Ln)}}},[xt,$r]),(0,b.useEffect)(()=>{vr(Tn)},[Tn]);const bt=Zn(Pn),Ze=Zn(br),dt={width:bt,height:Ze},at=(0,b.useMemo)(()=>{if(or){let hn=new Date(or),Ln=hn.getHours(),Gn=hn.getMinutes(),lr=hn.getSeconds();return Ln=Ln<10?"0"+Ln:Ln,Gn=Gn<10?"0"+Gn:Gn,lr=lr<10?"0"+lr:lr,`${Ln}:${Gn}:${lr}`}return 0},[or]),Mt=hn=>{const Ln=[];if(Vn){let Gn=-1;hn=hn.replace(/(@▁▁@|@▁@)/g,function(lr,sr,pr){Ln.push({multiLine:lr!==_n})})}return Ln};function Bt(){window.sessionStorage.removeItem(rr),Br(!1),dr(0)}function Wt(){Br(!1),dr(0),xt.setValue(window.sessionStorage.getItem(rr))}(0,b.useEffect)(()=>{bn[tr]&&tr!==vn&&tr!==mn&&setTimeout(()=>{const hn=document.getElementsByClassName("markdown-popup-form")[0],Ln=window.innerWidth/2-hn.offsetWidth/2,Gn=window.innerHeight/2-hn.offsetHeight/2;Er(Ln),Rr(Gn)},0)},[tr]);const En=hn=>{hn.preventDefault();const Ln=hn.clientX-cr,Gn=hn.clientY-Wr;document.body.onmousemove=lr=>{let sr=lr.clientX-Ln,pr=lr.clientY-Gn;const mr=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth-mr.offsetWidth,xr=window.innerHeight-mr.offsetHeight;sr=Math.max(0,Math.min(sr,kr)),pr=Math.max(0,Math.min(pr,xr)),Rn(lr.clientX,lr.clientY,Ln,Gn)&&(Er(sr),Rr(pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Rn=(hn,Ln,Gn,lr)=>{const sr=document.body.clientHeight,pr=document.body.clientWidth;return hn<20&&Gn>hn||hn>pr-20&&GnLn||Ln>sr-20&&lr{var Ln;gr.current=hn,(Ln=yr.current)==null||Ln.setHeight("100vh"),setTimeout(()=>{Xn("add-flowchart")},150)}})):null))),Qt?b.createElement("a",{ref:$r,className:"editor-resize"}):null,tr===vn&&b.createElement(Gt,{callback:io,onCancel:We}),tr===mn&&b.createElement(ie,{ref:yr,editImgId:gr.current,callback:io,onCancel:We}),b.createElement(Ot.Z,null,bn[tr]&&tr!==vn&&tr!==mn?b.createElement(qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:cr,top:Wr},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:En},bn[tr]),open:!0,onCancel:We,footer:null,destroyOnClose:!0,width:tr===mn?"1200px":null,height:tr===mn?"80vh":null,className:"markdown-popup-form"},Oe):null))}},53332:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return tt},I:function(){return zt}});var b=ee(28284),Me=ee(6767),ce=ee(37568),et=ee(44104),Pe=ee(4875),pe=ee(47889),be=ee(7939),Ve=ee(23216),Ie=ee(59301),ue=ee(59301),$e=Object.defineProperty,Ee=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Re=(Ot,ht,Ct)=>ht in Ot?$e(Ot,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Ot[ht]=Ct,ft=(Ot,ht)=>{for(var Ct in ht||(ht={}))st.call(ht,Ct)&&Re(Ot,Ct,ht[Ct]);if(ot)for(var Ct of ot(ht))Ue.call(ht,Ct)&&Re(Ot,Ct,ht[Ct]);return Ot},kt=(Ot,ht)=>Ee(Ot,Rt(ht));const{useForm:en}=b.default,Qe={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var tt=({callback:Ot,onCancel:ht})=>{const[Ct]=en();let De=(0,Ie.useRef)();function ke(It){De.current.width=Ct.getFieldValue("width"),De.current.align=Ct.getFieldValue("align"),Ot(It,De.current)}function xe(It,_e){if(It.status===-1){Me.ZP.error(It.message);return}Ct.setFieldsValue({src:`/api/attachments/${It.id}`,type:_e.type})}function se(It){let _e=It.target.files[0];De.current=_e,zt(_e,xe)}return ue.createElement(b.default,kt(ft({form:Ct},Ae),{className:"upload-image-panel",onFinish:ke,style:{width:470,overflow:"hidden"}}),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ue.createElement("div",{className:"flex-container"},ue.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ue.createElement(ce.default,{style:Qe})),ue.createElement(nt,{onFileChange:se}))),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ue.createElement(ce.default,{style:{width:264}})),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ue.createElement(et.Z,null,ue.createElement(b.default.Item,{name:"width",style:{margin:0}},ue.createElement(Pe.Z,{style:{width:264}})),ue.createElement("span",{className:"ml8"},"%"))),ue.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ue.createElement(pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ue.createElement("aside",null,ue.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ue.createElement(be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(be.ZP,{type:"default",onClick:ht},"\u53D6\u6D88"))))};function nt({onFileChange:Ot}){return ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ue.createElement("input",{type:"file",onChange:Ot}))}function zt(Ot,ht){if(!Ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ct=new FormData;Ct.append("editormd-image-file",Ot),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(ke){ht(JSON.parse(ke.target.responseText),Ot)},!1),De.addEventListener("error",function(ke){console.error(ke)},!1),De.open("POST",`${Ve.KI}/api/attachments.json`),De.send(Ct)}},88487:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return ce}});var b=ee(59301),Me=ee(4676);class ce extends b.Component{constructor(Pe){super(Pe);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:Pe}=this.props;return(0,Me.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Bn,rn,ee){"use strict";ee.d(rn,{SV:function(){return Gt},ZP:function(){return Xe}});var b=ee(59301),Me=ee(76374);const ce={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},et={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Pe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std",content:["using namespace std"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},pe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},be={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ve=ee(53184),Ie=ee.n(Ve),ue=(Fe,dn,$t)=>new Promise((ae,ne)=>{var te=re=>{try{de($t.next(re))}catch(le){ne(le)}},ie=re=>{try{de($t.throw(re))}catch(le){ne(le)}},de=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);de(($t=$t.apply(Fe,dn)).next())});const $e={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ee=(Fe,dn,$t,ae)=>{const ne=dn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:$t.lineNumber,endColumn:$t.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:Fe.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},Rt=(Fe,dn,$t,ae)=>{Fe.languages.registerCompletionItemProvider(dn,{provideCompletionItems(ne,te){const ie=ne.getWordUntilPosition(te),de={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},re=ne.getLineContent(te.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...Ee(Fe,ne,te,de),...$t.map(Se=>({label:Se,kind:Fe.languages.CompletionItemKind.Keyword,documentation:Se,insertText:Se,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de})),...ae.map(Se=>({label:Se.label,kind:Fe.languages.CompletionItemKind.Snippet,documentation:Se.content,insertText:re.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}))]}}})};var ot=Fe=>{$e.languages.forEach(dn=>{Fe.languages.registerDocumentFormattingEditProvider(dn,{provideDocumentFormattingEdits($t){return ue(this,null,function*(){const ae=Ie()($t.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:$t.getFullModelRange(),text:ae}]})}})}),Rt(Fe,"java",et.keywords,et.quickKey),Rt(Fe,"cpp",Pe.keywords,Pe.quickKey),Rt(Fe,"c",ce.keywords,[]),Rt(Fe,"python",pe.keywords,pe.quickKey),Rt(Fe,"scala",be.keywords,be.quickKey)};const st="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ue=Object.defineProperty,Re=(Fe,dn,$t)=>dn in Fe?Ue(Fe,dn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Fe[dn]=$t,ft=(Fe,dn,$t)=>Re(Fe,typeof dn!="symbol"?dn+"":dn,$t);const kt=class Yc{constructor(dn,$t,ae){this.placeholder=dn,this.editor=$t,this.monaco=ae,$t.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Yc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ft(kt,"ID","editor.widget.placeholderHint");var Qe=kt,Ae=ee(96236),tt=ee(6767),nt=ee(25399),zt=ee(78267),Ot=ee(33156),ht=ee(56102),Ct=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,_e=(Fe,dn,$t)=>dn in Fe?Ct(Fe,dn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Fe[dn]=$t,Ye=(Fe,dn)=>{for(var $t in dn||(dn={}))se.call(dn,$t)&&_e(Fe,$t,dn[$t]);if(xe)for(var $t of xe(dn))It.call(dn,$t)&&_e(Fe,$t,dn[$t]);return Fe},Ft=(Fe,dn)=>De(Fe,ke(dn)),Ce=(Fe,dn)=>{var $t={};for(var ae in Fe)se.call(Fe,ae)&&dn.indexOf(ae)<0&&($t[ae]=Fe[ae]);if(Fe!=null&&xe)for(var ae of xe(Fe))dn.indexOf(ae)<0&&It.call(Fe,ae)&&($t[ae]=Fe[ae]);return $t},he=(Fe,dn,$t)=>new Promise((ae,ne)=>{var te=re=>{try{de($t.next(re))}catch(le){ne(le)}},ie=re=>{try{de($t.throw(re))}catch(le){ne(le)}},de=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);de(($t=$t.apply(Fe,dn)).next())});function yt(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}function Vt(){}let Lt=!1;const me={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function qe(Fe=[]){let dn=Fe;if(Array.isArray(Fe)){for(let $t=0;$the(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Fe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Fe)}});var Xe=Fe=>{var dn=Fe,{width:$t="100%",height:ae="100%",value:ne,language:te="javascript",style:ie={},options:de={},overrideServices:re={},theme:le="vs-dark",onEditBlur:Se,isCopy:Ge=!1,onSave:He,autoHeight:Le=!1,forbidCopy:rt=!1,forbidCopyTips:ut,onChange:At=Vt,editorDidMount:Ne=Vt,onFocus:Be=Vt,onBreakPoint:Ut=Vt,breakPointValue:Zt=[],filename:mn="educoder.txt",errorLine:vn,errorContent:jt="",highlightLine:Cn,openBreakPoint:on=!1,placeholder:Je="",showMiniMap:Tt=!0}=dn,an=Ce(dn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const _t=(0,b.useRef)(),je=(0,b.useRef)({}),Pt=(0,b.useRef)(),Kt=(0,b.useRef)(),nn=(0,b.useRef)([]),On=(0,b.useRef)(!1),_n=(0,b.useRef)(),nr=(0,b.useRef)(),ir=(0,b.useRef)(!1),[Zn,er]=(0,b.useState)(!1);function kn(){let Yt;return _t.current&&(Yt=new Me.Z(xn=>{for(let Vn of xn)(Vn.target.offsetHeight>0||Vn.target.offsetWidth>0)&&je.current.instance.layout()}),Yt.observe(_t.current)),Yt}function cn(){tt.ZP.warning({content:decodeURIComponent(ut||st),key:"monaco-editor-tip"})}const bn=()=>{let Yt=je.current.instance;if(ne!=null&&Yt&&Zn){const xn=Yt.getModel();xn&&ne!==xn.getValue()&&(Lt=!0,xn.setValue(ne),Yt.layout(),Lt=!1)}};(0,b.useEffect)(()=>{const Yt=Ot.Z.subscribe("formatDocument",xn=>{var Vn;let jn=je.current.instance;(Vn=jn==null?void 0:jn.getAction)==null||Vn.call(jn,"editor.action.formatDocument").run()});return window.updateMonacoValue=xn=>{At(xn)},Yt},[]),(0,b.useEffect)(()=>{var Yt;let xn=je.current.instance;Kt.current&&clearTimeout(Kt.current),Kt.current=setTimeout(()=>{bn()},500),ne&&(ne!=null&&ne.length)&&((Yt=xn==null?void 0:xn.updateOptions)==null||Yt.call(xn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,Zn,je.current]),(0,b.useEffect)(()=>{if(vn&&je.current&&je.current.instance){let xn=je.current.instance;xn.changeViewZones(function(Vn){var jn=document.createElement("div");jn.style.padding="10px 20px",jn.style.width="calc(100% - 20px)",jn.className="my-error-line-wrp",jn.innerHTML=jt,Vn.addZone({afterLineNumber:vn||11,heightInLines:3,domNode:jn})});var Yt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};xn.addOverlayWidget(Yt),xn.revealPositionInCenter({lineNumber:20,column:1})}},[vn,je.current,Zn]);const St=(Yt="",xn)=>{if(!Yt||Yt.trim()==="")return!0;const jn=je.current.instance.getModel().getLineTokens(xn);let vt=!1;for(let Dt=0;Dt<2;Dt++)jn.getStandardTokenType(Dt)===1&&(vt=!0);return vt};(0,b.useEffect)(()=>{var Yt;const xn=(Yt=je.current)==null?void 0:Yt.instance;if(xn&&Zn&&rt){const Vn=xn.onDidBlurEditorWidget(()=>{ir.current=!1}),jn=xn.onDidFocusEditorText(()=>{ir.current=!0});return()=>{Vn.dispose(),jn.dispose()}}},[je.current,Zn,rt]),(0,b.useEffect)(()=>{var Yt;if((Yt=je.current)!=null&&Yt.instance&&Zn&&on){let xn=je.current.instance,Vn=xn.getModel();if(!Vn)return;(()=>{var mt;let pt=[],xt=[];const fn=Vn.getAllDecorations();for(let pn of fn)pn.options.className==="highlighted-line"&&(pt.push((mt=pn==null?void 0:pn.range)==null?void 0:mt.startLineNumber),xt.push(pn==null?void 0:pn.id));if(Cn===pt[0])return;Vn.deltaDecorations(xt,[]);const In=Vn.getLineCount();Cn&&Cn<=In&&(xn.deltaDecorations([],[{range:new it.Range(Cn,1,Cn,Vn.getLineMaxColumn(Cn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),xn.revealLineInCenter(Cn))})();const vt=(mt=!1)=>{var pt;let xt=[],fn=[];const In=Vn.getAllDecorations();for(let pn of In)pn.options.linesDecorationsClassName==="breakpoints-select"&&(xt.push((pt=pn==null?void 0:pn.range)==null?void 0:pt.startLineNumber),fn.push(pn==null?void 0:pn.id));if(mt)return{lines:xt,ids:fn};Ut(xt)},Dt=mt=>he(void 0,null,function*(){let pt={range:new it.Range(mt,1,mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Vn.deltaDecorations([],[pt]),vt()}),Te=mt=>he(void 0,null,function*(){let pt=[];const xt=xn.getLineDecorations(mt);for(let fn of xt)fn.options.linesDecorationsClassName==="breakpoints-select"&&pt.push(fn.id);yield Vn.deltaDecorations(pt,[]),vt()}),gt=mt=>{let pt=xn.getLineDecorations(mt);for(let xt of pt)if(xt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,zt.isEqual)(Zt,vt(!0).lines)){Vn.deltaDecorations(vt(!0).ids,[]);const mt=Zt.map(pt=>({range:new it.Range(pt,1,pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Vn.deltaDecorations([],mt)}const Ke=xn.onDidChangeModelContent(mt=>{let pt=xn.getPosition();if(pt){let xt=pt.lineNumber;clearTimeout(nr.current),nr.current=setTimeout(()=>{St(Vn.getLineContent(xt),xt)?Te(xt):gt(xt)?(Te(xt),Dt(xt)):vt()},100)}}),wt=xn.onMouseDown(mt=>{var pt,xt,fn;if(mt.target.detail&&((fn=(xt=(pt=mt.target)==null?void 0:pt.element)==null?void 0:xt.className)!=null&&fn.includes("line-numbers"))){let In=mt.target.position.lineNumber;if(St(Vn.getLineContent(In),In))return;gt(In)?Te(In):Dt(In)}}),Ht=mt=>{let pt={range:new it.Range(mt,1,mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nn.current=xn.deltaDecorations(nn.current,[pt])},Hn=()=>{nn.current=xn.deltaDecorations(nn.current,[])},Jn=xn.onMouseMove(mt=>{var pt,xt,fn;if(Hn(),mt.target.detail&&((fn=(xt=(pt=mt.target)==null?void 0:pt.element)==null?void 0:xt.className)!=null&&fn.includes("line-numbers"))){let In=mt.target.position.lineNumber;if(St(Vn.getLineContent(In),In))return;Ht(In)}}),lt=xn.onMouseLeave(()=>{Hn()});return()=>{Ke.dispose(),wt.dispose(),Jn.dispose(),lt.dispose()}}},[je.current,Zn,Zt,Cn,on,te]),(0,b.useEffect)(()=>{var Yt;(Yt=je.current)!=null&&Yt.instance&&on&&je.current.instance.setPosition({lineNumber:0,column:0})},[Cn]);function Et(){let Yt=je.current.instance;if(Yt){const xn=Yt.getSelection(),Vn=je.current.pastePos||{},jn=new it.Range(Vn.startLineNumber||xn.endLineNumber,Vn.startColumn||xn.endColumn,Vn.endLineNumber||xn.endLineNumber,Vn.endColumn||xn.endColumn);setTimeout(()=>{Yt.executeEdits("",[{range:jn,text:""}])},300)}}function sn(Yt){(window.navigator.platform.match("Mac")?Yt.metaKey:Yt.ctrlKey)&&Yt.keyCode==83&&(Yt.preventDefault(),He())}const Pn=()=>{if(Le&&je.current.instance){const Yt=je.current.instance.getContentHeight();rr(Yt{if(!ir.current)return;const{keyCode:xn,ctrlKey:Vn,metaKey:jn,target:vt,type:Dt}=Yt;return(Dt==="paste"||(xn===67||xn===86)&&(jn||Vn))&&vt.nodeName==="TEXTAREA"&&(cn(),Yt.preventDefault()),!1};function wn(Yt,xn){var Vn=window.URL||window.webkitURL||window,jn=new Blob([xn]),vt=document.createElementNS("http://www.w3.org/1999/xhtml","a");vt.href=Vn.createObjectURL(jn),vt.download=Yt,Tn(vt)}(0,b.useEffect)(()=>{Pn()},[Pn]),(0,b.useEffect)(()=>{_t.current&&!Zn&&Promise.all([ee.e(8909),ee.e(5977)]).then(ee.bind(ee,71448)).then(Yt=>{try{it=Yt,je.current.instance=it.editor.create(_t.current,{value:ne,language:qe(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Tt||!1}},re);const xn=je.current.instance;let vt=[...Ae.BH._menuItems].find(Ke=>Ke[0]._debugName=="EditorContext")[1],Dt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Te=(Ke,wt)=>{var Ht,Hn;let Jn=Ke._first;do wt.includes((Hn=(Ht=Jn.element)==null?void 0:Ht.command)==null?void 0:Hn.id)&&Ke._remove(Jn);while(Jn=Jn.next)};if(Ne(xn,it),setTimeout(()=>{Pn(),je.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{wn(mn||"educoder.txt",xn.getValue())}})},500),je.current.subscription=xn.onDidChangeModelContent(Ke=>{On.current?clearTimeout(_n.current):(Pn(),At(xn.getValue(),Ke)),_n.current=setTimeout(()=>{On.current=!1},500)}),window.Monaco||ot(it,qe(te)),rt&&(Te(vt,Dt),_t.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Jt),window.removeEventListener("paste",Jt),window.addEventListener("keydown",Jt),window.addEventListener("paste",Jt)),window.Monaco=it,Se&&xn.onDidBlurEditorWidget(()=>{Se(xn.getValue())}),Be&&xn.onDidFocusEditorText(()=>{rt&&Xt(),Be(xn.getValue())}),rt){Xt();try{xn.onDidPaste(Ke=>{const wt=xn.getSelection(),Ht=je.current.pastePos||{},Hn=new it.Range(Ht.startLineNumber||wt.endLineNumber,Ht.startColumn||wt.endColumn,Ht.endLineNumber||wt.endLineNumber,Ht.endColumn||wt.endColumn);xn.executeEdits("",[{range:Ke.range,text:""}])})}catch(Ke){}}let gt=kn();return Je&&typeof Je=="string"&&new Qe(Je,xn,it),er(!0),()=>{const Ke=je.current.instance;Ke.dispose();const wt=Ke.getModel();wt&&wt.dispose(),je.current.subscription&&je.current.subscription.dispose(),gt.unobserve(_t.current)}}catch(xn){}})},[]),(0,b.useEffect)(()=>{if(je.current.instance&&Zn)return document.addEventListener("keydown",sn,!1),()=>{document.removeEventListener("keydown",sn)}},[He,Zn]),(0,b.useEffect)(()=>{let Yt=je.current.instance;if(Yt&&Zn){let xn=qe(te);it.editor.setModelLanguage(Yt.getModel(),xn)}},[te,Zn]),(0,b.useEffect)(()=>{je.current.instance&&Zn&&it.editor.setTheme(le)},[le,Zn]),(0,b.useEffect)(()=>{let Yt=je.current.instance;Pt.current=de,Yt&&Zn&&(Yt.updateOptions(Ye({},de)),setTimeout(()=>{Yt.getModel().updateOptions(Ye({},de))},200))},[JSON.stringify(de),Zn]),(0,b.useEffect)(()=>{let Yt=je.current.instance;Yt&&Zn&&Yt.layout()},[$t,ae,Zn]);const[gn,Nn]=(0,b.useState)(yt($t)),[An,rr]=(0,b.useState)(yt(ae)),Qt=Ft(Ye({},ie),{width:gn,height:An,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:_t,style:Qt,onFocus:()=>{rt&&Xt()}},Ge&&b.createElement(ht.CopyToClipboard,{text:ne,onCopy:()=>tt.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(nt.Z,{title:"\u590D\u5236\u4EE3\u7801"},b.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},b.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Gt({width:Fe="100%",height:dn="100%",original:$t,modified:ae,language:ne,options:te={}}){const ie=(0,b.useRef)(),[de,re]=(0,b.useState)(null);function le(Le){let rt;return ie.current&&(rt=new Me.Z(ut=>{for(let At of ut)(At.target.offsetHeight>0||At.target.offsetWidth>0)&&Le.layout()}),rt.observe(ie.current)),rt}(0,b.useEffect)(()=>(ie.current&&Promise.all([ee.e(8909),ee.e(9404)]).then(ee.bind(ee,2550)).then(Le=>{it=Le;const rt=it.editor.createDiffEditor(ie.current,Ft(Ye({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},te),{wordWrap:!0}));re(rt);let ut=le(rt);return()=>{rt.dispose();const At=rt.getModel();At&&At.dispose(),ut.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{de&&de.setModel({original:it.editor.createModel($t,ne),modified:it.editor.createModel(ae,ne)})},[$t,ae,ne,de]);const Se=yt(Fe),Ge=yt(dn),He={width:Se,height:Ge};return b.createElement("div",{className:"my-diff-editor",ref:ie,style:He})}},54077:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return $e}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Me=ee(29787),ce=ee(25399),et=ee(89787),Pe=ee(92310),pe=ee.n(Pe),be=ee(76406),Ve=ee(90736),Ie=ee(59301),$e=({className:Ee,dataSource:Rt=[],col:ot=4,right:st,bottom:Ue=23,precision:Re=0,wrapWidth:ft=1200,trackEventItems:kt,loading:en,onRemove:Qe=()=>{},isCurrent:Ae=!0,showProgress:tt=!1,showAlias:nt=!1,category:zt="notDisplay",hiddenClick:Ot=()=>{}})=>{const ht=Math.floor((ft-(ot-1)*st)/ot),Ct=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(Me.Z,{spinning:en},Ie.createElement("div",{className:pe()(b.list,Ee)},!!(Rt!=null&&Rt.length)&&(Rt==null?void 0:Rt.map((De,ke)=>{var xe,se,It,_e,Ye,Ft,Ce;const{name:he,id:yt,identifier:Vt,featured:Lt,school_name:me,image_url:qe,excellent:it,is_plan:Xt}=De;return Ie.createElement("div",{key:yt,className:Ae&&tt?b.wrapisCurrent:b.wrap,style:{width:ht,marginRight:(1+ke)%ot===0?0:st+Re,marginBottom:Ue}},Ie.createElement("a",{className:b.li,onClick:Xe=>{Xe.preventDefault(),Xe.stopPropagation(),kt&&(0,be.L9)([kt]),(0,be.xg)(`/paths/${Vt}`)}},Ie.createElement("div",{className:b.img},Ie.createElement("img",{className:b.cover,src:`${qe}`}),(xe=De==null?void 0:De.subject_tags)==null?void 0:xe.map((Xe,Gt)=>{var Fe,dn;if(Gt===0){const ae=(Fe=Ct.find(ne=>ne.name==Xe))==null?void 0:Fe.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${b.sign}`,style:{left:"-4px"}})}const $t=(dn=Ct.find(ae=>ae.name==Xe))==null?void 0:dn.ptclass;return Ie.createElement("span",{className:`sprite ${$t} ${b.sign}`,style:{left:`${48+52*(Gt-1)+2*Gt}px`}})}),Ie.createElement("div",{className:b.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(De==null?void 0:De.excellent)&&Ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((se=De==null?void 0:De.custom_tags)==null?void 0:se.length)>0&&(De==null?void 0:De.custom_tags.map((Xe,Gt)=>{var Fe;return Ie.createElement(ce.Z,{title:Xe==null?void 0:Xe.tag_name,key:Gt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Fe=De==null?void 0:De.custom_tags)==null?void 0:Fe.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},Xe==null?void 0:Xe.tag_name)))})))),zt=="hide"&&(De==null?void 0:De.studying)&&Ae&&Ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Xe=>{Xe.stopPropagation(),Qe(De)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(zt)&&Ae&&Ie.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:Xe=>{Xe.stopPropagation(),Ot(De)}},Ie.createElement("i",{className:`iconfont ${zt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,zt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:b.name},Ie.createElement(ce.Z,{title:nt&&(De!=null&&De.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${he}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${De==null?void 0:De.excellent_alias_name}`)):he},Ie.createElement("span",{className:b.e},nt&&(De==null?void 0:De.excellent_alias_name)||he))),Ae&&tt&&((It=De==null?void 0:De.progress)==null?void 0:It.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(et.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((_e=De==null?void 0:De.progress)==null?void 0:_e.my_score)/((Ye=De==null?void 0:De.progress)==null?void 0:Ye.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ft=De==null?void 0:De.progress)==null?void 0:Ft.my_score,"/",(Ce=De==null?void 0:De.progress)==null?void 0:Ce.all_score),(!Ae||!tt)&&Ie.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${me}`},Ie.createElement("div",{className:b.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),me)),(!Ae||!tt)&&Ie.createElement("div",{className:b.tags},Ie.createElement("div",null,Ie.createElement(ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,De.stages_count))),Ie.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,De.members_count)))))))})),!Rt.length&&Ie.createElement(Ve.Z,null)))}},70467:function(Bn,rn,ee){"use strict";ee.d(rn,{jL:function(){return et},w9:function(){return he},QD:function(){return Zt},cQ:function(){return ke.Z},op:function(){return rt},O5:function(){return kn},_b:function(){return Je},t7:function(){return Re},Gi:function(){return it},YG:function(){return me},qp:function(){return ue},vr:function(){return jt},qE:function(){return Ne},Je:function(){return en},wb:function(){return De},cq:function(){return $t},tp:function(){return Rt}});var b=ee(59301),Me={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},et=({dataSource:cn=[],img:bn,imgWidth:St=346,title:Et,sunTitle:sn,bannerExtraContent:Pn})=>b.createElement("div",{className:Me.banner},b.createElement("div",{className:Me.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Et),b.createElement("span",null,sn)),cn.length>0&&b.createElement("div",{className:Me.btns},cn.map((Tn,Jt)=>b.createElement("div",{key:Jt,onClick:Tn.click},Tn.name,Tn.sign?b.createElement("span",{className:"sprite sprite-33"}):null))),Pn),bn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:bn,width:St}))),Pe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},pe=ee(92310),be=ee.n(pe),Ve=ee(78267),ue=({dataSource:cn=[],value:bn,onChange:St,onTitleChange:Et,className:sn,title:Pn,titleWidth:Tn=41,style:Jt={},fontColor:wn="#6A7283",showCount:gn})=>{const[Nn,An]=(0,b.useState)(1),[rr,Qt]=(0,b.useState)(!1),Yt=(0,b.useRef)(null),xn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Vn;cn.length!==0&&(((Vn=Yt==null?void 0:Yt.current)==null?void 0:Vn.clientHeight)>97?An(1):An(0)),cn.length===0&&An(0),Qt(!1)},[cn]),b.createElement("div",{className:be()(Pe.row,sn,"fadeIn","animated"),style:Jt},b.createElement("div",{onClick:(0,Ve.throttle)(()=>Et==null?void 0:Et(),2e3),style:{width:Tn,marginTop:rr?12:4},className:`${Pe.title} ${Et?"current":""}`},Pn),b.createElement("div",{className:rr?`${Pe.tagsWrap} ${Pe.tagsBorderWrap}`:Pe.tagsWrap},b.createElement("div",{className:Pe.bar,ref:xn,style:Nn>0?{height:Nn===1?97:"auto",overflow:Nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Pe.tag,ref:Yt},cn==null?void 0:cn.map(Vn=>b.createElement("span",{onClick:()=>St(Vn.id),key:Vn.id,style:{color:wn},className:bn===Vn.id?Pe.active:""},b.createElement("span",{title:Vn.name,className:Pe.name},Vn.name),!!gn&&b.createElement("span",{className:Pe.num},Vn.count))))),!!Nn&&b.createElement(b.Fragment,null,Nn===1?b.createElement("div",{onClick:()=>{var Vn;An(2),((Vn=Yt==null?void 0:Yt.current)==null?void 0:Vn.clientHeight)>245?Qt(!0):Qt(!1)},className:Pe.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{xn.current.scrollTop=0,An(1),Qt(!1)},className:Pe.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},$e={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Rt=({dataSource:cn=[],value:bn,onChange:St,className:Et,style:sn={}})=>b.createElement("div",{style:sn,className:be()($e.tabs,Et)},cn.map(Pn=>b.createElement("span",{onClick:()=>St(Pn.id),className:bn===Pn.id?$e.active:"",key:Pn.id},Pn.name))),ot={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},st=ee(37568),Re=({dataSource:cn=[],value:bn="",onChange:St,onInputChange:Et=()=>{},className:sn,style:Pn={},placeholder:Tn,allowClear:Jt=!1})=>{var wn;const[gn,Nn]=(0,b.useState)(""),[An,rr]=(0,b.useState)("");(0,b.useEffect)(()=>{var xn;let Vn=bn;(xn=JSON.stringify(bn))!=null&&xn.includes("{")&&(Nn(bn.id),Vn=bn.value||"");try{rr(decodeURIComponent(Vn||""))}catch(jn){rr(decodeURIComponent(Vn||""))}},[bn]);const Qt=()=>{St(encodeURIComponent(An),gn||null)},Yt=xn=>{xn!==gn&&(Nn(xn),St(encodeURIComponent(An),xn))};return b.createElement("div",{className:be()(ot.input,sn),style:Pn},!!cn.length&&b.createElement("div",{className:ot.dropdown},b.createElement("div",{className:ot.text},(wn=cn.find(xn=>xn.id===gn))==null?void 0:wn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:ot.b1}),b.createElement("b",{className:ot.b2})),b.createElement("div",{className:ot.menu},cn.map((xn,Vn)=>b.createElement("div",{key:Vn,onClick:()=>Yt(xn.id)},xn.name)))),b.createElement(st.default,{onPressEnter:Qt,value:An,onChange:xn=>{rr(xn.target.value),Et(encodeURIComponent(xn.target.value),gn||null)},placeholder:Tn,variant:"borderless",allowClear:Jt,onClear:()=>St("",gn||null)}),b.createElement("i",{onClick:Qt,className:"iconfont icon-sousuo9 font14 current"}))},ft={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},en=({value:cn,onChange:bn,className:St,total:Et,pageSize:sn,style:Pn={}})=>{const Tn=cn<2,Jt=cn>=Math.ceil(Et/sn);return Et<=sn?b.createElement(b.Fragment,null):b.createElement("div",{className:be()(ft.quickPager,St),style:Pn},b.createElement("div",{onClick:()=>{Tn||bn(cn-1,"prev")},className:Tn?ft.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Jt||bn(cn+1,"next")},className:Jt?ft.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ae=ee(29787),tt=ee(25399),nt=ee(63139),zt=ee(14185),Ot=ee(76406),ht=ee(90736),De=({className:cn,dataSource:bn=[],col:St=4,right:Et,bottom:sn=23,precision:Pn=0,wrapWidth:Tn=1200,trackEventItems:Jt,loading:wn})=>{const gn=Math.floor((Tn-(St-1)*Et)/St);return b.createElement(Ae.Z,{spinning:wn},b.createElement("div",{className:be()(Qe.list,cn)},!!bn.length&&bn.map((Nn,An)=>{const{name:rr,id:Qt,identifier:Yt,power:xn,cover_image_id:Vn,pic:jn}=Nn;return b.createElement("div",{className:Qe.wrap,key:Qt,style:{width:gn,marginRight:(1+An)%St===0?0:Et+Pn,marginBottom:sn}},b.createElement("a",{target:"_blank",href:`/shixuns/${Yt}/challenges`,className:Qe.li,onClick:vt=>{vt.preventDefault(),Jt&&(0,Ot.L9)([Jt]),xn&&(0,Ot.xg)(`/shixuns/${Yt}/challenges`)}},b.createElement("div",{className:Qe.img},b.createElement("img",{className:Qe.cover,src:`${jn}`}),Nn.is_jupyter&&b.createElement("span",{className:`sprite sprite-43 ${Qe.sign}`}),Nn.is_jupyter_lab&&b.createElement("span",{className:`sprite sprite-42 ${Qe.sign}`}),Nn.is_unity_3d&&b.createElement("span",{className:`sprite sprite-44 ${Qe.sign}`})),b.createElement("div",{className:Qe.name},b.createElement(tt.Z,{title:rr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Qe.e},rr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Qe.tags},b.createElement(tt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Nn.challenges_count))),!!Nn.myshixuns_count&&b.createElement(tt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Nn.myshixuns_count))),b.createElement(tt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Nn.level))),b.createElement("div",{className:Qe.rate},b.createElement(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:Nn.score_info}),b.createElement("span",null,"\xA0",Nn.score_info?`${Nn.score_info}\u5206`:"5\u5206")))),!xn&&b.createElement("div",{className:Qe.lockWrap},b.createElement("img",{src:`${zt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!bn.length&&b.createElement(ht.Z,null)))},ke=ee(54077),xe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},se=ee(62957),It=ee(96599),_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ye=ee(59301),Ft=(cn,bn,St)=>new Promise((Et,sn)=>{var Pn=wn=>{try{Jt(St.next(wn))}catch(gn){sn(gn)}},Tn=wn=>{try{Jt(St.throw(wn))}catch(gn){sn(gn)}},Jt=wn=>wn.done?Et(wn.value):Promise.resolve(wn.value).then(Pn,Tn);Jt((St=St.apply(cn,bn)).next())}),he=({className:cn,dataSource:bn=[],col:St=4,right:Et,bottom:sn=23,precision:Pn=0,wrapWidth:Tn=1200,trackEventItems:Jt,loading:wn,category:gn,hiddenClick:Nn,handleVery:An=()=>!0,isCurrent:rr})=>{const[Qt,Yt]=se.default.useModal(),xn=Math.floor((Tn-(St-1)*Et)/St),Vn=jn=>Ft(void 0,null,function*(){Qt.confirm({title:"\u7F6E\u9876",width:500,content:Ye.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Ye.createElement("span",{className:"c-blue"},"\u201C",jn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Ye.createElement(Ae.Z,{spinning:wn},Yt,Ye.createElement("div",{className:be()(xe.list,cn)},!!bn.length&&bn.map((jn,vt)=>{const{subject_identifier:Dt,id:Te,identifier:gt,power:Ke}=jn,wt=jn.is_public!=0&&jn.is_public;return Ye.createElement("div",{className:xe.wrap,key:Te,style:{width:xn,marginRight:(1+vt)%St===0?0:Et+Pn,marginBottom:sn}},jn.homepage_show&&Ye.createElement("div",{className:xe.btnsTop},Ye.createElement(It.default,{color:"red"},"\u7F6E\u9876")),Ye.createElement("a",{className:xe.li,onClick:Ht=>{Ht.preventDefault(),An(jn==null?void 0:jn.first_category_url)&&(Jt&&(0,Ot.L9)([Jt]),(0,Ot.xg)(jn.first_category_url))}},Ye.createElement("div",{className:xe.top},Ye.createElement(tt.Z,{title:jn.name},Ye.createElement("div",{className:xe.name},jn.name)),Ye.createElement("img",{className:xe.img,src:zt.Z.IMG_SERVER+"/images/"+jn.avatar_url}),Ye.createElement("div",{className:xe.text,title:jn.creator},jn.creator),Dt&&Ye.createElement("div",{className:xe.btns},Ye.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ye.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),wt&&Ye.createElement("div",{className:xe.sign},"\u516C\u5F00"),rr&&Ye.createElement("div",{className:xe.hidden,onClick:Ht=>{Ht.stopPropagation(),Nn(jn)}},Ye.createElement("i",{className:`iconfont ${gn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),gn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ye.createElement("div",{className:xe.bottom},jn.visits>0&&Ye.createElement(tt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-liulanyan"}),Ye.createElement("span",null,jn.visits))),jn.course_members_count>0&&Ye.createElement(tt.Z,{title:"\u6210\u5458",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-chengyuan"}),jn.course_members_count)),jn.tasks_count>0&&Ye.createElement(tt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-zuoye"}),jn.tasks_count)),jn.is_end?Ye.createElement("div",{style:{color:"#6B758B"}}):Ye.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!jn.is_accessible&&Ye.createElement("div",{className:xe.lockWrap},Ye.createElement("img",{src:`${zt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ye.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!bn.length&&Ye.createElement(ht.Z,null)))},yt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Vt=ee(44283),me=({dataSource:cn=[],value:bn,onChange:St,className:Et,style:sn={},tabBarExtraContent:Pn})=>b.createElement("div",{className:be()(yt.tabs,Et),style:sn},b.createElement("div",{className:yt.tabsWrap},cn.map((Tn,Jt)=>!(Tn!=null&&Tn.hide)&&b.createElement("aside",{className:yt.tab,onClick:()=>{St(Tn.id),Tn.link&&Vt.history.push(Tn.link)},key:Jt},b.createElement("div",{className:bn===Tn.id?yt.active:""},Tn.name),(Tn==null?void 0:Tn.resetCount)==null&&(Tn==null?void 0:Tn.total)!==void 0&&b.createElement("span",null,"\uFF08",Tn==null?void 0:Tn.total,"\uFF09"),(Tn==null?void 0:Tn.resetCount)!==void 0&&(Tn==null?void 0:Tn.total)!==void 0&&b.createElement(tt.Z,{title:(Tn==null?void 0:Tn.tip)!=null?Tn==null?void 0:Tn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Tn==null?void 0:Tn.resetCount),"/",b.createElement("span",null,Tn==null?void 0:Tn.total),"\uFF09"))))),b.createElement("div",{className:yt.tabBar},Pn)),it=({className:cn,style:bn={},children:St})=>b.createElement("div",{className:be()(cn),style:bn},St),Xt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Xe=ee(75727),Gt=ee(93041);const Fe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var $t=({sortValue:cn,dropValue:bn,className:St,onSort:Et,onDrop:sn,dataSource:Pn=Fe})=>{var Tn;return b.createElement("div",{className:be()(Xt.orderWrap,St)},b.createElement(Xe.Z,{dropdownRender:()=>b.createElement(Gt.default,null,Pn.map((Jt,wn)=>b.createElement(Gt.default.Item,{key:wn,onClick:()=>sn(Jt.id)},Jt.name)))},b.createElement("span",{className:Xt.orderTextWrap},(Tn=Pn.find(Jt=>bn===Jt.id))==null?void 0:Tn.name)),b.createElement("span",{className:Xt.orderIconWrap},b.createElement("span",{className:Xt.orderAsc},b.createElement("i",{className:cn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer}`,onClick:()=>Et(cn==="asc"?"desc":"asc")})),b.createElement("span",{className:Xt.orderDesc},b.createElement("i",{className:cn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer}`,onClick:()=>Et(cn==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=ee(7939),te=Object.defineProperty,ie=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(cn,bn,St)=>bn in cn?te(cn,bn,{enumerable:!0,configurable:!0,writable:!0,value:St}):cn[bn]=St,Se=(cn,bn)=>{for(var St in bn||(bn={}))de.call(bn,St)&&le(cn,St,bn[St]);if(ie)for(var St of ie(bn))re.call(bn,St)&&le(cn,St,bn[St]);return cn},Ge=(cn,bn)=>{var St={};for(var Et in cn)de.call(cn,Et)&&bn.indexOf(Et)<0&&(St[Et]=cn[Et]);if(cn!=null&&ie)for(var Et of ie(cn))bn.indexOf(Et)<0&&re.call(cn,Et)&&(St[Et]=cn[Et]);return St},He=(cn,bn,St)=>new Promise((Et,sn)=>{var Pn=wn=>{try{Jt(St.next(wn))}catch(gn){sn(gn)}},Tn=wn=>{try{Jt(St.throw(wn))}catch(gn){sn(gn)}},Jt=wn=>wn.done?Et(wn.value):Promise.resolve(wn.value).then(Pn,Tn);Jt((St=St.apply(cn,bn)).next())}),rt=cn=>{var bn=cn,{className:St,style:Et,children:sn,loading:Pn=!1,openLoading:Tn,onClick:Jt=()=>{},size:wn="middle",shape:gn="round"}=bn,Nn=Ge(bn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[An,rr]=(0,b.useState)(!1);return b.createElement(ne.ZP,Se({onClick:(0,Ve.throttle)(Qt=>He(void 0,null,function*(){Tn&&rr(!0);try{yield Jt(Qt)}catch(Yt){console.log("error",Yt)}Tn&&rr(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(ae.btn,ae[`${wn}-${gn}`],St),style:Et,size:wn,shape:gn,loading:An||Pn},Nn),sn)},ut={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ne=({className:cn,style:bn,children:St=null,onClick:Et,title:sn})=>b.createElement("div",{className:be()(ut.head,cn),style:bn},b.createElement("span",{className:"primary-hover",onClick:Et},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:sn},sn),b.createElement("div",{className:ut.node},St)),Be={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Zt=({confirmShow:cn=!0,confirmTitle:bn,confirmClick:St,cancelShow:Et=!0,cancelTitle:sn,cancelClick:Pn,className:Tn,style:Jt,confirmLoading:wn=!1})=>b.createElement("div",{className:be()(Be.btns,Tn),style:Jt},cn&&b.createElement(ne.ZP,{loading:wn,onClick:St,type:"primary",className:Be.confirm},bn),Et&&b.createElement(ne.ZP,{onClick:Pn,className:Be.cancel},sn)),mn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},jt=({className:cn,style:bn={},LeftContent:St,children:Et,RightContent:sn})=>b.createElement("div",{className:be()(mn.fixedBottom,cn),style:bn},b.createElement("div",{className:mn.wrap},b.createElement("div",{className:mn.left},St),b.createElement("div",{className:mn.center},Et),b.createElement("div",{className:mn.right},sn))),Cn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Je=({className:cn,style:bn={},dataSource:St=[]})=>b.createElement("div",{className:be()(Cn.crumbs,cn),style:bn},St.map((Et,sn)=>snVt.history.push(Et.path)},Et.name):b.createElement("span",null,Et.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:sn,style:{color:"#5F6368"}},Et.name))),Tt=ee(11938),an=Object.defineProperty,_t=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,On=(cn,bn,St)=>bn in cn?an(cn,bn,{enumerable:!0,configurable:!0,writable:!0,value:St}):cn[bn]=St,_n=(cn,bn)=>{for(var St in bn||(bn={}))Kt.call(bn,St)&&On(cn,St,bn[St]);if(Pt)for(var St of Pt(bn))nn.call(bn,St)&&On(cn,St,bn[St]);return cn},nr=(cn,bn)=>_t(cn,je(bn)),ir=(cn,bn)=>{var St={};for(var Et in cn)Kt.call(cn,Et)&&bn.indexOf(Et)<0&&(St[Et]=cn[Et]);if(cn!=null&&Pt)for(var Et of Pt(cn))bn.indexOf(Et)<0&&nn.call(cn,Et)&&(St[Et]=cn[Et]);return St};const{Countdown:Zn}=Tt.default;var kn=cn=>{var bn=cn,{onChange:St}=bn,Et=ir(bn,["onChange"]);const[sn,Pn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof sn=="number"&&sn>=0&&St(sn)},[sn]);const Tn=Jt=>{const wn=Math.floor(Jt/1e3);Pn(wn)};return b.createElement(Zn,nr(_n({},Et),{onChange:Tn}))}},79006:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Me}});var b=ee(59301);function Me(ce,et){const Pe=(0,b.useRef)();(0,b.useEffect)(()=>{Pe.current=ce}),(0,b.useEffect)(()=>{function pe(){Pe.current()}if(et!==null){let be=setInterval(pe,et);return()=>clearInterval(be)}},[et])}},30935:function(Bn,rn,ee){"use strict";ee.d(rn,{i:function(){return Qe},q:function(){return en}});var b=ee(59301),Me={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},ce=ee(92310),et=ee.n(ce),Pe=ee(25399),pe=ee(82326),be=ee(7939),Ve=ee(49317),Ie=Object.defineProperty,ue=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,st=(Ae,tt,nt)=>tt in Ae?Ie(Ae,tt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ae[tt]=nt,Ue=(Ae,tt)=>{for(var nt in tt||(tt={}))Rt.call(tt,nt)&&st(Ae,nt,tt[nt]);if(Ee)for(var nt of Ee(tt))ot.call(tt,nt)&&st(Ae,nt,tt[nt]);return Ae},Re=(Ae,tt)=>ue(Ae,$e(tt)),ft=(Ae,tt)=>{var nt={};for(var zt in Ae)Rt.call(Ae,zt)&&tt.indexOf(zt)<0&&(nt[zt]=Ae[zt]);if(Ae!=null&&Ee)for(var zt of Ee(Ae))tt.indexOf(zt)<0&&ot.call(Ae,zt)&&(nt[zt]=Ae[zt]);return nt},kt=(Ae,tt,nt)=>new Promise((zt,Ot)=>{var ht=ke=>{try{De(nt.next(ke))}catch(xe){Ot(xe)}},Ct=ke=>{try{De(nt.throw(ke))}catch(xe){Ot(xe)}},De=ke=>ke.done?zt(ke.value):Promise.resolve(ke.value).then(ht,Ct);De((nt=nt.apply(Ae,tt)).next())});const en=Ae=>{var tt=Ae,{wrapClassName:nt,wrapStyle:zt={},showLinkButton:Ot=!0,tooltipTitle:ht="",loadGeneral:Ct=!1,data:De={}}=tt,ke=ft(tt,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const xe="course_disciplines_list",[se,It]=(0,b.useState)(()=>{const yt=sessionStorage.getItem(xe);return yt?JSON.parse(yt):[]}),[_e,Ye]=(0,b.useState)(!1),[Ft,Ce]=(0,b.useState)(!0);(0,b.useEffect)(()=>{he()},[]);const he=()=>kt(void 0,null,function*(){var yt,Vt,Lt,me;Ye(!0);const qe=yield(0,Ve.U2)("v2/course_disciplines.json",De);if(qe.status===0){const it=((Vt=(yt=qe==null?void 0:qe.data)==null?void 0:yt.list)==null?void 0:Vt.map(Xt=>({value:Xt.id,label:Xt.name})))||[];if(It(it),Ce(!1),sessionStorage.setItem(xe,JSON.stringify(it)),Ft){const Xt=(me=(Lt=qe==null?void 0:qe.data)==null?void 0:Lt.list)==null?void 0:me.find(Xe=>Xe.is_default);Ct&&Xt&&ke.onChange(Xt==null?void 0:Xt.id)}}Ye(!1)});return b.createElement("div",{className:et()(Me.singleSelect,nt),style:zt},b.createElement(Pe.Z,{title:ht},b.createElement(pe.default,Ue({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:_e,options:se,onDropdownVisibleChange:yt=>{yt&&he()}},ke))),Ot&&b.createElement(be.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},Qe=Ae=>{var tt=Ae,{wrapClassName:nt,wrapStyle:zt={},showLinkButton:Ot=!0,courseDisciplineId:ht="",isPlusHeight:Ct=!1,tooltipTitle:De,allowAcceptEmpty:ke=!1,data:xe={}}=tt,se=ft(tt,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[It,_e]=(0,b.useState)([]),[Ye,Ft]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ce()},[ht]);const Ce=()=>kt(void 0,null,function*(){var he,yt;if(!ke&&!ht){_e([]);return}Ft(!0);const Vt=yield(0,Ve.U2)(`v2/course_disciplines/${ht||"all"}.json`,xe);if(Vt.status===0){const Lt=((yt=(he=Vt==null?void 0:Vt.data)==null?void 0:he.tag_disciplines)==null?void 0:yt.map(me=>({value:me.id,label:me.name})))||[];Lt.length&&_e(Lt)}Ft(!1)});return b.createElement("div",{className:et()(Me.multipleSelect,nt),style:zt},b.createElement(Pe.Z,{title:De},b.createElement(pe.default,Re(Ue({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:Ye,options:It,maxTagCount:"responsive",onDropdownVisibleChange:he=>{he&&Ce()}},se),{className:et()(se.className,Ct&&Me.plus)}))),Ot&&b.createElement(be.ZP,{className:Me.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},1073:function(Bn,rn,ee){"use strict";ee.r(rn),ee.d(rn,{default:function(){return bn}});var b=ee(59301),Me={card:"card___FJmiu",head:"head___QTRZw",element:"element___UI_a8",collaborator:"collaborator___Dy2UW",btn:"btn___nSmST",delSty:"delSty___xvOHw",delBorder:"delBorder___sffy6",copHover:"copHover___o9pdw",wrap:"wrap___aOnek",center:"center___rxUB2",tip:"tip___ljMdm",title:"title___tJmV7",content:"content___cgE16",fixedBtns:"fixedBtns___RHSkC"},ce=ee(92310),et=ee.n(ce),Pe=ee(70467),pe=ee(28284),be=ee(25399),Ve=ee(4875),Ie=ee(6767),ue=ee(29787),$e=ee(37568),Ee=ee(62673),Rt=ee(77019),ot=ee(47889),st=ee(7939),Ue=ee(76406),Re=ee(44283),ft=ee(56082),kt=ee(87954),en=ee(18257),Qe=ee(19719),Ae=ee(35241),tt=ee(70858),nt=ee(90736),zt=Object.defineProperty,Ot=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=(St,Et,sn)=>Et in St?zt(St,Et,{enumerable:!0,configurable:!0,writable:!0,value:sn}):St[Et]=sn,se=(St,Et)=>{for(var sn in Et||(Et={}))De.call(Et,sn)&&xe(St,sn,Et[sn]);if(Ct)for(var sn of Ct(Et))ke.call(Et,sn)&&xe(St,sn,Et[sn]);return St},It=(St,Et)=>Ot(St,ht(Et));const _e=b.createContext({}),Ye=()=>{const{setActivatorNodeRef:St,listeners:Et}=(0,b.useContext)(_e);return b.createElement(st.ZP,se({type:"text",size:"small",icon:b.createElement(be.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},b.createElement(ft.Z,null)),style:{cursor:"move"},ref:St},Et))},Ft=St=>{const{attributes:Et,listeners:sn,setNodeRef:Pn,setActivatorNodeRef:Tn,transform:Jt,transition:wn,isDragging:gn}=(0,Qe.nB)({id:St["data-row-key"]}),Nn=se(It(se({},St.style),{transform:Ae.ux.Translate.toString(Jt),transition:wn}),gn?{position:"relative",zIndex:99}:{}),An=(0,b.useMemo)(()=>({setActivatorNodeRef:Tn,listeners:sn}),[Tn,sn]);return b.createElement(_e.Provider,{value:An},b.createElement("tr",se(It(se({},St),{ref:Pn,style:Nn}),Et)))};var he=({columns:St,dataSource:Et,setDataSource:sn,loading:Pn})=>{const Tn=({active:Jt,over:wn})=>{Jt.id!==(wn==null?void 0:wn.id)&&sn(gn=>{const Nn=gn.findIndex(rr=>rr.id===(Jt==null?void 0:Jt.id)),An=gn.findIndex(rr=>rr.id===(wn==null?void 0:wn.id));return(0,Qe.Rp)(gn,Nn,An)})};return b.createElement(kt.LB,{modifiers:[en.DL],onDragEnd:Tn},b.createElement(Qe.Fo,{items:Et.map(Jt=>Jt.id),strategy:Qe.qw},b.createElement(tt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Pn,locale:{emptyText:b.createElement(nt.Z,{styles:{margin:"80px auto"},customText:b.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",b.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:Et,components:{body:{row:Ft}},columns:[{key:"sort",align:"center",width:80,render:()=>b.createElement(Ye,null)},...St],size:"middle"})))},yt=ee(62957),Vt=ee(31691),Lt=ee(79939),me=ee(82326),qe=ee(53420),it=ee(31709),Xt=ee(49317),Xe={flex_box_center:"flex_box_center___JyZDM",flex_space_between:"flex_space_between___irBjO",flex_box_vertical_center:"flex_box_vertical_center___O_Nib",flex_box_center_end:"flex_box_center_end___ELw5e",flex_box_column:"flex_box_column___WqDB7",scoremodal:"scoremodal___v8vvd",selectWrapper:"selectWrapper___uaibI",selectWrappers:"selectWrappers___lqg6k",allqingchu:"allqingchu___kq8s8",title:"title___PQR47",score:"score___Y51iK",close:"close___vMAPi",content:"content___D5gsd",items:"items___Sl0jf",bottom:"bottom___lJ34a",yes:"yes___RSNa7",no:"no___stbbn",titlecount:"titlecount___o03Zo",add:"add___b7wEI",search:"search___BTzh4",searchIcon:"searchIcon___Qqqwp",tabWrap:"tabWrap___bhoWL",previewModal:"previewModal___EzPRC"},Gt=ee(44192),Fe={flex_box_center:"flex_box_center___ly5fd",flex_space_between:"flex_space_between___iYF6e",flex_box_vertical_center:"flex_box_vertical_center___J4dvr",flex_box_center_end:"flex_box_center_end___X7Gj4",flex_box_column:"flex_box_column___PP05z",warp:"warp___SZusg",shixunbutton:"shixunbutton___YA7HZ",redio:"redio___ntLVZ",redioitem:"redioitem___ZwKNR",redioitemyes:"redioitemyes___aR5S1",title:"title___lbEpK",titleyes:"titleyes___C03Hl",yestag:"yestag___checX",qcount:"qcount___Z7rc5",score:"score___I1olD",qtitle:"qtitle___XI0C3",checkbox:"checkbox___JyN6h",checkboxitem:"checkboxitem___Velm7",checkboxitemyes:"checkboxitemyes___ju19l",bottom:"bottom___TmVK0",bottomitem:"bottomitem___xqjDY",left:"left___WBZ8R",right:"right___u9EOe",completion:"completion___Q5y2a",content:"content___o8h2_",items:"items___m5b4M",simple:"simple___SVr7O",shixun:"shixun___jb8sL",combination:"combination___vizwt",program:"program___fMfXQ"},dn=ee(35883),$t=ee(24334);const ae=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var te=({qitem:St})=>{var Et,sn,Pn,Tn,Jt,wn,gn,Nn,An,rr;return b.createElement("div",{className:Fe.warp},b.createElement("div",{className:Fe.mainPart},b.createElement("div",{className:Fe.qcount},(St==null?void 0:St.question_type)===8&&b.createElement(dn.Z,{className:Fe.content,showProgramFill:!0,value:(Et=St==null?void 0:St.program_attr)==null?void 0:Et.description}),(St==null?void 0:St.question_type)!=8&&b.createElement(dn.Z,{className:Fe.qtitle,value:(St==null?void 0:St.name)||(St==null?void 0:St.title)})),((St==null?void 0:St.question_type)===0||(St==null?void 0:St.question_type)===2)&&b.createElement("div",null,(sn=St==null?void 0:St.choices)==null?void 0:sn.map((Qt,Yt)=>b.createElement("div",{className:Fe.redio},!(Qt!=null&&Qt.is_answer)&&b.createElement("span",{className:Fe.redioitem}),(Qt==null?void 0:Qt.is_answer)&&b.createElement("i",{className:`${Fe.redioitemyes} icon-duigou1`}),b.createElement(dn.Z,{className:Qt!=null&&Qt.is_answer?Fe.titleyes:Fe.title,value:ae[Yt]+(Qt==null?void 0:Qt.choice_text)}),(Qt==null?void 0:Qt.is_answer)&&b.createElement("div",{className:Fe.yestag},"\u6B63\u786E\u7B54\u6848")))),(St==null?void 0:St.question_type)===1&&b.createElement("div",null,(Pn=St==null?void 0:St.choices)==null?void 0:Pn.map((Qt,Yt)=>b.createElement("div",{className:Fe.checkbox},!(Qt!=null&&Qt.is_answer)&&b.createElement("span",{className:Fe.checkboxitem}),(Qt==null?void 0:Qt.is_answer)&&b.createElement("i",{className:`${Fe.checkboxitemyes} icon-duigou1`}),b.createElement(dn.Z,{className:Qt!=null&&Qt.is_answer?Fe.titleyes:Fe.title,value:ae[Yt]+(Qt==null?void 0:Qt.choice_text)}),(Qt==null?void 0:Qt.is_answer)&&b.createElement("div",{className:Fe.yestag},"\u6B63\u786E\u7B54\u6848")))),(St==null?void 0:St.question_type)===3&&b.createElement("div",{className:Fe.completion},(Tn=St==null?void 0:St.standard_answer)==null?void 0:Tn.map((Qt,Yt)=>{var xn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:Fe.title},"\u586B\u7A7A\u9879",Yt+1),b.createElement("div",{className:Fe.content},(xn=Qt==null?void 0:Qt.answer_text)==null?void 0:xn.map((Vn,jn)=>b.createElement("div",{className:Fe.items},Vn))))})),(St==null?void 0:St.question_type)===4&&b.createElement("div",{className:Fe.simple},b.createElement("div",{className:Fe.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Jt=St==null?void 0:St.answer_texts)!=null&&Jt[0]?b.createElement(dn.Z,{className:Fe.content,value:(wn=St==null?void 0:St.answer_texts)==null?void 0:wn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(St==null?void 0:St.question_type)===5&&((gn=St==null?void 0:St.challenge_names)==null?void 0:gn.map((Qt,Yt)=>b.createElement("div",{className:Fe.shixun},b.createElement("span",{className:Fe.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,Ue.EM)(Yt+1),"\u9898"),Qt)))),(St==null?void 0:St.question_type)===6&&b.createElement("div",{className:Fe.program},b.createElement(dn.Z,{className:Fe.content,value:((Nn=St==null?void 0:St.program_attr)==null?void 0:Nn.description)||"- -"})),(St==null?void 0:St.question_type)===7&&((An=St==null?void 0:St.sub_item_banks)==null?void 0:An.map((Qt,Yt)=>{var xn,Vn,jn,vt,Dt;return b.createElement("div",null,b.createElement("div",{className:Fe.combination},b.createElement("span",{className:Fe.qtitle},Qt==null?void 0:Qt.name)),b.createElement("div",{className:Fe.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((Qt==null?void 0:Qt.item_type)=="SINGLE"||(Qt==null?void 0:Qt.item_type)=="JUDGMENT")&&((xn=Qt==null?void 0:Qt.choices)==null?void 0:xn.map((Te,gt)=>b.createElement("div",{className:Fe.redio},!(Te!=null&&Te.is_answer)&&b.createElement("span",{className:Fe.redioitem}),(Te==null?void 0:Te.is_answer)&&b.createElement("i",{className:`${Fe.redioitemyes} icon-duigou1`}),b.createElement(dn.Z,{className:Te!=null&&Te.is_answer?Fe.titleyes:Fe.title,value:ae[gt]+(Te==null?void 0:Te.choice_text)}),(Te==null?void 0:Te.is_answer)&&b.createElement("div",{className:Fe.yestag},"\u6B63\u786E\u7B54\u6848")))),(Qt==null?void 0:Qt.item_type)=="MULTIPLE"&&((Vn=Qt==null?void 0:Qt.choices)==null?void 0:Vn.map((Te,gt)=>b.createElement("div",{className:Fe.checkbox},!(Te!=null&&Te.is_answer)&&b.createElement("span",{className:Fe.checkboxitem}),(Te==null?void 0:Te.is_answer)&&b.createElement("i",{className:`${Fe.checkboxitemyes} icon-duigou1`}),b.createElement(dn.Z,{className:Te!=null&&Te.is_answer?Fe.titleyes:Fe.title,value:ae[gt]+(Te==null?void 0:Te.choice_text)}),(Te==null?void 0:Te.is_answer)&&b.createElement("div",{className:Fe.yestag},"\u6B63\u786E\u7B54\u6848")))),(Qt==null?void 0:Qt.item_type)=="COMPLETION"&&b.createElement("div",{className:Fe.completion},(jn=Qt==null?void 0:Qt.standard_answer)==null?void 0:jn.map((Te,gt)=>{var Ke;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:Fe.title},"\u586B\u7A7A\u9879",gt+1),b.createElement("div",{className:Fe.content},(Ke=Te==null?void 0:Te.answer_text)==null?void 0:Ke.map((wt,Ht)=>b.createElement("div",{className:Fe.items},wt))))})),(Qt==null?void 0:Qt.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:Fe.simple},b.createElement("div",{className:Fe.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(vt=Qt==null?void 0:Qt.answer_texts)!=null&&vt[0]?b.createElement(dn.Z,{className:Fe.content,value:(Dt=Qt==null?void 0:Qt.answer_texts)==null?void 0:Dt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(St==null?void 0:St.question_type)===8&&b.createElement("div",null,b.createElement(dn.Z,{disabledFill:!0,className:Fe.content,showProgramFill:!0,value:$t.Base64.decode(((rr=St==null?void 0:St.program_attr)==null?void 0:rr.code)||"")})),(St==null?void 0:St.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(St==null?void 0:St.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(St==null?void 0:St.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(St==null?void 0:St.study_count)||"0"))),b.createElement("a",{className:Fe.shixunbutton,href:`/shixuns/${St==null?void 0:St.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((St==null?void 0:St.question_type)<=4||[6,8].includes(St==null?void 0:St.question_type))&&b.createElement("div",{className:Fe.bottom},b.createElement("div",{className:Fe.bottomitem},b.createElement("span",{className:Fe.left},"\u89E3\u6790"),b.createElement("span",{className:Fe.right},St!=null&&St.analysis?b.createElement(dn.Z,{value:St==null?void 0:St.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:Fe.bottomitem},b.createElement("span",{className:Fe.left},"\u96BE\u5EA6"),b.createElement("span",{className:Fe.right},(St==null?void 0:St.difficulty)===1?"\u7B80\u5355":(St==null?void 0:St.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:Fe.bottomitem},b.createElement("span",{className:Fe.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:Fe.right},St!=null&&St.tag_discipline?St==null?void 0:St.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},ie=ee(77264),de=ee(59435),re=ee(46861),le=ee(61485),Se=ee(30935),Ge=ee(59301),He=Object.defineProperty,Le=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Be=(St,Et,sn)=>Et in St?He(St,Et,{enumerable:!0,configurable:!0,writable:!0,value:sn}):St[Et]=sn,Ut=(St,Et)=>{for(var sn in Et||(Et={}))At.call(Et,sn)&&Be(St,sn,Et[sn]);if(ut)for(var sn of ut(Et))Ne.call(Et,sn)&&Be(St,sn,Et[sn]);return St},Zt=(St,Et)=>Le(St,rt(Et)),mn=(St,Et,sn)=>new Promise((Pn,Tn)=>{var Jt=Nn=>{try{gn(sn.next(Nn))}catch(An){Tn(An)}},wn=Nn=>{try{gn(sn.throw(Nn))}catch(An){Tn(An)}},gn=Nn=>Nn.done?Pn(Nn.value):Promise.resolve(Nn.value).then(Jt,wn);gn((sn=sn.apply(St,Et)).next())});const vn=({setScoreShow:St,ScoreShow:Et,onOk:sn,isshixuns:Pn,isloadings:Tn,dispatch:Jt,selectedIds:wn,user:gn,virtualId:Nn,shixunsDetail:An})=>{var rr;let[Qt,Yt]=(0,b.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[xn,Vn]=(0,b.useState)([]),[jn,vt]=(0,b.useState)([]),[Dt,Te]=(0,b.useState)([]),[gt,Ke]=(0,b.useState)([]);const[wt,Ht]=(0,b.useState)(!1),[Hn]=pe.default.useForm(),[Jn,lt]=(0,b.useState)(),[mt,pt]=(0,b.useState)(!1);let[xt,fn]=(0,b.useState)(Pn);const[In,pn]=(0,b.useState)([]),[Sn,$n]=(0,b.useState)(0),[qn,ur]=(0,b.useState)(!0),[tr,Xn]=(0,b.useState)([]),[or,dr]=(0,b.useState)([]),br=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[vr,Tr]=(0,b.useState)([]),Br=(0,b.useRef)(new Set),cr=(0,b.useRef)(new Set),Er=(0,b.useRef)(1),Wr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Rr=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Sr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Fr,$r]=(0,b.useState)(!1),wr=()=>{Hn.resetFields(),xt=!1,fn(!1),$r(!1),Hn.submit()};(0,b.useEffect)(()=>{Et&&(Hn.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),qn&&xt&&(Hn.setFieldsValue({item_type:"SHIXUN"}),Qt.item_type="SHIXUN",Yt(Ut({},Qt)),ur(!1)),Qt.type="0",vt(wn),Te(wn),cr.current=new Set(wn),gr(Qt),yr(),Xr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),go())},[Et]),console.log(jn,Dt,"listitems"),(0,b.useEffect)(()=>{Sn>0&&setTimeout(()=>{$n(0)},2e3)},[Sn]);function gr(Ze){return mn(this,null,function*(){var dt,at,Mt;if(Ht(!0),Yt(Ut({},Ze)),(Dt==null?void 0:Dt.length)<=0&&Ze.type==="5"){Ke([]),Ht(!1);return}let Bt=Ze.type==="5"?Dt==null?void 0:Dt.filter(Ln=>!In.includes(Ln)):null,Wt=Ze.type==="5"?Dt==null?void 0:Dt.filter(Ln=>In.includes(Ln)):null;Er.current=Er.current+1;const En=Er.current;let Rn={course_discipline_id:Ze==null?void 0:Ze.courseid};(Ze==null?void 0:Ze.type)==="1"&&(Rn={discipline_id:((dt=Ze==null?void 0:Ze.courseid)==null?void 0:dt[0])||null,sub_discipline_id:((at=Ze==null?void 0:Ze.courseid)==null?void 0:at[1])||null});let hn=yield(0,Xt.ZP)("/api/item_banks.json",{method:"get",params:Zt(Ut(Ut({},Ze),Rn),{ids:Bt,shixun_ids:Wt,include_shixuns:!0,group_id:((Mt=Ze.group_id)==null?void 0:Mt.map(Ln=>Ln==null?void 0:Ln.value))||null,keyword:Ze.keyword?encodeURIComponent(Ze.keyword):Ze.keyword,type:Ze.type==="5"?null:Ze.type,clazz:Ze.type==="3"?"ItemBanksGroup":null})});Er.current===En&&(Ke(hn),Ht(!1))})}function yr(){return mn(this,null,function*(){let Ze=yield(0,Xt.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Qt.type==="5"?null:Qt.type,clazz:"ItemBanksGroup"}});Vn((0,Gt.L)(Ze==null?void 0:Ze.disciplines))})}function Xr(Ze){return mn(this,null,function*(){var dt;let at=yield(0,Xt.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Ze}),Mt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(dt=at==null?void 0:at.data)==null?void 0:dt.map(Bt=>({title:Bt.name,id:Bt.id,pid:Bt.id,value:Bt.id,key:Bt.id,isLeaf:!Bt.have_child}))}];Xn(Mt)})}function go(){return mn(this,null,function*(){let Ze=yield(0,re.Dm)({});(Ze==null?void 0:Ze.status)===0&&dr(Ze==null?void 0:Ze.groups)})}function So(Ze){return mn(this,null,function*(){var dt,at,Mt,Bt;Ht(!0);let Wt=(dt=Ze.list)==null?void 0:dt.filter(Ln=>!In.includes(Ln)),En=(at=Ze.list)==null?void 0:at.filter(Ln=>In.includes(Ln));if(Wt.length===0&&En.length===0){Ht(!1),Ke([]);return}let Rn={course_discipline_id:Ze==null?void 0:Ze.courseid};(Ze==null?void 0:Ze.type)==="1"&&(Rn={discipline_id:((Mt=Ze==null?void 0:Ze.courseid)==null?void 0:Mt[0])||null,sub_discipline_id:((Bt=Ze==null?void 0:Ze.courseid)==null?void 0:Bt[1])||null});let hn=yield(0,Xt.ZP)("/api/item_banks.json",{method:"get",params:Zt(Ut(Ut({},Ze),Rn),{ids:Wt,shixun_ids:En,type:Ze.type==="5"?null:Ze.type,clazz:Ze.type==="3"?"ItemBanksGroup":null})});Ht(!1),Ke(hn)})}const to=Ze=>mn(void 0,null,function*(){const dt=yield Jt({type:"shixunsDetail/release",payload:{id:Ze}});let at=dt==null?void 0:dt.tag_position,Mt=(dt==null?void 0:dt.evaluation_set_position)||[],Bt=dt.status;return Bt===0?(Ie.ZP.success("\u53D1\u5E03\u6210\u529F"),gr(Qt),!0):(Bt===2?Ie.ZP.error(`\u7B2C${Mt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Bt===3?Ie.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${at.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Ie.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),io=Ze=>(Ze==null?void 0:Ze.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Oe=()=>wt?"\u6682\u65E0\u6570\u636E":Qt.type==="3"&&!(or!=null&&or.length)?Ge.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Ge.createElement("span",{onClick:()=>{var Ze;return(0,Ue.xg)(`/users/${(Ze=gn==null?void 0:gn.userInfo)==null?void 0:Ze.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):Qt.type==="0"&&(gt==null?void 0:gt.items_count)===0&&!(Qt!=null&&Qt.tag_discipline_id)&&!(Qt!=null&&Qt.difficulty)&&!(Qt!=null&&Qt.keyword)&&!(Qt!=null&&Qt.group_id)&&!(Qt!=null&&Qt.difficulty)?Ge.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Ge.createElement("span",{onClick:()=>{(0,Ue.xg)(`/problems/newcreate?&pageId=${Nn}`),St(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",We=(Ze,dt,at)=>Ze.map(Mt=>Mt.key===dt?Ut(Ut({},Mt),at):Mt.children?Zt(Ut({},Mt),{children:We(Mt.children,dt,at)}):Mt),bt=Ze=>mn(void 0,null,function*(){const{key:dt}=Ze;let at=Qt.type;const Mt=yield(0,re.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(dt),type:at}),{data:Bt,total_count:Wt}=Mt||{};Wt>0&&Xn(En=>We(En,dt,{children:Bt.map(Rn=>({title:Rn.name,id:Rn.id,pid:Rn.id,value:Rn.id,key:Rn.id,isLeaf:!Rn.have_child}))}))});return Ge.createElement("div",null,Ge.createElement(yt.default,{title:!1,footer:!1,open:Et,width:1200,centered:!0,className:Xe.scoremodal,onCancel:()=>{St(!1)}},Ge.createElement("div",{style:{display:"flex",alignItems:"center"}},Ge.createElement("div",{className:Xe.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Ge.createElement(Vt.default,{className:Xe.tabWrap,activeKey:Qt.type,onChange:Ze=>{Ze==="3"?(Qt.show_all_share=!0,Xr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Qt.show_all_share=null,Ze==="0"&&Xr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Qt.type=Ze,Qt.page=1,Qt.updated_at="",Qt.quotes="",Qt.courseid=null,Qt.tag_discipline_id=null,Qt.difficulty=null,Qt.keyword=null,Qt.group_id=null,Qt.teach_group_id=null,Hn.setFieldsValue({courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(Qt==null?void 0:Qt.item_type)==="SHIXUN"&&Qt.type!=="5"&&(xt=!0,fn(!0)),$r(!1),Qt.type==="5"&&(xt=!1,fn(!1)),Yt(Ut({},Qt)),gr(Ut({},Qt)),yr()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Ge.createElement("div",null,"\u5DF2\u9009",Dt.length>0&&Ge.createElement("span",{className:Xe.titlecount},Dt.length),Sn>0&&Ge.createElement("span",{className:Xe.add},"+",Sn)),key:"5"}]}),Ge.createElement(pe.default,{layout:"inline",form:Hn,onValuesChange:(Ze,dt)=>{const at=Object.values(dt).some(Bt=>Bt!==null&&Bt!==""&&Bt!==void 0),Mt=dt.keyword==="";if($r(at||!Mt),Qt.page=1,(dt==null?void 0:dt.item_type)==="SHIXUN"){if(Qt.type==="5"?fn(!1):fn(!0),Ze.keyword||Ze.keyword==="")return;Hn.submit()}else{if(Ze!=null&&Ze.courseid&&Hn.setFieldsValue({tag_discipline_id:null}),fn(!1),Ze.keyword||Ze.keyword==="")return;Hn.submit()}},onFinish:Ze=>{var dt;Qt.type==="3"&&(!Ze.group_id||((dt=Ze==null?void 0:Ze.group_id)==null?void 0:dt.length)===0)?Qt.show_all_share=!0:Qt.show_all_share=null,Yt(Ut(Ut({},Qt),Ze)),gr(Ut(Ut({},Qt),Ze))}},Qt.type=="1"?Ge.createElement(pe.default.Item,{name:"courseid"},Ge.createElement(Lt.Z,{className:Xe.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:xn})):Ge.createElement(pe.default.Item,{name:"courseid"},Ge.createElement(Se.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:Qt==null?void 0:Qt.type}})),!xt&&Ge.createElement(pe.default.Item,{name:"tag_discipline_id"},Ge.createElement(me.default,{className:Xe.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(rr=gt==null?void 0:gt.tag_disciplines)==null?void 0:rr.map(Ze=>Ge.createElement(me.default.Option,{key:Ze.id},Ze.name)))),Ge.createElement(pe.default.Item,{name:xt?"diff":"difficulty"},Ge.createElement(me.default,{className:Xe.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!xt&&Wr.map(Ze=>Ge.createElement(me.default.Option,{key:Ze.value},Ze.name)),xt&&Rr.map(Ze=>Ge.createElement(me.default.Option,{key:Ze.value},Ze.name)))),xt&&Ge.createElement(pe.default.Item,{name:"shixun_publish_status"},Ge.createElement(me.default,{className:Xe.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Sr.map(Ze=>Ge.createElement(me.default.Option,{key:Ze.value},Ze.name)))),Qt.type==="3"&&!xt&&Ge.createElement(pe.default.Item,{name:"teach_group_id"},Ge.createElement(me.default,{className:Xe.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(Ze,dt)=>(console.log("---",Ze,dt),dt.children.toUpperCase().indexOf(Ze.toUpperCase())!==-1)},or==null?void 0:or.map(Ze=>Ge.createElement(me.default.Option,{key:Ze.group_id},Ze.name)))),(Qt.type==="3"||Qt.type==="0")&&!xt&&Ge.createElement(pe.default.Item,{name:"group_id"},Ge.createElement(qe.default,{treeDataSimpleMode:!0,style:{width:134},className:Xe.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Ze,dt)=>dt.title.toUpperCase().indexOf(Ze.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:bt,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:tr})),Fr&&Ge.createElement("span",{className:Xe.allqingchu,onClick:wr},Ge.createElement("i",{className:"iconfont icon-guanbi4"}),Ge.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ge.createElement(pe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ge.createElement($e.default.Search,{className:Xe.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ge.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Xe.searchIcon}`,onClick:()=>Hn.submit()}),onSearch:Ze=>{Hn.submit()}}))),Ge.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ge.createElement("div",{onClick:()=>{Qt.updated_at==="asc"?Qt.updated_at="desc":Qt.updated_at="asc",Yt(Zt(Ut({},Qt),{page:1})),gr(Zt(Ut({},Qt),{page:1}))}}," ",Qt.updated_at?Ge.createElement("img",{src:Qt.updated_at==="asc"?ie.Z:de.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ge.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ge.createElement("div",{onClick:()=>{Qt.quotes==="asc"?Qt.quotes="desc":Qt.quotes="asc",Yt(Zt(Ut({},Qt),{page:1})),gr(Zt(Ut({},Qt),{page:1}))},style:{marginLeft:20}}," ",Qt.quotes?Ge.createElement("img",{src:Qt.quotes==="asc"?ie.Z:de.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ge.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ge.createElement(tt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(gt==null?void 0:gt.items)||(gt==null?void 0:gt.shixun_list),pagination:!1,locale:{emptyText:Ge.createElement(nt.Z,{styles:{margin:"18px auto"},customText:Oe()})},loading:wt,rowKey:Ze=>Ze.id,rowSelection:{type:"checkbox",selectedRowKeys:jn,getCheckboxProps:Ze=>({disabled:Ze.shixun_tag_num===1}),onSelect(Ze,dt,at){if(dt)xt&&pn([...In,Ze.id]),vt([...jn,Ze.id]),Tr([...vr,Ze]),Ze.identifier?Br.current.add(Ze.id):cr.current.add(Ze.id),$n(1),Te([...Dt,Ze.id]);else{const Mt=vr.filter(En=>En.id!==Ze.id);Tr(Mt);const Bt=Mt.map(En=>En.id);vt([...Bt]),Ze.identifier?Br.current.delete(Ze.id):cr.current.delete(Ze.id);let Wt=Dt.filter(En=>En!==Ze.id);if(Te(Wt),xt){let En=In.filter(Rn=>Rn!==Ze.id);pn([...En])}if(Qt.type==="5"){So(Zt(Ut({},Qt),{list:[...Wt]}));return}}},onSelectAll(Ze,dt,at){if(Ze){const Mt=at.map(Bt=>Bt.id);xt&&pn([...In,...Mt]),Tr([...vr,...at]),vt([...jn,...Mt]),Te([...Dt,...Mt]);for(const Bt of at)Bt.identifier?Br.current.add(Bt.id):cr.current.add(Bt.id)}else{const Mt=at.map(En=>En.id),Bt=jn.filter(En=>!Mt.some(Rn=>Rn===En)),Wt=vr.filter(En=>!Mt.some(Rn=>Rn===En.id));if(Tr(Wt),vt([...Bt]),Te([...Bt]),xt){let En=In.filter(Rn=>!Mt.some(hn=>hn===Rn.id));pn([...En])}Qt.type==="5"&&So(Zt(Ut({},Qt),{list:[...Bt]}));for(const En of Mt)En.identifier?Br.current.delete(En):cr.current.delete(En)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(Ze,dt,at)=>{const Mt=`No.${Ze}`;return Ge.createElement(be.Z,{title:Mt},Ge.createElement("span",null,Mt))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:xt?"30%":"60%",key:"name",render:(Ze,dt,at)=>{var Mt;return Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("span",null,Ge.createElement(dn.Z,{key:1,showLines:1,showTextOnly:!0,value:xt||dt!=null&&dt.challenge_names?dt!=null&&dt.title||Ze===null?"--":Ze:(dt==null?void 0:dt.item_type)=="BPROGRAM"?(Mt=dt==null?void 0:dt.program_attr)==null?void 0:Mt.description:Ze})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:Ze},Ge.createElement("span",null,Ze||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!xt,render:(Ze,dt,at)=>{var Mt;return Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("span",null,Ze?(Mt=Ze==null?void 0:Ze.split("\u3001"))==null?void 0:Mt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!xt,render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("span",null,Ze||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(Ze,dt,at)=>{var Mt,Bt,Wt,En;return Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("div",null,xt||dt!=null&&dt.challenge_names?(dt==null?void 0:dt.level)||((Bt=(Mt=Wr==null?void 0:Wr.filter(Rn=>Rn.value===Ze))==null?void 0:Mt[0])==null?void 0:Bt.name):(En=(Wt=Wr==null?void 0:Wr.filter(Rn=>Rn.value===Ze))==null?void 0:Wt[0])==null?void 0:En.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!xt,render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("div",null,Ze||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("div",null,xt||dt!=null&&dt.challenge_names?(dt==null?void 0:dt.study_count)||(dt==null?void 0:dt.stu_num):Ze))},{title:Ge.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ge.createElement(be.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ge.createElement(le.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!xt,render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("div",null,Ze||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(Ze,dt,at)=>Ge.createElement(be.Z,{title:io(dt)},Ge.createElement("div",{style:{flex:1,textAlign:"start"}},Ge.createElement("a",{onClick:()=>{var Mt,Bt;lt(Zt(Ut({},dt),{question_type:xt||dt!=null&&dt.challenge_names?5:(Bt=(Mt=br==null?void 0:br.filter(Wt=>Wt.value===(dt==null?void 0:dt.item_type)))==null?void 0:Mt[0])==null?void 0:Bt.question_type})),pt(!0)}},"\u67E5\u770B"),(dt==null?void 0:dt.shixun_tag_num)===1&&Ge.createElement("a",{style:{marginLeft:10},onClick:()=>{yt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ge.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ge.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${dt==null?void 0:dt.identifier}/challenges`)}},(dt==null?void 0:dt.shixun_name)||"--"),"\uFF1F"),onOk:()=>mn(void 0,null,function*(){if(!to(dt==null?void 0:dt.identifier))return new Promise((Mt,Bt)=>{Bt()})})})}},"\u53D1\u5E03")))}].filter(Ze=>!Ze.hidden)}),Ge.createElement(it.Z,{current:Qt.page,total:(gt==null?void 0:gt.items_count)||(gt==null?void 0:gt.shixuns_count),style:{marginBottom:20},defaultPageSize:Qt.per_page,hideOnSinglePage:!(gt!=null&>.items_count),showTotal:Ze=>Ge.createElement("span",null,"\u5171\xA0",Ge.createElement("span",{style:{color:"#165DFF"}},Ze),"\xA0\u6761\u6570\u636E"),pageSize:Qt.per_page,onChange:(Ze,dt)=>{Qt.page=Ze,Qt.per_page=dt,Yt(Ut({},Qt)),gr(Ut({},Qt))}}),Ge.createElement("div",{className:Xe.bottom},Ge.createElement(st.ZP,{className:Xe.no,onClick:()=>{St(!1)}},"\u53D6\u6D88"),Ge.createElement(st.ZP,{loading:Tn,style:{width:Tn&&75},className:Xe.yes,onClick:()=>mn(void 0,null,function*(){if((Dt==null?void 0:Dt.length)<=0){Ie.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}sn([...cr.current],[...Br.current],!0,Dt==null?void 0:Dt.length)})},"\u786E\u8BA4"))),Ge.createElement(yt.default,{open:mt,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Xe.previewModal,width:1e3,centered:!0,onCancel:()=>{pt(!1)},onOk:()=>{pt(!1)}},Ge.createElement(te,{qitem:Jn})))};var jt=(0,Re.connect)(({shixunsDetail:St,user:Et})=>({shixunsDetail:St,user:Et}))(vn),Cn=ee(66649),on=ee.n(Cn),Je=ee(78130),Tt=ee(63392),an=ee(3761),_t=ee(59301),je=Object.defineProperty,Pt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,nr=(St,Et,sn)=>Et in St?je(St,Et,{enumerable:!0,configurable:!0,writable:!0,value:sn}):St[Et]=sn,ir=(St,Et)=>{for(var sn in Et||(Et={}))On.call(Et,sn)&&nr(St,sn,Et[sn]);if(nn)for(var sn of nn(Et))_n.call(Et,sn)&&nr(St,sn,Et[sn]);return St},Zn=(St,Et)=>Pt(St,Kt(Et)),er=(St,Et,sn)=>new Promise((Pn,Tn)=>{var Jt=Nn=>{try{gn(sn.next(Nn))}catch(An){Tn(An)}},wn=Nn=>{try{gn(sn.throw(Nn))}catch(An){Tn(An)}},gn=Nn=>Nn.done?Pn(Nn.value):Promise.resolve(Nn.value).then(Jt,wn);gn((sn=sn.apply(St,Et)).next())});const kn=({title:St,icon:Et,className:sn,style:Pn,children:Tn})=>_t.createElement("div",{className:et()(Me.card,sn),style:Pn},_t.createElement("div",{className:Me.head},_t.createElement("i",{className:Et}),_t.createElement("b",null,St)),_t.createElement("div",{className:Me.element},Tn));var bn=()=>{var St;const Et=(0,Re.useParams)(),sn=(0,Re.useDispatch)(),[Pn]=pe.default.useForm(),Tn=pe.default.useWatch("hack_score_settings",Pn),[,,Jt,wn]=(0,Tt.U)(an.lk,{id:Et.pathId}),[gn,Nn]=(0,b.useState)([]),[An,rr]=(0,b.useState)(!0),[Qt,Yt]=(0,b.useState)(!1),[xn,Vn]=(0,b.useState)(!1),[jn,vt]=(0,b.useState)({}),[Dt,Te]=(0,b.useState)(!1),[gt,Ke]=(0,b.useState)(!1),wt=(0,b.useRef)(String(Math.random()).slice(-6)),Ht=(St=window.location.pathname)==null?void 0:St.includes("add");(0,b.useEffect)(()=>(window.addEventListener("visibilitychange",Hn),()=>{window.removeEventListener("visibilitychange",Hn)}),[gn,jn]),(0,b.useEffect)(()=>(sn({type:"globalSetting/footerToggle",payload:!1}),()=>{sn({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,b.useEffect)(()=>{gn.length&&Tn!==void 0&&xt()},[Tn,JSON.stringify(gn==null?void 0:gn.map(pn=>pn.id+pn.hack_score))]),(0,b.useEffect)(()=>{Jt({id:Et==null?void 0:Et.pathId}),Ht?rr(!1):Jn()},[]);const Hn=()=>er(void 0,null,function*(){var pn;if(document.visibilityState==="visible"){Ke(!0);let Sn=gn.map(ur=>ur.id),$n=localStorage.getItem(wt.current);$n&&($n=JSON.parse($n),$n=Array.isArray($n)?$n:[],Sn=[...Sn,...$n],localStorage.removeItem(wt.current));const qn=yield(0,Xt.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:Sn.length?Sn:-1,homework_common_id:Ht?null:jn==null?void 0:jn.homework_id}});if(qn!=null&&qn.items){const ur=(pn=qn==null?void 0:qn.items)==null?void 0:pn.map(tr=>{const Xn=gn.find(or=>or.id===tr.id);return Xn?Zn(ir({},tr),{hack_score:Xn.hack_score}):tr});Nn(ur)}Ke(!1)}}),Jn=()=>er(void 0,null,function*(){var pn,Sn;const $n=yield(0,Xt.ZP)(`/api/homework_commons/${Et==null?void 0:Et.categoryId}/edit_hack.json`,{method:"get"});if(($n==null?void 0:$n.status)===0){const qn=(pn=$n==null?void 0:$n.collaborators_data)==null?void 0:pn.map(tr=>({user_id:tr.id,name:tr.real_name}));Pn.setFieldsValue(Zn(ir({},$n),{user_ids:qn,rank_forbidden_start:$n!=null&&$n.rank_forbidden_start?on()($n==null?void 0:$n.rank_forbidden_start):"",rank_forbidden_end:$n!=null&&$n.rank_forbidden_end?on()($n==null?void 0:$n.rank_forbidden_end):""}));const ur=(Sn=$n==null?void 0:$n.items)==null?void 0:Sn.map((tr,Xn)=>{var or,dr;return Zn(ir({},tr),{hack_score:(dr=(or=$n==null?void 0:$n.hack_settings)==null?void 0:or[Xn])==null?void 0:dr.hack_score})});Nn(ur||[]),vt(ir({},$n))}rr(!1)}),lt=()=>{let pn=`/paths/${Et==null?void 0:Et.pathId}`;return Ht||(pn=`/paths/${Et==null?void 0:Et.pathId}/${Et==null?void 0:Et.stageId}/program_homework/${Et==null?void 0:Et.categoryId}/add`),pn},mt=[{name:(wn==null?void 0:wn.name)||"",path:`/paths/${Et==null?void 0:Et.pathId}`},{name:Ht?"\u7F16\u7A0B\u4F5C\u4E1A":jn==null?void 0:jn.name,path:lt()},{name:(Ht?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],pt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(pn,Sn,$n)=>$n+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:pn=>_t.createElement(be.Z,{placement:"topLeft",title:pn},_t.createElement("span",null,pn||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(pn,Sn,$n)=>_t.createElement(Ve.Z,{disabled:Tn!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:pn,onChange:qn=>{gn[$n].hack_score=qn;const ur=gn.reduce((tr,Xn)=>tr+Number(Xn.hack_score||0),0);Pn.setFieldsValue({total_score:ur.toFixed(2)}),Nn([...gn])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:pn=>_t.createElement("span",null,pn===1?"\u7B80\u5355":pn===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:pn=>_t.createElement(be.Z,{placement:"topLeft",title:pn},_t.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},pn||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(pn,Sn)=>_t.createElement("span",null,_t.createElement("span",{onClick:()=>er(void 0,null,function*(){var $n;sn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let qn=yield(0,Xt.ZP)(`/api/problems/${($n=Sn==null?void 0:Sn.program_attr)==null?void 0:$n.identifier}/start.json`,{method:"get"});(qn==null?void 0:qn.status)===0&&(0,Ue.xg)(`/myproblems/${qn==null?void 0:qn.identifier}?type=1&pageId=edit&backUrl=${lt()}`),sn({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),_t.createElement("span",{onClick:()=>{var $n;return(0,Ue.xg)(`/problems/newedit/${($n=Sn==null?void 0:Sn.program_attr)==null?void 0:$n.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),_t.createElement("span",{onClick:()=>{const $n=gn.filter(qn=>qn.id!==Sn.id);Nn($n),Ie.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],xt=()=>{const pn=[...gn],Sn=Pn.getFieldValue("total_score"),$n=pn==null?void 0:pn.length;let qn=0,ur;switch(Tn){case 0:const tr=(Sn/$n).toFixed(2);pn.map((cr,Er)=>{qn=Er,cr.hack_score=tr>0?tr:0}),ur=(Sn-tr*($n-1)).toFixed(2),pn[qn].hack_score=ur>0?ur:0;break;case 1:const Xn=[0,1,3,6];let or=0;const dr=pn.filter(cr=>cr.difficulty===1).length*Xn[1],br=pn.filter(cr=>cr.difficulty===2).length*Xn[2],vr=pn.filter(cr=>cr.difficulty===3).length*Xn[3],Tr=Sn/(dr+br+vr);pn.map((cr,Er)=>{qn=Er,cr.hack_score=(Xn[cr.difficulty]*Tr).toFixed(2),or=or+Number(cr.hack_score)});let Br=pn[qn].hack_score;ur=(Sn-or+Number(Br)).toFixed(2),pn[qn].hack_score=ur>0?ur:0;break}Nn(pn)},fn=pn=>er(void 0,null,function*(){if(!gn.length){Ie.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Pn.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Te(!0);const Sn=yield(0,Xt.ZP)(`/api/paths/${Et==null?void 0:Et.pathId}/create_hack_homework`,{method:"post",body:Zn(ir({},pn),{type:5,category:Ht?Number(Et==null?void 0:Et.categoryId):null,hack_ids:gn.map($n=>$n==null?void 0:$n.hack_id),stage_id:Number(Et==null?void 0:Et.stageId),stage_shixun_id:Number(Et==null?void 0:Et.categoryId)})});(Sn==null?void 0:Sn.status)===0&&(Ie.ZP.success("\u4FDD\u5B58\u6210\u529F"),Re.history.push(`/paths/${Et==null?void 0:Et.pathId}`)),Te(!1)}),In=pn=>er(void 0,null,function*(){if(!pn.length){Ie.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(pn.length>200){Ie.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const Sn=[],$n=gn.map(tr=>{var Xn;return(Xn=tr.program_attr)==null?void 0:Xn.origin_item_bank_id}),qn=[];pn.forEach(tr=>{if($n.includes(tr)){const Xn=gn.find(or=>{var dr;return((dr=or.program_attr)==null?void 0:dr.origin_item_bank_id)===tr});qn.push(Xn)}else Sn.push(tr)}),Vn(!0);const ur=yield(0,Xt.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:Sn}});if(ur!=null&&ur.items){const tr=[...qn,...ur==null?void 0:ur.items];if(Tn===2){const Xn=tr.reduce((or,dr)=>or+Number(dr.hack_score||0),0);Pn.setFieldsValue({total_score:Xn.toFixed(2)})}Nn(tr),Yt(!1)}Vn(!1)});return _t.createElement("div",{className:Me.wrap},_t.createElement(ue.Z,{spinning:An},_t.createElement("div",{className:Me.center,style:{paddingBottom:"80px"}},_t.createElement(Pe._b,{dataSource:mt,className:"mb20"}),_t.createElement(pe.default,{form:Pn,preserve:!1,onValuesChange:pn=>{"total_score"in pn&&xt()},onFinishFailed:pn=>er(void 0,null,function*(){var Sn,$n;Ie.ZP.error(pn.errorFields[0].errors[0]),Pn.scrollToField(($n=(Sn=pn==null?void 0:pn.errorFields)==null?void 0:Sn[0])==null?void 0:$n.name,{behavior:"smooth",block:"center"})}),onFinish:fn,colon:!1,size:"large"},_t.createElement(kn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},_t.createElement(pe.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},_t.createElement($e.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),_t.createElement(pe.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},_t.createElement(Je.h,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0,scrollId:"description"}))),_t.createElement(kn,{title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},_t.createElement(pe.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},_t.createElement(Ee.default.Group,null,_t.createElement(Ee.default,{value:"c"},"C\u8BED\u8A00"),_t.createElement(Ee.default,{value:"c++"},"C++\u8BED\u8A00"),_t.createElement(Ee.default,{value:"java"},"Java\u8BED\u8A00"),_t.createElement(Ee.default,{value:"python"},"Python\u8BED\u8A00"))),_t.createElement(Rt.Z,{align:"middle"},_t.createElement(pe.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},_t.createElement(Ve.Z,{precision:1,disabled:Tn===2,min:0,style:{width:223},addonAfter:"\u5206"})),_t.createElement(pe.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},_t.createElement(Ve.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),_t.createElement(pe.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},_t.createElement(ot.ZP.Group,null,_t.createElement(ot.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),_t.createElement(ot.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),_t.createElement(ot.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),_t.createElement(Rt.Z,{align:"middle"},_t.createElement("span",null,"\u9898\u76EE\u5217\u8868"),_t.createElement(st.ZP,{onClick:()=>Yt(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),_t.createElement(st.ZP,{onClick:()=>(0,Ue.xg)(`/problems/newcreate?pageId=${wt.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),_t.createElement("div",{className:Me.tip},_t.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),_t.createElement(pe.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},_t.createElement(he,{dataSource:gn,setDataSource:Nn,columns:pt,loading:gt}))))),_t.createElement("div",{className:Me.fixedBtns},_t.createElement(Rt.Z,{align:"middle",className:Me.center},_t.createElement(st.ZP,{onClick:()=>Re.history.push(`/paths/${Et==null?void 0:Et.pathId}`),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),_t.createElement(st.ZP,{loading:Dt,disabled:Dt,className:"ml-auto",onClick:()=>{Pn.submit()},style:{padding:"6px 40px"},type:"primary"},"\u4FDD\u5B58\u4F5C\u4E1A")))),_t.createElement(jt,{setScoreShow:Yt,isshixuns:!1,ScoreShow:Qt,virtualId:wt.current,isloadings:xn,onOk:In,selectedIds:gn.map(pn=>{var Sn;return(Sn=pn.program_attr)==null?void 0:Sn.origin_item_bank_id})||[]}))}},63392:function(Bn,rn,ee){"use strict";ee.d(rn,{U:function(){return Ie}});var b=ee(59301),Me=Object.defineProperty,ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,pe=(ue,$e,Ee)=>$e in ue?Me(ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ue[$e]=Ee,be=(ue,$e)=>{for(var Ee in $e||($e={}))et.call($e,Ee)&&pe(ue,Ee,$e[Ee]);if(ce)for(var Ee of ce($e))Pe.call($e,Ee)&&pe(ue,Ee,$e[Ee]);return ue},Ve=(ue,$e,Ee)=>new Promise((Rt,ot)=>{var st=ft=>{try{Re(Ee.next(ft))}catch(kt){ot(kt)}},Ue=ft=>{try{Re(Ee.throw(ft))}catch(kt){ot(kt)}},Re=ft=>ft.done?Rt(ft.value):Promise.resolve(ft.value).then(st,Ue);Re((Ee=Ee.apply(ue,$e)).next())});function Ie(ue,$e){const[Ee,Rt]=(0,b.useState)($e),[ot,st]=(0,b.useState)(!1),[Ue,Re]=(0,b.useState)();return[Ee,ot,(kt,en=!1)=>Ve(this,null,function*(){const Qe=en?$e:be(be({},Ee),kt);st(!0),Rt(Qe);const Ae=yield ue(Qe);return st(!1),Re(Ae),Ae}),Ue,Re]}},20047:function(Bn,rn,ee){"use strict";ee.d(rn,{AL:function(){return Qe},Iy:function(){return $e},Qv:function(){return ot},ez:function(){return en},jb:function(){return Ee}});var b=ee(32834),Me=ee.n(b),ce=ee(11690),et=ee.n(ce);let Pe=1;function pe(Ot,ht){const Ct=Ot.match(/^(\s+)(?:```)/);if(Ct===null)return ht;const De=Ct[1];return ht.split(` `).map(ke=>{const xe=ke.match(/^\s+/);if(xe===null)return ke;const[se]=xe;return se.length>=De.length?ke.slice(De.length):ke}).join(` `)}let be=[],Ve=["
    "];const Ie=new(Me()).Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function $e(){be.length=0,Ve=["
      "]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Rt(Ot,ht,Ct,De){if(ht>=Ot.length||Ot[ht].level<=Ct)return ht;var ke=Ot[ht];De.push("
    • "+ke.text+""),ht++;var xe=[];return ht=Rt(Ot,ht,ke.level,xe),xe.length>0&&(De.push("
        "),xe.forEach(function(se){De.push(se)}),De.push("
      ")),De.push("
    • "),ht=Rt(Ot,ht,Ct,De),ht}function ot(){return Rt(be,0,0,Ve),Ve.push("
    "),Ve.join("")}const st={heading(Ot){const ht=ue.exec(Ot);if(Pe+=1,ht)return{type:"heading",raw:ht[0],depth:ht[1].length,text:ht[2]}},fences(Ot){const ht=this.rules.block.fences.exec(Ot);if(ht){const Ct=ht[0];let De=pe(Ct,ht[3]||"");const ke=ht[2]?ht[2].trim():ht[2];if(["latex","katex","math"].indexOf(ke)>=0){const xe=ft(),se=De;De=xe,kt[xe]={type:"block",expression:se}}return{type:"code",raw:Ct,lang:ke,text:De}}}},Ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Re=0;const ft=()=>`__special_katext_id_${Re++}__`;let kt={};function en(){return kt}function Qe(){Re=0,kt={}}function Ae(Ot){return Ot=Ot.replace(Ue,(ht,Ct)=>{const De=ft();return kt[De]={type:"inline",expression:Ct},De}),Ot}const tt=Ie.listitem;Ie.listitem=function(Ot){return tt(Ae(Ot))};const nt=Ie.paragraph;Ie.paragraph=function(Ot){return nt(Ae(Ot))};const zt=Ie.tablecell;Ie.tablecell=function(Ot,ht){return zt(Ae(Ot),ht)},Ie.code=function(Ot,ht,Ct){const De=(ht||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`

    ${Ot}

    `:`
    ${Ct?Ot:(0,ce.escape)(Ot,!0)}
    `:'
    '+(Ct?Ot:(0,ce.escape)(Ot,!0))+"
    "},Ie.heading=function(Ot,ht,Ct){let De=this.options.headerPrefix+Ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return be.push({anchor:De,level:ht,text:Ot}),"'+Ot+""},Me().setOptions({silent:!0,gfm:!0,pedantic:!1}),Me().use({tokenizer:st,renderer:Ie}),rn.ZP=Me()},9981:function(Bn,rn){"use strict";const ee=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Me=1;Me{const Pe=ce[et];Pe!==void 0&&(b[et]=Pe)})}return b};rn.Z=ee},86013:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=ee(19248);const ce=et=>{let Pe;return typeof et=="object"&&(et!=null&&et.clearIcon)?Pe=et:et&&(Pe={clearIcon:b.createElement(Me.Z,null)}),Pe};rn.Z=ce},97224:function(Bn,rn,ee){"use strict";ee.d(rn,{F:function(){return b}});function b(ce){return ce!=null&&ce===ce.window}const Me=ce=>{var et,Pe;if(typeof window=="undefined")return 0;let pe=0;return b(ce)?pe=ce.pageYOffset:ce instanceof Document?pe=ce.documentElement.scrollTop:(ce instanceof HTMLElement||ce)&&(pe=ce.scrollTop),ce&&!b(ce)&&typeof pe!="number"&&(pe=(Pe=((et=ce.ownerDocument)!==null&&et!==void 0?et:ce).documentElement)===null||Pe===void 0?void 0:Pe.scrollTop),pe};rn.Z=Me},83010:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return et}});var b=ee(16089);function Me(Pe,pe,be,Ve){const Ie=be-pe;return Pe/=Ve/2,Pe<1?Ie/2*Pe*Pe*Pe+pe:Ie/2*((Pe-=2)*Pe*Pe+2)+pe}var ce=ee(97224);function et(Pe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:be=()=>window,callback:Ve,duration:Ie=450}=pe,ue=be(),$e=(0,ce.Z)(ue),Ee=Date.now(),Rt=()=>{const st=Date.now()-Ee,Ue=Me(st>Ie?Ie:st,$e,Pe,Ie);(0,ce.F)(ue)?ue.scrollTo(window.pageXOffset,Ue):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=Ue:ue.scrollTop=Ue,st2&&arguments[2]!==void 0?arguments[2]:!1;vr.forEach(function(cr){if(!(!or&&Xn!==!1&&Xn>0&&dr.length>=Xn)){var Er=[].concat((0,b.Z)(Tr),[cr]),Wr=cr[xt.children],Rr=Br||cr.disabled;if((!Wr||Wr.length===0||pn)&&$n(mt,Er,{label:xt.label})){var Sr;dr.push((0,pe.Z)((0,pe.Z)({},cr),{},(Sr={disabled:Rr},(0,Ue.Z)(Sr,xt.label,ur(mt,Er,fn,xt)),(0,Ue.Z)(Sr,Re,Er),(0,Ue.Z)(Sr,xt.children,void 0),Sr)))}Wr&&br(cr[xt.children],Er,Rr)}})}return br(pt,[]),or&&dr.sort(function(vr,Tr){return or(vr[Re],Tr[Re],mt,xt)}),Xn!==!1&&Xn>0?dr.slice(0,Xn):dr},[mt,pt,xt,fn,ur,pn,$n,or,Xn])},Qe=en,Ae="__RC_CASCADER_SPLIT__",tt="SHOW_PARENT",nt="SHOW_CHILD";function zt(lt){return lt.join(Ae)}function Ot(lt){return lt.map(zt)}function ht(lt){return lt.split(Ae)}function Ct(lt){var mt=lt||{},pt=mt.label,xt=mt.value,fn=mt.children,In=xt||"value";return{label:pt||"label",value:In,key:In,children:fn||"children"}}function De(lt,mt){var pt,xt;return(pt=lt.isLeaf)!==null&&pt!==void 0?pt:!((xt=lt[mt.children])!==null&&xt!==void 0&&xt.length)}function ke(lt){var mt=lt.parentElement;if(mt){var pt=lt.offsetTop-mt.offsetTop;pt-mt.scrollTop<0?mt.scrollTo({top:pt}):pt+lt.offsetHeight-mt.scrollTop>mt.offsetHeight&&mt.scrollTo({top:pt+lt.offsetHeight-mt.offsetHeight})}}function xe(lt,mt){return lt.map(function(pt){var xt;return(xt=pt[Re])===null||xt===void 0?void 0:xt.map(function(fn){return fn[mt.value]})})}function se(lt){return Array.isArray(lt)&&Array.isArray(lt[0])}function It(lt){return lt?se(lt)?lt:(lt.length===0?[]:[lt]).map(function(mt){return Array.isArray(mt)?mt:[mt]}):[]}function _e(lt,mt,pt){var xt=new Set(lt),fn=mt();return lt.filter(function(In){var pn=fn[In],Sn=pn?pn.parent:null,$n=pn?pn.children:null;return pn&&pn.node.disabled?!0:pt===nt?!($n&&$n.some(function(qn){return qn.key&&xt.has(qn.key)})):!(Sn&&!Sn.node.disabled&&xt.has(Sn.key))})}function Ye(lt,mt,pt){for(var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,fn=mt,In=[],pn=function(){var qn,ur,tr,Xn=lt[Sn],or=(qn=fn)===null||qn===void 0?void 0:qn.findIndex(function(br){var vr=br[pt.value];return xt?String(vr)===String(Xn):vr===Xn}),dr=or!==-1?(ur=fn)===null||ur===void 0?void 0:ur[or]:null;In.push({value:(tr=dr==null?void 0:dr[pt.value])!==null&&tr!==void 0?tr:Xn,index:or,option:dr}),fn=dr==null?void 0:dr[pt.children]},Sn=0;Sn1){var Sr=dr.slice(0,-1);Br(Sr)}else qn(!1)},Wr=function(){var Sr,Fr=((Sr=vr[br])===null||Sr===void 0?void 0:Sr[pt.children])||[],$r=Fr.find(function(gr){return!gr.disabled});if($r){var wr=[].concat((0,b.Z)(dr),[$r[pt.value]]);Br(wr)}};Me.useImperativeHandle(lt,function(){return{onKeyDown:function(Sr){var Fr=Sr.which;switch(Fr){case te.Z.UP:case te.Z.DOWN:{var $r=0;Fr===te.Z.UP?$r=-1:Fr===te.Z.DOWN&&($r=1),$r!==0&&cr($r);break}case te.Z.LEFT:{if($n)break;tr?Wr():Er();break}case te.Z.RIGHT:{if($n)break;tr?Er():Wr();break}case te.Z.BACKSPACE:{$n||Er();break}case te.Z.ENTER:{if(dr.length){var wr=vr[br],gr=(wr==null?void 0:wr[Re])||[];gr.length?In(gr.map(function(yr){return yr[pt.value]}),gr[gr.length-1]):In(dr,vr[br])}break}case te.Z.ESC:qn(!1),ur&&Sr.stopPropagation()}},onKeyUp:function(){}}})},de=Me.forwardRef(function(lt,mt){var pt,xt,fn,In=lt.prefixCls,pn=lt.multiple,Sn=lt.searchValue,$n=lt.toggleOpen,qn=lt.notFoundContent,ur=lt.direction,tr=lt.open,Xn=lt.disabled,or=Me.useRef(null),dr=ur==="rtl",br=Me.useContext(ot),vr=br.options,Tr=br.values,Br=br.halfValues,cr=br.fieldNames,Er=br.changeOnSelect,Wr=br.onSelect,Rr=br.searchOptions,Sr=br.dropdownPrefixCls,Fr=br.loadData,$r=br.expandTrigger,wr=Sr||In,gr=Me.useState([]),yr=(0,be.Z)(gr,2),Xr=yr[0],go=yr[1],So=function(pr){if(!(!Fr||Sn)){var mr=Ye(pr,vr,cr),kr=mr.map(function(Or){var Dr=Or.option;return Dr}),xr=kr[kr.length-1];if(xr&&!De(xr,cr)){var Gr=zt(pr);go(function(Or){return[].concat((0,b.Z)(Or),[Gr])}),Fr(kr)}}};Me.useEffect(function(){Xr.length&&Xr.forEach(function(sr){var pr=ht(sr),mr=Ye(pr,vr,cr,!0).map(function(xr){var Gr=xr.option;return Gr}),kr=mr[mr.length-1];(!kr||kr[cr.children]||De(kr,cr))&&go(function(xr){return xr.filter(function(Gr){return Gr!==sr})})})},[vr,Xr,cr]);var to=Me.useMemo(function(){return new Set(Ot(Tr))},[Tr]),io=Me.useMemo(function(){return new Set(Ot(Br))},[Br]),Oe=ne(pn,tr),We=(0,be.Z)(Oe,2),bt=We[0],Ze=We[1],dt=function(pr){Ze(pr),So(pr)},at=function(pr){if(Xn)return!1;var mr=pr.disabled,kr=De(pr,cr);return!mr&&(kr||Er||pn)},Mt=function(pr,mr){var kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wr(pr),!pn&&(mr||Er&&($r==="hover"||kr))&&$n(!1)},Bt=Me.useMemo(function(){return Sn?Rr:vr},[Sn,Rr,vr]),Wt=Me.useMemo(function(){for(var sr=[{options:Bt}],pr=Bt,mr=xe(pr,cr),kr=function(){var Or=bt[xr],Dr=pr.find(function(_r,fo){return(mr[fo]?zt(mr[fo]):_r[cr.value])===Or}),Ar=Dr==null?void 0:Dr[cr.children];if(!(Ar!=null&&Ar.length))return 1;pr=Ar,sr.push({options:Ar})},xr=0;xr":Tr,cr=pt.loadingIcon,Er=pt.direction,Wr=pt.notFoundContent,Rr=Wr===void 0?"Not Found":Wr,Sr=pt.disabled,Fr=!!$n,$r=(0,Ge.C8)(qn,{value:ur,postState:It}),wr=(0,be.Z)($r,2),gr=wr[0],yr=wr[1],Xr=Me.useMemo(function(){return Ct(tr)},[JSON.stringify(tr)]),go=Vt(Xr,Sn),So=(0,be.Z)(go,3),to=So[0],io=So[1],Oe=So[2],We=Ce(to,Xr),bt=Xt(Fr,gr,io,Oe,We),Ze=(0,be.Z)(bt,3),dt=Ze[0],at=Ze[1],Mt=Ze[2],Bt=(0,Ge.zX)(function(Gn){if(yr(Gn),or){var lr=It(Gn),sr=lr.map(function(kr){return Ye(kr,to,Xr).map(function(xr){return xr.option})}),pr=Fr?lr:lr[0],mr=Fr?sr:sr[0];or(pr,mr)}}),Wt=it(Fr,Bt,dt,at,Mt,io,Oe,dr),En=(0,Ge.zX)(function(Gn){Wt(Gn)}),Rn=Me.useMemo(function(){return{options:to,fieldNames:Xr,values:dt,halfValues:at,changeOnSelect:Xn,onSelect:En,checkable:$n,searchOptions:[],dropdownPrefixCls:void 0,loadData:br,expandTrigger:vr,expandIcon:Br,loadingIcon:cr,dropdownMenuColumnStyle:void 0}},[to,Xr,dt,at,Xn,En,$n,br,vr,Br,cr]),hn="".concat(fn,"-panel"),Ln=!to.length;return Me.createElement(ot.Provider,{value:Rn},Me.createElement("div",{className:et()(hn,(mt={},(0,Ue.Z)(mt,"".concat(hn,"-rtl"),Er==="rtl"),(0,Ue.Z)(mt,"".concat(hn,"-empty"),Ln),mt),pn),style:In},Ln?Rr:Me.createElement(re,{prefixCls:fn,searchValue:"",multiple:Fr,toggleOpen:He,open:!0,direction:Er,disabled:Sr})))}function rt(lt){var mt=lt.onPopupVisibleChange,pt=lt.popupVisible,xt=lt.popupClassName,fn=lt.popupPlacement;warning(!mt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(pt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(xt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(fn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ut(lt,mt){if(lt){var pt=function xt(fn){for(var In=0;In":So,io=lt.loadingIcon,Oe=lt.children,We=lt.dropdownMatchSelectWidth,bt=We===void 0?!1:We,Ze=lt.showCheckedStrategy,dt=Ze===void 0?tt:Ze,at=lt.optionRender,Mt=(0,Ve.Z)(lt,Ne),Bt=(0,ue.ZP)(pt),Wt=!!tr,En=(0,Ee.Z)(pn,{value:Sn,postState:It}),Rn=(0,be.Z)(En,2),hn=Rn[0],Ln=Rn[1],Gn=Me.useMemo(function(){return Ct(In)},[JSON.stringify(In)]),lr=Vt(Gn,Br),sr=(0,be.Z)(lr,3),pr=sr[0],mr=sr[1],kr=sr[2],xr=(0,Ee.Z)("",{value:dr,postState:function(Jr){return Jr||""}}),Gr=(0,be.Z)(xr,2),Or=Gr[0],Dr=Gr[1],Ar=function(Jr,mo){Dr(Jr),mo.source!=="blur"&&br&&br(Jr)},_r=me(vr),fo=(0,be.Z)(_r,2),ko=fo[0],Io=fo[1],Vo=Qe(Or,pr,Gn,cr||fn,Io,$n||Wt),Qr=Ce(pr,Gn),Vr=Xt(Wt,hn,mr,kr,Qr),_o=(0,be.Z)(Vr,3),Uo=_o[0],ni=_o[1],Zi=_o[2],Si=Me.useMemo(function(){var Pr=Ot(Uo),Jr=_e(Pr,mr,dt);return[].concat((0,b.Z)(Zi),(0,b.Z)(kr(Jr)))},[Uo,mr,kr,Zi,dt]),Ai=Ft(Si,pr,Gn,Wt,ur),Oi=(0,$e.Z)(function(Pr){if(Ln(Pr),qn){var Jr=It(Pr),mo=Jr.map(function($o){return Ye($o,pr,Gn).map(function(Ro){return Ro.option})}),ui=Wt?Jr:Jr[0],Zo=Wt?mo:mo[0];qn(ui,Zo)}}),Go=it(Wt,Oi,Uo,ni,Zi,mr,kr,dt),Di=(0,$e.Z)(function(Pr){(!Wt||or)&&Dr(""),Go(Pr)}),ya=function(Jr,mo){if(mo.type==="clear"){Oi([]);return}var ui=mo.values[0],Zo=ui.valueCells;Di(Zo)},Qi=Rr!==void 0?Rr:Wr,Qo=Fr||Sr,Ha=yr||gr,Ba=function(Jr){Xr==null||Xr(Jr),go==null||go(Jr)},wo=Me.useMemo(function(){return{options:pr,fieldNames:Gn,values:Uo,halfValues:ni,changeOnSelect:$n,onSelect:Di,checkable:tr,searchOptions:Vo,dropdownPrefixCls:cr,loadData:Er,expandTrigger:Tr,expandIcon:to,loadingIcon:io,dropdownMenuColumnStyle:$r,optionRender:at}},[pr,Gn,Uo,ni,$n,Di,tr,Vo,cr,Er,Tr,to,io,$r,at]),Eo=!(Or?Vo:pr).length,Zr=Or&&Io.matchInputWidth||Eo?{}:{minWidth:"auto"};return Me.createElement(ot.Provider,{value:wo},Me.createElement(Ie.Ac,(0,Pe.Z)({},Mt,{ref:mt,id:Bt,prefixCls:fn,autoClearSearchValue:or,dropdownMatchSelectWidth:bt,dropdownStyle:(0,pe.Z)((0,pe.Z)({},Zr),wr),displayValues:Ai,onDisplayValuesChange:ya,mode:Wt?"multiple":void 0,searchValue:Or,onSearch:Ar,showSearch:ko,OptionList:Se,emptyOptions:Eo,open:Qi,dropdownClassName:Qo,placement:Ha,onDropdownVisibleChange:Ba,getRawInputElement:function(){return Oe}})))});Be.SHOW_PARENT=tt,Be.SHOW_CHILD=nt,Be.Panel=Le;var Ut=Be,Zt=Ut,mn=ee(2738),vn=ee(75030),jt=ee(86641),Cn=ee(45915),on=ee(82855),Je=ee(48755),Tt=ee(38406),an=ee(2171),_t=ee(83397),je=ee(31756),Pt=ee(56553),Kt=ee(24971),nn=ee(1722),On=ee(90376),_n=ee(68525),nr=ee(90005),ir=ee(70045);function Zn(lt,mt){const{getPrefixCls:pt,direction:xt,renderEmpty:fn}=Me.useContext(Je.E_),In=mt||xt,pn=pt("select",lt),Sn=pt("cascader",lt);return[pn,Sn,In,fn]}var er=Zn;function kn(lt,mt){return Me.useMemo(()=>mt?Me.createElement("span",{className:`${lt}-checkbox-inner`}):!1,[mt])}var cn=ee(33853),bn=ee(58617),St=ee(38819),sn=(lt,mt,pt)=>{let xt=pt;pt||(xt=mt?Me.createElement(cn.Z,null):Me.createElement(St.Z,null));const fn=Me.createElement("span",{className:`${lt}-menu-item-loading-icon`},Me.createElement(bn.Z,{spin:!0}));return Me.useMemo(()=>[xt,fn],[xt])},Pn=ee(56119),Tn=ee(16931),Jt=ee(36237),wn=ee(36170),gn=ee(63356),An=lt=>{const{prefixCls:mt,componentCls:pt}=lt,xt=`${pt}-menu-item`,fn=` &${xt}-expand ${xt}-expand-icon, ${xt}-loading-icon `;return[(0,wn.C2)(`${mt}-checkbox`,lt),{[pt]:{"&-checkbox":{top:0,marginInlineEnd:lt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${pt}-menu-empty`]:{[`${pt}-menu`]:{width:"100%",height:"auto",[xt]:{color:lt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:lt.controlItemWidth,height:lt.dropdownHeight,margin:0,padding:lt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Jt.unit)(lt.lineWidth)} ${lt.lineType} ${lt.colorSplit}`},"&-item":Object.assign(Object.assign({},gn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:lt.optionPadding,lineHeight:lt.lineHeight,cursor:"pointer",transition:`all ${lt.motionDurationMid}`,borderRadius:lt.borderRadiusSM,"&:hover":{background:lt.controlItemBgHover},"&-disabled":{color:lt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[fn]:{color:lt.colorTextDisabled}},[`&-active:not(${xt}-disabled)`]:{"&, &:hover":{color:lt.optionSelectedColor,fontWeight:lt.optionSelectedFontWeight,backgroundColor:lt.optionSelectedBg}},"&-content":{flex:"auto"},[fn]:{marginInlineStart:lt.paddingXXS,color:lt.colorTextDescription,fontSize:lt.fontSizeIcon},"&-keyword":{color:lt.colorHighlight}})}}}]};const rr=lt=>{const{componentCls:mt,antCls:pt}=lt;return[{[mt]:{width:lt.controlWidth}},{[`${mt}-dropdown`]:[{[`&${pt}-select-dropdown`]:{padding:0}},An(lt)]},{[`${mt}-dropdown-rtl`]:{direction:"rtl"}},(0,Pn.c)(lt)]},Qt=lt=>{const mt=Math.round((lt.controlHeight-lt.fontSize*lt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:lt.controlItemBgActive,optionSelectedFontWeight:lt.fontWeightStrong,optionPadding:`${mt}px ${lt.paddingSM}px`,menuPadding:lt.paddingXXS,optionSelectedColor:lt.colorText}};var Yt=(0,Tn.I$)("Cascader",lt=>[rr(lt)],Qt);const xn=lt=>{const{componentCls:mt}=lt;return{[`${mt}-panel`]:[An(lt),{display:"inline-flex",border:`${(0,Jt.unit)(lt.lineWidth)} ${lt.lineType} ${lt.colorSplit}`,borderRadius:lt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${mt}-menus`]:{alignItems:"stretch"},[`${mt}-menu`]:{height:"auto"},"&-empty":{padding:lt.paddingXXS}}]}};var Vn=(0,Tn.A1)(["Cascader","Panel"],lt=>xn(lt),Qt);function jn(lt){const{prefixCls:mt,className:pt,multiple:xt,rootClassName:fn,notFoundContent:In,direction:pn,expandIcon:Sn,disabled:$n}=lt,qn=Me.useContext(an.Z),ur=$n!=null?$n:qn,[tr,Xn,or,dr]=er(mt,pn),br=(0,_t.Z)(Xn),[vr,Tr,Br]=Yt(Xn,br);Vn(Xn);const cr=or==="rtl",[Er,Wr]=sn(tr,cr,Sn),Rr=In||(dr==null?void 0:dr("Cascader"))||Me.createElement(Tt.Z,{componentName:"Cascader"}),Sr=kn(Xn,xt);return vr(Me.createElement(Le,Object.assign({},lt,{checkable:Sr,prefixCls:Xn,className:et()(pt,Tr,fn,Br,br),notFoundContent:Rr,direction:or,expandIcon:Er,loadingIcon:Wr,disabled:ur})))}var vt=jn,Dt=function(lt,mt){var pt={};for(var xt in lt)Object.prototype.hasOwnProperty.call(lt,xt)&&mt.indexOf(xt)<0&&(pt[xt]=lt[xt]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,xt=Object.getOwnPropertySymbols(lt);fn$n===0?[Sn]:[].concat((0,b.Z)(pn),[mt,Sn]),[]),fn=[];let In=0;return xt.forEach((pn,Sn)=>{const $n=In+pn.length;let qn=lt.slice(In,$n);In=$n,Sn%2===1&&(qn=Me.createElement("span",{className:`${pt}-menu-item-keyword`,key:`separator-${Sn}`},qn)),fn.push(qn)}),fn}const wt=(lt,mt,pt,xt)=>{const fn=[],In=lt.toLowerCase();return mt.forEach((pn,Sn)=>{Sn!==0&&fn.push(" / ");let $n=pn[xt.label];const qn=typeof $n;(qn==="string"||qn==="number")&&($n=Ke(String($n),In,pt)),fn.push($n)}),fn},Ht=Me.forwardRef((lt,mt)=>{var pt;const{prefixCls:xt,size:fn,disabled:In,className:pn,rootClassName:Sn,multiple:$n,bordered:qn=!0,transitionName:ur,choiceTransitionName:tr="",popupClassName:Xn,dropdownClassName:or,expandIcon:dr,placement:br,showSearch:vr,allowClear:Tr=!0,notFoundContent:Br,direction:cr,getPopupContainer:Er,status:Wr,showArrow:Rr,builtinPlacements:Sr,style:Fr,variant:$r}=lt,wr=Dt(lt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),gr=(0,mn.Z)(wr,["suffixIcon"]),{getPrefixCls:yr,getPopupContainer:Xr,className:go,style:So}=(0,Je.dj)("cascader"),{popupOverflow:to}=Me.useContext(Je.E_),{status:io,hasFeedback:Oe,isFormItemInput:We,feedbackIcon:bt}=Me.useContext(Pt.aM),Ze=(0,on.F)(io,Wr),[dt,at,Mt,Bt]=er(xt,cr),Wt=Mt==="rtl",En=yr(),Rn=(0,_t.Z)(dt),[hn,Ln,Gn]=(0,On.Z)(dt,Rn),lr=(0,_t.Z)(at),[sr]=Yt(at,lr),{compactSize:pr,compactItemClassnames:mr}=(0,ir.ri)(dt,cr),[kr,xr]=(0,Kt.Z)("cascader",$r,qn),Gr=Br||(Bt==null?void 0:Bt("Cascader"))||Me.createElement(Tt.Z,{componentName:"Cascader"}),Or=et()(Xn||or,`${at}-dropdown`,{[`${at}-dropdown-rtl`]:Mt==="rtl"},Sn,Rn,lr,Ln,Gn),Dr=Me.useMemo(()=>{if(!vr)return vr;let Oi={render:wt};return typeof vr=="object"&&(Oi=Object.assign(Object.assign({},Oi),vr)),Oi},[vr]),Ar=(0,je.Z)(Oi=>{var Go;return(Go=fn!=null?fn:pr)!==null&&Go!==void 0?Go:Oi}),_r=Me.useContext(an.Z),fo=In!=null?In:_r,[ko,Io]=sn(dt,Wt,dr),Vo=kn(at,$n),Qr=(0,nr.Z)(lt.suffixIcon,Rr),{suffixIcon:Vr,removeIcon:_o,clearIcon:Uo}=(0,_n.Z)(Object.assign(Object.assign({},lt),{hasFeedback:Oe,feedbackIcon:bt,showSuffixIcon:Qr,multiple:$n,prefixCls:dt,componentName:"Cascader"})),ni=Me.useMemo(()=>br!==void 0?br:Wt?"bottomRight":"bottomLeft",[br,Wt]),Zi=Tr===!0?{clearIcon:Uo}:Tr,[Si]=(0,vn.Cn)("SelectLike",(pt=gr.dropdownStyle)===null||pt===void 0?void 0:pt.zIndex),Ai=Me.createElement(Zt,Object.assign({prefixCls:dt,className:et()(!xt&&at,{[`${dt}-lg`]:Ar==="large",[`${dt}-sm`]:Ar==="small",[`${dt}-rtl`]:Wt,[`${dt}-${kr}`]:xr,[`${dt}-in-form-item`]:We},(0,on.Z)(dt,Ze,Oe),mr,go,pn,Sn,Rn,lr,Ln,Gn),disabled:fo,style:Object.assign(Object.assign({},So),Fr)},gr,{builtinPlacements:(0,nn.Z)(Sr,to),direction:Mt,placement:ni,notFoundContent:Gr,allowClear:Zi,showSearch:Dr,expandIcon:ko,suffixIcon:Vr,removeIcon:_o,loadingIcon:Io,checkable:Vo,dropdownClassName:Or,dropdownPrefixCls:xt||at,dropdownStyle:Object.assign(Object.assign({},gr.dropdownStyle),{zIndex:Si}),choiceTransitionName:(0,jt.m)(En,"",tr),transitionName:(0,jt.m)(En,"slide-up",ur),getPopupContainer:Er||Xr,ref:mt}));return sr(hn(Ai))}),Hn=(0,Cn.Z)(Ht,"dropdownAlign",lt=>(0,mn.Z)(lt,["visible"]));Ht.SHOW_PARENT=gt,Ht.SHOW_CHILD=Te,Ht.Panel=vt,Ht._InternalPanelDoNotUseOrYouWillBeFired=Hn;var Jn=Ht},62673:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return Ot}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(16632),Pe=ee(8654),pe=ee(12919),be=ee(63872),Ve=ee(48755),Ie=ee(2171),ue=ee(83397),$e=ee(56553),Rt=b.createContext(null),ot=ee(36170),st=ee(74632),Ue=function(ht,Ct){var De={};for(var ke in ht)Object.prototype.hasOwnProperty.call(ht,ke)&&Ct.indexOf(ke)<0&&(De[ke]=ht[ke]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ke=Object.getOwnPropertySymbols(ht);xe{var De;const{prefixCls:ke,className:xe,rootClassName:se,children:It,indeterminate:_e=!1,style:Ye,onMouseEnter:Ft,onMouseLeave:Ce,skipGroup:he=!1,disabled:yt}=ht,Vt=Ue(ht,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Lt,direction:me,checkbox:qe}=b.useContext(Ve.E_),it=b.useContext(Rt),{isFormItemInput:Xt}=b.useContext($e.aM),Xe=b.useContext(Ie.Z),Gt=(De=(it==null?void 0:it.disabled)||yt)!==null&&De!==void 0?De:Xe,Fe=b.useRef(Vt.value),dn=b.useRef(null),$t=(0,Pe.sQ)(Ct,dn);b.useEffect(()=>{it==null||it.registerValue(Vt.value)},[]),b.useEffect(()=>{if(!he)return Vt.value!==Fe.current&&(it==null||it.cancelValue(Fe.current),it==null||it.registerValue(Vt.value),Fe.current=Vt.value),()=>it==null?void 0:it.cancelValue(Vt.value)},[Vt.value]),b.useEffect(()=>{var Le;!((Le=dn.current)===null||Le===void 0)&&Le.input&&(dn.current.input.indeterminate=_e)},[_e]);const ae=Lt("checkbox",ke),ne=(0,ue.Z)(ae),[te,ie,de]=(0,ot.ZP)(ae,ne),re=Object.assign({},Vt);it&&!he&&(re.onChange=function(){Vt.onChange&&Vt.onChange.apply(Vt,arguments),it.toggleOption&&it.toggleOption({label:It,value:Vt.value})},re.name=it.name,re.checked=it.value.includes(Vt.value));const le=ce()(`${ae}-wrapper`,{[`${ae}-rtl`]:me==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Gt,[`${ae}-wrapper-in-form-item`]:Xt},qe==null?void 0:qe.className,xe,se,de,ne,ie),Se=ce()({[`${ae}-indeterminate`]:_e},be.A,ie),[Ge,He]=(0,st.Z)(re.onClick);return te(b.createElement(pe.Z,{component:"Checkbox",disabled:Gt},b.createElement("label",{className:le,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Ye),onMouseEnter:Ft,onMouseLeave:Ce,onClick:Ge},b.createElement(et.Z,Object.assign({},re,{onClick:He,prefixCls:ae,className:Se,disabled:Gt,ref:$t})),It!==void 0&&b.createElement("span",{className:`${ae}-label`},It))))};var kt=b.forwardRef(Re),en=ee(77654),Qe=ee(2738),Ae=function(ht,Ct){var De={};for(var ke in ht)Object.prototype.hasOwnProperty.call(ht,ke)&&Ct.indexOf(ke)<0&&(De[ke]=ht[ke]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ke=Object.getOwnPropertySymbols(ht);xe{const{defaultValue:De,children:ke,options:xe=[],prefixCls:se,className:It,rootClassName:_e,style:Ye,onChange:Ft}=ht,Ce=Ae(ht,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:he,direction:yt}=b.useContext(Ve.E_),[Vt,Lt]=b.useState(Ce.value||De||[]),[me,qe]=b.useState([]);b.useEffect(()=>{"value"in Ce&&Lt(Ce.value||[])},[Ce.value]);const it=b.useMemo(()=>xe.map(Se=>typeof Se=="string"||typeof Se=="number"?{label:Se,value:Se}:Se),[xe]),Xt=Se=>{qe(Ge=>Ge.filter(He=>He!==Se))},Xe=Se=>{qe(Ge=>[].concat((0,en.Z)(Ge),[Se]))},Gt=Se=>{const Ge=Vt.indexOf(Se.value),He=(0,en.Z)(Vt);Ge===-1?He.push(Se.value):He.splice(Ge,1),"value"in Ce||Lt(He),Ft==null||Ft(He.filter(Le=>me.includes(Le)).sort((Le,rt)=>{const ut=it.findIndex(Ne=>Ne.value===Le),At=it.findIndex(Ne=>Ne.value===rt);return ut-At}))},Fe=he("checkbox",se),dn=`${Fe}-group`,$t=(0,ue.Z)(Fe),[ae,ne,te]=(0,ot.ZP)(Fe,$t),ie=(0,Qe.Z)(Ce,["value","disabled"]),de=xe.length?it.map(Se=>b.createElement(kt,{prefixCls:Fe,key:Se.value.toString(),disabled:"disabled"in Se?Se.disabled:Ce.disabled,value:Se.value,checked:Vt.includes(Se.value),onChange:Se.onChange,className:`${dn}-item`,style:Se.style,title:Se.title,id:Se.id,required:Se.required},Se.label)):ke,re={toggleOption:Gt,value:Vt,disabled:Ce.disabled,name:Ce.name,registerValue:Xe,cancelValue:Xt},le=ce()(dn,{[`${dn}-rtl`]:yt==="rtl"},It,_e,te,$t,ne);return ae(b.createElement("div",Object.assign({className:le,style:Ye},ie,{ref:Ct}),b.createElement(Rt.Provider,{value:re},de)))});const zt=kt;zt.Group=nt,zt.__ANT_CHECKBOX=!0;var Ot=zt},36170:function(Bn,rn,ee){"use strict";ee.d(rn,{C2:function(){return pe}});var b=ee(36237),Me=ee(63356),ce=ee(51636),et=ee(16931);const Pe=be=>{const{checkboxCls:Ve}=be,Ie=`${Ve}-wrapper`;return[{[`${Ve}-group`]:Object.assign(Object.assign({},(0,Me.Wf)(be)),{display:"inline-flex",flexWrap:"wrap",columnGap:be.marginXS,[`> ${be.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,Me.Wf)(be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ve]:Object.assign(Object.assign({},(0,Me.Wf)(be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:be.borderRadiusSM,alignSelf:"center",[`${Ve}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ve}-inner`]:Object.assign({},(0,Me.oN)(be))},[`${Ve}-inner`]:{boxSizing:"border-box",display:"block",width:be.checkboxSize,height:be.checkboxSize,direction:"ltr",backgroundColor:be.colorBgContainer,border:`${(0,b.unit)(be.lineWidth)} ${be.lineType} ${be.colorBorder}`,borderRadius:be.borderRadiusSM,borderCollapse:"separate",transition:`all ${be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:be.calc(be.checkboxSize).div(14).mul(5).equal(),height:be.calc(be.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(be.lineWidthBold)} solid ${be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${be.motionDurationFast} ${be.motionEaseInBack}, opacity ${be.motionDurationFast}`}},"& + span":{paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS}})},{[` ${Ie}:not(${Ie}-disabled), ${Ve}:not(${Ve}-disabled) `]:{[`&:hover ${Ve}-inner`]:{borderColor:be.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${Ve}-checked:not(${Ve}-disabled) ${Ve}-inner`]:{backgroundColor:be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ve}-checked:not(${Ve}-disabled):after`]:{borderColor:be.colorPrimaryHover}}},{[`${Ve}-checked`]:{[`${Ve}-inner`]:{backgroundColor:be.colorPrimary,borderColor:be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${be.motionDurationMid} ${be.motionEaseOutBack} ${be.motionDurationFast}`}}},[` ${Ie}-checked:not(${Ie}-disabled), ${Ve}-checked:not(${Ve}-disabled) `]:{[`&:hover ${Ve}-inner`]:{backgroundColor:be.colorPrimaryHover,borderColor:"transparent"}}},{[Ve]:{"&-indeterminate":{[`${Ve}-inner`]:{backgroundColor:`${be.colorBgContainer} !important`,borderColor:`${be.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:be.calc(be.fontSizeLG).div(2).equal(),height:be.calc(be.fontSizeLG).div(2).equal(),backgroundColor:be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ve}-inner`]:{backgroundColor:`${be.colorBgContainer} !important`,borderColor:`${be.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${Ve}-disabled`]:{[`&, ${Ve}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ve}-inner`]:{background:be.colorBgContainerDisabled,borderColor:be.colorBorder,"&:after":{borderColor:be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:be.colorTextDisabled},[`&${Ve}-indeterminate ${Ve}-inner::after`]:{background:be.colorTextDisabled}}}]};function pe(be,Ve){const Ie=(0,ce.mergeToken)(Ve,{checkboxCls:`.${be}`,checkboxSize:Ve.controlInteractiveSize});return[Pe(Ie)]}rn.ZP=(0,et.I$)("Checkbox",(be,Ve)=>{let{prefixCls:Ie}=Ve;return[pe(Ie,be)]})},38406:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=ee(48755),ce=ee(584);const et=Pe=>{const{componentName:pe}=Pe,{getPrefixCls:be}=(0,b.useContext)(Me.E_),Ve=be("empty");switch(pe){case"Table":case"List":return b.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ve}-small`});case"Table.filter":return null;default:return b.createElement(ce.Z,null)}};rn.Z=et},36207:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ge}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(85899),Pe=ee(72190),pe=ee(43403),be=ee(34280),Ve=b.createContext(null),Ie=b.createContext({}),ue=Ve,$e=ee(18642),Ee=ee(60499),Rt=ee(77900),ot=ee(10228),st=ee(26112),Ue=ee(42244),Re=ee(8654),ft=["prefixCls","className","containerRef"],kt=function(Le){var rt=Le.prefixCls,ut=Le.className,At=Le.containerRef,Ne=(0,Ue.Z)(Le,ft),Be=b.useContext(Ie),Ut=Be.panel,Zt=(0,Re.x1)(Ut,At);return b.createElement("div",(0,Ee.Z)({className:ce()("".concat(rt,"-content"),ut),role:"dialog",ref:Zt},(0,st.Z)(Le,{aria:!0}),{"aria-modal":"true"},Ne))},en=kt,Qe=ee(48736);function Ae(He){return typeof He=="string"&&String(Number(He))===He?((0,Qe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(He)):He}function tt(He){warning(!("wrapperClassName"in He),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!He.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var nt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function zt(He,Le){var rt,ut,At,Ne=He.prefixCls,Be=He.open,Ut=He.placement,Zt=He.inline,mn=He.push,vn=He.forceRender,jt=He.autoFocus,Cn=He.keyboard,on=He.classNames,Je=He.rootClassName,Tt=He.rootStyle,an=He.zIndex,_t=He.className,je=He.id,Pt=He.style,Kt=He.motion,nn=He.width,On=He.height,_n=He.children,nr=He.mask,ir=He.maskClosable,Zn=He.maskMotion,er=He.maskClassName,kn=He.maskStyle,cn=He.afterOpenChange,bn=He.onClose,St=He.onMouseEnter,Et=He.onMouseOver,sn=He.onMouseLeave,Pn=He.onClick,Tn=He.onKeyDown,Jt=He.onKeyUp,wn=He.styles,gn=He.drawerRender,Nn=b.useRef(),An=b.useRef(),rr=b.useRef();b.useImperativeHandle(Le,function(){return Nn.current});var Qt=function(pt){var xt=pt.keyCode,fn=pt.shiftKey;switch(xt){case ot.Z.TAB:{if(xt===ot.Z.TAB){if(!fn&&document.activeElement===rr.current){var In;(In=An.current)===null||In===void 0||In.focus({preventScroll:!0})}else if(fn&&document.activeElement===An.current){var pn;(pn=rr.current)===null||pn===void 0||pn.focus({preventScroll:!0})}}break}case ot.Z.ESC:{bn&&Cn&&(pt.stopPropagation(),bn(pt));break}}};b.useEffect(function(){if(Be&&jt){var mt;(mt=Nn.current)===null||mt===void 0||mt.focus({preventScroll:!0})}},[Be]);var Yt=b.useState(!1),xn=(0,Pe.Z)(Yt,2),Vn=xn[0],jn=xn[1],vt=b.useContext(ue),Dt;typeof mn=="boolean"?Dt=mn?{}:{distance:0}:Dt=mn||{};var Te=(rt=(ut=(At=Dt)===null||At===void 0?void 0:At.distance)!==null&&ut!==void 0?ut:vt==null?void 0:vt.pushDistance)!==null&&rt!==void 0?rt:180,gt=b.useMemo(function(){return{pushDistance:Te,push:function(){jn(!0)},pull:function(){jn(!1)}}},[Te]);b.useEffect(function(){if(Be){var mt;vt==null||(mt=vt.push)===null||mt===void 0||mt.call(vt)}else{var pt;vt==null||(pt=vt.pull)===null||pt===void 0||pt.call(vt)}},[Be]),b.useEffect(function(){return function(){var mt;vt==null||(mt=vt.pull)===null||mt===void 0||mt.call(vt)}},[]);var Ke=nr&&b.createElement(Rt.default,(0,Ee.Z)({key:"mask"},Zn,{visible:Be}),function(mt,pt){var xt=mt.className,fn=mt.style;return b.createElement("div",{className:ce()("".concat(Ne,"-mask"),xt,on==null?void 0:on.mask,er),style:(0,et.Z)((0,et.Z)((0,et.Z)({},fn),kn),wn==null?void 0:wn.mask),onClick:ir&&Be?bn:void 0,ref:pt})}),wt=typeof Kt=="function"?Kt(Ut):Kt,Ht={};if(Vn&&Te)switch(Ut){case"top":Ht.transform="translateY(".concat(Te,"px)");break;case"bottom":Ht.transform="translateY(".concat(-Te,"px)");break;case"left":Ht.transform="translateX(".concat(Te,"px)");break;default:Ht.transform="translateX(".concat(-Te,"px)");break}Ut==="left"||Ut==="right"?Ht.width=Ae(nn):Ht.height=Ae(On);var Hn={onMouseEnter:St,onMouseOver:Et,onMouseLeave:sn,onClick:Pn,onKeyDown:Tn,onKeyUp:Jt},Jn=b.createElement(Rt.default,(0,Ee.Z)({key:"panel"},wt,{visible:Be,forceRender:vn,onVisibleChanged:function(pt){cn==null||cn(pt)},removeOnLeave:!1,leavedClassName:"".concat(Ne,"-content-wrapper-hidden")}),function(mt,pt){var xt=mt.className,fn=mt.style,In=b.createElement(en,(0,Ee.Z)({id:je,containerRef:pt,prefixCls:Ne,className:ce()(_t,on==null?void 0:on.content),style:(0,et.Z)((0,et.Z)({},Pt),wn==null?void 0:wn.content)},(0,st.Z)(He,{aria:!0}),Hn),_n);return b.createElement("div",(0,Ee.Z)({className:ce()("".concat(Ne,"-content-wrapper"),on==null?void 0:on.wrapper,xt),style:(0,et.Z)((0,et.Z)((0,et.Z)({},Ht),fn),wn==null?void 0:wn.wrapper)},(0,st.Z)(He,{data:!0})),gn?gn(In):In)}),lt=(0,et.Z)({},Tt);return an&&(lt.zIndex=an),b.createElement(ue.Provider,{value:gt},b.createElement("div",{className:ce()(Ne,"".concat(Ne,"-").concat(Ut),Je,(0,$e.Z)((0,$e.Z)({},"".concat(Ne,"-open"),Be),"".concat(Ne,"-inline"),Zt)),style:lt,tabIndex:-1,ref:Nn,onKeyDown:Qt},Ke,b.createElement("div",{tabIndex:0,ref:An,style:nt,"aria-hidden":"true","data-sentinel":"start"}),Jn,b.createElement("div",{tabIndex:0,ref:rr,style:nt,"aria-hidden":"true","data-sentinel":"end"})))}var Ot=b.forwardRef(zt),ht=Ot,Ct=function(Le){var rt=Le.open,ut=rt===void 0?!1:rt,At=Le.prefixCls,Ne=At===void 0?"rc-drawer":At,Be=Le.placement,Ut=Be===void 0?"right":Be,Zt=Le.autoFocus,mn=Zt===void 0?!0:Zt,vn=Le.keyboard,jt=vn===void 0?!0:vn,Cn=Le.width,on=Cn===void 0?378:Cn,Je=Le.mask,Tt=Je===void 0?!0:Je,an=Le.maskClosable,_t=an===void 0?!0:an,je=Le.getContainer,Pt=Le.forceRender,Kt=Le.afterOpenChange,nn=Le.destroyOnClose,On=Le.onMouseEnter,_n=Le.onMouseOver,nr=Le.onMouseLeave,ir=Le.onClick,Zn=Le.onKeyDown,er=Le.onKeyUp,kn=Le.panelRef,cn=b.useState(!1),bn=(0,Pe.Z)(cn,2),St=bn[0],Et=bn[1],sn=b.useState(!1),Pn=(0,Pe.Z)(sn,2),Tn=Pn[0],Jt=Pn[1];(0,be.Z)(function(){Jt(!0)},[]);var wn=Tn?ut:!1,gn=b.useRef(),Nn=b.useRef();(0,be.Z)(function(){wn&&(Nn.current=document.activeElement)},[wn]);var An=function(Vn){var jn;if(Et(Vn),Kt==null||Kt(Vn),!Vn&&Nn.current&&!((jn=gn.current)!==null&&jn!==void 0&&jn.contains(Nn.current))){var vt;(vt=Nn.current)===null||vt===void 0||vt.focus({preventScroll:!0})}},rr=b.useMemo(function(){return{panel:kn}},[kn]);if(!Pt&&!St&&!wn&&nn)return null;var Qt={onMouseEnter:On,onMouseOver:_n,onMouseLeave:nr,onClick:ir,onKeyDown:Zn,onKeyUp:er},Yt=(0,et.Z)((0,et.Z)({},Le),{},{open:wn,prefixCls:Ne,placement:Ut,autoFocus:mn,keyboard:jt,width:on,mask:Tt,maskClosable:_t,inline:je===!1,afterOpenChange:An,ref:gn},Qt);return b.createElement(Ie.Provider,{value:rr},b.createElement(pe.Z,{open:wn||Pt||St,autoDestroy:!1,getContainer:je,autoLock:Tt&&(wn||St)},b.createElement(ht,Yt)))},De=Ct,ke=De,xe=ee(62487),se=ee(75030),It=ee(86641),_e=ee(55743),Ye=ee(48755),Ft=ee(91190),Ce=ee(78776),he=ee(458),Vt=He=>{var Le,rt;const{prefixCls:ut,title:At,footer:Ne,extra:Be,loading:Ut,onClose:Zt,headerStyle:mn,bodyStyle:vn,footerStyle:jt,children:Cn,classNames:on,styles:Je}=He,Tt=(0,Ye.dj)("drawer"),an=b.useCallback(nn=>b.createElement("button",{type:"button",onClick:Zt,"aria-label":"Close",className:`${ut}-close`},nn),[Zt]),[_t,je]=(0,Ce.Z)((0,Ce.w)(He),(0,Ce.w)(Tt),{closable:!0,closeIconRender:an}),Pt=b.useMemo(()=>{var nn,On;return!At&&!_t?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(nn=Tt.styles)===null||nn===void 0?void 0:nn.header),mn),Je==null?void 0:Je.header),className:ce()(`${ut}-header`,{[`${ut}-header-close-only`]:_t&&!At&&!Be},(On=Tt.classNames)===null||On===void 0?void 0:On.header,on==null?void 0:on.header)},b.createElement("div",{className:`${ut}-header-title`},je,At&&b.createElement("div",{className:`${ut}-title`},At)),Be&&b.createElement("div",{className:`${ut}-extra`},Be))},[_t,je,Be,mn,ut,At]),Kt=b.useMemo(()=>{var nn,On;if(!Ne)return null;const _n=`${ut}-footer`;return b.createElement("div",{className:ce()(_n,(nn=Tt.classNames)===null||nn===void 0?void 0:nn.footer,on==null?void 0:on.footer),style:Object.assign(Object.assign(Object.assign({},(On=Tt.styles)===null||On===void 0?void 0:On.footer),jt),Je==null?void 0:Je.footer)},Ne)},[Ne,jt,ut]);return b.createElement(b.Fragment,null,Pt,b.createElement("div",{className:ce()(`${ut}-body`,on==null?void 0:on.body,(Le=Tt.classNames)===null||Le===void 0?void 0:Le.body),style:Object.assign(Object.assign(Object.assign({},(rt=Tt.styles)===null||rt===void 0?void 0:rt.body),vn),Je==null?void 0:Je.body)},Ut?b.createElement(he.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${ut}-body-skeleton`}):Cn),Kt)},Lt=ee(36237),me=ee(63356),qe=ee(16931),it=ee(51636);const Xt=He=>{const Le="100%";return{left:`translateX(-${Le})`,right:`translateX(${Le})`,top:`translateY(-${Le})`,bottom:`translateY(${Le})`}[He]},Xe=(He,Le)=>({"&-enter, &-appear":Object.assign(Object.assign({},He),{"&-active":Le}),"&-leave":Object.assign(Object.assign({},Le),{"&-active":He})}),Gt=(He,Le)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Le}`}}},Xe({opacity:He},{opacity:1})),Fe=(He,Le)=>[Gt(.7,Le),Xe({transform:Xt(He)},{transform:"none"})];var $t=He=>{const{componentCls:Le,motionDurationSlow:rt}=He;return{[Le]:{[`${Le}-mask-motion`]:Gt(0,rt),[`${Le}-panel-motion`]:["left","right","top","bottom"].reduce((ut,At)=>Object.assign(Object.assign({},ut),{[`&-${At}`]:Fe(At,rt)}),{})}}};const ae=He=>{const{borderRadiusSM:Le,componentCls:rt,zIndexPopup:ut,colorBgMask:At,colorBgElevated:Ne,motionDurationSlow:Be,motionDurationMid:Ut,paddingXS:Zt,padding:mn,paddingLG:vn,fontSizeLG:jt,lineHeightLG:Cn,lineWidth:on,lineType:Je,colorSplit:Tt,marginXS:an,colorIcon:_t,colorIconHover:je,colorBgTextHover:Pt,colorBgTextActive:Kt,colorText:nn,fontWeightStrong:On,footerPaddingBlock:_n,footerPaddingInline:nr,calc:ir}=He,Zn=`${rt}-content-wrapper`;return{[rt]:{position:"fixed",inset:0,zIndex:ut,pointerEvents:"none",color:nn,"&-pure":{position:"relative",background:Ne,display:"flex",flexDirection:"column",[`&${rt}-left`]:{boxShadow:He.boxShadowDrawerLeft},[`&${rt}-right`]:{boxShadow:He.boxShadowDrawerRight},[`&${rt}-top`]:{boxShadow:He.boxShadowDrawerUp},[`&${rt}-bottom`]:{boxShadow:He.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${rt}-mask`]:{position:"absolute",inset:0,zIndex:ut,background:At,pointerEvents:"auto"},[Zn]:{position:"absolute",zIndex:ut,maxWidth:"100vw",transition:`all ${Be}`,"&-hidden":{display:"none"}},[`&-left > ${Zn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:He.boxShadowDrawerLeft},[`&-right > ${Zn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:He.boxShadowDrawerRight},[`&-top > ${Zn}`]:{top:0,insetInline:0,boxShadow:He.boxShadowDrawerUp},[`&-bottom > ${Zn}`]:{bottom:0,insetInline:0,boxShadow:He.boxShadowDrawerDown},[`${rt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ne,pointerEvents:"auto"},[`${rt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Lt.unit)(mn)} ${(0,Lt.unit)(vn)}`,fontSize:jt,lineHeight:Cn,borderBottom:`${(0,Lt.unit)(on)} ${Je} ${Tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${rt}-extra`]:{flex:"none"},[`${rt}-close`]:Object.assign({display:"inline-flex",width:ir(jt).add(Zt).equal(),height:ir(jt).add(Zt).equal(),borderRadius:Le,justifyContent:"center",alignItems:"center",marginInlineEnd:an,color:_t,fontWeight:On,fontSize:jt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ut}`,textRendering:"auto","&:hover":{color:je,backgroundColor:Pt,textDecoration:"none"},"&:active":{backgroundColor:Kt}},(0,me.Qy)(He)),[`${rt}-title`]:{flex:1,margin:0,fontWeight:He.fontWeightStrong,fontSize:jt,lineHeight:Cn},[`${rt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:vn,overflow:"auto",[`${rt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${rt}-footer`]:{flexShrink:0,padding:`${(0,Lt.unit)(_n)} ${(0,Lt.unit)(nr)}`,borderTop:`${(0,Lt.unit)(on)} ${Je} ${Tt}`},"&-rtl":{direction:"rtl"}}}},ne=He=>({zIndexPopup:He.zIndexPopupBase,footerPaddingBlock:He.paddingXS,footerPaddingInline:He.padding});var te=(0,qe.I$)("Drawer",He=>{const Le=(0,it.mergeToken)(He,{});return[ae(Le),$t(Le)]},ne),ie=function(He,Le){var rt={};for(var ut in He)Object.prototype.hasOwnProperty.call(He,ut)&&Le.indexOf(ut)<0&&(rt[ut]=He[ut]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,ut=Object.getOwnPropertySymbols(He);At{var Le;const{rootClassName:rt,width:ut,height:At,size:Ne="default",mask:Be=!0,push:Ut=re,open:Zt,afterOpenChange:mn,onClose:vn,prefixCls:jt,getContainer:Cn,style:on,className:Je,visible:Tt,afterVisibleChange:an,maskStyle:_t,drawerStyle:je,contentWrapperStyle:Pt}=He,Kt=ie(He,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:nn,getPrefixCls:On,direction:_n,className:nr,style:ir,classNames:Zn,styles:er}=(0,Ye.dj)("drawer"),kn=On("drawer",jt),[cn,bn,St]=te(kn),Et=Cn===void 0&&nn?()=>nn(document.body):Cn,sn=ce()({"no-mask":!Be,[`${kn}-rtl`]:_n==="rtl"},rt,bn,St),Pn=b.useMemo(()=>ut!=null?ut:Ne==="large"?736:378,[ut,Ne]),Tn=b.useMemo(()=>At!=null?At:Ne==="large"?736:378,[At,Ne]),Jt={motionName:(0,It.m)(kn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wn=Yt=>({motionName:(0,It.m)(kn,`panel-motion-${Yt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),gn=(0,Ft.H)(),[Nn,An]=(0,se.Cn)("Drawer",Kt.zIndex),{classNames:rr={},styles:Qt={}}=Kt;return cn(b.createElement(xe.Z,{form:!0,space:!0},b.createElement(_e.Z.Provider,{value:An},b.createElement(ke,Object.assign({prefixCls:kn,onClose:vn,maskMotion:Jt,motion:wn},Kt,{classNames:{mask:ce()(rr.mask,Zn.mask),content:ce()(rr.content,Zn.content),wrapper:ce()(rr.wrapper,Zn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Qt.mask),_t),er.mask),content:Object.assign(Object.assign(Object.assign({},Qt.content),je),er.content),wrapper:Object.assign(Object.assign(Object.assign({},Qt.wrapper),Pt),er.wrapper)},open:Zt!=null?Zt:Tt,mask:Be,push:Ut,width:Pn,height:Tn,style:Object.assign(Object.assign({},ir),on),className:ce()(nr,Je),rootClassName:sn,getContainer:Et,afterOpenChange:mn!=null?mn:an,panelRef:gn,zIndex:Nn}),b.createElement(Vt,Object.assign({prefixCls:kn},Kt,{onClose:vn}))))))},Se=He=>{const{prefixCls:Le,style:rt,className:ut,placement:At="right"}=He,Ne=ie(He,["prefixCls","style","className","placement"]),{getPrefixCls:Be}=b.useContext(Ye.E_),Ut=Be("drawer",Le),[Zt,mn,vn]=te(Ut),jt=ce()(Ut,`${Ut}-pure`,`${Ut}-${At}`,mn,vn,ut);return Zt(b.createElement("div",{className:jt,style:rt},b.createElement(Vt,Object.assign({prefixCls:Ut},Ne))))};le._InternalPanelDoNotUseOrYouWillBeFired=Se;var Ge=le},19563:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Lt}});var b=ee(59301),Me=ee(33853),ce=ee(38819),et=ee(92310),Pe=ee.n(et),pe=ee(96478),be=ee(6089),Ve=ee(18929),Ie=ee(2738),ue=ee(75030),Ee=me=>typeof me!="object"&&typeof me!="function"||me===null,Rt=ee(52838),ot=ee(45915),st=ee(22703),Ue=ee(32383),Re=ee(55743),ft=ee(48755),kt=ee(83397),en=ee(93041),Qe=ee(78857),Ae=ee(57700),tt=ee(36237),nt=ee(63356),zt=ee(46e3),Ot=ee(93873),ht=ee(34925),Ct=ee(37645),De=ee(36305),ke=ee(16931),xe=ee(51636),It=me=>{const{componentCls:qe,menuCls:it,colorError:Xt,colorTextLightSolid:Xe}=me,Gt=`${it}-item`;return{[`${qe}, ${qe}-menu-submenu`]:{[`${it} ${Gt}`]:{[`&${Gt}-danger:not(${Gt}-disabled)`]:{color:Xt,"&:hover":{color:Xe,backgroundColor:Xt}}}}}};const _e=me=>{const{componentCls:qe,menuCls:it,zIndexPopup:Xt,dropdownArrowDistance:Xe,sizePopupArrow:Gt,antCls:Fe,iconCls:dn,motionDurationMid:$t,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:ie,fontSizeIcon:de,controlPaddingHorizontal:re,colorBgElevated:le}=me;return[{[qe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xt,display:"block","&::before":{position:"absolute",insetBlock:me.calc(Gt).div(2).sub(Xe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Fe}-btn`]:{[`& > ${dn}-down, & > ${Fe}-btn-icon > ${dn}-down`]:{fontSize:de}},[`${qe}-wrap`]:{position:"relative",[`${Fe}-btn > ${dn}-down`]:{fontSize:de},[`${dn}-down::before`]:{transition:`transform ${$t}`}},[`${qe}-wrap-open`]:{[`${dn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${qe}-placement-bottomLeft, &${Fe}-slide-down-appear${Fe}-slide-down-appear-active${qe}-placement-bottomLeft, &${Fe}-slide-down-enter${Fe}-slide-down-enter-active${qe}-placement-bottom, &${Fe}-slide-down-appear${Fe}-slide-down-appear-active${qe}-placement-bottom, &${Fe}-slide-down-enter${Fe}-slide-down-enter-active${qe}-placement-bottomRight, &${Fe}-slide-down-appear${Fe}-slide-down-appear-active${qe}-placement-bottomRight`]:{animationName:zt.fJ},[`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${qe}-placement-topLeft, &${Fe}-slide-up-appear${Fe}-slide-up-appear-active${qe}-placement-topLeft, &${Fe}-slide-up-enter${Fe}-slide-up-enter-active${qe}-placement-top, &${Fe}-slide-up-appear${Fe}-slide-up-appear-active${qe}-placement-top, &${Fe}-slide-up-enter${Fe}-slide-up-enter-active${qe}-placement-topRight, &${Fe}-slide-up-appear${Fe}-slide-up-appear-active${qe}-placement-topRight`]:{animationName:zt.Qt},[`&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${qe}-placement-bottomLeft, &${Fe}-slide-down-leave${Fe}-slide-down-leave-active${qe}-placement-bottom, &${Fe}-slide-down-leave${Fe}-slide-down-leave-active${qe}-placement-bottomRight`]:{animationName:zt.Uw},[`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${qe}-placement-topLeft, &${Fe}-slide-up-leave${Fe}-slide-up-leave-active${qe}-placement-top, &${Fe}-slide-up-leave${Fe}-slide-up-leave-active${qe}-placement-topRight`]:{animationName:zt.ly}}},(0,Ct.ZP)(me,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${qe} ${it}`]:{position:"relative",margin:0},[`${it}-submenu-popup`]:{position:"absolute",zIndex:Xt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${qe}, ${qe}-menu-submenu`]:Object.assign(Object.assign({},(0,nt.Wf)(me)),{[it]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,nt.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${it}-item-group-title`]:{padding:`${(0,tt.unit)(ae)} ${(0,tt.unit)(re)}`,color:me.colorTextDescription,transition:`all ${$t}`},[`${it}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${it}-item-icon`]:{minWidth:ne,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${it}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${$t}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${it}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${it}-item, ${it}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,tt.unit)(ae)} ${(0,tt.unit)(re)}`,color:me.colorText,fontWeight:"normal",fontSize:ne,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${$t}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,nt.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,tt.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${it}-item-group-list`]:{margin:`0 ${(0,tt.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${it}-submenu-title`]:{paddingInlineEnd:me.calc(re).add(me.fontSizeSM).equal()},[`${it}-submenu-vertical`]:{position:"relative"},[`${it}-submenu${it}-submenu-disabled ${qe}-menu-submenu-title`]:{[`&, ${qe}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${it}-submenu-selected ${qe}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,zt.oN)(me,"slide-up"),(0,zt.oN)(me,"slide-down"),(0,Ot.Fm)(me,"move-up"),(0,Ot.Fm)(me,"move-down"),(0,ht._y)(me,"zoom-big")]]},Ye=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,Ct.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,De.w)(me));var Ft=(0,ke.I$)("Dropdown",me=>{const{marginXXS:qe,sizePopupArrow:it,paddingXXS:Xt,componentCls:Xe}=me,Gt=(0,xe.mergeToken)(me,{menuCls:`${Xe}-menu`,dropdownArrowDistance:me.calc(it).div(2).add(qe).equal(),dropdownEdgeChildPadding:Xt});return[_e(Gt),It(Gt)]},Ye,{resetStyle:!1});const Ce=null,he=me=>{var qe;const{menu:it,arrow:Xt,prefixCls:Xe,children:Gt,trigger:Fe,disabled:dn,dropdownRender:$t,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:ie,open:de,onOpenChange:re,visible:le,onVisibleChange:Se,mouseEnterDelay:Ge=.15,mouseLeaveDelay:He=.1,autoAdjustOverflow:Le=!0,placement:rt="",overlay:ut,transitionName:At}=me,{getPopupContainer:Ne,getPrefixCls:Be,direction:Ut,dropdown:Zt}=b.useContext(ft.E_),mn=(0,Ue.ln)("Dropdown"),vn=b.useMemo(()=>{const Et=Be();return At!==void 0?At:rt.includes("top")?`${Et}-slide-down`:`${Et}-slide-up`},[Be,rt,At]),jt=b.useMemo(()=>rt?rt.includes("Center")?rt.slice(0,rt.indexOf("Center")):rt:Ut==="rtl"?"bottomRight":"bottomLeft",[rt,Ut]),Cn=Be("dropdown",Xe),on=(0,kt.Z)(Cn),[Je,Tt,an]=Ft(Cn,on),[,_t]=(0,Ae.ZP)(),je=b.Children.only(Ee(Gt)?b.createElement("span",null,Gt):Gt),Pt=(0,st.Tm)(je,{className:Pe()(`${Cn}-trigger`,{[`${Cn}-rtl`]:Ut==="rtl"},je.props.className),disabled:(qe=je.props.disabled)!==null&&qe!==void 0?qe:dn}),Kt=dn?[]:Fe,nn=!!(Kt!=null&&Kt.includes("contextMenu")),[On,_n]=(0,Ve.Z)(!1,{value:de!=null?de:le}),nr=(0,be.Z)(Et=>{re==null||re(Et,{source:"trigger"}),Se==null||Se(Et),_n(Et)}),ir=Pe()(ne,te,Tt,an,on,Zt==null?void 0:Zt.className,{[`${Cn}-rtl`]:Ut==="rtl"}),Zn=(0,Rt.Z)({arrowPointAtCenter:typeof Xt=="object"&&Xt.pointAtCenter,autoAdjustOverflow:Le,offset:_t.marginXXS,arrowWidth:Xt?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),er=b.useCallback(()=>{it!=null&&it.selectable&&(it!=null&&it.multiple)||(re==null||re(!1,{source:"menu"}),_n(!1))},[it==null?void 0:it.selectable,it==null?void 0:it.multiple]),kn=()=>{let Et;return it!=null&&it.items?Et=b.createElement(en.default,Object.assign({},it)):typeof ut=="function"?Et=ut():Et=ut,$t&&(Et=$t(Et)),Et=b.Children.only(typeof Et=="string"?b.createElement("span",null,Et):Et),b.createElement(Qe.J,{prefixCls:`${Cn}-menu`,rootClassName:Pe()(an,on),expandIcon:b.createElement("span",{className:`${Cn}-menu-submenu-arrow`},Ut==="rtl"?b.createElement(Me.Z,{className:`${Cn}-menu-submenu-arrow-icon`}):b.createElement(ce.Z,{className:`${Cn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:er,validator:sn=>{let{mode:Pn}=sn}},Et)},[cn,bn]=(0,ue.Cn)("Dropdown",ie==null?void 0:ie.zIndex);let St=b.createElement(pe.Z,Object.assign({alignPoint:nn},(0,Ie.Z)(me,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:He,visible:On,builtinPlacements:Zn,arrow:!!Xt,overlayClassName:ir,prefixCls:Cn,getPopupContainer:ae||Ne,transitionName:vn,trigger:Kt,overlay:kn,placement:jt,onVisibleChange:nr,overlayStyle:Object.assign(Object.assign(Object.assign({},Zt==null?void 0:Zt.style),ie),{zIndex:cn})}),Pt);return cn&&(St=b.createElement(Re.Z.Provider,{value:bn},St)),Je(St)},yt=(0,ot.Z)(he,"align",void 0,"dropdown",me=>me),Vt=me=>b.createElement(yt,Object.assign({},me),b.createElement("span",null));he._InternalPanelDoNotUseOrYouWillBeFired=Vt;var Lt=he},75727:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return ot}});var b=ee(19563),Me=ee(59301),ce=ee(18785),et=ee(92310),Pe=ee.n(et),pe=ee(7939),be=ee(48755),Ve=ee(44104),Ie=ee(70045),ue=function(st,Ue){var Re={};for(var ft in st)Object.prototype.hasOwnProperty.call(st,ft)&&Ue.indexOf(ft)<0&&(Re[ft]=st[ft]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,ft=Object.getOwnPropertySymbols(st);kt{const{getPopupContainer:Ue,getPrefixCls:Re,direction:ft}=Me.useContext(be.E_),{prefixCls:kt,type:en="default",danger:Qe,disabled:Ae,loading:tt,onClick:nt,htmlType:zt,children:Ot,className:ht,menu:Ct,arrow:De,autoFocus:ke,overlay:xe,trigger:se,align:It,open:_e,onOpenChange:Ye,placement:Ft,getPopupContainer:Ce,href:he,icon:yt=Me.createElement(ce.Z,null),title:Vt,buttonsRender:Lt=Ge=>Ge,mouseEnterDelay:me,mouseLeaveDelay:qe,overlayClassName:it,overlayStyle:Xt,destroyPopupOnHide:Xe,dropdownRender:Gt}=st,Fe=ue(st,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),dn=Re("dropdown",kt),$t=`${dn}-button`,ae={menu:Ct,arrow:De,autoFocus:ke,align:It,disabled:Ae,trigger:Ae?[]:se,onOpenChange:Ye,getPopupContainer:Ce||Ue,mouseEnterDelay:me,mouseLeaveDelay:qe,overlayClassName:it,overlayStyle:Xt,destroyPopupOnHide:Xe,dropdownRender:Gt},{compactSize:ne,compactItemClassnames:te}=(0,Ie.ri)(dn,ft),ie=Pe()($t,te,ht);"overlay"in st&&(ae.overlay=xe),"open"in st&&(ae.open=_e),"placement"in st?ae.placement=Ft:ae.placement=ft==="rtl"?"bottomLeft":"bottomRight";const de=Me.createElement(pe.ZP,{type:en,danger:Qe,disabled:Ae,loading:tt,onClick:nt,htmlType:zt,href:he,title:Vt},Ot),re=Me.createElement(pe.ZP,{type:en,danger:Qe,icon:yt}),[le,Se]=Lt([de,re]);return Me.createElement(Ve.Z.Compact,Object.assign({className:ie,size:ne,block:!0},Fe),le,Me.createElement(b.Z,Object.assign({},ae),Se))};$e.__ANT_BUTTON=!0;var Ee=$e;const Rt=b.Z;Rt.Button=Ee;var ot=Rt},584:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return en}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(9017),Pe=ee(17835),pe=ee(57700),Ve=()=>{const[,Qe]=(0,pe.ZP)(),[Ae]=(0,et.Z)("Empty"),nt=new Pe.FastColor(Qe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:nt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ae==null?void 0:Ae.description)||"Empty"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.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"}),b.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)"}),b.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"}),b.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"})),b.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"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ue=()=>{const[,Qe]=(0,pe.ZP)(),[Ae]=(0,et.Z)("Empty"),{colorFill:tt,colorFillTertiary:nt,colorFillQuaternary:zt,colorBgContainer:Ot}=Qe,{borderColor:ht,shadowColor:Ct,contentColor:De}=(0,b.useMemo)(()=>({borderColor:new Pe.FastColor(tt).onBackground(Ot).toHexString(),shadowColor:new Pe.FastColor(nt).onBackground(Ot).toHexString(),contentColor:new Pe.FastColor(zt).onBackground(Ot).toHexString()}),[tt,nt,zt,Ot]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ae==null?void 0:Ae.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:Ct,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:ht},b.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"}),b.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:De}))))},$e=ee(16931),Ee=ee(51636);const Rt=Qe=>{const{componentCls:Ae,margin:tt,marginXS:nt,marginXL:zt,fontSize:Ot,lineHeight:ht}=Qe;return{[Ae]:{marginInline:nt,fontSize:Ot,lineHeight:ht,textAlign:"center",[`${Ae}-image`]:{height:Qe.emptyImgHeight,marginBottom:nt,opacity:Qe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ae}-description`]:{color:Qe.colorTextDescription},[`${Ae}-footer`]:{marginTop:tt},"&-normal":{marginBlock:zt,color:Qe.colorTextDescription,[`${Ae}-description`]:{color:Qe.colorTextDescription},[`${Ae}-image`]:{height:Qe.emptyImgHeightMD}},"&-small":{marginBlock:nt,color:Qe.colorTextDescription,[`${Ae}-image`]:{height:Qe.emptyImgHeightSM}}}}};var ot=(0,$e.I$)("Empty",Qe=>{const{componentCls:Ae,controlHeightLG:tt,calc:nt}=Qe,zt=(0,Ee.mergeToken)(Qe,{emptyImgCls:`${Ae}-img`,emptyImgHeight:nt(tt).mul(2.5).equal(),emptyImgHeightMD:tt,emptyImgHeightSM:nt(tt).mul(.875).equal()});return[Rt(zt)]}),st=ee(48755),Ue=function(Qe,Ae){var tt={};for(var nt in Qe)Object.prototype.hasOwnProperty.call(Qe,nt)&&Ae.indexOf(nt)<0&&(tt[nt]=Qe[nt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,nt=Object.getOwnPropertySymbols(Qe);zt{const{className:Ae,rootClassName:tt,prefixCls:nt,image:zt=Re,description:Ot,children:ht,imageStyle:Ct,style:De,classNames:ke,styles:xe}=Qe,se=Ue(Qe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:It,direction:_e,className:Ye,style:Ft,classNames:Ce,styles:he}=(0,st.dj)("empty"),yt=It("empty",nt),[Vt,Lt,me]=ot(yt),[qe]=(0,et.Z)("Empty"),it=typeof Ot!="undefined"?Ot:qe==null?void 0:qe.description,Xt=typeof it=="string"?it:"empty";let Xe=null;return typeof zt=="string"?Xe=b.createElement("img",{alt:Xt,src:zt}):Xe=zt,Vt(b.createElement("div",Object.assign({className:ce()(Lt,me,yt,Ye,{[`${yt}-normal`]:zt===ft,[`${yt}-rtl`]:_e==="rtl"},Ae,tt,Ce.root,ke==null?void 0:ke.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),Ft),xe==null?void 0:xe.root),De)},se),b.createElement("div",{className:ce()(`${yt}-image`,Ce.image,ke==null?void 0:ke.image),style:Object.assign(Object.assign(Object.assign({},Ct),he.image),xe==null?void 0:xe.image)},Xe),it&&b.createElement("div",{className:ce()(`${yt}-description`,Ce.description,ke==null?void 0:ke.description),style:Object.assign(Object.assign({},he.description),xe==null?void 0:xe.description)},it),ht&&b.createElement("div",{className:ce()(`${yt}-footer`,Ce.footer,ke==null?void 0:ke.footer),style:Object.assign(Object.assign({},he.footer),xe==null?void 0:xe.footer)},ht)))};kt.PRESENTED_IMAGE_DEFAULT=Re,kt.PRESENTED_IMAGE_SIMPLE=ft;var en=kt},28284:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return Dt}});var b=ee(56553),Me=ee(77654),ce=ee(59301),et=ee(92310),Pe=ee.n(et),pe=ee(77900),be=ee(86641),Ve=ee(83397);function Ie(Te){const[gt,Ke]=ce.useState(Te);return ce.useEffect(()=>{const wt=setTimeout(()=>{Ke(Te)},Te.length?0:10);return()=>{clearTimeout(wt)}},[Te]),gt}var ue=ee(36237),$e=ee(63356),Ee=ee(34925),Rt=ee(34961),ot=ee(51636),st=ee(16931),Re=Te=>{const{componentCls:gt}=Te,Ke=`${gt}-show-help`,wt=`${gt}-show-help-item`;return{[Ke]:{transition:`opacity ${Te.motionDurationFast} ${Te.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[wt]:{overflow:"hidden",transition:`height ${Te.motionDurationFast} ${Te.motionEaseInOut}, opacity ${Te.motionDurationFast} ${Te.motionEaseInOut}, transform ${Te.motionDurationFast} ${Te.motionEaseInOut} !important`,[`&${wt}-appear, &${wt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${wt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ft=Te=>({legend:{display:"block",width:"100%",marginBottom:Te.marginLG,padding:0,color:Te.colorTextDescription,fontSize:Te.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ue.unit)(Te.lineWidth)} ${Te.lineType} ${Te.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,ue.unit)(Te.controlOutlineWidth)} ${Te.controlOutline}`},output:{display:"block",paddingTop:15,color:Te.colorText,fontSize:Te.fontSize,lineHeight:Te.lineHeight}}),kt=(Te,gt)=>{const{formItemCls:Ke}=Te;return{[Ke]:{[`${Ke}-label > label`]:{height:gt},[`${Ke}-control-input`]:{minHeight:gt}}}},en=Te=>{const{componentCls:gt}=Te;return{[Te.componentCls]:Object.assign(Object.assign(Object.assign({},(0,$e.Wf)(Te)),ft(Te)),{[`${gt}-text`]:{display:"inline-block",paddingInlineEnd:Te.paddingSM},"&-small":Object.assign({},kt(Te,Te.controlHeightSM)),"&-large":Object.assign({},kt(Te,Te.controlHeightLG))})}},Qe=Te=>{const{formItemCls:gt,iconCls:Ke,rootPrefixCls:wt,antCls:Ht,labelRequiredMarkColor:Hn,labelColor:Jn,labelFontSize:lt,labelHeight:mt,labelColonMarginInlineStart:pt,labelColonMarginInlineEnd:xt,itemMarginBottom:fn}=Te;return{[gt]:Object.assign(Object.assign({},(0,$e.Wf)(Te)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${Ht}-row`]:{display:"none"},"&-has-warning":{[`${gt}-split`]:{color:Te.colorError}},"&-has-error":{[`${gt}-split`]:{color:Te.colorWarning}},[`${gt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Te.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:mt,color:Jn,fontSize:lt,[`> ${Ke}`]:{fontSize:Te.fontSize,verticalAlign:"top"},[`&${gt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Te.marginXXS,color:Hn,fontSize:Te.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${gt}-required-mark-hidden, &${gt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${gt}-optional`]:{display:"inline-block",marginInlineStart:Te.marginXXS,color:Te.colorTextDescription,[`&${gt}-required-mark-hidden`]:{display:"none"}},[`${gt}-tooltip`]:{color:Te.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Te.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:pt,marginInlineEnd:xt},[`&${gt}-no-colon::after`]:{content:'"\\a0"'}}},[`${gt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${wt}-col-'"]):not([class*="' ${wt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Te.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[gt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Te.colorTextDescription,fontSize:Te.fontSize,lineHeight:Te.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Te.controlHeightSM,transition:`color ${Te.motionDurationMid} ${Te.motionEaseOut}`},"&-explain":{"&-error":{color:Te.colorError},"&-warning":{color:Te.colorWarning}}},[`&-with-help ${gt}-explain`]:{height:"auto",opacity:1},[`${gt}-feedback-icon`]:{fontSize:Te.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.kr,animationDuration:Te.motionDurationMid,animationTimingFunction:Te.motionEaseOutBack,pointerEvents:"none","&-success":{color:Te.colorSuccess},"&-error":{color:Te.colorError},"&-warning":{color:Te.colorWarning},"&-validating":{color:Te.colorPrimary}}})}},Ae=(Te,gt)=>{const{formItemCls:Ke}=Te;return{[`${gt}-horizontal`]:{[`${Ke}-label`]:{flexGrow:0},[`${Ke}-control`]:{flex:"1 1 0",minWidth:0},[`${Ke}-label[class$='-24'], ${Ke}-label[class*='-24 ']`]:{[`& + ${Ke}-control`]:{minWidth:"unset"}}}}},tt=Te=>{const{componentCls:gt,formItemCls:Ke,inlineItemMarginBottom:wt}=Te;return{[`${gt}-inline`]:{display:"flex",flexWrap:"wrap",[Ke]:{flex:"none",marginInlineEnd:Te.margin,marginBottom:wt,"&-row":{flexWrap:"nowrap"},[`> ${Ke}-label, > ${Ke}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ke}-label`]:{flex:"none"},[`${gt}-text`]:{display:"inline-block"},[`${Ke}-has-feedback`]:{display:"inline-block"}}}}},nt=Te=>({padding:Te.verticalLabelPadding,margin:Te.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zt=Te=>{const{componentCls:gt,formItemCls:Ke,rootPrefixCls:wt}=Te;return{[`${Ke} ${Ke}-label`]:nt(Te),[`${gt}:not(${gt}-inline)`]:{[Ke]:{flexWrap:"wrap",[`${Ke}-label, ${Ke}-control`]:{[`&:not([class*=" ${wt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=Te=>{const{componentCls:gt,formItemCls:Ke,antCls:wt}=Te;return{[`${gt}-vertical`]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Ke}-row`]:{flexDirection:"column"},[`${Ke}-label > label`]:{height:"auto"},[`${Ke}-control`]:{width:"100%"},[`${Ke}-label, ${wt}-col-24${Ke}-label, ${wt}-col-xl-24${Ke}-label`]:nt(Te)}},[`@media (max-width: ${(0,ue.unit)(Te.screenXSMax)})`]:[zt(Te),{[gt]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${wt}-col-xs-24${Ke}-label`]:nt(Te)}}}],[`@media (max-width: ${(0,ue.unit)(Te.screenSMMax)})`]:{[gt]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${wt}-col-sm-24${Ke}-label`]:nt(Te)}}},[`@media (max-width: ${(0,ue.unit)(Te.screenMDMax)})`]:{[gt]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${wt}-col-md-24${Ke}-label`]:nt(Te)}}},[`@media (max-width: ${(0,ue.unit)(Te.screenLGMax)})`]:{[gt]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${wt}-col-lg-24${Ke}-label`]:nt(Te)}}}}},ht=Te=>{const{formItemCls:gt,antCls:Ke}=Te;return{[`${gt}-vertical`]:{[`${gt}-row`]:{flexDirection:"column"},[`${gt}-label > label`]:{height:"auto"},[`${gt}-control`]:{width:"100%"}},[`${gt}-vertical ${gt}-label, ${Ke}-col-24${gt}-label, ${Ke}-col-xl-24${gt}-label`]:nt(Te),[`@media (max-width: ${(0,ue.unit)(Te.screenXSMax)})`]:[zt(Te),{[gt]:{[`${Ke}-col-xs-24${gt}-label`]:nt(Te)}}],[`@media (max-width: ${(0,ue.unit)(Te.screenSMMax)})`]:{[gt]:{[`${Ke}-col-sm-24${gt}-label`]:nt(Te)}},[`@media (max-width: ${(0,ue.unit)(Te.screenMDMax)})`]:{[gt]:{[`${Ke}-col-md-24${gt}-label`]:nt(Te)}},[`@media (max-width: ${(0,ue.unit)(Te.screenLGMax)})`]:{[gt]:{[`${Ke}-col-lg-24${gt}-label`]:nt(Te)}}}},Ct=Te=>({labelRequiredMarkColor:Te.colorError,labelColor:Te.colorTextHeading,labelFontSize:Te.fontSize,labelHeight:Te.controlHeight,labelColonMarginInlineStart:Te.marginXXS/2,labelColonMarginInlineEnd:Te.marginXS,itemMarginBottom:Te.marginLG,verticalLabelPadding:`0 0 ${Te.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),De=(Te,gt)=>(0,ot.mergeToken)(Te,{formItemCls:`${Te.componentCls}-item`,rootPrefixCls:gt});var ke=(0,st.I$)("Form",(Te,gt)=>{let{rootPrefixCls:Ke}=gt;const wt=De(Te,Ke);return[en(wt),Qe(wt),Re(wt),Ae(wt,wt.componentCls),Ae(wt,wt.formItemCls),tt(wt),Ot(wt),ht(wt),(0,Rt.Z)(wt),Ee.kr]},Ct,{order:-1e3});const xe=[];function se(Te,gt,Ke){let wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Te=="string"?Te:`${gt}-${wt}`,error:Te,errorStatus:Ke}}var _e=Te=>{let{help:gt,helpStatus:Ke,errors:wt=xe,warnings:Ht=xe,className:Hn,fieldId:Jn,onVisibleChanged:lt}=Te;const{prefixCls:mt}=ce.useContext(b.Rk),pt=`${mt}-item-explain`,xt=(0,Ve.Z)(mt),[fn,In,pn]=ke(mt,xt),Sn=ce.useMemo(()=>(0,be.Z)(mt),[mt]),$n=Ie(wt),qn=Ie(Ht),ur=ce.useMemo(()=>gt!=null?[se(gt,"help",Ke)]:[].concat((0,Me.Z)($n.map((or,dr)=>se(or,"error","error",dr))),(0,Me.Z)(qn.map((or,dr)=>se(or,"warning","warning",dr)))),[gt,Ke,$n,qn]),tr=ce.useMemo(()=>{const or={};return ur.forEach(dr=>{let{key:br}=dr;or[br]=(or[br]||0)+1}),ur.map((dr,br)=>Object.assign(Object.assign({},dr),{key:or[dr.key]>1?`${dr.key}-fallback-${br}`:dr.key}))},[ur]),Xn={};return Jn&&(Xn.id=`${Jn}_help`),fn(ce.createElement(pe.default,{motionDeadline:Sn.motionDeadline,motionName:`${mt}-show-help`,visible:!!tr.length,onVisibleChanged:lt},or=>{const{className:dr,style:br}=or;return ce.createElement("div",Object.assign({},Xn,{className:Pe()(pt,dr,pn,xt,Hn,In),style:br}),ce.createElement(pe.CSSMotionList,Object.assign({keys:tr},(0,be.Z)(mt),{motionName:`${mt}-show-help-item`,component:!1}),vr=>{const{key:Tr,error:Br,errorStatus:cr,className:Er,style:Wr}=vr;return ce.createElement("div",{key:Tr,className:Pe()(Er,{[`${pt}-${cr}`]:cr}),style:Wr},Br)}))}))},Ye=ee(69180),Ft=ee(48755),Ce=ee(2171),he=ee(31756),yt=ee(23069),Vt=ee(76846),Lt=ee(16722);const me=["parentNode"],qe="form_item";function it(Te){return Te===void 0||Te===!1?[]:Array.isArray(Te)?Te:[Te]}function Xt(Te,gt){if(!Te.length)return;const Ke=Te.join("_");return gt?`${gt}_${Ke}`:me.includes(Ke)?`${qe}_${Ke}`:Ke}function Xe(Te,gt,Ke,wt,Ht,Hn){let Jn=wt;return Hn!==void 0?Jn=Hn:Ke.validating?Jn="validating":Te.length?Jn="error":gt.length?Jn="warning":(Ke.touched||Ht&&Ke.validated)&&(Jn="success"),Jn}var Gt=function(Te,gt){var Ke={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&>.indexOf(wt)<0&&(Ke[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,wt=Object.getOwnPropertySymbols(Te);HtTe!=null?Te:Object.assign(Object.assign({},gt),{__INTERNAL__:{itemRef:Ht=>Hn=>{const Jn=Fe(Ht);Hn?Ke.current[Jn]=Hn:delete Ke.current[Jn]}},scrollToField:function(Ht){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Jn}=Hn,lt=Gt(Hn,["focus"]),mt=dn(Ht,wt);mt&&((0,Lt.Z)(mt,Object.assign({scrollMode:"if-needed",block:"nearest"},lt)),Jn&&wt.focusField(Ht))},focusField:Ht=>{var Hn,Jn;const lt=wt.getFieldInstance(Ht);typeof(lt==null?void 0:lt.focus)=="function"?lt.focus():(Jn=(Hn=dn(Ht,wt))===null||Hn===void 0?void 0:Hn.focus)===null||Jn===void 0||Jn.call(Hn)},getFieldInstance:Ht=>{const Hn=Fe(Ht);return Ke.current[Hn]}}),[Te,gt]);return[wt]}var ae=ee(98350),ne=function(Te,gt){var Ke={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&>.indexOf(wt)<0&&(Ke[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,wt=Object.getOwnPropertySymbols(Te);Ht{const Ke=ce.useContext(Ce.Z),{getPrefixCls:wt,direction:Ht,requiredMark:Hn,colon:Jn,scrollToFirstError:lt,className:mt,style:pt}=(0,Ft.dj)("form"),{prefixCls:xt,className:fn,rootClassName:In,size:pn,disabled:Sn=Ke,form:$n,colon:qn,labelAlign:ur,labelWrap:tr,labelCol:Xn,wrapperCol:or,hideRequiredMark:dr,layout:br="horizontal",scrollToFirstError:vr,requiredMark:Tr,onFinishFailed:Br,name:cr,style:Er,feedbackIcons:Wr,variant:Rr}=Te,Sr=ne(Te,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Fr=(0,he.Z)(pn),$r=ce.useContext(ae.Z),wr=ce.useMemo(()=>Tr!==void 0?Tr:dr?!1:Hn!==void 0?Hn:!0,[dr,Tr,Hn]),gr=qn!=null?qn:Jn,yr=wt("form",xt),Xr=(0,Ve.Z)(yr),[go,So,to]=ke(yr,Xr),io=Pe()(yr,`${yr}-${br}`,{[`${yr}-hide-required-mark`]:wr===!1,[`${yr}-rtl`]:Ht==="rtl",[`${yr}-${Fr}`]:Fr},to,Xr,So,mt,fn,In),[Oe]=$t($n),{__INTERNAL__:We}=Oe;We.name=cr;const bt=ce.useMemo(()=>({name:cr,labelAlign:ur,labelCol:Xn,labelWrap:tr,wrapperCol:or,vertical:br==="vertical",colon:gr,requiredMark:wr,itemRef:We.itemRef,form:Oe,feedbackIcons:Wr}),[cr,ur,Xn,or,br,gr,wr,Oe,Wr]),Ze=ce.useRef(null);ce.useImperativeHandle(gt,()=>{var Mt;return Object.assign(Object.assign({},Oe),{nativeElement:(Mt=Ze.current)===null||Mt===void 0?void 0:Mt.nativeElement})});const dt=(Mt,Bt)=>{if(Mt){let Wt={block:"nearest"};typeof Mt=="object"&&(Wt=Object.assign(Object.assign({},Wt),Mt)),Oe.scrollToField(Bt,Wt)}},at=Mt=>{if(Br==null||Br(Mt),Mt.errorFields.length){const Bt=Mt.errorFields[0].name;if(vr!==void 0){dt(vr,Bt);return}lt!==void 0&&dt(lt,Bt)}};return go(ce.createElement(b.pg.Provider,{value:Rr},ce.createElement(Ce.n,{disabled:Sn},ce.createElement(yt.Z.Provider,{value:Fr},ce.createElement(b.RV,{validateMessages:$r},ce.createElement(b.q3.Provider,{value:bt},ce.createElement(Ye.default,Object.assign({id:cr},Sr,{name:cr,onFinishFailed:at,form:Oe,ref:Ze,style:Object.assign(Object.assign({},pt),Er),className:io}))))))))};var de=ce.forwardRef(te),re=ee(41799),le=ee(8654),Se=ee(22703),Ge=ee(32383),He=ee(11592);function Le(Te){if(typeof Te=="function")return Te;const gt=(0,He.Z)(Te);return gt.length<=1?gt[0]:gt}const rt=()=>{const{status:Te,errors:gt=[],warnings:Ke=[]}=ce.useContext(b.aM);return{status:Te,errors:gt,warnings:Ke}};rt.Context=b.aM;var ut=rt,At=ee(16089);function Ne(Te){const[gt,Ke]=ce.useState(Te),wt=ce.useRef(null),Ht=ce.useRef([]),Hn=ce.useRef(!1);ce.useEffect(()=>(Hn.current=!1,()=>{Hn.current=!0,At.Z.cancel(wt.current),wt.current=null}),[]);function Jn(lt){Hn.current||(wt.current===null&&(Ht.current=[],wt.current=(0,At.Z)(()=>{wt.current=null,Ke(mt=>{let pt=mt;return Ht.current.forEach(xt=>{pt=xt(pt)}),pt})})),Ht.current.push(lt))}return[gt,Jn]}function Be(){const{itemRef:Te}=ce.useContext(b.q3),gt=ce.useRef({});function Ke(wt,Ht){const Hn=Ht&&typeof Ht=="object"&&(0,le.C4)(Ht),Jn=wt.join("_");return(gt.current.name!==Jn||gt.current.originRef!==Hn)&&(gt.current.name=Jn,gt.current.originRef=Hn,gt.current.ref=(0,le.sQ)(Te(wt),Hn)),gt.current.ref}return Ke}var Ut=ee(29194),Zt=ee(34280),mn=ee(2738),vn=ee(65970),jt=ee(70425),Cn=ee(5472);const on=Te=>{const{formItemCls:gt}=Te;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${gt}-control`]:{display:"flex"}}}};var Je=(0,st.bk)(["Form","item-item"],(Te,gt)=>{let{rootPrefixCls:Ke}=gt;const wt=De(Te,Ke);return[on(wt)]}),Tt=function(Te,gt){var Ke={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&>.indexOf(wt)<0&&(Ke[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,wt=Object.getOwnPropertySymbols(Te);Ht{const{prefixCls:gt,status:Ke,labelCol:wt,wrapperCol:Ht,children:Hn,errors:Jn,warnings:lt,_internalItemRender:mt,extra:pt,help:xt,fieldId:fn,marginBottom:In,onErrorVisibleChanged:pn,label:Sn}=Te,$n=`${gt}-item`,qn=ce.useContext(b.q3),ur=ce.useMemo(()=>{let Sr=Object.assign({},Ht||qn.wrapperCol||{});return Sn===null&&!wt&&!Ht&&qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach($r=>{const wr=$r?[$r]:[],gr=(0,jt.U2)(qn.labelCol,wr),yr=typeof gr=="object"?gr:{},Xr=(0,jt.U2)(Sr,wr),go=typeof Xr=="object"?Xr:{};"span"in yr&&!("offset"in go)&&yr.span{const{labelCol:Sr,wrapperCol:Fr}=qn;return Tt(qn,["labelCol","wrapperCol"])},[qn]),or=ce.useRef(null),[dr,br]=ce.useState(0);(0,Zt.Z)(()=>{pt&&or.current?br(or.current.clientHeight):br(0)},[pt]);const vr=ce.createElement("div",{className:`${$n}-control-input`},ce.createElement("div",{className:`${$n}-control-input-content`},Hn)),Tr=ce.useMemo(()=>({prefixCls:gt,status:Ke}),[gt,Ke]),Br=In!==null||Jn.length||lt.length?ce.createElement(b.Rk.Provider,{value:Tr},ce.createElement(_e,{fieldId:fn,errors:Jn,warnings:lt,help:xt,helpStatus:Ke,className:`${$n}-explain-connected`,onVisibleChanged:pn})):null,cr={};fn&&(cr.id=`${fn}_extra`);const Er=pt?ce.createElement("div",Object.assign({},cr,{className:`${$n}-extra`,ref:or}),pt):null,Wr=Br||Er?ce.createElement("div",{className:`${$n}-additional`,style:In?{minHeight:In+dr}:{}},Br,Er):null,Rr=mt&&mt.mark==="pro_table_render"&&mt.render?mt.render(Te,{input:vr,errorList:Br,extra:Er}):ce.createElement(ce.Fragment,null,vr,Wr);return ce.createElement(b.q3.Provider,{value:Xn},ce.createElement(Cn.Z,Object.assign({},ur,{className:tr}),Rr),ce.createElement(Je,{prefixCls:gt}))},Pt=ee(61485),Kt=ee(9017),nn=ee(85981),On=ee(25399),_n=function(Te,gt){var Ke={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&>.indexOf(wt)<0&&(Ke[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,wt=Object.getOwnPropertySymbols(Te);Ht{let{prefixCls:gt,label:Ke,htmlFor:wt,labelCol:Ht,labelAlign:Hn,colon:Jn,required:lt,requiredMark:mt,tooltip:pt,vertical:xt}=Te;var fn;const[In]=(0,Kt.Z)("Form"),{labelAlign:pn,labelCol:Sn,labelWrap:$n,colon:qn}=ce.useContext(b.q3);if(!Ke)return null;const ur=Ht||Sn||{},tr=Hn||pn,Xn=`${gt}-item-label`,or=Pe()(Xn,tr==="left"&&`${Xn}-left`,ur.className,{[`${Xn}-wrap`]:!!$n});let dr=Ke;const br=Jn===!0||qn!==!1&&Jn!==!1;br&&!xt&&typeof Ke=="string"&&Ke.trim()&&(dr=Ke.replace(/[:|:]\s*$/,""));const Tr=nr(pt);if(Tr){const{icon:Sr=ce.createElement(Pt.Z,null)}=Tr,Fr=_n(Tr,["icon"]),$r=ce.createElement(On.Z,Object.assign({},Fr),ce.cloneElement(Sr,{className:`${gt}-item-tooltip`,title:"",onClick:wr=>{wr.preventDefault()},tabIndex:null}));dr=ce.createElement(ce.Fragment,null,dr,$r)}const Br=mt==="optional",cr=typeof mt=="function",Er=mt===!1;cr?dr=mt(dr,{required:!!lt}):Br&&!lt&&(dr=ce.createElement(ce.Fragment,null,dr,ce.createElement("span",{className:`${gt}-item-optional`,title:""},(In==null?void 0:In.optional)||((fn=nn.Z.Form)===null||fn===void 0?void 0:fn.optional))));let Wr;Er?Wr="hidden":(Br||cr)&&(Wr="optional");const Rr=Pe()({[`${gt}-item-required`]:lt,[`${gt}-item-required-mark-${Wr}`]:Wr,[`${gt}-item-no-colon`]:!br});return ce.createElement(Cn.Z,Object.assign({},ur,{className:or}),ce.createElement("label",{htmlFor:wt,className:Rr,title:typeof Ke=="string"?Ke:""},dr))},er=ee(29679),kn=ee(19248),cn=ee(96512),bn=ee(58617);const St={success:er.Z,warning:cn.Z,error:kn.Z,validating:bn.Z};function Et(Te){let{children:gt,errors:Ke,warnings:wt,hasFeedback:Ht,validateStatus:Hn,prefixCls:Jn,meta:lt,noStyle:mt}=Te;const pt=`${Jn}-item`,{feedbackIcons:xt}=ce.useContext(b.q3),fn=Xe(Ke,wt,lt,null,!!Ht,Hn),{isFormItemInput:In,status:pn,hasFeedback:Sn,feedbackIcon:$n}=ce.useContext(b.aM),qn=ce.useMemo(()=>{var ur;let tr;if(Ht){const or=Ht!==!0&&Ht.icons||xt,dr=fn&&((ur=or==null?void 0:or({status:fn,errors:Ke,warnings:wt}))===null||ur===void 0?void 0:ur[fn]),br=fn&&St[fn];tr=dr!==!1&&br?ce.createElement("span",{className:Pe()(`${pt}-feedback-icon`,`${pt}-feedback-icon-${fn}`)},dr||ce.createElement(br,null)):null}const Xn={status:fn||"",errors:Ke,warnings:wt,hasFeedback:!!Ht,feedbackIcon:tr,isFormItemInput:!0};return mt&&(Xn.status=(fn!=null?fn:pn)||"",Xn.isFormItemInput=In,Xn.hasFeedback=!!(Ht!=null?Ht:Sn),Xn.feedbackIcon=Ht!==void 0?Xn.feedbackIcon:$n),Xn},[fn,Ht,mt,In,pn]);return ce.createElement(b.aM.Provider,{value:qn},gt)}var sn=function(Te,gt){var Ke={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&>.indexOf(wt)<0&&(Ke[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,wt=Object.getOwnPropertySymbols(Te);Ht{if(Er&&vr.current){const yr=getComputedStyle(vr.current);Sr(parseInt(yr.marginBottom,10))}},[Er,Wr]);const Fr=yr=>{yr||Sr(null)},wr=function(){let yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Xr=yr?Tr:pt.errors,go=yr?Br:pt.warnings;return Xe(Xr,go,pt,"",!!xt,mt)}(),gr=Pe()(Xn,Ke,wt,{[`${Xn}-with-help`]:cr||Tr.length||Br.length,[`${Xn}-has-feedback`]:wr&&xt,[`${Xn}-has-success`]:wr==="success",[`${Xn}-has-warning`]:wr==="warning",[`${Xn}-has-error`]:wr==="error",[`${Xn}-is-validating`]:wr==="validating",[`${Xn}-hidden`]:fn,[`${Xn}-${ur}`]:ur});return ce.createElement("div",{className:gr,style:Ht,ref:vr},ce.createElement(vn.Z,Object.assign({className:`${Xn}-row`},(0,mn.Z)(tr,["_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"])),ce.createElement(Zn,Object.assign({htmlFor:pn},Te,{requiredMark:or,required:Sn!=null?Sn:$n,prefixCls:gt,vertical:br})),ce.createElement(je,Object.assign({},Te,pt,{errors:Tr,warnings:Br,prefixCls:gt,status:wr,help:Hn,marginBottom:Rr,onErrorVisibleChanged:Fr}),ce.createElement(b.qI.Provider,{value:qn},ce.createElement(Et,{prefixCls:gt,meta:pt,errors:pt.errors,warnings:pt.warnings,hasFeedback:xt,validateStatus:wr},In)))),!!Rr&&ce.createElement("div",{className:`${Xn}-margin-offset`,style:{marginBottom:-Rr}}))}const Tn="__SPLIT__",Jt=null;function wn(Te,gt){const Ke=Object.keys(Te),wt=Object.keys(gt);return Ke.length===wt.length&&Ke.every(Ht=>{const Hn=Te[Ht],Jn=gt[Ht];return Hn===Jn||typeof Hn=="function"||typeof Jn=="function"})}const gn=ce.memo(Te=>{let{children:gt}=Te;return gt},(Te,gt)=>wn(Te.control,gt.control)&&Te.update===gt.update&&Te.childProps.length===gt.childProps.length&&Te.childProps.every((Ke,wt)=>Ke===gt.childProps[wt]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function An(Te){const{name:gt,noStyle:Ke,className:wt,dependencies:Ht,prefixCls:Hn,shouldUpdate:Jn,rules:lt,children:mt,required:pt,label:xt,messageVariables:fn,trigger:In="onChange",validateTrigger:pn,hidden:Sn,help:$n,layout:qn}=Te,{getPrefixCls:ur}=ce.useContext(Ft.E_),{name:tr}=ce.useContext(b.q3),Xn=Le(mt),or=typeof Xn=="function",dr=ce.useContext(b.qI),{validateTrigger:br}=ce.useContext(Ye.FieldContext),vr=pn!==void 0?pn:br,Tr=gt!=null,Br=ur("form",Hn),cr=(0,Ve.Z)(Br),[Er,Wr,Rr]=ke(Br,cr),Sr=(0,Ge.ln)("Form.Item"),Fr=ce.useContext(Ye.ListContext),$r=ce.useRef(null),[wr,gr]=Ne({}),[yr,Xr]=(0,re.Z)(()=>Nn()),go=Ze=>{const dt=Fr==null?void 0:Fr.getKey(Ze.name);if(Xr(Ze.destroy?Nn():Ze,!0),Ke&&$n!==!1&&dr){let at=Ze.name;if(Ze.destroy)at=$r.current||at;else if(dt!==void 0){const[Mt,Bt]=dt;at=[Mt].concat((0,Me.Z)(Bt)),$r.current=at}dr(Ze,at)}},So=(Ze,dt)=>{gr(at=>{const Mt=Object.assign({},at),Wt=[].concat((0,Me.Z)(Ze.name.slice(0,-1)),(0,Me.Z)(dt)).join(Tn);return Ze.destroy?delete Mt[Wt]:Mt[Wt]=Ze,Mt})},[to,io]=ce.useMemo(()=>{const Ze=(0,Me.Z)(yr.errors),dt=(0,Me.Z)(yr.warnings);return Object.values(wr).forEach(at=>{Ze.push.apply(Ze,(0,Me.Z)(at.errors||[])),dt.push.apply(dt,(0,Me.Z)(at.warnings||[]))}),[Ze,dt]},[wr,yr.errors,yr.warnings]),Oe=Be();function We(Ze,dt,at){return Ke&&!Sn?ce.createElement(Et,{prefixCls:Br,hasFeedback:Te.hasFeedback,validateStatus:Te.validateStatus,meta:yr,errors:to,warnings:io,noStyle:!0},Ze):ce.createElement(Pn,Object.assign({key:"row"},Te,{className:Pe()(wt,Rr,cr,Wr),prefixCls:Br,fieldId:dt,isRequired:at,errors:to,warnings:io,meta:yr,onSubItemMetaChange:So,layout:qn}),Ze)}if(!Tr&&!or&&!Ht)return Er(We(Xn));let bt={};return typeof xt=="string"?bt.label=xt:gt&&(bt.label=String(gt)),fn&&(bt=Object.assign(Object.assign({},bt),fn)),Er(ce.createElement(Ye.Field,Object.assign({},Te,{messageVariables:bt,trigger:In,validateTrigger:vr,onMetaChange:go}),(Ze,dt,at)=>{const Mt=it(gt).length&&dt?dt.name:[],Bt=Xt(Mt,tr),Wt=pt!==void 0?pt:!!(lt!=null&<.some(hn=>{if(hn&&typeof hn=="object"&&hn.required&&!hn.warningOnly)return!0;if(typeof hn=="function"){const Ln=hn(at);return(Ln==null?void 0:Ln.required)&&!(Ln!=null&&Ln.warningOnly)}return!1})),En=Object.assign({},Ze);let Rn=null;if(Array.isArray(Xn)&&Tr)Rn=Xn;else if(!(or&&(!(Jn||Ht)||Tr))){if(!(Ht&&!or&&!Tr))if(ce.isValidElement(Xn)){const hn=Object.assign(Object.assign({},Xn.props),En);if(hn.id||(hn.id=Bt),$n||to.length>0||io.length>0||Te.extra){const lr=[];($n||to.length>0)&&lr.push(`${Bt}_help`),Te.extra&&lr.push(`${Bt}_extra`),hn["aria-describedby"]=lr.join(" ")}to.length>0&&(hn["aria-invalid"]="true"),Wt&&(hn["aria-required"]="true"),(0,le.Yr)(Xn)&&(hn.ref=Oe(Mt,Xn)),new Set([].concat((0,Me.Z)(it(In)),(0,Me.Z)(it(vr)))).forEach(lr=>{hn[lr]=function(){for(var sr,pr,mr,kr,xr,Gr=arguments.length,Or=new Array(Gr),Dr=0;Dr{var{prefixCls:gt,children:Ke}=Te,wt=Yt(Te,["prefixCls","children"]);const{getPrefixCls:Ht}=ce.useContext(Ft.E_),Hn=Ht("form",gt),Jn=ce.useMemo(()=>({prefixCls:Hn,status:"error"}),[Hn]);return ce.createElement(Ye.List,Object.assign({},wt),(lt,mt,pt)=>ce.createElement(b.Rk.Provider,{value:Jn},Ke(lt.map(xt=>Object.assign(Object.assign({},xt),{fieldKey:xt.key})),mt,{errors:pt.errors,warnings:pt.warnings})))};function jn(){const{form:Te}=ce.useContext(b.q3);return Te}const vt=de;vt.Item=Qt,vt.List=Vn,vt.ErrorList=_e,vt.useForm=$t,vt.useFormInstance=jn,vt.useWatch=Ye.useWatch,vt.Provider=b.RV,vt.create=()=>{};var Dt=vt},4875:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return _t}});var b=ee(59301),Me=ee(84105),ce=ee(87395),et=ee(92310),Pe=ee.n(et),pe=ee(60499),be=ee(18642),Ve=ee(43749),Ie=ee(72190),ue=ee(42244),$e=ee(38705),Ee=ee(17212);function Rt(){return typeof BigInt=="function"}function ot(je){return!je&&je!==0&&!Number.isNaN(je)||!String(je).trim()}function st(je){var Pt=je.trim(),Kt=Pt.startsWith("-");Kt&&(Pt=Pt.slice(1)),Pt=Pt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Pt.startsWith(".")&&(Pt="0".concat(Pt));var nn=Pt||"0",On=nn.split("."),_n=On[0]||"0",nr=On[1]||"0";_n==="0"&&nr==="0"&&(Kt=!1);var ir=Kt?"-":"";return{negative:Kt,negativeStr:ir,trimStr:nn,integerStr:_n,decimalStr:nr,fullStr:"".concat(ir).concat(nn)}}function Ue(je){var Pt=String(je);return!Number.isNaN(Number(Pt))&&Pt.includes("e")}function Re(je){var Pt=String(je);if(Ue(je)){var Kt=Number(Pt.slice(Pt.indexOf("e-")+2)),nn=Pt.match(/\.(\d+)/);return nn!=null&&nn[1]&&(Kt+=nn[1].length),Kt}return Pt.includes(".")&&kt(Pt)?Pt.length-Pt.indexOf(".")-1:0}function ft(je){var Pt=String(je);if(Ue(je)){if(je>Number.MAX_SAFE_INTEGER)return String(Rt()?BigInt(je).toString():Number.MAX_SAFE_INTEGER);if(je0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":st("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),je}(),Qe=function(){function je(Pt){if((0,$e.Z)(this,je),(0,be.Z)(this,"origin",""),(0,be.Z)(this,"number",void 0),(0,be.Z)(this,"empty",void 0),ot(Pt)){this.empty=!0;return}this.origin=String(Pt),this.number=Number(Pt)}return(0,Ee.Z)(je,[{key:"negate",value:function(){return new je(-this.toNumber())}},{key:"add",value:function(Kt){if(this.isInvalidate())return new je(Kt);var nn=Number(Kt);if(Number.isNaN(nn))return this;var On=this.number+nn;if(On>Number.MAX_SAFE_INTEGER)return new je(Number.MAX_SAFE_INTEGER);if(OnNumber.MAX_SAFE_INTEGER)return new je(Number.MAX_SAFE_INTEGER);if(On0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":ft(this.number):this.origin}}]),je}();function Ae(je){return Rt()?new en(je):new Qe(je)}function tt(je,Pt,Kt){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(je==="")return"";var On=st(je),_n=On.negativeStr,nr=On.integerStr,ir=On.decimalStr,Zn="".concat(Pt).concat(ir),er="".concat(_n).concat(nr);if(Kt>=0){var kn=Number(ir[Kt]);if(kn>=5&&!nn){var cn=Ae(je).add("".concat(_n,"0.").concat("0".repeat(Kt)).concat(10-kn));return tt(cn.toString(),Pt,Kt,nn)}return Kt===0?er:"".concat(er).concat(Pt).concat(ir.padEnd(Kt,"0").slice(0,Kt))}return Zn===".0"?er:"".concat(er).concat(Zn)}var nt=Ae,zt=ee(36901),Ot=ee(34280);function ht(je,Pt){return typeof Proxy!="undefined"&&je?new Proxy(je,{get:function(nn,On){if(Pt[On])return Pt[On];var _n=nn[On];return typeof _n=="function"?_n.bind(nn):_n}}):je}var Ct=ee(8654),De=ee(48736);function ke(je,Pt){var Kt=(0,b.useRef)(null);function nn(){try{var _n=je.selectionStart,nr=je.selectionEnd,ir=je.value,Zn=ir.substring(0,_n),er=ir.substring(nr);Kt.current={start:_n,end:nr,value:ir,beforeTxt:Zn,afterTxt:er}}catch(kn){}}function On(){if(je&&Kt.current&&Pt)try{var _n=je.value,nr=Kt.current,ir=nr.beforeTxt,Zn=nr.afterTxt,er=nr.start,kn=_n.length;if(_n.startsWith(ir))kn=ir.length;else if(_n.endsWith(Zn))kn=_n.length-Kt.current.afterTxt.length;else{var cn=ir[er-1],bn=_n.indexOf(cn,er-1);bn!==-1&&(kn=bn+1)}je.setSelectionRange(kn,kn)}catch(St){(0,De.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(St.message))}}return[nn,On]}var xe=ee(49658),se=function(){var Pt=(0,b.useState)(!1),Kt=(0,Ie.Z)(Pt,2),nn=Kt[0],On=Kt[1];return(0,Ot.Z)(function(){On((0,xe.Z)())},[]),nn},It=se,_e=ee(16089),Ye=200,Ft=600;function Ce(je){var Pt=je.prefixCls,Kt=je.upNode,nn=je.downNode,On=je.upDisabled,_n=je.downDisabled,nr=je.onStep,ir=b.useRef(),Zn=b.useRef([]),er=b.useRef();er.current=nr;var kn=function(){clearTimeout(ir.current)},cn=function(wn,gn){wn.preventDefault(),kn(),er.current(gn);function Nn(){er.current(gn),ir.current=setTimeout(Nn,Ye)}ir.current=setTimeout(Nn,Ft)};b.useEffect(function(){return function(){kn(),Zn.current.forEach(function(Jt){return _e.Z.cancel(Jt)})}},[]);var bn=It();if(bn)return null;var St="".concat(Pt,"-handler"),Et=Pe()(St,"".concat(St,"-up"),(0,be.Z)({},"".concat(St,"-up-disabled"),On)),sn=Pe()(St,"".concat(St,"-down"),(0,be.Z)({},"".concat(St,"-down-disabled"),_n)),Pn=function(){return Zn.current.push((0,_e.Z)(kn))},Tn={unselectable:"on",role:"button",onMouseUp:Pn,onMouseLeave:Pn};return b.createElement("div",{className:"".concat(St,"-wrap")},b.createElement("span",(0,pe.Z)({},Tn,{onMouseDown:function(wn){cn(wn,!0)},"aria-label":"Increase Value","aria-disabled":On,className:Et}),Kt||b.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-up-inner")})),b.createElement("span",(0,pe.Z)({},Tn,{onMouseDown:function(wn){cn(wn,!1)},"aria-label":"Decrease Value","aria-disabled":_n,className:sn}),nn||b.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-down-inner")})))}function he(je){var Pt=typeof je=="number"?ft(je):st(je).fullStr,Kt=Pt.includes(".");return Kt?st(Pt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:je+"0"}var yt=ee(30292),Vt=function(){var je=(0,b.useRef)(0),Pt=function(){_e.Z.cancel(je.current)};return(0,b.useEffect)(function(){return Pt},[]),function(Kt){Pt(),je.current=(0,_e.Z)(function(){Kt()})}},Lt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],qe=function(Pt,Kt){return Pt||Kt.isEmpty()?Kt.toString():Kt.toNumber()},it=function(Pt){var Kt=nt(Pt);return Kt.isInvalidate()?null:Kt},Xt=b.forwardRef(function(je,Pt){var Kt=je.prefixCls,nn=je.className,On=je.style,_n=je.min,nr=je.max,ir=je.step,Zn=ir===void 0?1:ir,er=je.defaultValue,kn=je.value,cn=je.disabled,bn=je.readOnly,St=je.upHandler,Et=je.downHandler,sn=je.keyboard,Pn=je.changeOnWheel,Tn=Pn===void 0?!1:Pn,Jt=je.controls,wn=Jt===void 0?!0:Jt,gn=je.classNames,Nn=je.stringMode,An=je.parser,rr=je.formatter,Qt=je.precision,Yt=je.decimalSeparator,xn=je.onChange,Vn=je.onInput,jn=je.onPressEnter,vt=je.onStep,Dt=je.changeOnBlur,Te=Dt===void 0?!0:Dt,gt=je.domRef,Ke=(0,ue.Z)(je,Lt),wt="".concat(Kt,"-input"),Ht=b.useRef(null),Hn=b.useState(!1),Jn=(0,Ie.Z)(Hn,2),lt=Jn[0],mt=Jn[1],pt=b.useRef(!1),xt=b.useRef(!1),fn=b.useRef(!1),In=b.useState(function(){return nt(kn!=null?kn:er)}),pn=(0,Ie.Z)(In,2),Sn=pn[0],$n=pn[1];function qn(Bt){kn===void 0&&$n(Bt)}var ur=b.useCallback(function(Bt,Wt){if(!Wt)return Qt>=0?Qt:Math.max(Re(Bt),Re(Zn))},[Qt,Zn]),tr=b.useCallback(function(Bt){var Wt=String(Bt);if(An)return An(Wt);var En=Wt;return Yt&&(En=En.replace(Yt,".")),En.replace(/[^\w.-]+/g,"")},[An,Yt]),Xn=b.useRef(""),or=b.useCallback(function(Bt,Wt){if(rr)return rr(Bt,{userTyping:Wt,input:String(Xn.current)});var En=typeof Bt=="number"?ft(Bt):Bt;if(!Wt){var Rn=ur(En,Wt);if(kt(En)&&(Yt||Rn>=0)){var hn=Yt||".";En=tt(En,hn,Rn)}}return En},[rr,ur,Yt]),dr=b.useState(function(){var Bt=er!=null?er:kn;return Sn.isInvalidate()&&["string","number"].includes((0,Ve.Z)(Bt))?Number.isNaN(Bt)?"":Bt:or(Sn.toString(),!1)}),br=(0,Ie.Z)(dr,2),vr=br[0],Tr=br[1];Xn.current=vr;function Br(Bt,Wt){Tr(or(Bt.isInvalidate()?Bt.toString(!1):Bt.toString(!Wt),Wt))}var cr=b.useMemo(function(){return it(nr)},[nr,Qt]),Er=b.useMemo(function(){return it(_n)},[_n,Qt]),Wr=b.useMemo(function(){return!cr||!Sn||Sn.isInvalidate()?!1:cr.lessEquals(Sn)},[cr,Sn]),Rr=b.useMemo(function(){return!Er||!Sn||Sn.isInvalidate()?!1:Sn.lessEquals(Er)},[Er,Sn]),Sr=ke(Ht.current,lt),Fr=(0,Ie.Z)(Sr,2),$r=Fr[0],wr=Fr[1],gr=function(Wt){return cr&&!Wt.lessEquals(cr)?cr:Er&&!Er.lessEquals(Wt)?Er:null},yr=function(Wt){return!gr(Wt)},Xr=function(Wt,En){var Rn=Wt,hn=yr(Rn)||Rn.isEmpty();if(!Rn.isEmpty()&&!En&&(Rn=gr(Rn)||Rn,hn=!0),!bn&&!cn&&hn){var Ln=Rn.toString(),Gn=ur(Ln,En);return Gn>=0&&(Rn=nt(tt(Ln,".",Gn)),yr(Rn)||(Rn=nt(tt(Ln,".",Gn,!0)))),Rn.equals(Sn)||(qn(Rn),xn==null||xn(Rn.isEmpty()?null:qe(Nn,Rn)),kn===void 0&&Br(Rn,En)),Rn}return Sn},go=Vt(),So=function Bt(Wt){if($r(),Xn.current=Wt,Tr(Wt),!xt.current){var En=tr(Wt),Rn=nt(En);Rn.isNaN()||Xr(Rn,!0)}Vn==null||Vn(Wt),go(function(){var hn=Wt;An||(hn=Wt.replace(/。/g,".")),hn!==Wt&&Bt(hn)})},to=function(){xt.current=!0},io=function(){xt.current=!1,So(Ht.current.value)},Oe=function(Wt){So(Wt.target.value)},We=function(Wt){var En;if(!(Wt&&Wr||!Wt&&Rr)){pt.current=!1;var Rn=nt(fn.current?he(Zn):Zn);Wt||(Rn=Rn.negate());var hn=(Sn||nt(0)).add(Rn.toString()),Ln=Xr(hn,!1);vt==null||vt(qe(Nn,Ln),{offset:fn.current?he(Zn):Zn,type:Wt?"up":"down"}),(En=Ht.current)===null||En===void 0||En.focus()}},bt=function(Wt){var En=nt(tr(vr)),Rn;En.isNaN()?Rn=Xr(Sn,Wt):Rn=Xr(En,Wt),kn!==void 0?Br(Sn,!1):Rn.isNaN()||Br(Rn,!1)},Ze=function(){pt.current=!0},dt=function(Wt){var En=Wt.key,Rn=Wt.shiftKey;pt.current=!0,fn.current=Rn,En==="Enter"&&(xt.current||(pt.current=!1),bt(!1),jn==null||jn(Wt)),sn!==!1&&!xt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(En)&&(We(En==="Up"||En==="ArrowUp"),Wt.preventDefault())},at=function(){pt.current=!1,fn.current=!1};b.useEffect(function(){if(Tn&<){var Bt=function(Rn){We(Rn.deltaY<0),Rn.preventDefault()},Wt=Ht.current;if(Wt)return Wt.addEventListener("wheel",Bt,{passive:!1}),function(){return Wt.removeEventListener("wheel",Bt)}}});var Mt=function(){Te&&bt(!1),mt(!1),pt.current=!1};return(0,Ot.o)(function(){Sn.isInvalidate()||Br(Sn,!1)},[Qt,rr]),(0,Ot.o)(function(){var Bt=nt(kn);$n(Bt);var Wt=nt(tr(vr));(!Bt.equals(Wt)||!pt.current||rr)&&Br(Bt,pt.current)},[kn]),(0,Ot.o)(function(){rr&&wr()},[vr]),b.createElement("div",{ref:gt,className:Pe()(Kt,nn,(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},"".concat(Kt,"-focused"),lt),"".concat(Kt,"-disabled"),cn),"".concat(Kt,"-readonly"),bn),"".concat(Kt,"-not-a-number"),Sn.isNaN()),"".concat(Kt,"-out-of-range"),!Sn.isInvalidate()&&!yr(Sn))),style:On,onFocus:function(){mt(!0)},onBlur:Mt,onKeyDown:dt,onKeyUp:at,onCompositionStart:to,onCompositionEnd:io,onBeforeInput:Ze},wn&&b.createElement(Ce,{prefixCls:Kt,upNode:St,downNode:Et,upDisabled:Wr,downDisabled:Rr,onStep:We}),b.createElement("div",{className:"".concat(wt,"-wrap")},b.createElement("input",(0,pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":_n,"aria-valuemax":nr,"aria-valuenow":Sn.isInvalidate()?null:Sn.toString(),step:Zn},Ke,{ref:(0,Ct.sQ)(Ht,Pt),className:wt,value:vr,onChange:Oe,disabled:cn,readOnly:bn}))))}),Xe=b.forwardRef(function(je,Pt){var Kt=je.disabled,nn=je.style,On=je.prefixCls,_n=On===void 0?"rc-input-number":On,nr=je.value,ir=je.prefix,Zn=je.suffix,er=je.addonBefore,kn=je.addonAfter,cn=je.className,bn=je.classNames,St=(0,ue.Z)(je,me),Et=b.useRef(null),sn=b.useRef(null),Pn=b.useRef(null),Tn=function(wn){Pn.current&&(0,yt.nH)(Pn.current,wn)};return b.useImperativeHandle(Pt,function(){return ht(Pn.current,{focus:Tn,nativeElement:Et.current.nativeElement||sn.current})}),b.createElement(zt.BaseInput,{className:cn,triggerFocus:Tn,prefixCls:_n,value:nr,disabled:Kt,style:nn,prefix:ir,suffix:Zn,addonAfter:kn,addonBefore:er,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Et},b.createElement(Xt,(0,pe.Z)({prefixCls:_n,disabled:Kt,ref:Pn,domRef:sn,className:bn==null?void 0:bn.input},St)))}),Gt=Xe,Fe=Gt,dn=ee(62487),$t=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),ie=ee(83397),de=ee(31756),re=ee(56553),le=ee(24971),Se=ee(70045),Ge=ee(36237),He=ee(53075),Le=ee(64910),rt=ee(39082),ut=ee(63356),At=ee(56119),Ne=ee(16931),Be=ee(51636),Ut=ee(17835);const Zt=je=>{var Pt;const Kt=(Pt=je.handleVisible)!==null&&Pt!==void 0?Pt:"auto",nn=je.controlHeightSM-je.lineWidth*2;return Object.assign(Object.assign({},(0,Le.T)(je)),{controlWidth:90,handleWidth:nn,handleFontSize:je.fontSize/2,handleVisible:Kt,handleActiveBg:je.colorFillAlter,handleBg:je.colorBgContainer,filledHandleBg:new Ut.FastColor(je.colorFillSecondary).onBackground(je.colorBgContainer).toHexString(),handleHoverColor:je.colorPrimary,handleBorderColor:je.colorBorder,handleOpacity:Kt===!0?1:0,handleVisibleWidth:Kt===!0?nn:0})},mn=(je,Pt)=>{let{componentCls:Kt,borderRadiusSM:nn,borderRadiusLG:On}=je;const _n=Pt==="lg"?On:nn;return{[`&-${Pt}`]:{[`${Kt}-handler-wrap`]:{borderStartEndRadius:_n,borderEndEndRadius:_n},[`${Kt}-handler-up`]:{borderStartEndRadius:_n},[`${Kt}-handler-down`]:{borderEndEndRadius:_n}}}},vn=je=>{const{componentCls:Pt,lineWidth:Kt,lineType:nn,borderRadius:On,inputFontSizeSM:_n,inputFontSizeLG:nr,controlHeightLG:ir,controlHeightSM:Zn,colorError:er,paddingInlineSM:kn,paddingBlockSM:cn,paddingBlockLG:bn,paddingInlineLG:St,colorTextDescription:Et,motionDurationMid:sn,handleHoverColor:Pn,handleOpacity:Tn,paddingInline:Jt,paddingBlock:wn,handleBg:gn,handleActiveBg:Nn,colorTextDisabled:An,borderRadiusSM:rr,borderRadiusLG:Qt,controlWidth:Yt,handleBorderColor:xn,filledHandleBg:Vn,lineHeightLG:jn,calc:vt}=je;return[{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(je)),(0,He.ik)(je)),{display:"inline-block",width:Yt,margin:0,padding:0,borderRadius:On}),(0,rt.qG)(je,{[`${Pt}-handler-wrap`]:{background:gn,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,Ge.unit)(Kt)} ${nn} ${xn}`}}})),(0,rt.H8)(je,{[`${Pt}-handler-wrap`]:{background:Vn,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,Ge.unit)(Kt)} ${nn} ${xn}`}},"&:focus-within":{[`${Pt}-handler-wrap`]:{background:gn}}})),(0,rt.vc)(je,{[`${Pt}-handler-wrap`]:{background:gn,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,Ge.unit)(Kt)} ${nn} ${xn}`}}})),(0,rt.Mu)(je)),{"&-rtl":{direction:"rtl",[`${Pt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:nr,lineHeight:jn,borderRadius:Qt,[`input${Pt}-input`]:{height:vt(ir).sub(vt(Kt).mul(2)).equal(),padding:`${(0,Ge.unit)(bn)} ${(0,Ge.unit)(St)}`}},"&-sm":{padding:0,fontSize:_n,borderRadius:rr,[`input${Pt}-input`]:{height:vt(Zn).sub(vt(Kt).mul(2)).equal(),padding:`${(0,Ge.unit)(cn)} ${(0,Ge.unit)(kn)}`}},"&-out-of-range":{[`${Pt}-input-wrap`]:{input:{color:er}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(je)),(0,He.s7)(je)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Pt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Pt}-group-addon`]:{borderRadius:Qt,fontSize:je.fontSizeLG}},"&-sm":{[`${Pt}-group-addon`]:{borderRadius:rr}}},(0,rt.ir)(je)),(0,rt.S5)(je)),{[`&:not(${Pt}-compact-first-item):not(${Pt}-compact-last-item)${Pt}-compact-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderRadius:0}},[`&:not(${Pt}-compact-last-item)${Pt}-compact-first-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Pt}-compact-first-item)${Pt}-compact-last-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Pt}-input`]:{cursor:"not-allowed"},[Pt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(je)),{width:"100%",padding:`${(0,Ge.unit)(wn)} ${(0,Ge.unit)(Jt)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:On,outline:0,transition:`all ${sn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,He.nz)(je.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:je.handleWidth,opacity:1}})},{[Pt]:Object.assign(Object.assign(Object.assign({[`${Pt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:je.handleVisibleWidth,opacity:Tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:On,borderEndEndRadius:On,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${sn}`,overflow:"hidden",[`${Pt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Pt}-handler-up-inner, ${Pt}-handler-down-inner `]:{marginInlineEnd:0,fontSize:je.handleFontSize}}},[`${Pt}-handler`]:{height:"50%",overflow:"hidden",color:Et,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Ge.unit)(Kt)} ${nn} ${xn}`,transition:`all ${sn} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[` ${Pt}-handler-up-inner, ${Pt}-handler-down-inner `]:{color:Pn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ut.Ro)()),{color:Et,transition:`all ${sn} linear`,userSelect:"none"})},[`${Pt}-handler-up`]:{borderStartEndRadius:On},[`${Pt}-handler-down`]:{borderEndEndRadius:On}},mn(je,"lg")),mn(je,"sm")),{"&-disabled, &-readonly":{[`${Pt}-handler-wrap`]:{display:"none"},[`${Pt}-input`]:{color:"inherit"}},[` ${Pt}-handler-up-disabled, ${Pt}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Pt}-handler-up-disabled:hover &-handler-up-inner, ${Pt}-handler-down-disabled:hover &-handler-down-inner `]:{color:An}})}]},jt=je=>{const{componentCls:Pt,paddingBlock:Kt,paddingInline:nn,inputAffixPadding:On,controlWidth:_n,borderRadiusLG:nr,borderRadiusSM:ir,paddingInlineLG:Zn,paddingInlineSM:er,paddingBlockLG:kn,paddingBlockSM:cn,motionDurationMid:bn}=je;return{[`${Pt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Pt}-input`]:{padding:`${(0,Ge.unit)(Kt)} 0`}},(0,He.ik)(je)),{position:"relative",display:"inline-flex",alignItems:"center",width:_n,padding:0,paddingInlineStart:nn,"&-lg":{borderRadius:nr,paddingInlineStart:Zn,[`input${Pt}-input`]:{padding:`${(0,Ge.unit)(kn)} 0`}},"&-sm":{borderRadius:ir,paddingInlineStart:er,[`input${Pt}-input`]:{padding:`${(0,Ge.unit)(cn)} 0`}},[`&:not(${Pt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Pt}-disabled`]:{background:"transparent"},[`> div${Pt}`]:{width:"100%",border:"none",outline:"none",[`&${Pt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Pt}-handler-wrap`]:{zIndex:2},[Pt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:On},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:nn,marginInlineStart:On,transition:`margin ${bn}`}},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:je.handleWidth,opacity:1},[`&:not(${Pt}-affix-wrapper-without-controls):hover ${Pt}-suffix`]:{marginInlineEnd:je.calc(je.handleWidth).add(nn).equal()}})}};var Cn=(0,Ne.I$)("InputNumber",je=>{const Pt=(0,Be.mergeToken)(je,(0,Le.e)(je));return[vn(Pt),jt(Pt),(0,At.c)(Pt)]},Zt,{unitless:{handleOpacity:!0}}),on=function(je,Pt){var Kt={};for(var nn in je)Object.prototype.hasOwnProperty.call(je,nn)&&Pt.indexOf(nn)<0&&(Kt[nn]=je[nn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,nn=Object.getOwnPropertySymbols(je);On{const{getPrefixCls:Kt,direction:nn}=b.useContext(ae.E_),On=b.useRef(null);b.useImperativeHandle(Pt,()=>On.current);const{className:_n,rootClassName:nr,size:ir,disabled:Zn,prefixCls:er,addonBefore:kn,addonAfter:cn,prefix:bn,suffix:St,bordered:Et,readOnly:sn,status:Pn,controls:Tn,variant:Jt}=je,wn=on(je,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),gn=Kt("input-number",er),Nn=(0,ie.Z)(gn),[An,rr,Qt]=Cn(gn,Nn),{compactSize:Yt,compactItemClassnames:xn}=(0,Se.ri)(gn,nn);let Vn=b.createElement(ce.Z,{className:`${gn}-handler-up-inner`}),jn=b.createElement(Me.Z,{className:`${gn}-handler-down-inner`});const vt=typeof Tn=="boolean"?Tn:void 0;typeof Tn=="object"&&(Vn=typeof Tn.upIcon=="undefined"?Vn:b.createElement("span",{className:`${gn}-handler-up-inner`},Tn.upIcon),jn=typeof Tn.downIcon=="undefined"?jn:b.createElement("span",{className:`${gn}-handler-down-inner`},Tn.downIcon));const{hasFeedback:Dt,status:Te,isFormItemInput:gt,feedbackIcon:Ke}=b.useContext(re.aM),wt=(0,$t.F)(Te,Pn),Ht=(0,de.Z)(pn=>{var Sn;return(Sn=ir!=null?ir:Yt)!==null&&Sn!==void 0?Sn:pn}),Hn=b.useContext(te.Z),Jn=Zn!=null?Zn:Hn,[lt,mt]=(0,le.Z)("inputNumber",Jt,Et),pt=Dt&&b.createElement(b.Fragment,null,Ke),xt=Pe()({[`${gn}-lg`]:Ht==="large",[`${gn}-sm`]:Ht==="small",[`${gn}-rtl`]:nn==="rtl",[`${gn}-in-form-item`]:gt},rr),fn=`${gn}-group`,In=b.createElement(Fe,Object.assign({ref:On,disabled:Jn,className:Pe()(Qt,Nn,_n,nr,xn),upHandler:Vn,downHandler:jn,prefixCls:gn,readOnly:sn,controls:vt,prefix:bn,suffix:pt||St,addonBefore:kn&&b.createElement(dn.Z,{form:!0,space:!0},kn),addonAfter:cn&&b.createElement(dn.Z,{form:!0,space:!0},cn),classNames:{input:xt,variant:Pe()({[`${gn}-${lt}`]:mt},(0,$t.Z)(gn,wt,Dt)),affixWrapper:Pe()({[`${gn}-affix-wrapper-sm`]:Ht==="small",[`${gn}-affix-wrapper-lg`]:Ht==="large",[`${gn}-affix-wrapper-rtl`]:nn==="rtl",[`${gn}-affix-wrapper-without-controls`]:Tn===!1||Jn},rr),wrapper:Pe()({[`${fn}-rtl`]:nn==="rtl"},rr),groupWrapper:Pe()({[`${gn}-group-wrapper-sm`]:Ht==="small",[`${gn}-group-wrapper-lg`]:Ht==="large",[`${gn}-group-wrapper-rtl`]:nn==="rtl",[`${gn}-group-wrapper-${lt}`]:mt},(0,$t.Z)(`${gn}-group-wrapper`,wt,Dt),rr)}},wn));return An(In)}),Tt=Je,an=je=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(Je,Object.assign({},je)));Tt._InternalPanelDoNotUseOrYouWillBeFired=an;var _t=Tt},49397:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Qe}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(36901),Pe=ee(8654),pe=ee(62487),be=ee(86013),Ve=ee(82855),Ie=ee(48755),ue=ee(2171),$e=ee(83397),Ee=ee(31756),Rt=ee(56553),ot=ee(24971),st=ee(70045),Ue=ee(23826),Re=ee(53075);function ft(Ae){return!!(Ae.prefix||Ae.suffix||Ae.allowClear||Ae.showCount)}var kt=function(Ae,tt){var nt={};for(var zt in Ae)Object.prototype.hasOwnProperty.call(Ae,zt)&&tt.indexOf(zt)<0&&(nt[zt]=Ae[zt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,zt=Object.getOwnPropertySymbols(Ae);Ot{const{prefixCls:nt,bordered:zt=!0,status:Ot,size:ht,disabled:Ct,onBlur:De,onFocus:ke,suffix:xe,allowClear:se,addonAfter:It,addonBefore:_e,className:Ye,style:Ft,styles:Ce,rootClassName:he,onChange:yt,classNames:Vt,variant:Lt}=Ae,me=kt(Ae,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:qe,direction:it,allowClear:Xt,autoComplete:Xe,className:Gt,style:Fe,classNames:dn,styles:$t}=(0,Ie.dj)("input"),ae=qe("input",nt),ne=(0,b.useRef)(null),te=(0,$e.Z)(ae),[ie,de,re]=(0,Re.TI)(ae,he),[le]=(0,Re.ZP)(ae,te),{compactSize:Se,compactItemClassnames:Ge}=(0,st.ri)(ae,it),He=(0,Ee.Z)(_t=>{var je;return(je=ht!=null?ht:Se)!==null&&je!==void 0?je:_t}),Le=b.useContext(ue.Z),rt=Ct!=null?Ct:Le,{status:ut,hasFeedback:At,feedbackIcon:Ne}=(0,b.useContext)(Rt.aM),Be=(0,Ve.F)(ut,Ot),Ut=ft(Ae)||!!At,Zt=(0,b.useRef)(Ut),mn=(0,Ue.Z)(ne,!0),vn=_t=>{mn(),De==null||De(_t)},jt=_t=>{mn(),ke==null||ke(_t)},Cn=_t=>{mn(),yt==null||yt(_t)},on=(At||xe)&&b.createElement(b.Fragment,null,xe,At&&Ne),Je=(0,be.Z)(se!=null?se:Xt),[Tt,an]=(0,ot.Z)("input",Lt,zt);return ie(le(b.createElement(et.default,Object.assign({ref:(0,Pe.sQ)(tt,ne),prefixCls:ae,autoComplete:Xe},me,{disabled:rt,onBlur:vn,onFocus:jt,style:Object.assign(Object.assign({},Fe),Ft),styles:Object.assign(Object.assign({},$t),Ce),suffix:on,allowClear:Je,className:ce()(Ye,he,re,te,Ge,Gt),onChange:Cn,addonBefore:_e&&b.createElement(pe.Z,{form:!0,space:!0},_e),addonAfter:It&&b.createElement(pe.Z,{form:!0,space:!0},It),classNames:Object.assign(Object.assign(Object.assign({},Vt),dn),{input:ce()({[`${ae}-sm`]:He==="small",[`${ae}-lg`]:He==="large",[`${ae}-rtl`]:it==="rtl"},Vt==null?void 0:Vt.input,dn.input,de),variant:ce()({[`${ae}-${Tt}`]:an},(0,Ve.Z)(ae,Be)),affixWrapper:ce()({[`${ae}-affix-wrapper-sm`]:He==="small",[`${ae}-affix-wrapper-lg`]:He==="large",[`${ae}-affix-wrapper-rtl`]:it==="rtl"},de),wrapper:ce()({[`${ae}-group-rtl`]:it==="rtl"},de),groupWrapper:ce()({[`${ae}-group-wrapper-sm`]:He==="small",[`${ae}-group-wrapper-lg`]:He==="large",[`${ae}-group-wrapper-rtl`]:it==="rtl",[`${ae}-group-wrapper-${Tt}`]:an},(0,Ve.Z)(`${ae}-group-wrapper`,Be,At),de)})}))))})},79809:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return tt}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(22711),Pe=ee(86013),pe=ee(82855),be=ee(48755),Ve=ee(2171),Ie=ee(83397),ue=ee(31756),$e=ee(56553),Ee=ee(24971),Rt=ee(70045),ot=ee(30292),st=ee(53075),Ue=ee(16931),Re=ee(51636),ft=ee(64910);const kt=nt=>{const{componentCls:zt,paddingLG:Ot}=nt,ht=`${zt}-textarea`;return{[`textarea${zt}`]:{maxWidth:"100%",height:"auto",minHeight:nt.controlHeight,lineHeight:nt.lineHeight,verticalAlign:"bottom",transition:`all ${nt.motionDurationSlow}`,resize:"vertical",[`&${zt}-mouse-active`]:{transition:`all ${nt.motionDurationSlow}, height 0s, width 0s`}},[`${zt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ht]:{position:"relative","&-show-count":{[`> ${zt}`]:{height:"100%"},[`${zt}-data-count`]:{position:"absolute",bottom:nt.calc(nt.fontSize).mul(nt.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:nt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${zt}, &-affix-wrapper${ht}-has-feedback ${zt} `]:{paddingInlineEnd:Ot},[`&-affix-wrapper${zt}-affix-wrapper`]:{padding:0,[`> textarea${zt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:nt.calc(nt.controlHeight).sub(nt.calc(nt.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${zt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${zt}-clear-icon`]:{position:"absolute",insetInlineEnd:nt.paddingInline,insetBlockStart:nt.paddingXS},[`${ht}-suffix`]:{position:"absolute",top:0,insetInlineEnd:nt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${zt}-affix-wrapper-sm`]:{[`${zt}-suffix`]:{[`${zt}-clear-icon`]:{insetInlineEnd:nt.paddingInlineSM}}}}}};var en=(0,Ue.I$)(["Input","TextArea"],nt=>{const zt=(0,Re.mergeToken)(nt,(0,ft.e)(nt));return[kt(zt)]},ft.T,{resetFont:!1}),Qe=function(nt,zt){var Ot={};for(var ht in nt)Object.prototype.hasOwnProperty.call(nt,ht)&&zt.indexOf(ht)<0&&(Ot[ht]=nt[ht]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,ht=Object.getOwnPropertySymbols(nt);Ct{var Ot;const{prefixCls:ht,bordered:Ct=!0,size:De,disabled:ke,status:xe,allowClear:se,classNames:It,rootClassName:_e,className:Ye,style:Ft,styles:Ce,variant:he,showCount:yt,onMouseDown:Vt,onResize:Lt}=nt,me=Qe(nt,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:qe,direction:it,allowClear:Xt,autoComplete:Xe,className:Gt,style:Fe,classNames:dn,styles:$t}=(0,be.dj)("textArea"),ae=b.useContext(Ve.Z),ne=ke!=null?ke:ae,{status:te,hasFeedback:ie,feedbackIcon:de}=b.useContext($e.aM),re=(0,pe.F)(te,xe),le=b.useRef(null);b.useImperativeHandle(zt,()=>{var an;return{resizableTextArea:(an=le.current)===null||an===void 0?void 0:an.resizableTextArea,focus:_t=>{var je,Pt;(0,ot.nH)((Pt=(je=le.current)===null||je===void 0?void 0:je.resizableTextArea)===null||Pt===void 0?void 0:Pt.textArea,_t)},blur:()=>{var _t;return(_t=le.current)===null||_t===void 0?void 0:_t.blur()}}});const Se=qe("input",ht),Ge=(0,Ie.Z)(Se),[He,Le,rt]=(0,st.TI)(Se,_e),[ut]=en(Se,Ge),{compactSize:At,compactItemClassnames:Ne}=(0,Rt.ri)(Se,it),Be=(0,ue.Z)(an=>{var _t;return(_t=De!=null?De:At)!==null&&_t!==void 0?_t:an}),[Ut,Zt]=(0,Ee.Z)("textArea",he,Ct),mn=(0,Pe.Z)(se!=null?se:Xt),[vn,jt]=b.useState(!1),[Cn,on]=b.useState(!1),Je=an=>{jt(!0),Vt==null||Vt(an);const _t=()=>{jt(!1),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},Tt=an=>{var _t,je;if(Lt==null||Lt(an),vn&&typeof getComputedStyle=="function"){const Pt=(je=(_t=le.current)===null||_t===void 0?void 0:_t.nativeElement)===null||je===void 0?void 0:je.querySelector("textarea");Pt&&getComputedStyle(Pt).resize==="both"&&on(!0)}};return He(ut(b.createElement(et.default,Object.assign({autoComplete:Xe},me,{style:Object.assign(Object.assign({},Fe),Ft),styles:Object.assign(Object.assign({},$t),Ce),disabled:ne,allowClear:mn,className:ce()(rt,Ge,Ye,_e,Ne,Gt,Cn&&`${Se}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},It),dn),{textarea:ce()({[`${Se}-sm`]:Be==="small",[`${Se}-lg`]:Be==="large"},Le,It==null?void 0:It.textarea,dn.textarea,vn&&`${Se}-mouse-active`),variant:ce()({[`${Se}-${Ut}`]:Zt},(0,pe.Z)(Se,re)),affixWrapper:ce()(`${Se}-textarea-affix-wrapper`,{[`${Se}-affix-wrapper-rtl`]:it==="rtl",[`${Se}-affix-wrapper-sm`]:Be==="small",[`${Se}-affix-wrapper-lg`]:Be==="large",[`${Se}-textarea-show-count`]:yt||((Ot=nt.count)===null||Ot===void 0?void 0:Ot.show)},Le)}),prefixCls:Se,suffix:ie&&b.createElement("span",{className:`${Se}-textarea-suffix`},de),showCount:yt,ref:le,onResize:Tt,onMouseDown:Je}))))})},23826:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Me}});var b=ee(59301);function Me(ce,et){const Pe=(0,b.useRef)([]),pe=()=>{Pe.current.push(setTimeout(()=>{var be,Ve,Ie,ue;!((be=ce.current)===null||be===void 0)&&be.input&&((Ve=ce.current)===null||Ve===void 0?void 0:Ve.input.getAttribute("type"))==="password"&&(!((Ie=ce.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((ue=ce.current)===null||ue===void 0||ue.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(et&&pe(),()=>Pe.current.forEach(be=>{be&&clearTimeout(be)})),[]),pe}},37568:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return dn}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(48755),Pe=ee(56553),pe=ee(53075),Ve=$t=>{const{getPrefixCls:ae,direction:ne}=(0,b.useContext)(et.E_),{prefixCls:te,className:ie}=$t,de=ae("input-group",te),re=ae("input"),[le,Se,Ge]=(0,pe.ZP)(re),He=ce()(de,Ge,{[`${de}-lg`]:$t.size==="large",[`${de}-sm`]:$t.size==="small",[`${de}-compact`]:$t.compact,[`${de}-rtl`]:ne==="rtl"},Se,ie),Le=(0,b.useContext)(Pe.aM),rt=(0,b.useMemo)(()=>Object.assign(Object.assign({},Le),{isFormItemInput:!1}),[Le]);return le(b.createElement("span",{className:He,style:$t.style,onMouseEnter:$t.onMouseEnter,onMouseLeave:$t.onMouseLeave,onFocus:$t.onFocus,onBlur:$t.onBlur},b.createElement(Pe.aM.Provider,{value:rt},$t.children)))},Ie=ee(49397),ue=ee(77654),$e=ee(6089),Ee=ee(26112),Rt=ee(82855),ot=ee(31756),st=ee(16931),Ue=ee(51636),Re=ee(64910);const ft=$t=>{const{componentCls:ae,paddingXS:ne}=$t;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:$t.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:$t.calc($t.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:$t.paddingXS}}}};var kt=(0,st.I$)(["Input","OTP"],$t=>{const ae=(0,Ue.mergeToken)($t,(0,Re.e)($t));return[ft(ae)]},Re.T),en=ee(16089),Qe=function($t,ae){var ne={};for(var te in $t)Object.prototype.hasOwnProperty.call($t,te)&&ae.indexOf(te)<0&&(ne[te]=$t[te]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols($t);ie{const{value:ne,onChange:te,onActiveChange:ie,index:de,mask:re}=$t,le=Qe($t,["value","onChange","onActiveChange","index","mask"]),Se=ne&&typeof re=="string"?re:ne,Ge=At=>{te(de,At.target.value)},He=b.useRef(null);b.useImperativeHandle(ae,()=>He.current);const Le=()=>{(0,en.Z)(()=>{var At;const Ne=(At=He.current)===null||At===void 0?void 0:At.input;document.activeElement===Ne&&Ne&&Ne.select()})},rt=At=>{const{key:Ne,ctrlKey:Be,metaKey:Ut}=At;Ne==="ArrowLeft"?ie(de-1):Ne==="ArrowRight"?ie(de+1):Ne==="z"&&(Be||Ut)&&At.preventDefault(),Le()},ut=At=>{At.key==="Backspace"&&!ne&&ie(de-1),Le()};return b.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:He,value:Se,onInput:Ge,onFocus:Le,onKeyDown:rt,onKeyUp:ut,onMouseDown:Le,onMouseUp:Le}))}),nt=function($t,ae){var ne={};for(var te in $t)Object.prototype.hasOwnProperty.call($t,te)&&ae.indexOf(te)<0&&(ne[te]=$t[te]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols($t);ie{const{index:ae,prefixCls:ne,separator:te}=$t,ie=typeof te=="function"?te(ae):te;return ie?b.createElement("span",{className:`${ne}-separator`},ie):null};var Ct=b.forwardRef(($t,ae)=>{const{prefixCls:ne,length:te=6,size:ie,defaultValue:de,value:re,onChange:le,formatter:Se,separator:Ge,variant:He,disabled:Le,status:rt,autoFocus:ut,mask:At,type:Ne,onInput:Be,inputMode:Ut}=$t,Zt=nt($t,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:mn,direction:vn}=b.useContext(et.E_),jt=mn("otp",ne),Cn=(0,Ee.Z)(Zt,{aria:!0,data:!0,attr:!0}),[on,Je,Tt]=kt(jt),an=(0,ot.Z)(bn=>ie!=null?ie:bn),_t=b.useContext(Pe.aM),je=(0,Rt.F)(_t.status,rt),Pt=b.useMemo(()=>Object.assign(Object.assign({},_t),{status:je,hasFeedback:!1,feedbackIcon:null}),[_t,je]),Kt=b.useRef(null),nn=b.useRef({});b.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=nn.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let St=0;StSe?Se(bn):bn,[_n,nr]=b.useState(()=>zt(On(de||"")));b.useEffect(()=>{re!==void 0&&nr(zt(re))},[re]);const ir=(0,$e.Z)(bn=>{nr(bn),Be&&Be(bn),le&&bn.length===te&&bn.every(St=>St)&&bn.some((St,Et)=>_n[Et]!==St)&&le(bn.join(""))}),Zn=(0,$e.Z)((bn,St)=>{let Et=(0,ue.Z)(_n);for(let Pn=0;Pn=0&&!Et[Pn];Pn-=1)Et.pop();const sn=On(Et.map(Pn=>Pn||" ").join(""));return Et=zt(sn).map((Pn,Tn)=>Pn===" "&&!Et[Tn]?Et[Tn]:Pn),Et}),er=(bn,St)=>{var Et;const sn=Zn(bn,St),Pn=Math.min(bn+St.length,te-1);Pn!==bn&&sn[bn]!==void 0&&((Et=nn.current[Pn])===null||Et===void 0||Et.focus()),ir(sn)},kn=bn=>{var St;(St=nn.current[bn])===null||St===void 0||St.focus()},cn={variant:He,disabled:Le,status:je,mask:At,type:Ne,inputMode:Ut};return on(b.createElement("div",Object.assign({},Cn,{ref:Kt,className:ce()(jt,{[`${jt}-sm`]:an==="small",[`${jt}-lg`]:an==="large",[`${jt}-rtl`]:vn==="rtl"},Tt,Je)}),b.createElement(Pe.aM.Provider,{value:Pt},Array.from({length:te}).map((bn,St)=>{const Et=`otp-${St}`,sn=_n[St]||"";return b.createElement(b.Fragment,{key:Et},b.createElement(tt,Object.assign({ref:Pn=>{nn.current[St]=Pn},index:St,size:an,htmlSize:1,className:`${jt}-input`,onChange:er,value:sn,onActiveChange:kn,autoFocus:St===0&&ut},cn)),St$t?b.createElement(ke.Z,null):b.createElement(De.Z,null),Ce={click:"onClick",hover:"onMouseOver"};var yt=b.forwardRef(($t,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:ie=!0,iconRender:de=Ft}=$t,re=b.useContext(It.Z),le=ne!=null?ne:re,Se=typeof ie=="object"&&ie.visible!==void 0,[Ge,He]=(0,b.useState)(()=>Se?ie.visible:!1),Le=(0,b.useRef)(null);b.useEffect(()=>{Se&&He(ie.visible)},[Se,ie]);const rt=(0,_e.Z)(Le),ut=()=>{var an;if(le)return;Ge&&rt();const _t=!Ge;He(_t),typeof ie=="object"&&((an=ie.onVisibleChange)===null||an===void 0||an.call(ie,_t))},At=an=>{const _t=Ce[te]||"",je=de(Ge),Pt={[_t]:ut,className:`${an}-icon`,key:"passwordIcon",onMouseDown:Kt=>{Kt.preventDefault()},onMouseUp:Kt=>{Kt.preventDefault()}};return b.cloneElement(b.isValidElement(je)?je:b.createElement("span",null,je),Pt)},{className:Ne,prefixCls:Be,inputPrefixCls:Ut,size:Zt}=$t,mn=Ye($t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:vn}=b.useContext(et.E_),jt=vn("input",Ut),Cn=vn("input-password",Be),on=ie&&At(Cn),Je=ce()(Cn,Ne,{[`${Cn}-${Zt}`]:!!Zt}),Tt=Object.assign(Object.assign({},(0,xe.Z)(mn,["suffix","iconRender","visibilityToggle"])),{type:Ge?"text":"password",className:Je,prefixCls:jt,suffix:on});return Zt&&(Tt.size=Zt),b.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(ae,Le)},Tt))}),Vt=ee(47472),Lt=ee(22703),me=ee(7939),qe=ee(70045),it=function($t,ae){var ne={};for(var te in $t)Object.prototype.hasOwnProperty.call($t,te)&&ae.indexOf(te)<0&&(ne[te]=$t[te]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols($t);ie{const{prefixCls:ne,inputPrefixCls:te,className:ie,size:de,suffix:re,enterButton:le=!1,addonAfter:Se,loading:Ge,disabled:He,onSearch:Le,onChange:rt,onCompositionStart:ut,onCompositionEnd:At}=$t,Ne=it($t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Be,direction:Ut}=b.useContext(et.E_),Zt=b.useRef(!1),mn=Be("input-search",ne),vn=Be("input",te),{compactSize:jt}=(0,qe.ri)(mn,Ut),Cn=(0,ot.Z)(er=>{var kn;return(kn=de!=null?de:jt)!==null&&kn!==void 0?kn:er}),on=b.useRef(null),Je=er=>{er!=null&&er.target&&er.type==="click"&&Le&&Le(er.target.value,er,{source:"clear"}),rt==null||rt(er)},Tt=er=>{var kn;document.activeElement===((kn=on.current)===null||kn===void 0?void 0:kn.input)&&er.preventDefault()},an=er=>{var kn,cn;Le&&Le((cn=(kn=on.current)===null||kn===void 0?void 0:kn.input)===null||cn===void 0?void 0:cn.value,er,{source:"input"})},_t=er=>{Zt.current||Ge||an(er)},je=typeof le=="boolean"?b.createElement(Vt.Z,null):null,Pt=`${mn}-button`;let Kt;const nn=le||{},On=nn.type&&nn.type.__ANT_BUTTON===!0;On||nn.type==="button"?Kt=(0,Lt.Tm)(nn,Object.assign({onMouseDown:Tt,onClick:er=>{var kn,cn;(cn=(kn=nn==null?void 0:nn.props)===null||kn===void 0?void 0:kn.onClick)===null||cn===void 0||cn.call(kn,er),an(er)},key:"enterButton"},On?{className:Pt,size:Cn}:{})):Kt=b.createElement(me.ZP,{className:Pt,type:le?"primary":void 0,size:Cn,disabled:He,key:"enterButton",onMouseDown:Tt,onClick:an,loading:Ge,icon:je},le),Se&&(Kt=[Kt,(0,Lt.Tm)(Se,{key:"addonAfter"})]);const _n=ce()(mn,{[`${mn}-rtl`]:Ut==="rtl",[`${mn}-${Cn}`]:!!Cn,[`${mn}-with-button`]:!!le},ie),nr=Object.assign(Object.assign({},Ne),{className:_n,prefixCls:vn,type:"search"}),ir=er=>{Zt.current=!0,ut==null||ut(er)},Zn=er=>{Zt.current=!1,At==null||At(er)};return b.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(on,ae),onPressEnter:_t},nr,{size:Cn,onCompositionStart:ir,onCompositionEnd:Zn,addonAfter:Kt,suffix:re,onChange:Je,disabled:He}))}),Gt=ee(79809);const Fe=Ie.Z;Fe.Group=Ve,Fe.Search=Xe,Fe.TextArea=Gt.Z,Fe.Password=yt,Fe.OTP=Ct;var dn=Fe},24303:function(Bn,rn,ee){"use strict";ee.d(rn,{D:function(){return nt},Z:function(){return ht}});var b=ee(59301),Me=ee(60499),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(De,ke){return b.createElement(Pe.Z,(0,Me.Z)({},De,{ref:ke,icon:et}))},be=b.forwardRef(pe),Ve=be,Ie=ee(33853),ue=ee(38819),$e=ee(92310),Ee=ee.n($e),Rt=ee(2738),ot=ee(48755),st=ee(6989),Ue=ee(36237),Re=ee(48923),ft=ee(16931);const kt=Ct=>{const{componentCls:De,siderBg:ke,motionDurationMid:xe,motionDurationSlow:se,antCls:It,triggerHeight:_e,triggerColor:Ye,triggerBg:Ft,headerHeight:Ce,zeroTriggerWidth:he,zeroTriggerHeight:yt,borderRadiusLG:Vt,lightSiderBg:Lt,lightTriggerColor:me,lightTriggerBg:qe,bodyBg:it}=Ct;return{[De]:{position:"relative",minWidth:0,background:ke,transition:`all ${xe}, background 0s`,"&-has-trigger":{paddingBottom:_e},"&-right":{order:1},[`${De}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${It}-menu${It}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${De}-children`]:{overflow:"hidden"},[`${De}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:_e,color:Ye,lineHeight:(0,Ue.unit)(_e),textAlign:"center",background:Ft,cursor:"pointer",transition:`all ${xe}`},[`${De}-zero-width-trigger`]:{position:"absolute",top:Ce,insetInlineEnd:Ct.calc(he).mul(-1).equal(),zIndex:1,width:he,height:yt,color:Ye,fontSize:Ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ke,borderRadius:`0 ${(0,Ue.unit)(Vt)} ${(0,Ue.unit)(Vt)} 0`,cursor:"pointer",transition:`background ${se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ct.calc(he).mul(-1).equal(),borderRadius:`${(0,Ue.unit)(Vt)} 0 0 ${(0,Ue.unit)(Vt)}`}},"&-light":{background:Lt,[`${De}-trigger`]:{color:me,background:qe},[`${De}-zero-width-trigger`]:{color:me,background:qe,border:`1px solid ${it}`,borderInlineStart:0}}}}};var en=(0,ft.I$)(["Layout","Sider"],Ct=>[kt(Ct)],Re.eh,{deprecatedTokens:Re.jn}),Qe=function(Ct,De){var ke={};for(var xe in Ct)Object.prototype.hasOwnProperty.call(Ct,xe)&&De.indexOf(xe)<0&&(ke[xe]=Ct[xe]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,xe=Object.getOwnPropertySymbols(Ct);se!Number.isNaN(Number.parseFloat(Ct))&&isFinite(Ct),nt=b.createContext({}),zt=(()=>{let Ct=0;return function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${De}${Ct}`}})();var ht=b.forwardRef((Ct,De)=>{const{prefixCls:ke,className:xe,trigger:se,children:It,defaultCollapsed:_e=!1,theme:Ye="dark",style:Ft={},collapsible:Ce=!1,reverseArrow:he=!1,width:yt=200,collapsedWidth:Vt=80,zeroWidthTriggerStyle:Lt,breakpoint:me,onCollapse:qe,onBreakpoint:it}=Ct,Xt=Qe(Ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,b.useContext)(st.V),[Gt,Fe]=(0,b.useState)("collapsed"in Ct?Ct.collapsed:_e),[dn,$t]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in Ct&&Fe(Ct.collapsed)},[Ct.collapsed]);const ae=(Cn,on)=>{"collapsed"in Ct||Fe(Cn),qe==null||qe(Cn,on)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(ot.E_),ie=ne("layout-sider",ke),[de,re,le]=en(ie),Se=(0,b.useRef)(null);Se.current=Cn=>{$t(Cn.matches),it==null||it(Cn.matches),Gt!==Cn.matches&&ae(Cn.matches,"responsive")},(0,b.useEffect)(()=>{function Cn(Je){return Se.current(Je)}let on;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&me&&me in Ae){on=Je(`screen and (max-width: ${Ae[me]})`);try{on.addEventListener("change",Cn)}catch(Tt){on.addListener(Cn)}Cn(on)}}return()=>{try{on==null||on.removeEventListener("change",Cn)}catch(Je){on==null||on.removeListener(Cn)}}},[me]),(0,b.useEffect)(()=>{const Cn=zt("ant-sider-");return Xe.addSider(Cn),()=>Xe.removeSider(Cn)},[]);const Ge=()=>{ae(!Gt,"clickTrigger")},He=(0,Rt.Z)(Xt,["collapsed"]),Le=Gt?Vt:yt,rt=tt(Le)?`${Le}px`:String(Le),ut=parseFloat(String(Vt||0))===0?b.createElement("span",{onClick:Ge,className:Ee()(`${ie}-zero-width-trigger`,`${ie}-zero-width-trigger-${he?"right":"left"}`),style:Lt},se||b.createElement(Ve,null)):null,At=te==="rtl"==!he,Ut={expanded:At?b.createElement(ue.Z,null):b.createElement(Ie.Z,null),collapsed:At?b.createElement(Ie.Z,null):b.createElement(ue.Z,null)}[Gt?"collapsed":"expanded"],Zt=se!==null?ut||b.createElement("div",{className:`${ie}-trigger`,onClick:Ge,style:{width:rt}},se||Ut):null,mn=Object.assign(Object.assign({},Ft),{flex:`0 0 ${rt}`,maxWidth:rt,minWidth:rt,width:rt}),vn=Ee()(ie,`${ie}-${Ye}`,{[`${ie}-collapsed`]:!!Gt,[`${ie}-has-trigger`]:Ce&&se!==null&&!ut,[`${ie}-below`]:!!dn,[`${ie}-zero-width`]:parseFloat(rt)===0},xe,re,le),jt=b.useMemo(()=>({siderCollapsed:Gt}),[Gt]);return de(b.createElement(nt.Provider,{value:jt},b.createElement("aside",Object.assign({className:vn},He,{style:mn,ref:De}),b.createElement("div",{className:`${ie}-children`},It),Ce||dn&&ut?Zt:null)))})},6989:function(Bn,rn,ee){"use strict";ee.d(rn,{V:function(){return Me}});var b=ee(59301);const Me=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Bn,rn,ee){"use strict";ee.d(rn,{eh:function(){return et},jn:function(){return Pe}});var b=ee(36237),Me=ee(16931);const ce=pe=>{const{antCls:be,componentCls:Ve,colorText:Ie,footerBg:ue,headerHeight:$e,headerPadding:Ee,headerColor:Rt,footerPadding:ot,fontSize:st,bodyBg:Ue,headerBg:Re}=pe;return{[Ve]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ue,"&, *":{boxSizing:"border-box"},[`&${Ve}-has-sider`]:{flexDirection:"row",[`> ${Ve}, > ${Ve}-content`]:{width:0}},[`${Ve}-header, &${Ve}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ve}-header`]:{height:$e,padding:Ee,color:Rt,lineHeight:(0,b.unit)($e),background:Re,[`${be}-menu`]:{lineHeight:"inherit"}},[`${Ve}-footer`]:{padding:ot,color:Ie,fontSize:st,background:ue},[`${Ve}-content`]:{flex:"auto",color:Ie,minHeight:0}}},et=pe=>{const{colorBgLayout:be,controlHeight:Ve,controlHeightLG:Ie,colorText:ue,controlHeightSM:$e,marginXXS:Ee,colorTextLightSolid:Rt,colorBgContainer:ot}=pe,st=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:be,colorBgTrigger:"#002140",bodyBg:be,headerBg:"#001529",headerHeight:Ve*2,headerPadding:`0 ${st}px`,headerColor:ue,footerPadding:`${$e}px ${st}px`,footerBg:be,siderBg:"#001529",triggerHeight:Ie+Ee*2,triggerBg:"#002140",triggerColor:Rt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:ot,lightTriggerBg:ot,lightTriggerColor:ue}},Pe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];rn.ZP=(0,Me.I$)("Layout",pe=>[ce(pe)],et,{deprecatedTokens:Pe})},78857:function(Bn,rn,ee){"use strict";ee.d(rn,{J:function(){return pe}});var b=ee(59301),Me=ee(8654),ce=ee(62487),et=function(be,Ve){var Ie={};for(var ue in be)Object.prototype.hasOwnProperty.call(be,ue)&&Ve.indexOf(ue)<0&&(Ie[ue]=be[ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ue=Object.getOwnPropertySymbols(be);$e{const{children:Ie}=be,ue=et(be,["children"]),$e=b.useContext(Pe),Ee=b.useMemo(()=>Object.assign(Object.assign({},$e),ue),[$e,ue.prefixCls,ue.mode,ue.selectable,ue.rootClassName]),Rt=(0,Me.t4)(Ie),ot=(0,Me.x1)(Ve,Rt?(0,Me.C4)(Ie):null);return b.createElement(Pe.Provider,{value:Ee},b.createElement(ce.Z,{space:!0},Rt?b.cloneElement(Ie,{ref:ot}):Ie))});rn.Z=Pe},93041:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return de}});var b=ee(59301),Me=ee(28321),ce=ee(24303),et=ee(18785),Pe=ee(92310),pe=ee.n(Pe),be=ee(6089),Ve=ee(2738),Ie=ee(86641),ue=ee(22703),$e=ee(48755),Ee=ee(83397),ot=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),st=function(re,le){var Se={};for(var Ge in re)Object.prototype.hasOwnProperty.call(re,Ge)&&le.indexOf(Ge)<0&&(Se[Ge]=re[Ge]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ge=Object.getOwnPropertySymbols(re);He{const{prefixCls:le,className:Se,dashed:Ge}=re,He=st(re,["prefixCls","className","dashed"]),{getPrefixCls:Le}=b.useContext($e.E_),rt=Le("menu",le),ut=pe()({[`${rt}-item-divider-dashed`]:!!Ge},Se);return b.createElement(Me.iz,Object.assign({className:ut},He))},ft=ee(11592),kt=ee(25399),Qe=re=>{var le;const{className:Se,children:Ge,icon:He,title:Le,danger:rt,extra:ut}=re,{prefixCls:At,firstLevel:Ne,direction:Be,disableMenuItemTitleTooltip:Ut,inlineCollapsed:Zt}=b.useContext(ot),mn=Tt=>{const an=Ge==null?void 0:Ge[0],_t=b.createElement("span",{className:pe()(`${At}-title-content`,{[`${At}-title-content-with-extra`]:!!ut||ut===0})},Ge);return(!He||b.isValidElement(Ge)&&Ge.type==="span")&&Ge&&Tt&&Ne&&typeof an=="string"?b.createElement("div",{className:`${At}-inline-collapsed-noicon`},an.charAt(0)):_t},{siderCollapsed:vn}=b.useContext(ce.D);let jt=Le;typeof Le=="undefined"?jt=Ne?Ge:"":Le===!1&&(jt="");const Cn={title:jt};!vn&&!Zt&&(Cn.title=null,Cn.open=!1);const on=(0,ft.Z)(Ge).length;let Je=b.createElement(Me.ck,Object.assign({},(0,Ve.Z)(re,["title","icon","danger"]),{className:pe()({[`${At}-item-danger`]:rt,[`${At}-item-only-child`]:(He?on+1:on)===1},Se),title:typeof Le=="string"?Le:void 0}),(0,ue.Tm)(He,{className:pe()(b.isValidElement(He)?(le=He.props)===null||le===void 0?void 0:le.className:"",`${At}-item-icon`)}),mn(Zt));return Ut||(Je=b.createElement(kt.Z,Object.assign({},Cn,{placement:Be==="rtl"?"left":"right",classNames:{root:`${At}-inline-collapsed-tooltip`}}),Je)),Je},Ae=ee(78857),tt=ee(36237),nt=ee(17835),zt=ee(63356),Ot=ee(34961),ht=ee(46e3),Ct=ee(34925),De=ee(16931),ke=ee(51636),se=re=>{const{componentCls:le,motionDurationSlow:Se,horizontalLineHeight:Ge,colorSplit:He,lineWidth:Le,lineType:rt,itemPaddingInline:ut}=re;return{[`${le}-horizontal`]:{lineHeight:Ge,border:0,borderBottom:`${(0,tt.unit)(Le)} ${rt} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${le}-item:hover, > ${le}-item-active, > ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},_e=re=>{let{componentCls:le,menuArrowOffset:Se,calc:Ge}=re;return{[`${le}-rtl`]:{direction:"rtl"},[`${le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${le}-rtl${le}-vertical, ${le}-submenu-rtl ${le}-vertical`]:{[`${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,tt.unit)(Ge(Se).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,tt.unit)(Se)})`}}}}};const Ye=re=>Object.assign({},(0,zt.oN)(re));var Ce=(re,le)=>{const{componentCls:Se,itemColor:Ge,itemSelectedColor:He,subMenuItemSelectedColor:Le,groupTitleColor:rt,itemBg:ut,subMenuItemBg:At,itemSelectedBg:Ne,activeBarHeight:Be,activeBarWidth:Ut,activeBarBorderWidth:Zt,motionDurationSlow:mn,motionEaseInOut:vn,motionEaseOut:jt,itemPaddingInline:Cn,motionDurationMid:on,itemHoverColor:Je,lineType:Tt,colorSplit:an,itemDisabledColor:_t,dangerItemColor:je,dangerItemHoverColor:Pt,dangerItemSelectedColor:Kt,dangerItemActiveBg:nn,dangerItemSelectedBg:On,popupBg:_n,itemHoverBg:nr,itemActiveBg:ir,menuSubMenuBg:Zn,horizontalItemSelectedColor:er,horizontalItemSelectedBg:kn,horizontalItemBorderRadius:cn,horizontalItemHoverBg:bn}=re;return{[`${Se}-${le}, ${Se}-${le} > ${Se}`]:{color:Ge,background:ut,[`&${Se}-root:focus-visible`]:Object.assign({},Ye(re)),[`${Se}-item`]:{"&-group-title, &-extra":{color:rt}},[`${Se}-submenu-selected > ${Se}-submenu-title`]:{color:Le},[`${Se}-item, ${Se}-submenu-title`]:{color:Ge,[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},Ye(re))},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${_t} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:Je}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:nr},"&:active":{backgroundColor:ir}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:nr},"&:active":{backgroundColor:ir}}},[`${Se}-item-danger`]:{color:je,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Pt}},[`&${Se}-item:active`]:{background:nn}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:He,[`&${Se}-item-danger`]:{color:Kt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:Ne,[`&${Se}-item-danger`]:{backgroundColor:On}},[`&${Se}-submenu > ${Se}`]:{backgroundColor:Zn},[`&${Se}-popup > ${Se}`]:{backgroundColor:_n},[`&${Se}-submenu-popup > ${Se}`]:{backgroundColor:_n},[`&${Se}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:Zt,marginTop:re.calc(Zt).mul(-1).equal(),marginBottom:0,borderRadius:cn,"&::after":{position:"absolute",insetInline:Cn,bottom:0,borderBottom:`${(0,tt.unit)(Be)} solid transparent`,transition:`border-color ${mn} ${vn}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Be,borderBottomColor:er}},"&-selected":{color:er,backgroundColor:kn,"&:hover":{backgroundColor:kn},"&::after":{borderBottomWidth:Be,borderBottomColor:er}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${(0,tt.unit)(Zt)} ${Tt} ${an}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:At},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,tt.unit)(Ut)} solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${on} ${jt}`,`opacity ${on} ${jt}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:Kt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${on} ${vn}`,`opacity ${on} ${vn}`].join(",")}}}}}};const he=re=>{const{componentCls:le,itemHeight:Se,itemMarginInline:Ge,padding:He,menuArrowSize:Le,marginXS:rt,itemMarginBlock:ut,itemWidth:At,itemPaddingInline:Ne}=re,Be=re.calc(Le).add(He).add(rt).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:Se,lineHeight:(0,tt.unit)(Se),paddingInline:Ne,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ge,marginBlock:ut,width:At},[`> ${le}-item, > ${le}-submenu > ${le}-submenu-title`]:{height:Se,lineHeight:(0,tt.unit)(Se)},[`${le}-item-group-list ${le}-submenu-title, ${le}-submenu-title`]:{paddingInlineEnd:Be}}};var Vt=re=>{const{componentCls:le,iconCls:Se,itemHeight:Ge,colorTextLightSolid:He,dropdownWidth:Le,controlHeightLG:rt,motionEaseOut:ut,paddingXL:At,itemMarginInline:Ne,fontSizeLG:Be,motionDurationFast:Ut,motionDurationSlow:Zt,paddingXS:mn,boxShadowSecondary:vn,collapsedWidth:jt,collapsedIconSize:Cn}=re,on={height:Ge,lineHeight:(0,tt.unit)(Ge),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},he(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},he(re)),{boxShadow:vn})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Le,maxHeight:`calc(100vh - ${(0,tt.unit)(re.calc(rt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${le}-inline`]:{width:"100%",[`&${le}-root`]:{[`${le}-item, ${le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Zt}`,`background ${Zt}`,`padding ${Ut} ${ut}`].join(","),[`> ${le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${le}-sub${le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${le}-submenu > ${le}-submenu-title`]:on,[`& ${le}-item-group-title`]:{paddingInlineStart:At}},[`${le}-item`]:on}},{[`${le}-inline-collapsed`]:{width:jt,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:Be,textAlign:"center"}}},[`> ${le}-item, > ${le}-item-group > ${le}-item-group-list > ${le}-item, > ${le}-item-group > ${le}-item-group-list > ${le}-submenu > ${le}-submenu-title, > ${le}-submenu > ${le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,tt.unit)(re.calc(Cn).div(2).equal())} - ${(0,tt.unit)(Ne)})`,textOverflow:"clip",[` ${le}-submenu-arrow, ${le}-submenu-expand-icon `]:{opacity:0},[`${le}-item-icon, ${Se}`]:{margin:0,fontSize:Cn,lineHeight:(0,tt.unit)(Ge),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:He}},[`${le}-item-group-title`]:Object.assign(Object.assign({},zt.vS),{paddingInline:mn})}}]};const Lt=re=>{const{componentCls:le,motionDurationSlow:Se,motionDurationMid:Ge,motionEaseInOut:He,motionEaseOut:Le,iconCls:rt,iconSize:ut,iconMarginInlineEnd:At}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding calc(${Se} + 0.1s) ${He}`].join(","),[`${le}-item-icon, ${rt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${Ge} ${Le}`,`margin ${Se} ${He}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${Se} ${He}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,zt.Ro)()),[`&${le}-item-only-child`]:{[`> ${rt}, > ${le}-item-icon`]:{marginInlineEnd:0}}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=re=>{const{componentCls:le,motionDurationSlow:Se,motionEaseInOut:Ge,borderRadius:He,menuArrowSize:Le,menuArrowOffset:rt}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Le,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${Ge}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Le).mul(.6).equal(),height:re.calc(Le).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${Se} ${Ge}`,`transform ${Se} ${Ge}`,`top ${Se} ${Ge}`,`color ${Se} ${Ge}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,tt.unit)(re.calc(rt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,tt.unit)(rt)})`}}}}},qe=re=>{const{antCls:le,componentCls:Se,fontSize:Ge,motionDurationSlow:He,motionDurationMid:Le,motionEaseInOut:rt,paddingXS:ut,padding:At,colorSplit:Ne,lineWidth:Be,zIndexPopup:Ut,borderRadiusLG:Zt,subMenuItemBorderRadius:mn,menuArrowSize:vn,menuArrowOffset:jt,lineType:Cn,groupTitleLineHeight:on,groupTitleFontSize:Je}=re;return[{"":{[Se]:Object.assign(Object.assign({},(0,zt.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(re)),(0,zt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ge,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${(0,tt.unit)(ut)} ${(0,tt.unit)(At)}`,fontSize:Je,lineHeight:on,transition:`all ${He}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${He} ${rt}`,`background ${He} ${rt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${He} ${rt}`,`background ${He} ${rt}`,`padding ${Le} ${rt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${He} ${rt}`,`padding ${He} ${rt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${He}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Se}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ne,borderStyle:Cn,borderWidth:0,borderTopWidth:Be,marginBlock:Be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lt(re)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${(0,tt.unit)(re.calc(Ge).mul(2).equal())} ${(0,tt.unit)(At)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ut,borderRadius:Zt,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:Zt},Lt(re)),me(re)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:mn},[`${Se}-submenu-title::after`]:{transition:`transform ${He} ${rt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),me(re)),{[`&-inline-collapsed ${Se}-submenu-arrow, &-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,tt.unit)(jt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,tt.unit)(re.calc(jt).mul(-1).equal())})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(${(0,tt.unit)(re.calc(vn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,tt.unit)(re.calc(jt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,tt.unit)(jt)})`}}})},{[`${le}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]},it=re=>{var le,Se,Ge;const{colorPrimary:He,colorError:Le,colorTextDisabled:rt,colorErrorBg:ut,colorText:At,colorTextDescription:Ne,colorBgContainer:Be,colorFillAlter:Ut,colorFillContent:Zt,lineWidth:mn,lineWidthBold:vn,controlItemBgActive:jt,colorBgTextHover:Cn,controlHeightLG:on,lineHeight:Je,colorBgElevated:Tt,marginXXS:an,padding:_t,fontSize:je,controlHeightSM:Pt,fontSizeLG:Kt,colorTextLightSolid:nn,colorErrorHover:On}=re,_n=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,nr=(Se=re.activeBarBorderWidth)!==null&&Se!==void 0?Se:mn,ir=(Ge=re.itemMarginInline)!==null&&Ge!==void 0?Ge:re.marginXXS,Zn=new nt.FastColor(nn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Ne,groupTitleColor:Ne,colorItemTextSelected:He,itemSelectedColor:He,subMenuItemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:Be,itemBg:Be,colorItemBgHover:Cn,itemHoverBg:Cn,colorItemBgActive:Zt,itemActiveBg:jt,colorSubItemBg:Ut,subMenuItemBg:Ut,colorItemBgSelected:jt,itemSelectedBg:jt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_n,colorActiveBarHeight:vn,activeBarHeight:vn,colorActiveBarBorderSize:mn,activeBarBorderWidth:nr,colorItemTextDisabled:rt,itemDisabledColor:rt,colorDangerItemText:Le,dangerItemColor:Le,colorDangerItemTextHover:Le,dangerItemHoverColor:Le,colorDangerItemTextSelected:Le,dangerItemSelectedColor:Le,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:ir,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:on,groupTitleLineHeight:Je,collapsedWidth:on*2,popupBg:Tt,itemMarginBlock:an,itemPaddingInline:_t,horizontalLineHeight:`${on*1.15}px`,iconSize:je,iconMarginInlineEnd:Pt-je,collapsedIconSize:Kt,groupTitleFontSize:je,darkItemDisabledColor:new nt.FastColor(nn).setA(.25).toRgbString(),darkItemColor:Zn,darkDangerItemColor:Le,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:nn,darkItemSelectedBg:He,darkDangerItemSelectedBg:Le,darkItemHoverBg:"transparent",darkGroupTitleColor:Zn,darkItemHoverColor:nn,darkDangerItemHoverColor:On,darkDangerItemSelectedColor:nn,darkDangerItemActiveBg:Le,itemWidth:_n?`calc(100% + ${nr}px)`:`calc(100% - ${ir*2}px)`}};var Xt=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,De.I$)("Menu",He=>{const{colorBgElevated:Le,controlHeightLG:rt,fontSize:ut,darkItemColor:At,darkDangerItemColor:Ne,darkItemBg:Be,darkSubMenuItemBg:Ut,darkItemSelectedColor:Zt,darkItemSelectedBg:mn,darkDangerItemSelectedBg:vn,darkItemHoverBg:jt,darkGroupTitleColor:Cn,darkItemHoverColor:on,darkItemDisabledColor:Je,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:an,darkDangerItemActiveBg:_t,popupBg:je,darkPopupBg:Pt}=He,Kt=He.calc(ut).div(7).mul(5).equal(),nn=(0,ke.mergeToken)(He,{menuArrowSize:Kt,menuHorizontalHeight:He.calc(rt).mul(1.15).equal(),menuArrowOffset:He.calc(Kt).mul(.25).equal(),menuSubMenuBg:Le,calc:He.calc,popupBg:je}),On=(0,ke.mergeToken)(nn,{itemColor:At,itemHoverColor:on,groupTitleColor:Cn,itemSelectedColor:Zt,subMenuItemSelectedColor:Zt,itemBg:Be,popupBg:Pt,subMenuItemBg:Ut,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:jt,itemDisabledColor:Je,dangerItemColor:Ne,dangerItemHoverColor:Tt,dangerItemSelectedColor:an,dangerItemActiveBg:_t,dangerItemSelectedBg:vn,menuSubMenuBg:Ut,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:mn});return[qe(nn),se(nn),Vt(nn),Ce(nn,"light"),Ce(On,"dark"),_e(nn),(0,Ot.Z)(nn),(0,ht.oN)(nn,"slide-up"),(0,ht.oN)(nn,"slide-down"),(0,Ct._y)(nn,"zoom-big")]},it,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Se,unitless:{groupTitleLineHeight:!0}})(re,le)},Xe=ee(75030),Fe=re=>{var le;const{popupClassName:Se,icon:Ge,title:He,theme:Le}=re,rt=b.useContext(ot),{prefixCls:ut,inlineCollapsed:At,theme:Ne}=rt,Be=(0,Me.Xl)();let Ut;if(!Ge)Ut=At&&!Be.length&&He&&typeof He=="string"?b.createElement("div",{className:`${ut}-inline-collapsed-noicon`},He.charAt(0)):b.createElement("span",{className:`${ut}-title-content`},He);else{const vn=b.isValidElement(He)&&He.type==="span";Ut=b.createElement(b.Fragment,null,(0,ue.Tm)(Ge,{className:pe()(b.isValidElement(Ge)?(le=Ge.props)===null||le===void 0?void 0:le.className:"",`${ut}-item-icon`)}),vn?He:b.createElement("span",{className:`${ut}-title-content`},He))}const Zt=b.useMemo(()=>Object.assign(Object.assign({},rt),{firstLevel:!1}),[rt]),[mn]=(0,Xe.Cn)("Menu");return b.createElement(ot.Provider,{value:Zt},b.createElement(Me.Wd,Object.assign({},(0,Ve.Z)(re,["icon"]),{title:Ut,popupClassName:pe()(ut,Se,`${ut}-${Le||Ne}`),popupStyle:Object.assign({zIndex:mn},re.popupStyle)})))},dn=function(re,le){var Se={};for(var Ge in re)Object.prototype.hasOwnProperty.call(re,Ge)&&le.indexOf(Ge)<0&&(Se[Ge]=re[Ge]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ge=Object.getOwnPropertySymbols(re);He{var Se;const Ge=b.useContext(Ae.Z),He=Ge||{},{getPrefixCls:Le,getPopupContainer:rt,direction:ut,menu:At}=b.useContext($e.E_),Ne=Le(),{prefixCls:Be,className:Ut,style:Zt,theme:mn="light",expandIcon:vn,_internalDisableMenuItemTitleTooltip:jt,inlineCollapsed:Cn,siderCollapsed:on,rootClassName:Je,mode:Tt,selectable:an,onClick:_t,overflowedIndicatorPopupClassName:je}=re,Pt=dn(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Ve.Z)(Pt,["collapsedWidth"]);(Se=He.validator)===null||Se===void 0||Se.call(He,{mode:Tt});const nn=(0,be.Z)(function(){var Pn;_t==null||_t.apply(void 0,arguments),(Pn=He.onClick)===null||Pn===void 0||Pn.call(He)}),On=He.mode||Tt,_n=an!=null?an:He.selectable,nr=Cn!=null?Cn:on,ir={horizontal:{motionName:`${Ne}-slide-up`},inline:(0,Ie.Z)(Ne),other:{motionName:`${Ne}-zoom-big`}},Zn=Le("menu",Be||He.prefixCls),er=(0,Ee.Z)(Zn),[kn,cn,bn]=Xt(Zn,er,!Ge),St=pe()(`${Zn}-${mn}`,At==null?void 0:At.className,Ut),Et=b.useMemo(()=>{var Pn,Tn;if(typeof vn=="function"||$t(vn))return vn||null;if(typeof He.expandIcon=="function"||$t(He.expandIcon))return He.expandIcon||null;if(typeof(At==null?void 0:At.expandIcon)=="function"||$t(At==null?void 0:At.expandIcon))return(At==null?void 0:At.expandIcon)||null;const Jt=(Pn=vn!=null?vn:He==null?void 0:He.expandIcon)!==null&&Pn!==void 0?Pn:At==null?void 0:At.expandIcon;return(0,ue.Tm)(Jt,{className:pe()(`${Zn}-submenu-expand-icon`,b.isValidElement(Jt)?(Tn=Jt.props)===null||Tn===void 0?void 0:Tn.className:void 0)})},[vn,He==null?void 0:He.expandIcon,At==null?void 0:At.expandIcon,Zn]),sn=b.useMemo(()=>({prefixCls:Zn,inlineCollapsed:nr||!1,direction:ut,firstLevel:!0,theme:mn,mode:On,disableMenuItemTitleTooltip:jt}),[Zn,nr,ut,jt,mn]);return kn(b.createElement(Ae.Z.Provider,{value:null},b.createElement(ot.Provider,{value:sn},b.createElement(Me.ZP,Object.assign({getPopupContainer:rt,overflowedIndicator:b.createElement(et.Z,null),overflowedIndicatorPopupClassName:pe()(Zn,`${Zn}-${mn}`,je),mode:On,selectable:_n,onClick:nn},Kt,{inlineCollapsed:nr,style:Object.assign(Object.assign({},At==null?void 0:At.style),Zt),className:St,prefixCls:Zn,direction:ut,defaultMotions:ir,expandIcon:Et,ref:le,rootClassName:pe()(Je,cn,He.rootClassName,bn,er),_internalComponents:ae})))))});const ie=(0,b.forwardRef)((re,le)=>{const Se=(0,b.useRef)(null),Ge=b.useContext(ce.D);return(0,b.useImperativeHandle)(le,()=>({menu:Se.current,focus:He=>{var Le;(Le=Se.current)===null||Le===void 0||Le.focus(He)}})),b.createElement(te,Object.assign({ref:Se},re,Ge))});ie.Item=Qe,ie.SubMenu=Fe,ie.Divider=Re,ie.ItemGroup=Me.BW;var de=ie},31709:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return At}});var b=ee(59301),Me=ee(60499),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},et=ce,Pe=ee(7657),pe=function(Be,Ut){return b.createElement(Pe.Z,(0,Me.Z)({},Be,{ref:Ut,icon:et}))},be=b.forwardRef(pe),Ve=be,Ie=ee(49198),ue=ee(33853),$e=ee(38819),Ee=ee(92310),Rt=ee.n(Ee),ot=ee(18642),st=ee(43749),Ue=ee(85899),Re=ee(72190),ft=ee(18929),kt=ee(10228),en=ee(26112),Qe=ee(48736),Ae=ee(17119),tt=[10,20,50,100],nt=function(Be){var Ut=Be.pageSizeOptions,Zt=Ut===void 0?tt:Ut,mn=Be.locale,vn=Be.changeSize,jt=Be.pageSize,Cn=Be.goButton,on=Be.quickGo,Je=Be.rootPrefixCls,Tt=Be.disabled,an=Be.buildOptionText,_t=Be.showSizeChanger,je=Be.sizeChangerRender,Pt=b.useState(""),Kt=(0,Re.Z)(Pt,2),nn=Kt[0],On=Kt[1],_n=function(){return!nn||Number.isNaN(nn)?void 0:Number(nn)},nr=typeof an=="function"?an:function(sn){return"".concat(sn," ").concat(mn.items_per_page)},ir=function(Pn){On(Pn.target.value)},Zn=function(Pn){Cn||nn===""||(On(""),!(Pn.relatedTarget&&(Pn.relatedTarget.className.indexOf("".concat(Je,"-item-link"))>=0||Pn.relatedTarget.className.indexOf("".concat(Je,"-item"))>=0))&&(on==null||on(_n())))},er=function(Pn){nn!==""&&(Pn.keyCode===kt.Z.ENTER||Pn.type==="click")&&(On(""),on==null||on(_n()))},kn=function(){return Zt.some(function(Pn){return Pn.toString()===jt.toString()})?Zt:Zt.concat([jt]).sort(function(Pn,Tn){var Jt=Number.isNaN(Number(Pn))?0:Number(Pn),wn=Number.isNaN(Number(Tn))?0:Number(Tn);return Jt-wn})},cn="".concat(Je,"-options");if(!_t&&!on)return null;var bn=null,St=null,Et=null;return _t&&je&&(bn=je({disabled:Tt,size:jt,onSizeChange:function(Pn){vn==null||vn(Number(Pn))},"aria-label":mn.page_size,className:"".concat(cn,"-size-changer"),options:kn().map(function(sn){return{label:nr(sn),value:sn}})})),on&&(Cn&&(Et=typeof Cn=="boolean"?b.createElement("button",{type:"button",onClick:er,onKeyUp:er,disabled:Tt,className:"".concat(cn,"-quick-jumper-button")},mn.jump_to_confirm):b.createElement("span",{onClick:er,onKeyUp:er},Cn)),St=b.createElement("div",{className:"".concat(cn,"-quick-jumper")},mn.jump_to,b.createElement("input",{disabled:Tt,type:"text",value:nn,onChange:ir,onKeyUp:er,onBlur:Zn,"aria-label":mn.page}),mn.page,Et)),b.createElement("li",{className:cn},bn,St)},zt=nt,Ot=function(Be){var Ut=Be.rootPrefixCls,Zt=Be.page,mn=Be.active,vn=Be.className,jt=Be.showTitle,Cn=Be.onClick,on=Be.onKeyPress,Je=Be.itemRender,Tt="".concat(Ut,"-item"),an=Rt()(Tt,"".concat(Tt,"-").concat(Zt),(0,ot.Z)((0,ot.Z)({},"".concat(Tt,"-active"),mn),"".concat(Tt,"-disabled"),!Zt),vn),_t=function(){Cn(Zt)},je=function(nn){on(nn,Cn,Zt)},Pt=Je(Zt,"page",b.createElement("a",{rel:"nofollow"},Zt));return Pt?b.createElement("li",{title:jt?String(Zt):null,className:an,onClick:_t,onKeyDown:je,tabIndex:0},Pt):null},ht=Ot,Ct=function(Be,Ut,Zt){return Zt};function De(){}function ke(Ne){var Be=Number(Ne);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}function xe(Ne,Be,Ut){var Zt=typeof Ne=="undefined"?Be:Ne;return Math.floor((Ut-1)/Zt)+1}var se=function(Be){var Ut=Be.prefixCls,Zt=Ut===void 0?"rc-pagination":Ut,mn=Be.selectPrefixCls,vn=mn===void 0?"rc-select":mn,jt=Be.className,Cn=Be.current,on=Be.defaultCurrent,Je=on===void 0?1:on,Tt=Be.total,an=Tt===void 0?0:Tt,_t=Be.pageSize,je=Be.defaultPageSize,Pt=je===void 0?10:je,Kt=Be.onChange,nn=Kt===void 0?De:Kt,On=Be.hideOnSinglePage,_n=Be.align,nr=Be.showPrevNextJumpers,ir=nr===void 0?!0:nr,Zn=Be.showQuickJumper,er=Be.showLessItems,kn=Be.showTitle,cn=kn===void 0?!0:kn,bn=Be.onShowSizeChange,St=bn===void 0?De:bn,Et=Be.locale,sn=Et===void 0?Ae.Z:Et,Pn=Be.style,Tn=Be.totalBoundaryShowSizeChanger,Jt=Tn===void 0?50:Tn,wn=Be.disabled,gn=Be.simple,Nn=Be.showTotal,An=Be.showSizeChanger,rr=An===void 0?an>Jt:An,Qt=Be.sizeChangerRender,Yt=Be.pageSizeOptions,xn=Be.itemRender,Vn=xn===void 0?Ct:xn,jn=Be.jumpPrevIcon,vt=Be.jumpNextIcon,Dt=Be.prevIcon,Te=Be.nextIcon,gt=b.useRef(null),Ke=(0,ft.Z)(10,{value:_t,defaultValue:Pt}),wt=(0,Re.Z)(Ke,2),Ht=wt[0],Hn=wt[1],Jn=(0,ft.Z)(1,{value:Cn,defaultValue:Je,postState:function(Vr){return Math.max(1,Math.min(Vr,xe(void 0,Ht,an)))}}),lt=(0,Re.Z)(Jn,2),mt=lt[0],pt=lt[1],xt=b.useState(mt),fn=(0,Re.Z)(xt,2),In=fn[0],pn=fn[1];(0,b.useEffect)(function(){pn(mt)},[mt]);var Sn=nn!==De,$n="current"in Be,qn=Math.max(1,mt-(er?3:5)),ur=Math.min(xe(void 0,Ht,an),mt+(er?3:5));function tr(Qr,Vr){var _o=Qr||b.createElement("button",{type:"button","aria-label":Vr,className:"".concat(Zt,"-item-link")});return typeof Qr=="function"&&(_o=b.createElement(Qr,(0,Ue.Z)({},Be))),_o}function Xn(Qr){var Vr=Qr.target.value,_o=xe(void 0,Ht,an),Uo;return Vr===""?Uo=Vr:Number.isNaN(Number(Vr))?Uo=In:Vr>=_o?Uo=_o:Uo=Number(Vr),Uo}function or(Qr){return ke(Qr)&&Qr!==mt&&ke(an)&&an>0}var dr=an>Ht?Zn:!1;function br(Qr){(Qr.keyCode===kt.Z.UP||Qr.keyCode===kt.Z.DOWN)&&Qr.preventDefault()}function vr(Qr){var Vr=Xn(Qr);switch(Vr!==In&&pn(Vr),Qr.keyCode){case kt.Z.ENTER:cr(Vr);break;case kt.Z.UP:cr(Vr-1);break;case kt.Z.DOWN:cr(Vr+1);break;default:break}}function Tr(Qr){cr(Xn(Qr))}function Br(Qr){var Vr=xe(Qr,Ht,an),_o=mt>Vr&&Vr!==0?Vr:mt;Hn(Qr),pn(_o),St==null||St(mt,Qr),pt(_o),nn==null||nn(_o,Qr)}function cr(Qr){if(or(Qr)&&!wn){var Vr=xe(void 0,Ht,an),_o=Qr;return Qr>Vr?_o=Vr:Qr<1&&(_o=1),_o!==In&&pn(_o),pt(_o),nn==null||nn(_o,Ht),_o}return mt}var Er=mt>1,Wr=mt2?_o-2:0),ni=2;ni<_o;ni++)Uo[ni-2]=arguments[ni];Vr.apply(void 0,Uo)}}function gr(Qr){wr(Qr,Rr)}function yr(Qr){wr(Qr,Sr)}function Xr(Qr){wr(Qr,Fr)}function go(Qr){wr(Qr,$r)}function So(Qr){var Vr=Vn(Qr,"prev",tr(Dt,"prev page"));return b.isValidElement(Vr)?b.cloneElement(Vr,{disabled:!Er}):Vr}function to(Qr){var Vr=Vn(Qr,"next",tr(Te,"next page"));return b.isValidElement(Vr)?b.cloneElement(Vr,{disabled:!Wr}):Vr}function io(Qr){(Qr.type==="click"||Qr.keyCode===kt.Z.ENTER)&&cr(In)}var Oe=null,We=(0,en.Z)(Be,{aria:!0,data:!0}),bt=Nn&&b.createElement("li",{className:"".concat(Zt,"-total-text")},Nn(an,[an===0?0:(mt-1)*Ht+1,mt*Ht>an?an:mt*Ht])),Ze=null,dt=xe(void 0,Ht,an);if(On&&an<=Ht)return null;var at=[],Mt={rootPrefixCls:Zt,onClick:cr,onKeyPress:wr,showTitle:cn,itemRender:Vn,page:-1},Bt=mt-1>0?mt-1:0,Wt=mt+1=Gn*2&&mt!==3&&(at[0]=b.cloneElement(at[0],{className:Rt()("".concat(Zt,"-item-after-jump-prev"),at[0].props.className)}),at.unshift(Oe)),dt-mt>=Gn*2&&mt!==dt-2){var Dr=at[at.length-1];at[at.length-1]=b.cloneElement(Dr,{className:Rt()("".concat(Zt,"-item-before-jump-next"),Dr.props.className)}),at.push(Ze)}xr!==1&&at.unshift(b.createElement(ht,(0,Me.Z)({},Mt,{key:1,page:1}))),Gr!==dt&&at.push(b.createElement(ht,(0,Me.Z)({},Mt,{key:dt,page:dt})))}var Ar=So(Bt);if(Ar){var _r=!Er||!dt;Ar=b.createElement("li",{title:cn?sn.prev_page:null,onClick:Rr,tabIndex:_r?null:0,onKeyDown:gr,className:Rt()("".concat(Zt,"-prev"),(0,ot.Z)({},"".concat(Zt,"-disabled"),_r)),"aria-disabled":_r},Ar)}var fo=to(Wt);if(fo){var ko,Io;gn?(ko=!Wr,Io=Er?0:null):(ko=!Wr||!dt,Io=ko?null:0),fo=b.createElement("li",{title:cn?sn.next_page:null,onClick:Sr,tabIndex:Io,onKeyDown:yr,className:Rt()("".concat(Zt,"-next"),(0,ot.Z)({},"".concat(Zt,"-disabled"),ko)),"aria-disabled":ko},fo)}var Vo=Rt()(Zt,jt,(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},"".concat(Zt,"-start"),_n==="start"),"".concat(Zt,"-center"),_n==="center"),"".concat(Zt,"-end"),_n==="end"),"".concat(Zt,"-simple"),gn),"".concat(Zt,"-disabled"),wn));return b.createElement("ul",(0,Me.Z)({className:Vo,style:Pn,ref:gt},We),bt,Ar,gn?Ln:at,fo,b.createElement(zt,{locale:sn,rootPrefixCls:Zt,disabled:wn,selectPrefixCls:vn,changeSize:Br,pageSize:Ht,pageSizeOptions:Yt,quickGo:dr?cr:null,goButton:hn,showSizeChanger:rr,sizeChangerRender:Qt}))},It=se,_e=ee(61852),Ye=ee(48755),Ft=ee(31756),Ce=ee(13783),he=ee(9017),yt=ee(82326),Vt=ee(57700),Lt=ee(36237),me=ee(53075),qe=ee(64910),it=ee(39082),Xt=ee(63356),Xe=ee(51636),Gt=ee(16931);const Fe=Ne=>{const{componentCls:Be}=Ne;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ne.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ne.colorBorder,backgroundColor:Ne.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ne.itemActiveBgDisabled},a:{color:Ne.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:Ne.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},dn=Ne=>{const{componentCls:Be}=Ne;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:Ne.itemSizeSM,lineHeight:(0,Lt.unit)(Ne.itemSizeSM)},[`&${Be}-mini ${Be}-item`]:{minWidth:Ne.itemSizeSM,height:Ne.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(Ne.calc(Ne.itemSizeSM).sub(2).equal())},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:Ne.itemSizeSM,height:Ne.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(Ne.itemSizeSM)},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:Ne.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ne.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[` &${Be}-mini ${Be}-prev ${Be}-item-link, &${Be}-mini ${Be}-next ${Be}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ne.itemSizeSM,lineHeight:(0,Lt.unit)(Ne.itemSizeSM)}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:Ne.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Lt.unit)(Ne.itemSizeSM)},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:Ne.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ne.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ne.itemSizeSM,lineHeight:(0,Lt.unit)(Ne.itemSizeSM),input:Object.assign(Object.assign({},(0,me.x0)(Ne)),{width:Ne.paginationMiniQuickJumperInputWidth,height:Ne.controlHeightSM})}}}},$t=Ne=>{const{componentCls:Be}=Ne;return{[` &${Be}-simple ${Be}-prev, &${Be}-simple ${Be}-next `]:{height:Ne.itemSizeSM,lineHeight:(0,Lt.unit)(Ne.itemSizeSM),verticalAlign:"top",[`${Be}-item-link`]:{height:Ne.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ne.colorBgTextHover},"&:active":{backgroundColor:Ne.colorBgTextActive},"&::after":{height:Ne.itemSizeSM,lineHeight:(0,Lt.unit)(Ne.itemSizeSM)}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:Ne.itemSizeSM,marginInlineEnd:Ne.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Lt.unit)(Ne.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ne.itemInputBg,border:`${(0,Lt.unit)(Ne.lineWidth)} ${Ne.lineType} ${Ne.colorBorder}`,borderRadius:Ne.borderRadius,outline:"none",transition:`border-color ${Ne.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ne.colorPrimary},"&:focus":{borderColor:Ne.colorPrimaryHover,boxShadow:`${(0,Lt.unit)(Ne.inputOutlineOffset)} 0 ${(0,Lt.unit)(Ne.controlOutlineWidth)} ${Ne.controlOutline}`},"&[disabled]":{color:Ne.colorTextDisabled,backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,cursor:"not-allowed"}}}}},ae=Ne=>{const{componentCls:Be}=Ne;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:Ne.colorPrimary,fontSize:Ne.fontSizeSM,opacity:0,transition:`all ${Ne.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ne.colorTextDisabled,letterSpacing:Ne.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ne.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ne.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[` ${Be}-prev, ${Be}-jump-prev, ${Be}-jump-next `]:{marginInlineEnd:Ne.marginXS},[` ${Be}-prev, ${Be}-next, ${Be}-jump-prev, ${Be}-jump-next `]:{display:"inline-block",minWidth:Ne.itemSize,height:Ne.itemSize,color:Ne.colorText,fontFamily:Ne.fontFamily,lineHeight:(0,Lt.unit)(Ne.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ne.borderRadius,cursor:"pointer",transition:`all ${Ne.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{outline:0,button:{color:Ne.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ne.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Lt.unit)(Ne.lineWidth)} ${Ne.lineType} transparent`,borderRadius:Ne.borderRadius,outline:"none",transition:`all ${Ne.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:Ne.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ne.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:Ne.paginationSlashMarginInlineEnd,marginInlineStart:Ne.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:Ne.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ne.controlHeight,marginInlineStart:Ne.marginXS,lineHeight:(0,Lt.unit)(Ne.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,me.ik)(Ne)),(0,it.$U)(Ne,{borderColor:Ne.colorBorder,hoverBorderColor:Ne.colorPrimaryHover,activeBorderColor:Ne.colorPrimary,activeShadow:Ne.activeShadow})),{"&[disabled]":Object.assign({},(0,it.Xy)(Ne)),width:Ne.calc(Ne.controlHeightLG).mul(1.25).equal(),height:Ne.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ne.marginXS,marginInlineEnd:Ne.marginXS})}}}},ne=Ne=>{const{componentCls:Be}=Ne;return{[`${Be}-item`]:{display:"inline-block",minWidth:Ne.itemSize,height:Ne.itemSize,marginInlineEnd:Ne.marginXS,fontFamily:Ne.fontFamily,lineHeight:(0,Lt.unit)(Ne.calc(Ne.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Ne.itemBg,border:`${(0,Lt.unit)(Ne.lineWidth)} ${Ne.lineType} transparent`,borderRadius:Ne.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Lt.unit)(Ne.paginationItemPaddingInline)}`,color:Ne.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${Ne.motionDurationMid}`,backgroundColor:Ne.colorBgTextHover},"&:active":{backgroundColor:Ne.colorBgTextActive}},"&-active":{fontWeight:Ne.fontWeightStrong,backgroundColor:Ne.itemActiveBg,borderColor:Ne.colorPrimary,a:{color:Ne.colorPrimary},"&:hover":{borderColor:Ne.colorPrimaryHover},"&:hover a":{color:Ne.colorPrimaryHover}}}}},te=Ne=>{const{componentCls:Be}=Ne;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(Ne)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:Ne.itemSize,marginInlineEnd:Ne.marginXS,lineHeight:(0,Lt.unit)(Ne.calc(Ne.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(Ne)),ae(Ne)),$t(Ne)),dn(Ne)),Fe(Ne)),{[`@media only screen and (max-width: ${Ne.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ne.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${Ne.componentCls}-rtl`]:{direction:"rtl"}}},ie=Ne=>{const{componentCls:Be}=Ne;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,Xt.Qy)(Ne)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,Xt.oN)(Ne))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,Xt.oN)(Ne))}}}},de=Ne=>Object.assign({itemBg:Ne.colorBgContainer,itemSize:Ne.controlHeight,itemSizeSM:Ne.controlHeightSM,itemActiveBg:Ne.colorBgContainer,itemLinkBg:Ne.colorBgContainer,itemActiveColorDisabled:Ne.colorTextDisabled,itemActiveBgDisabled:Ne.controlItemBgActiveDisabled,itemInputBg:Ne.colorBgContainer,miniOptionsSizeChangerTop:0},(0,qe.T)(Ne)),re=Ne=>(0,Xe.mergeToken)(Ne,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ne.calc(Ne.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ne.calc(Ne.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ne.calc(Ne.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ne.calc(Ne.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ne.marginSM,paginationSlashMarginInlineEnd:Ne.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,qe.e)(Ne));var le=(0,Gt.I$)("Pagination",Ne=>{const Be=re(Ne);return[te(Be),ie(Be)]},de);const Se=Ne=>{const{componentCls:Be}=Ne;return{[`${Be}${Be}-bordered${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:Ne.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:Ne.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,a:{color:Ne.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:Ne.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,color:Ne.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder}}},[`${Be}${Be}-bordered:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:Ne.colorPrimaryHover,backgroundColor:Ne.itemBg},[`${Be}-item-link`]:{backgroundColor:Ne.itemLinkBg,borderColor:Ne.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:Ne.colorPrimary,backgroundColor:Ne.itemBg,color:Ne.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:Ne.colorBorder,color:Ne.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:Ne.itemBg,border:`${(0,Lt.unit)(Ne.lineWidth)} ${Ne.lineType} ${Ne.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:Ne.colorPrimary,backgroundColor:Ne.itemBg,a:{color:Ne.colorPrimary}},"&-active":{borderColor:Ne.colorPrimary}}}}};var Ge=(0,Gt.bk)(["Pagination","bordered"],Ne=>{const Be=re(Ne);return[Se(Be)]},de);function He(Ne){return(0,b.useMemo)(()=>typeof Ne=="boolean"?[Ne,{}]:Ne&&typeof Ne=="object"?[!0,Ne]:[void 0,void 0],[Ne])}var Le=function(Ne,Be){var Ut={};for(var Zt in Ne)Object.prototype.hasOwnProperty.call(Ne,Zt)&&Be.indexOf(Zt)<0&&(Ut[Zt]=Ne[Zt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,Zt=Object.getOwnPropertySymbols(Ne);mn{const{align:Be,prefixCls:Ut,selectPrefixCls:Zt,className:mn,rootClassName:vn,style:jt,size:Cn,locale:on,responsive:Je,showSizeChanger:Tt,selectComponentClass:an,pageSizeOptions:_t}=Ne,je=Le(Ne,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Pt}=(0,Ce.Z)(Je),[,Kt]=(0,Vt.ZP)(),{getPrefixCls:nn,direction:On,showSizeChanger:_n,className:nr,style:ir}=(0,Ye.dj)("pagination"),Zn=nn("pagination",Ut),[er,kn,cn]=le(Zn),bn=(0,Ft.Z)(Cn),St=bn==="small"||!!(Pt&&!bn&&Je),[Et]=(0,he.Z)("Pagination",_e.Z),sn=Object.assign(Object.assign({},Et),on),[Pn,Tn]=He(Tt),[Jt,wn]=He(_n),gn=Pn!=null?Pn:Jt,Nn=Tn!=null?Tn:wn,An=an||yt.default,rr=b.useMemo(()=>_t?_t.map(vt=>Number(vt)):void 0,[_t]),Qt=vt=>{var Dt;const{disabled:Te,size:gt,onSizeChange:Ke,"aria-label":wt,className:Ht,options:Hn}=vt,{className:Jn,onChange:lt}=Nn||{},mt=(Dt=Hn.find(pt=>String(pt.value)===String(gt)))===null||Dt===void 0?void 0:Dt.value;return b.createElement(An,Object.assign({disabled:Te,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:pt=>pt.parentNode,"aria-label":wt,options:Hn},Nn,{value:mt,onChange:(pt,xt)=>{Ke==null||Ke(pt),lt==null||lt(pt,xt)},size:St?"small":"middle",className:Rt()(Ht,Jn)}))},Yt=b.useMemo(()=>{const vt=b.createElement("span",{className:`${Zn}-item-ellipsis`},"\u2022\u2022\u2022"),Dt=b.createElement("button",{className:`${Zn}-item-link`,type:"button",tabIndex:-1},On==="rtl"?b.createElement($e.Z,null):b.createElement(ue.Z,null)),Te=b.createElement("button",{className:`${Zn}-item-link`,type:"button",tabIndex:-1},On==="rtl"?b.createElement(ue.Z,null):b.createElement($e.Z,null)),gt=b.createElement("a",{className:`${Zn}-item-link`},b.createElement("div",{className:`${Zn}-item-container`},On==="rtl"?b.createElement(Ie.Z,{className:`${Zn}-item-link-icon`}):b.createElement(Ve,{className:`${Zn}-item-link-icon`}),vt)),Ke=b.createElement("a",{className:`${Zn}-item-link`},b.createElement("div",{className:`${Zn}-item-container`},On==="rtl"?b.createElement(Ve,{className:`${Zn}-item-link-icon`}):b.createElement(Ie.Z,{className:`${Zn}-item-link-icon`}),vt));return{prevIcon:Dt,nextIcon:Te,jumpPrevIcon:gt,jumpNextIcon:Ke}},[On,Zn]),xn=nn("select",Zt),Vn=Rt()({[`${Zn}-${Be}`]:!!Be,[`${Zn}-mini`]:St,[`${Zn}-rtl`]:On==="rtl",[`${Zn}-bordered`]:Kt.wireframe},nr,mn,vn,kn,cn),jn=Object.assign(Object.assign({},ir),jt);return er(b.createElement(b.Fragment,null,Kt.wireframe&&b.createElement(Ge,{prefixCls:Zn}),b.createElement(It,Object.assign({},Yt,je,{style:jn,prefixCls:Zn,selectPrefixCls:xn,className:Vn,locale:sn,pageSizeOptions:rr,showSizeChanger:gn,sizeChangerRender:Qt}))))},At=ut},89787:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return on}});var b=ee(59301),Me=ee(17835),ce=ee(29679),et=ee(40001),Pe=ee(19248),pe=ee(99267),be=ee(92310),Ve=ee.n(be),Ie=ee(2738),ue=ee(48755),$e=ee(60499),Ee=ee(85899),Rt=ee(42244),ot={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},st=function(){var Tt=(0,b.useRef)([]),an=(0,b.useRef)(null);return(0,b.useEffect)(function(){var _t=Date.now(),je=!1;Tt.current.forEach(function(Pt){if(Pt){je=!0;var Kt=Pt.style;Kt.transitionDuration=".3s, .3s, .3s, .06s",an.current&&_t-an.current<100&&(Kt.transitionDuration="0s, 0s")}}),je&&(an.current=Date.now())}),Tt.current},Ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Re=function(Tt){var an=(0,Ee.Z)((0,Ee.Z)({},ot),Tt),_t=an.className,je=an.percent,Pt=an.prefixCls,Kt=an.strokeColor,nn=an.strokeLinecap,On=an.strokeWidth,_n=an.style,nr=an.trailColor,ir=an.trailWidth,Zn=an.transition,er=(0,Rt.Z)(an,Ue);delete er.gapPosition;var kn=Array.isArray(je)?je:[je],cn=Array.isArray(Kt)?Kt:[Kt],bn=st(),St=On/2,Et=100-On/2,sn="M ".concat(nn==="round"?St:0,",").concat(St,` L `).concat(nn==="round"?Et:100,",").concat(St),Pn="0 0 100 ".concat(On),Tn=0;return b.createElement("svg",(0,$e.Z)({className:Ve()("".concat(Pt,"-line"),_t),viewBox:Pn,preserveAspectRatio:"none",style:_n},er),b.createElement("path",{className:"".concat(Pt,"-line-trail"),d:sn,strokeLinecap:nn,stroke:nr,strokeWidth:ir||On,fillOpacity:"0"}),kn.map(function(Jt,wn){var gn=1;switch(nn){case"round":gn=1-On/100;break;case"square":gn=1-On/2/100;break;default:gn=1;break}var Nn={strokeDasharray:"".concat(Jt*gn,"px, 100px"),strokeDashoffset:"-".concat(Tn,"px"),transition:Zn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},An=cn[wn]||cn[cn.length-1];return Tn+=Jt,b.createElement("path",{key:wn,className:"".concat(Pt,"-line-path"),d:sn,strokeLinecap:nn,stroke:An,strokeWidth:On,fillOpacity:"0",ref:function(Qt){bn[wn]=Qt},style:Nn})}))},ft=Re,kt=ee(43749),en=ee(72190),Qe=ee(47273),Ae=0,tt=(0,Qe.Z)();function nt(){var Je;return tt?(Je=Ae,Ae+=1):Je="TEST_OR_SSR",Je}var zt=function(Je){var Tt=b.useState(),an=(0,en.Z)(Tt,2),_t=an[0],je=an[1];return b.useEffect(function(){je("rc_progress_".concat(nt()))},[]),Je||_t},Ot=function(Tt){var an=Tt.bg,_t=Tt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:an}},_t)};function ht(Je,Tt){return Object.keys(Je).map(function(an){var _t=parseFloat(an),je="".concat(Math.floor(_t*Tt),"%");return"".concat(Je[an]," ").concat(je)})}var Ct=b.forwardRef(function(Je,Tt){var an=Je.prefixCls,_t=Je.color,je=Je.gradientId,Pt=Je.radius,Kt=Je.style,nn=Je.ptg,On=Je.strokeLinecap,_n=Je.strokeWidth,nr=Je.size,ir=Je.gapDegree,Zn=_t&&(0,kt.Z)(_t)==="object",er=Zn?"#FFF":void 0,kn=nr/2,cn=b.createElement("circle",{className:"".concat(an,"-circle-path"),r:Pt,cx:kn,cy:kn,stroke:er,strokeLinecap:On,strokeWidth:_n,opacity:nn===0?0:1,style:Kt,ref:Tt});if(!Zn)return cn;var bn="".concat(je,"-conic"),St=ir?"".concat(180+ir/2,"deg"):"0deg",Et=ht(_t,(360-ir)/360),sn=ht(_t,1),Pn="conic-gradient(from ".concat(St,", ").concat(Et.join(", "),")"),Tn="linear-gradient(to ".concat(ir?"bottom":"top",", ").concat(sn.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:bn},cn),b.createElement("foreignObject",{x:0,y:0,width:nr,height:nr,mask:"url(#".concat(bn,")")},b.createElement(Ot,{bg:Tn},b.createElement(Ot,{bg:Pn}))))}),De=Ct,ke=100,xe=function(Tt,an,_t,je,Pt,Kt,nn,On,_n,nr){var ir=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Zn=_t/100*360*((360-Kt)/360),er=Kt===0?0:{bottom:0,top:180,left:90,right:-90}[nn],kn=(100-je)/100*an;_n==="round"&&je!==100&&(kn+=nr/2,kn>=an&&(kn=an-.01));var cn=ke/2;return{stroke:typeof On=="string"?On:void 0,strokeDasharray:"".concat(an,"px ").concat(Tt),strokeDashoffset:kn+ir,transform:"rotate(".concat(Pt+Zn+er,"deg)"),transformOrigin:"".concat(cn,"px ").concat(cn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function It(Je){var Tt=Je!=null?Je:[];return Array.isArray(Tt)?Tt:[Tt]}var _e=function(Tt){var an=(0,Ee.Z)((0,Ee.Z)({},ot),Tt),_t=an.id,je=an.prefixCls,Pt=an.steps,Kt=an.strokeWidth,nn=an.trailWidth,On=an.gapDegree,_n=On===void 0?0:On,nr=an.gapPosition,ir=an.trailColor,Zn=an.strokeLinecap,er=an.style,kn=an.className,cn=an.strokeColor,bn=an.percent,St=(0,Rt.Z)(an,se),Et=ke/2,sn=zt(_t),Pn="".concat(sn,"-gradient"),Tn=Et-Kt/2,Jt=Math.PI*2*Tn,wn=_n>0?90+_n/2:-90,gn=Jt*((360-_n)/360),Nn=(0,kt.Z)(Pt)==="object"?Pt:{count:Pt,gap:2},An=Nn.count,rr=Nn.gap,Qt=It(bn),Yt=It(cn),xn=Yt.find(function(Ke){return Ke&&(0,kt.Z)(Ke)==="object"}),Vn=xn&&(0,kt.Z)(xn)==="object",jn=Vn?"butt":Zn,vt=xe(Jt,gn,0,100,wn,_n,nr,ir,jn,Kt),Dt=st(),Te=function(){var wt=0;return Qt.map(function(Ht,Hn){var Jn=Yt[Hn]||Yt[Yt.length-1],lt=xe(Jt,gn,wt,Ht,wn,_n,nr,Jn,jn,Kt);return wt+=Ht,b.createElement(De,{key:Hn,color:Jn,ptg:Ht,radius:Tn,prefixCls:je,gradientId:Pn,style:lt,strokeLinecap:jn,strokeWidth:Kt,gapDegree:_n,ref:function(pt){Dt[Hn]=pt},size:ke})}).reverse()},gt=function(){var wt=Math.round(An*(Qt[0]/100)),Ht=100/An,Hn=0;return new Array(An).fill(null).map(function(Jn,lt){var mt=lt<=wt-1?Yt[0]:ir,pt=mt&&(0,kt.Z)(mt)==="object"?"url(#".concat(Pn,")"):void 0,xt=xe(Jt,gn,Hn,Ht,wn,_n,nr,mt,"butt",Kt,rr);return Hn+=(gn-xt.strokeDashoffset+rr)*100/gn,b.createElement("circle",{key:lt,className:"".concat(je,"-circle-path"),r:Tn,cx:Et,cy:Et,stroke:pt,strokeWidth:Kt,opacity:1,style:xt,ref:function(In){Dt[lt]=In}})})};return b.createElement("svg",(0,$e.Z)({className:Ve()("".concat(je,"-circle"),kn),viewBox:"0 0 ".concat(ke," ").concat(ke),style:er,id:_t,role:"presentation"},St),!An&&b.createElement("circle",{className:"".concat(je,"-circle-trail"),r:Tn,cx:Et,cy:Et,stroke:ir,strokeLinecap:jn,strokeWidth:nn||Kt,style:vt}),An?gt():Te())},Ye=_e,Ft={Line:ft,Circle:Ye},Ce=ee(25399),he=ee(68361);function yt(Je){return!Je||Je<0?0:Je>100?100:Je}function Vt(Je){let{success:Tt,successPercent:an}=Je,_t=an;return Tt&&"progress"in Tt&&(_t=Tt.progress),Tt&&"percent"in Tt&&(_t=Tt.percent),_t}const Lt=Je=>{let{percent:Tt,success:an,successPercent:_t}=Je;const je=yt(Vt({success:an,successPercent:_t}));return[je,yt(yt(Tt)-je)]},me=Je=>{let{success:Tt={},strokeColor:an}=Je;const{strokeColor:_t}=Tt;return[_t||he.presetPrimaryColors.green,an||null]},qe=(Je,Tt,an)=>{var _t,je,Pt,Kt;let nn=-1,On=-1;if(Tt==="step"){const _n=an.steps,nr=an.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?(nn=Je==="small"?2:14,On=nr!=null?nr:8):typeof Je=="number"?[nn,On]=[Je,Je]:[nn=14,On=8]=Array.isArray(Je)?Je:[Je.width,Je.height],nn*=_n}else if(Tt==="line"){const _n=an==null?void 0:an.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?On=_n||(Je==="small"?6:8):typeof Je=="number"?[nn,On]=[Je,Je]:[nn=-1,On=8]=Array.isArray(Je)?Je:[Je.width,Je.height]}else(Tt==="circle"||Tt==="dashboard")&&(typeof Je=="string"||typeof Je=="undefined"?[nn,On]=Je==="small"?[60,60]:[120,120]:typeof Je=="number"?[nn,On]=[Je,Je]:Array.isArray(Je)&&(nn=(je=(_t=Je[0])!==null&&_t!==void 0?_t:Je[1])!==null&&je!==void 0?je:120,On=(Kt=(Pt=Je[0])!==null&&Pt!==void 0?Pt:Je[1])!==null&&Kt!==void 0?Kt:120));return[nn,On]},it=3,Xt=Je=>it/Je*100;var Gt=Je=>{const{prefixCls:Tt,trailColor:an=null,strokeLinecap:_t="round",gapPosition:je,gapDegree:Pt,width:Kt=120,type:nn,children:On,success:_n,size:nr=Kt,steps:ir}=Je,[Zn,er]=qe(nr,"circle");let{strokeWidth:kn}=Je;kn===void 0&&(kn=Math.max(Xt(Zn),6));const cn={width:Zn,height:er,fontSize:Zn*.15+6},bn=b.useMemo(()=>{if(Pt||Pt===0)return Pt;if(nn==="dashboard")return 75},[Pt,nn]),St=Lt(Je),Et=je||nn==="dashboard"&&"bottom"||void 0,sn=Object.prototype.toString.call(Je.strokeColor)==="[object Object]",Pn=me({success:_n,strokeColor:Je.strokeColor}),Tn=Ve()(`${Tt}-inner`,{[`${Tt}-circle-gradient`]:sn}),Jt=b.createElement(Ye,{steps:ir,percent:ir?St[1]:St,strokeWidth:kn,trailWidth:kn,strokeColor:ir?Pn[1]:Pn,strokeLinecap:_t,trailColor:an,prefixCls:Tt,gapDegree:bn,gapPosition:Et}),wn=Zn<=20,gn=b.createElement("div",{className:Tn,style:cn},Jt,!wn&&On);return wn?b.createElement(Ce.Z,{title:On},gn):gn},Fe=ee(36237),dn=ee(63356),$t=ee(16931),ae=ee(51636);const ne="--progress-line-stroke-color",te="--progress-percent",ie=Je=>{const Tt=Je?"100%":"-100%";return new Fe.Keyframes(`antProgress${Je?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Tt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Tt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},de=Je=>{const{componentCls:Tt,iconCls:an}=Je;return{[Tt]:Object.assign(Object.assign({},(0,dn.Wf)(Je)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Je.fontSize},[`${Tt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Tt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Je.remainingColor,borderRadius:Je.lineBorderRadius},[`${Tt}-inner:not(${Tt}-circle-gradient)`]:{[`${Tt}-circle-path`]:{stroke:Je.defaultColor}},[`${Tt}-success-bg, ${Tt}-bg`]:{position:"relative",background:Je.defaultColor,borderRadius:Je.lineBorderRadius,transition:`all ${Je.motionDurationSlow} ${Je.motionEaseInOutCirc}`},[`${Tt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Tt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Je.marginXXS}},[`${Tt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${Tt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Tt}-text-inner`]:{color:Je.colorWhite,[`&${Tt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Tt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Je.colorSuccess},[`${Tt}-text`]:{display:"inline-block",marginInlineStart:Je.marginXS,color:Je.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[an]:{fontSize:Je.fontSize},[`&${Tt}-text-outer`]:{width:"max-content"},[`&${Tt}-text-outer${Tt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Je.marginXS}},[`${Tt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Fe.unit)(Je.paddingXXS)}`,[`&${Tt}-text-start`]:{justifyContent:"start"},[`&${Tt}-text-end`]:{justifyContent:"end"}},[`&${Tt}-status-active`]:{[`${Tt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Je.colorBgContainer,borderRadius:Je.lineBorderRadius,opacity:0,animationName:ie(),animationDuration:Je.progressActiveMotionDuration,animationTimingFunction:Je.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Tt}-rtl${Tt}-status-active`]:{[`${Tt}-bg::before`]:{animationName:ie(!0)}},[`&${Tt}-status-exception`]:{[`${Tt}-bg`]:{backgroundColor:Je.colorError},[`${Tt}-text`]:{color:Je.colorError}},[`&${Tt}-status-exception ${Tt}-inner:not(${Tt}-circle-gradient)`]:{[`${Tt}-circle-path`]:{stroke:Je.colorError}},[`&${Tt}-status-success`]:{[`${Tt}-bg`]:{backgroundColor:Je.colorSuccess},[`${Tt}-text`]:{color:Je.colorSuccess}},[`&${Tt}-status-success ${Tt}-inner:not(${Tt}-circle-gradient)`]:{[`${Tt}-circle-path`]:{stroke:Je.colorSuccess}}})}},re=Je=>{const{componentCls:Tt,iconCls:an}=Je;return{[Tt]:{[`${Tt}-circle-trail`]:{stroke:Je.remainingColor},[`&${Tt}-circle ${Tt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Tt}-circle ${Tt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Je.circleTextColor,fontSize:Je.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[an]:{fontSize:Je.circleIconFontSize}},[`${Tt}-circle&-status-exception`]:{[`${Tt}-text`]:{color:Je.colorError}},[`${Tt}-circle&-status-success`]:{[`${Tt}-text`]:{color:Je.colorSuccess}}},[`${Tt}-inline-circle`]:{lineHeight:1,[`${Tt}-inner`]:{verticalAlign:"bottom"}}}},le=Je=>{const{componentCls:Tt}=Je;return{[Tt]:{[`${Tt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Je.progressStepMinWidth,marginInlineEnd:Je.progressStepMarginInlineEnd,backgroundColor:Je.remainingColor,transition:`all ${Je.motionDurationSlow}`,"&-active":{backgroundColor:Je.defaultColor}}}}}},Se=Je=>{const{componentCls:Tt,iconCls:an}=Je;return{[Tt]:{[`${Tt}-small&-line, ${Tt}-small&-line ${Tt}-text ${an}`]:{fontSize:Je.fontSizeSM}}}},Ge=Je=>({circleTextColor:Je.colorText,defaultColor:Je.colorInfo,remainingColor:Je.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Je.fontSize/Je.fontSizeSM}em`});var He=(0,$t.I$)("Progress",Je=>{const Tt=Je.calc(Je.marginXXS).div(2).equal(),an=(0,ae.mergeToken)(Je,{progressStepMarginInlineEnd:Tt,progressStepMinWidth:Tt,progressActiveMotionDuration:"2.4s"});return[de(an),re(an),le(an),Se(an)]},Ge),Le=function(Je,Tt){var an={};for(var _t in Je)Object.prototype.hasOwnProperty.call(Je,_t)&&Tt.indexOf(_t)<0&&(an[_t]=Je[_t]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_t=Object.getOwnPropertySymbols(Je);je<_t.length;je++)Tt.indexOf(_t[je])<0&&Object.prototype.propertyIsEnumerable.call(Je,_t[je])&&(an[_t[je]]=Je[_t[je]]);return an};const rt=Je=>{let Tt=[];return Object.keys(Je).forEach(an=>{const _t=parseFloat(an.replace(/%/g,""));Number.isNaN(_t)||Tt.push({key:_t,value:Je[an]})}),Tt=Tt.sort((an,_t)=>an.key-_t.key),Tt.map(an=>{let{key:_t,value:je}=an;return`${je} ${_t}%`}).join(", ")},ut=(Je,Tt)=>{const{from:an=he.presetPrimaryColors.blue,to:_t=he.presetPrimaryColors.blue,direction:je=Tt==="rtl"?"to left":"to right"}=Je,Pt=Le(Je,["from","to","direction"]);if(Object.keys(Pt).length!==0){const nn=rt(Pt),On=`linear-gradient(${je}, ${nn})`;return{background:On,[ne]:On}}const Kt=`linear-gradient(${je}, ${an}, ${_t})`;return{background:Kt,[ne]:Kt}};var Ne=Je=>{const{prefixCls:Tt,direction:an,percent:_t,size:je,strokeWidth:Pt,strokeColor:Kt,strokeLinecap:nn="round",children:On,trailColor:_n=null,percentPosition:nr,success:ir}=Je,{align:Zn,type:er}=nr,kn=Kt&&typeof Kt!="string"?ut(Kt,an):{[ne]:Kt,background:Kt},cn=nn==="square"||nn==="butt"?0:void 0,bn=je!=null?je:[-1,Pt||(je==="small"?6:8)],[St,Et]=qe(bn,"line",{strokeWidth:Pt}),sn={backgroundColor:_n||void 0,borderRadius:cn},Pn=Object.assign(Object.assign({width:`${yt(_t)}%`,height:Et,borderRadius:cn},kn),{[te]:yt(_t)/100}),Tn=Vt(Je),Jt={width:`${yt(Tn)}%`,height:Et,borderRadius:cn,backgroundColor:ir==null?void 0:ir.strokeColor},wn={width:St<0?"100%":St},gn=b.createElement("div",{className:`${Tt}-inner`,style:sn},b.createElement("div",{className:Ve()(`${Tt}-bg`,`${Tt}-bg-${er}`),style:Pn},er==="inner"&&On),Tn!==void 0&&b.createElement("div",{className:`${Tt}-success-bg`,style:Jt})),Nn=er==="outer"&&Zn==="start",An=er==="outer"&&Zn==="end";return er==="outer"&&Zn==="center"?b.createElement("div",{className:`${Tt}-layout-bottom`},gn,On):b.createElement("div",{className:`${Tt}-outer`,style:wn},Nn&&On,gn,An&&On)},Ut=Je=>{const{size:Tt,steps:an,rounding:_t=Math.round,percent:je=0,strokeWidth:Pt=8,strokeColor:Kt,trailColor:nn=null,prefixCls:On,children:_n}=Je,nr=_t(an*(je/100)),ir=Tt==="small"?2:14,Zn=Tt!=null?Tt:[ir,Pt],[er,kn]=qe(Zn,"step",{steps:an,strokeWidth:Pt}),cn=er/an,bn=Array.from({length:an});for(let St=0;St{const{prefixCls:an,className:_t,rootClassName:je,steps:Pt,strokeColor:Kt,percent:nn=0,size:On="default",showInfo:_n=!0,type:nr="line",status:ir,format:Zn,style:er,percentPosition:kn={}}=Je,cn=Zt(Je,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:St="outer"}=kn,Et=Array.isArray(Kt)?Kt[0]:Kt,sn=typeof Kt=="string"||Array.isArray(Kt)?Kt:void 0,Pn=b.useMemo(()=>{if(Et){const Te=typeof Et=="string"?Et:Object.values(Et)[0];return new Me.FastColor(Te).isLight()}return!1},[Kt]),Tn=b.useMemo(()=>{var Te,gt;const Ke=Vt(Je);return parseInt(Ke!==void 0?(Te=Ke!=null?Ke:0)===null||Te===void 0?void 0:Te.toString():(gt=nn!=null?nn:0)===null||gt===void 0?void 0:gt.toString(),10)},[nn,Je.success,Je.successPercent]),Jt=b.useMemo(()=>!vn.includes(ir)&&Tn>=100?"success":ir||"normal",[ir,Tn]),{getPrefixCls:wn,direction:gn,progress:Nn}=b.useContext(ue.E_),An=wn("progress",an),[rr,Qt,Yt]=He(An),xn=nr==="line",Vn=xn&&!Pt,jn=b.useMemo(()=>{if(!_n)return null;const Te=Vt(Je);let gt;const Ke=Zn||(Ht=>`${Ht}%`),wt=xn&&Pn&&St==="inner";return St==="inner"||Zn||Jt!=="exception"&&Jt!=="success"?gt=Ke(yt(nn),yt(Te)):Jt==="exception"?gt=xn?b.createElement(Pe.Z,null):b.createElement(pe.Z,null):Jt==="success"&&(gt=xn?b.createElement(ce.Z,null):b.createElement(et.Z,null)),b.createElement("span",{className:Ve()(`${An}-text`,{[`${An}-text-bright`]:wt,[`${An}-text-${bn}`]:Vn,[`${An}-text-${St}`]:Vn}),title:typeof gt=="string"?gt:void 0},gt)},[_n,nn,Tn,Jt,nr,An,Zn]);let vt;nr==="line"?vt=Pt?b.createElement(Ut,Object.assign({},Je,{strokeColor:sn,prefixCls:An,steps:typeof Pt=="object"?Pt.count:Pt}),jn):b.createElement(Ne,Object.assign({},Je,{strokeColor:Et,prefixCls:An,direction:gn,percentPosition:{align:bn,type:St}}),jn):(nr==="circle"||nr==="dashboard")&&(vt=b.createElement(Gt,Object.assign({},Je,{strokeColor:Et,prefixCls:An,progressStatus:Jt}),jn));const Dt=Ve()(An,`${An}-status-${Jt}`,{[`${An}-${nr==="dashboard"&&"circle"||nr}`]:nr!=="line",[`${An}-inline-circle`]:nr==="circle"&&qe(On,"circle")[0]<=20,[`${An}-line`]:Vn,[`${An}-line-align-${bn}`]:Vn,[`${An}-line-position-${St}`]:Vn,[`${An}-steps`]:Pt,[`${An}-show-info`]:_n,[`${An}-${On}`]:typeof On=="string",[`${An}-rtl`]:gn==="rtl"},Nn==null?void 0:Nn.className,_t,je,Qt,Yt);return rr(b.createElement("div",Object.assign({ref:Tt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),er),className:Dt,role:"progressbar","aria-valuenow":Tn,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(cn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),vt))}),on=Cn},63139:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Lt}});var b=ee(59301),Me=ee(60499),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},et=ce,Pe=ee(7657),pe=function(qe,it){return b.createElement(Pe.Z,(0,Me.Z)({},qe,{ref:it,icon:et}))},be=b.forwardRef(pe),Ve=be,Ie=ee(92310),ue=ee.n(Ie),$e=ee(18642),Ee=ee(72190),Rt=ee(42244),ot=ee(18929),st=ee(10228),Ue=ee(26112);function Re(me,qe){var it=me.disabled,Xt=me.prefixCls,Xe=me.character,Gt=me.characterRender,Fe=me.index,dn=me.count,$t=me.value,ae=me.allowHalf,ne=me.focused,te=me.onHover,ie=me.onClick,de=function(ut){te(ut,Fe)},re=function(ut){ie(ut,Fe)},le=function(ut){ut.keyCode===st.Z.ENTER&&ie(ut,Fe)},Se=Fe+1,Ge=new Set([Xt]);$t===0&&Fe===0&&ne?Ge.add("".concat(Xt,"-focused")):ae&&$t+.5>=Se&&$tFe?"true":"false","aria-posinset":Fe+1,"aria-setsize":dn,tabIndex:it?-1:0},b.createElement("div",{className:"".concat(Xt,"-first")},He),b.createElement("div",{className:"".concat(Xt,"-second")},He)));return Gt&&(Le=Gt(Le,me)),Le}var ft=b.forwardRef(Re);function kt(){var me=b.useRef({});function qe(Xt){return me.current[Xt]}function it(Xt){return function(Xe){me.current[Xt]=Xe}}return[qe,it]}function en(me){var qe=me.pageXOffset,it="scrollLeft";if(typeof qe!="number"){var Xt=me.document;qe=Xt.documentElement[it],typeof qe!="number"&&(qe=Xt.body[it])}return qe}function Qe(me){var qe,it,Xt=me.ownerDocument,Xe=Xt.body,Gt=Xt&&Xt.documentElement,Fe=me.getBoundingClientRect();return qe=Fe.left,it=Fe.top,qe-=Gt.clientLeft||Xe.clientLeft||0,it-=Gt.clientTop||Xe.clientTop||0,{left:qe,top:it}}function Ae(me){var qe=Qe(me),it=me.ownerDocument,Xt=it.defaultView||it.parentWindow;return qe.left+=en(Xt),qe.left}var tt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function nt(me,qe){var it=me.prefixCls,Xt=it===void 0?"rc-rate":it,Xe=me.className,Gt=me.defaultValue,Fe=me.value,dn=me.count,$t=dn===void 0?5:dn,ae=me.allowHalf,ne=ae===void 0?!1:ae,te=me.allowClear,ie=te===void 0?!0:te,de=me.keyboard,re=de===void 0?!0:de,le=me.character,Se=le===void 0?"\u2605":le,Ge=me.characterRender,He=me.disabled,Le=me.direction,rt=Le===void 0?"ltr":Le,ut=me.tabIndex,At=ut===void 0?0:ut,Ne=me.autoFocus,Be=me.onHoverChange,Ut=me.onChange,Zt=me.onFocus,mn=me.onBlur,vn=me.onKeyDown,jt=me.onMouseLeave,Cn=(0,Rt.Z)(me,tt),on=kt(),Je=(0,Ee.Z)(on,2),Tt=Je[0],an=Je[1],_t=b.useRef(null),je=function(){if(!He){var jn;(jn=_t.current)===null||jn===void 0||jn.focus()}};b.useImperativeHandle(qe,function(){return{focus:je,blur:function(){if(!He){var jn;(jn=_t.current)===null||jn===void 0||jn.blur()}}}});var Pt=(0,ot.Z)(Gt||0,{value:Fe}),Kt=(0,Ee.Z)(Pt,2),nn=Kt[0],On=Kt[1],_n=(0,ot.Z)(null),nr=(0,Ee.Z)(_n,2),ir=nr[0],Zn=nr[1],er=function(jn,vt){var Dt=rt==="rtl",Te=jn+1;if(ne){var gt=Tt(jn),Ke=Ae(gt),wt=gt.clientWidth;(Dt&&vt-Ke>wt/2||!Dt&&vt-Ke0&&!Dt||vt===st.Z.RIGHT&&nn>0&&Dt?(kn(nn-Te),jn.preventDefault()):vt===st.Z.LEFT&&nn<$t&&Dt&&(kn(nn+Te),jn.preventDefault())),vn==null||vn(jn)};b.useEffect(function(){Ne&&!He&&je()},[]);var Yt=new Array($t).fill(0).map(function(Vn,jn){return b.createElement(ft,{ref:an(jn),index:jn,count:$t,disabled:He,prefixCls:"".concat(Xt,"-star"),allowHalf:ne,value:wn===null?nn:wn,onClick:rr,onHover:Nn,key:Vn||jn,character:Se,characterRender:Ge,focused:St})}),xn=ue()(Xt,Xe,(0,$e.Z)((0,$e.Z)({},"".concat(Xt,"-disabled"),He),"".concat(Xt,"-rtl"),rt==="rtl"));return b.createElement("ul",(0,Me.Z)({className:xn,onMouseLeave:An,tabIndex:He?-1:At,onFocus:He?null:sn,onBlur:He?null:Pn,onKeyDown:He?null:Qt,ref:_t},(0,Ue.Z)(Cn,{aria:!0,data:!0,attr:!0})),Yt)}var zt=b.forwardRef(nt),Ot=zt,ht=ee(48755),Ct=ee(25399),De=ee(36237),ke=ee(63356),xe=ee(16931),se=ee(51636);const It=me=>{const{componentCls:qe}=me;return{[`${qe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:me.marginXS},"> div":{transition:`all ${me.motionDurationMid}, outline 0s`,"&:hover":{transform:me.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,De.unit)(me.lineWidth)} dashed ${me.starColor}`,transform:me.starHoverScale}},"&-first, &-second":{color:me.starBg,transition:`all ${me.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${qe}-star-first, &-half ${qe}-star-second`]:{opacity:1},[`&-half ${qe}-star-first, &-full ${qe}-star-second`]:{color:"inherit"}}}},_e=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),Ye=me=>{const{componentCls:qe}=me;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ke.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${qe} ${qe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),It(me)),_e(me))}},Ft=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var Ce=(0,xe.I$)("Rate",me=>{const qe=(0,se.mergeToken)(me,{});return[Ye(qe)]},Ft),he=ee(2171),yt=function(me,qe){var it={};for(var Xt in me)Object.prototype.hasOwnProperty.call(me,Xt)&&qe.indexOf(Xt)<0&&(it[Xt]=me[Xt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Xt=Object.getOwnPropertySymbols(me);Xe{const{prefixCls:it,className:Xt,rootClassName:Xe,style:Gt,tooltips:Fe,character:dn=b.createElement(Ve,null),disabled:$t}=me,ae=yt(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(ut,At)=>{let{index:Ne}=At;return Fe?b.createElement(Ct.Z,{title:Fe[Ne]},ut):ut},{getPrefixCls:te,direction:ie,rate:de}=b.useContext(ht.E_),re=te("rate",it),[le,Se,Ge]=Ce(re),He=Object.assign(Object.assign({},de==null?void 0:de.style),Gt),Le=b.useContext(he.Z),rt=$t!=null?$t:Le;return le(b.createElement(Ot,Object.assign({ref:qe,character:dn,characterRender:ne,disabled:rt},ae,{className:ue()(Xt,Xe,Se,Ge,de==null?void 0:de.className),style:He,prefixCls:re,direction:ie})))})},82326:function(Bn,rn,ee){"use strict";var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(37463),Pe=ee(2738),pe=ee(75030),be=ee(86641),Ve=ee(45915),Ie=ee(82855),ue=ee(48755),$e=ee(38406),Ee=ee(2171),Rt=ee(83397),ot=ee(31756),st=ee(56553),Ue=ee(24971),Re=ee(70045),ft=ee(57700),kt=ee(1722),en=ee(90376),Qe=ee(68525),Ae=ee(90005),tt=function(Ct,De){var ke={};for(var xe in Ct)Object.prototype.hasOwnProperty.call(Ct,xe)&&De.indexOf(xe)<0&&(ke[xe]=Ct[xe]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,xe=Object.getOwnPropertySymbols(Ct);se{var ke;const{prefixCls:xe,bordered:se,className:It,rootClassName:_e,getPopupContainer:Ye,popupClassName:Ft,dropdownClassName:Ce,listHeight:he=256,placement:yt,listItemHeight:Vt,size:Lt,disabled:me,notFoundContent:qe,status:it,builtinPlacements:Xt,dropdownMatchSelectWidth:Xe,popupMatchSelectWidth:Gt,direction:Fe,style:dn,allowClear:$t,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:ie,maxCount:de,prefix:re}=Ct,le=tt(Ct,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Se,getPrefixCls:Ge,renderEmpty:He,direction:Le,virtual:rt,popupMatchSelectWidth:ut,popupOverflow:At}=b.useContext(ue.E_),Ne=(0,ue.dj)("select"),[,Be]=(0,ft.ZP)(),Ut=Vt!=null?Vt:Be==null?void 0:Be.controlHeight,Zt=Ge("select",xe),mn=Ge(),vn=Fe!=null?Fe:Le,{compactSize:jt,compactItemClassnames:Cn}=(0,Re.ri)(Zt,vn),[on,Je]=(0,Ue.Z)("select",ae,se),Tt=(0,Rt.Z)(Zt),[an,_t,je]=(0,en.Z)(Zt,Tt),Pt=b.useMemo(()=>{const{mode:Qt}=Ct;if(Qt!=="combobox")return Qt===nt?"combobox":Qt},[Ct.mode]),Kt=Pt==="multiple"||Pt==="tags",nn=(0,Ae.Z)(Ct.suffixIcon,Ct.showArrow),On=(ke=Gt!=null?Gt:Xe)!==null&&ke!==void 0?ke:ut,{status:_n,hasFeedback:nr,isFormItemInput:ir,feedbackIcon:Zn}=b.useContext(st.aM),er=(0,Ie.F)(_n,it);let kn;qe!==void 0?kn=qe:Pt==="combobox"?kn=null:kn=(He==null?void 0:He("Select"))||b.createElement($e.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:bn,removeIcon:St,clearIcon:Et}=(0,Qe.Z)(Object.assign(Object.assign({},le),{multiple:Kt,hasFeedback:nr,feedbackIcon:Zn,showSuffixIcon:nn,prefixCls:Zt,componentName:"Select"})),sn=$t===!0?{clearIcon:Et}:$t,Pn=(0,Pe.Z)(le,["suffixIcon","itemIcon"]),Tn=ce()(Ft||Ce,{[`${Zt}-dropdown-${vn}`]:vn==="rtl"},_e,je,Tt,_t),Jt=(0,ot.Z)(Qt=>{var Yt;return(Yt=Lt!=null?Lt:jt)!==null&&Yt!==void 0?Yt:Qt}),wn=b.useContext(Ee.Z),gn=me!=null?me:wn,Nn=ce()({[`${Zt}-lg`]:Jt==="large",[`${Zt}-sm`]:Jt==="small",[`${Zt}-rtl`]:vn==="rtl",[`${Zt}-${on}`]:Je,[`${Zt}-in-form-item`]:ir},(0,Ie.Z)(Zt,er,nr),Cn,Ne.className,It,_e,je,Tt,_t),An=b.useMemo(()=>yt!==void 0?yt:vn==="rtl"?"bottomRight":"bottomLeft",[yt,vn]),[rr]=(0,pe.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return an(b.createElement(et.ZP,Object.assign({ref:De,virtual:rt,showSearch:Ne.showSearch},Pn,{style:Object.assign(Object.assign({},Ne.style),dn),dropdownMatchSelectWidth:On,transitionName:(0,be.m)(mn,"slide-up",te),builtinPlacements:(0,kt.Z)(Xt,At),listHeight:he,listItemHeight:Ut,mode:Pt,prefixCls:Zt,placement:An,direction:vn,prefix:re,suffixIcon:cn,menuItemSelectedIcon:bn,removeIcon:St,allowClear:sn,notFoundContent:kn,className:Nn,getPopupContainer:Ye||Se,dropdownClassName:Tn,disabled:gn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:rr}),maxCount:Kt?de:void 0,tagRender:Kt?ie:void 0})))},Ot=b.forwardRef(zt),ht=(0,Ve.Z)(Ot,"dropdownAlign");Ot.SECRET_COMBOBOX_MODE_DO_NOT_USE=nt,Ot.Option=et.Wx,Ot.OptGroup=et.Xo,Ot._InternalPanelDoNotUseOrYouWillBeFired=ht,rn.default=Ot},1722:function(Bn,rn){"use strict";const ee=Me=>{const et={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Me==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},et),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},et),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},et),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},et),{points:["br","tr"],offset:[0,-4]})}};function b(Me,ce){return Me||ee(ce)}rn.Z=b},90376:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return xe}});var b=ee(63356),Me=ee(56119),ce=ee(16931),et=ee(51636),Pe=ee(46e3),pe=ee(93873);const be=se=>{const{optionHeight:It,optionFontSize:_e,optionLineHeight:Ye,optionPadding:Ft}=se;return{position:"relative",display:"block",minHeight:It,padding:Ft,color:se.colorText,fontWeight:"normal",fontSize:_e,lineHeight:Ye,boxSizing:"border-box"}};var Ie=se=>{const{antCls:It,componentCls:_e}=se,Ye=`${_e}-item`,Ft=`&${It}-slide-up-enter${It}-slide-up-enter-active`,Ce=`&${It}-slide-up-appear${It}-slide-up-appear-active`,he=`&${It}-slide-up-leave${It}-slide-up-leave-active`,yt=`${_e}-dropdown-placement-`,Vt=`${Ye}-option-selected`;return[{[`${_e}-dropdown`]:Object.assign(Object.assign({},(0,b.Wf)(se)),{position:"absolute",top:-9999,zIndex:se.zIndexPopup,boxSizing:"border-box",padding:se.paddingXXS,overflow:"hidden",fontSize:se.fontSize,fontVariant:"initial",backgroundColor:se.colorBgElevated,borderRadius:se.borderRadiusLG,outline:"none",boxShadow:se.boxShadowSecondary,[` ${Ft}${yt}bottomLeft, ${Ce}${yt}bottomLeft `]:{animationName:Pe.fJ},[` ${Ft}${yt}topLeft, ${Ce}${yt}topLeft, ${Ft}${yt}topRight, ${Ce}${yt}topRight `]:{animationName:Pe.Qt},[`${he}${yt}bottomLeft`]:{animationName:Pe.Uw},[` ${he}${yt}topLeft, ${he}${yt}topRight `]:{animationName:Pe.ly},"&-hidden":{display:"none"},[Ye]:Object.assign(Object.assign({},be(se)),{cursor:"pointer",transition:`background ${se.motionDurationSlow} ease`,borderRadius:se.borderRadiusSM,"&-group":{color:se.colorTextDescription,fontSize:se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},b.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ye}-option-disabled)`]:{backgroundColor:se.optionActiveBg},[`&-selected:not(${Ye}-option-disabled)`]:{color:se.optionSelectedColor,fontWeight:se.optionSelectedFontWeight,backgroundColor:se.optionSelectedBg,[`${Ye}-option-state`]:{color:se.colorPrimary}},"&-disabled":{[`&${Ye}-option-selected`]:{backgroundColor:se.colorBgContainerDisabled},color:se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:se.calc(se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},be(se)),{color:se.colorTextDisabled})}),[`${Vt}:has(+ ${Vt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Vt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Pe.oN)(se,"slide-up"),(0,Pe.oN)(se,"slide-down"),(0,pe.Fm)(se,"move-up"),(0,pe.Fm)(se,"move-down")]},ue=ee(26743),$e=ee(36237);function Ee(se,It){const{componentCls:_e,inputPaddingHorizontalBase:Ye,borderRadius:Ft}=se,Ce=se.calc(se.controlHeight).sub(se.calc(se.lineWidth).mul(2)).equal(),he=It?`${_e}-${It}`:"";return{[`${_e}-single${he}`]:{fontSize:se.fontSize,height:se.controlHeight,[`${_e}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(se,!0)),{display:"flex",borderRadius:Ft,flex:"1 1 auto",[`${_e}-selection-wrap:after`]:{lineHeight:(0,$e.unit)(Ce)},[`${_e}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${_e}-selection-item, ${_e}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,$e.unit)(Ce),transition:`all ${se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${_e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${_e}-selection-item:empty:after`,`${_e}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${_e}-show-arrow ${_e}-selection-item, &${_e}-show-arrow ${_e}-selection-search, &${_e}-show-arrow ${_e}-selection-placeholder `]:{paddingInlineEnd:se.showArrowPaddingInlineEnd},[`&${_e}-open ${_e}-selection-item`]:{color:se.colorTextPlaceholder},[`&:not(${_e}-customize-input)`]:{[`${_e}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,$e.unit)(Ye)}`,[`${_e}-selection-search-input`]:{height:Ce,fontSize:se.fontSize},"&:after":{lineHeight:(0,$e.unit)(Ce)}}},[`&${_e}-customize-input`]:{[`${_e}-selector`]:{"&:after":{display:"none"},[`${_e}-selection-search`]:{position:"static",width:"100%"},[`${_e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,$e.unit)(Ye)}`,"&:after":{display:"none"}}}}}}}function Rt(se){const{componentCls:It}=se,_e=se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal();return[Ee(se),Ee((0,et.mergeToken)(se,{controlHeight:se.controlHeightSM,borderRadius:se.borderRadiusSM}),"sm"),{[`${It}-single${It}-sm`]:{[`&:not(${It}-customize-input)`]:{[`${It}-selector`]:{padding:`0 ${(0,$e.unit)(_e)}`},[`&${It}-show-arrow ${It}-selection-search`]:{insetInlineEnd:se.calc(_e).add(se.calc(se.fontSize).mul(1.5)).equal()},[` &${It}-show-arrow ${It}-selection-item, &${It}-show-arrow ${It}-selection-placeholder `]:{paddingInlineEnd:se.calc(se.fontSize).mul(1.5).equal()}}}},Ee((0,et.mergeToken)(se,{controlHeight:se.singleItemHeightLG,fontSize:se.fontSizeLG,borderRadius:se.borderRadiusLG}),"lg")]}const ot=se=>{const{fontSize:It,lineHeight:_e,lineWidth:Ye,controlHeight:Ft,controlHeightSM:Ce,controlHeightLG:he,paddingXXS:yt,controlPaddingHorizontal:Vt,zIndexPopupBase:Lt,colorText:me,fontWeightStrong:qe,controlItemBgActive:it,controlItemBgHover:Xt,colorBgContainer:Xe,colorFillSecondary:Gt,colorBgContainerDisabled:Fe,colorTextDisabled:dn,colorPrimaryHover:$t,colorPrimary:ae,controlOutline:ne}=se,te=yt*2,ie=Ye*2,de=Math.min(Ft-te,Ft-ie),re=Math.min(Ce-te,Ce-ie),le=Math.min(he-te,he-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(yt/2),zIndexPopup:Lt+50,optionSelectedColor:me,optionSelectedFontWeight:qe,optionSelectedBg:it,optionActiveBg:Xt,optionPadding:`${(Ft-It*_e)/2}px ${Vt}px`,optionFontSize:It,optionLineHeight:_e,optionHeight:Ft,selectorBg:Xe,clearBg:Xe,singleItemHeightLG:he,multipleItemBg:Gt,multipleItemBorderColor:"transparent",multipleItemHeight:de,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:dn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(se.fontSize*1.25),hoverBorderColor:$t,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:yt}},st=(se,It)=>{const{componentCls:_e,antCls:Ye,controlOutlineWidth:Ft}=se;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} ${It.borderColor}`,background:se.selectorBg},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{borderColor:It.hoverBorderHover},[`${_e}-focused& ${_e}-selector`]:{borderColor:It.activeBorderColor,boxShadow:`0 0 0 ${(0,$e.unit)(Ft)} ${It.activeOutlineColor}`,outline:0},[`${_e}-prefix`]:{color:It.color}}}},Ue=(se,It)=>({[`&${se.componentCls}-status-${It.status}`]:Object.assign({},st(se,It))}),Re=se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},st(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Ue(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Ue(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})}),ft=(se,It)=>{const{componentCls:_e,antCls:Ye}=se;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{background:It.bg,border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} transparent`,color:It.color},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{background:It.hoverBg},[`${_e}-focused& ${_e}-selector`]:{background:se.selectorBg,borderColor:It.activeBorderColor,outline:0}}}},kt=(se,It)=>({[`&${se.componentCls}-status-${It.status}`]:Object.assign({},ft(se,It))}),en=se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ft(se,{bg:se.colorFillTertiary,hoverBg:se.colorFillSecondary,activeBorderColor:se.activeBorderColor,color:se.colorText})),kt(se,{status:"error",bg:se.colorErrorBg,hoverBg:se.colorErrorBgHover,activeBorderColor:se.colorError,color:se.colorError})),kt(se,{status:"warning",bg:se.colorWarningBg,hoverBg:se.colorWarningBgHover,activeBorderColor:se.colorWarning,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{borderColor:se.colorBorder,background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.colorBgContainer,border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} ${se.colorSplit}`}})}),Qe=se=>({"&-borderless":{[`${se.componentCls}-selector`]:{background:"transparent",border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} transparent`},[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`},[`&${se.componentCls}-status-error`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorError}},[`&${se.componentCls}-status-warning`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorWarning}}}}),Ae=(se,It)=>{const{componentCls:_e,antCls:Ye}=se;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{borderWidth:`0 0 ${(0,$e.unit)(se.lineWidth)} 0`,borderStyle:`none none ${se.lineType} none`,borderColor:It.borderColor,background:se.selectorBg,borderRadius:0},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{borderColor:It.hoverBorderHover},[`${_e}-focused& ${_e}-selector`]:{borderColor:It.activeBorderColor,outline:0},[`${_e}-prefix`]:{color:It.color}}}},tt=(se,It)=>({[`&${se.componentCls}-status-${It.status}`]:Object.assign({},Ae(se,It))}),nt=se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ae(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),tt(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),tt(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,$e.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})});var Ot=se=>({[se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Re(se)),en(se)),Qe(se)),nt(se))});const ht=se=>{const{componentCls:It}=se;return{position:"relative",transition:`all ${se.motionDurationMid} ${se.motionEaseInOut}`,input:{cursor:"pointer"},[`${It}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${It}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ct=se=>{const{componentCls:It}=se;return{[`${It}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},De=se=>{const{antCls:It,componentCls:_e,inputPaddingHorizontalBase:Ye,iconCls:Ft}=se;return{[_e]:Object.assign(Object.assign({},(0,b.Wf)(se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${_e}-customize-input) ${_e}-selector`]:Object.assign(Object.assign({},ht(se)),Ct(se)),[`${_e}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${It}-typography`]:{display:"inline"}}),[`${_e}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:se.colorTextPlaceholder,pointerEvents:"none"}),[`${_e}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${se.motionDurationSlow} ease`,[Ft]:{verticalAlign:"top",transition:`transform ${se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${_e}-suffix)`]:{pointerEvents:"auto"}},[`${_e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${_e}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${_e}-prefix`]:{flex:"none",marginInlineEnd:se.selectAffixPadding},[`${_e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,zIndex:1,display:"inline-block",width:se.fontSizeIcon,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${se.motionDurationMid} ease, opacity ${se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:se.colorTextTertiary}},[`&:hover ${_e}-clear`]:{opacity:1,background:se.colorBgBase,borderRadius:"50%"}}),[`${_e}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${_e}-has-feedback`]:{[`${_e}-clear`]:{insetInlineEnd:se.calc(Ye).add(se.fontSize).add(se.paddingXS).equal()}}}}}},ke=se=>{const{componentCls:It}=se;return[{[It]:{[`&${It}-in-form-item`]:{width:"100%"}}},De(se),Rt(se),(0,ue.ZP)(se),Ie(se),{[`${It}-rtl`]:{direction:"rtl"}},(0,Me.c)(se,{borderElCls:`${It}-selector`,focusElCls:`${It}-focused`})]};var xe=(0,ce.I$)("Select",(se,It)=>{let{rootPrefixCls:_e}=It;const Ye=(0,et.mergeToken)(se,{rootPrefixCls:_e,inputPaddingHorizontalBase:se.calc(se.paddingSM).sub(1).equal(),multipleSelectItemHeight:se.multipleItemHeight,selectHeight:se.controlHeight});return[ke(Ye),Ot(Ye)]},ot,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Bn,rn,ee){"use strict";ee.d(rn,{_z:function(){return pe},gp:function(){return et}});var b=ee(36237),Me=ee(63356),ce=ee(51636);const et=ue=>{const{multipleSelectItemHeight:$e,paddingXXS:Ee,lineWidth:Rt,INTERNAL_FIXED_ITEM_MARGIN:ot}=ue,st=ue.max(ue.calc(Ee).sub(Rt).equal(),0),Ue=ue.max(ue.calc(st).sub(ot).equal(),0);return{basePadding:st,containerPadding:Ue,itemHeight:(0,b.unit)($e),itemLineHeight:(0,b.unit)(ue.calc($e).sub(ue.calc(ue.lineWidth).mul(2)).equal())}},Pe=ue=>{const{multipleSelectItemHeight:$e,selectHeight:Ee,lineWidth:Rt}=ue;return ue.calc(Ee).sub($e).div(2).sub(Rt).equal()},pe=ue=>{const{componentCls:$e,iconCls:Ee,borderRadiusSM:Rt,motionDurationSlow:ot,paddingXS:st,multipleItemColorDisabled:Ue,multipleItemBorderColorDisabled:Re,colorIcon:ft,colorIconHover:kt,INTERNAL_FIXED_ITEM_MARGIN:en}=ue;return{[`${$e}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${$e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:en,borderRadius:Rt,cursor:"default",transition:`font-size ${ot}, line-height ${ot}, height ${ot}`,marginInlineEnd:ue.calc(en).mul(2).equal(),paddingInlineStart:st,paddingInlineEnd:ue.calc(st).div(2).equal(),[`${$e}-disabled&`]:{color:Ue,borderColor:Re,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ue.calc(st).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Me.Ro)()),{display:"inline-flex",alignItems:"center",color:ft,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:kt}})}}}},be=(ue,$e)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:Rt}=ue,ot=`${Ee}-selection-overflow`,st=ue.multipleSelectItemHeight,Ue=Pe(ue),Re=$e?`${Ee}-${$e}`:"",ft=et(ue);return{[`${Ee}-multiple${Re}`]:Object.assign(Object.assign({},pe(ue)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ft.basePadding,paddingBlock:ft.containerPadding,borderRadius:ue.borderRadius,[`${Ee}-disabled&`]:{background:ue.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(Rt)} 0`,lineHeight:(0,b.unit)(st),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:ft.itemHeight,lineHeight:(0,b.unit)(ft.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)(st),marginBlock:Rt}},[`${Ee}-prefix`]:{marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(ft.basePadding).equal()},[`${ot}-item + ${ot}-item, ${Ee}-prefix + ${Ee}-selection-wrap `]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${ot}-item-suffix`]:{minHeight:ft.itemHeight,marginBlock:Rt},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Ue).equal(),"\n &-input,\n &-mirror\n ":{height:st,fontFamily:ue.fontFamily,lineHeight:(0,b.unit)(st),transition:`all ${ue.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(ft.basePadding).equal(),insetInlineEnd:ue.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ue.motionDurationSlow}`}})}};function Ve(ue,$e){const{componentCls:Ee}=ue,Rt=$e?`${Ee}-${$e}`:"",ot={[`${Ee}-multiple${Rt}`]:{fontSize:ue.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[` &${Ee}-show-arrow ${Ee}-selector, &${Ee}-allow-clear ${Ee}-selector `]:{paddingInlineEnd:ue.calc(ue.fontSizeIcon).add(ue.controlPaddingHorizontal).equal()}}};return[be(ue,$e),ot]}const Ie=ue=>{const{componentCls:$e}=ue,Ee=(0,ce.mergeToken)(ue,{selectHeight:ue.controlHeightSM,multipleSelectItemHeight:ue.multipleItemHeightSM,borderRadius:ue.borderRadiusSM,borderRadiusSM:ue.borderRadiusXS}),Rt=(0,ce.mergeToken)(ue,{fontSize:ue.fontSizeLG,selectHeight:ue.controlHeightLG,multipleSelectItemHeight:ue.multipleItemHeightLG,borderRadius:ue.borderRadiusLG,borderRadiusSM:ue.borderRadius});return[Ve(ue),Ve(Ee,"sm"),{[`${$e}-multiple${$e}-sm`]:{[`${$e}-selection-placeholder`]:{insetInline:ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal()},[`${$e}-selection-search`]:{marginInlineStart:2}}},Ve(Rt,"lg")]};rn.ZP=Ie},68525:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});var b=ee(59301),Me=ee(40001),ce=ee(19248),et=ee(99267),Pe=ee(84105),pe=ee(58617),be=ee(47472);function Ve(Ie){let{suffixIcon:ue,clearIcon:$e,menuItemSelectedIcon:Ee,removeIcon:Rt,loading:ot,multiple:st,hasFeedback:Ue,prefixCls:Re,showSuffixIcon:ft,feedbackIcon:kt,showArrow:en,componentName:Qe}=Ie;const Ae=$e!=null?$e:b.createElement(ce.Z,null),tt=ht=>ue===null&&!Ue&&!en?null:b.createElement(b.Fragment,null,ft!==!1&&ht,Ue&&kt);let nt=null;if(ue!==void 0)nt=tt(ue);else if(ot)nt=tt(b.createElement(pe.Z,{spin:!0}));else{const ht=`${Re}-suffix`;nt=Ct=>{let{open:De,showSearch:ke}=Ct;return tt(De&&ke?b.createElement(be.Z,{className:ht}):b.createElement(Pe.Z,{className:ht}))}}let zt=null;Ee!==void 0?zt=Ee:st?zt=b.createElement(Me.Z,null):zt=null;let Ot=null;return Rt!==void 0?Ot=Rt:Ot=b.createElement(et.Z,null),{clearIcon:Ae,suffixIcon:nt,itemIcon:zt,removeIcon:Ot}}},90005:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return b}});function b(Me,ce){return ce!==void 0?ce:Me!==null}},11938:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return Ct}});var b=ee(59301),Me=ee(40192),ce=ee(22703),et=ee(92310),Pe=ee.n(et),pe=ee(26112),be=ee(48755),Ve=ee(458),ue=De=>{const{value:ke,formatter:xe,precision:se,decimalSeparator:It,groupSeparator:_e="",prefixCls:Ye}=De;let Ft;if(typeof xe=="function")Ft=xe(ke);else{const Ce=String(ke),he=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!he||Ce==="-")Ft=Ce;else{const yt=he[1];let Vt=he[2]||"0",Lt=he[4]||"";Vt=Vt.replace(/\B(?=(\d{3})+(?!\d))/g,_e),typeof se=="number"&&(Lt=Lt.padEnd(se,"0").slice(0,se>0?se:0)),Lt&&(Lt=`${It}${Lt}`),Ft=[b.createElement("span",{key:"int",className:`${Ye}-content-value-int`},yt,Vt),Lt&&b.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},Lt)]}}return b.createElement("span",{className:`${Ye}-content-value`},Ft)},$e=ee(63356),Ee=ee(16931),Rt=ee(51636);const ot=De=>{const{componentCls:ke,marginXXS:xe,padding:se,colorTextDescription:It,titleFontSize:_e,colorTextHeading:Ye,contentFontSize:Ft,fontFamily:Ce}=De;return{[ke]:Object.assign(Object.assign({},(0,$e.Wf)(De)),{[`${ke}-title`]:{marginBottom:xe,color:It,fontSize:_e},[`${ke}-skeleton`]:{paddingTop:se},[`${ke}-content`]:{color:Ye,fontSize:Ft,fontFamily:Ce,[`${ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ke}-content-prefix, ${ke}-content-suffix`]:{display:"inline-block"},[`${ke}-content-prefix`]:{marginInlineEnd:xe},[`${ke}-content-suffix`]:{marginInlineStart:xe}}})}},st=De=>{const{fontSizeHeading3:ke,fontSize:xe}=De;return{titleFontSize:xe,contentFontSize:ke}};var Ue=(0,Ee.I$)("Statistic",De=>{const ke=(0,Rt.mergeToken)(De,{});return[ot(ke)]},st),Re=function(De,ke){var xe={};for(var se in De)Object.prototype.hasOwnProperty.call(De,se)&&ke.indexOf(se)<0&&(xe[se]=De[se]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,se=Object.getOwnPropertySymbols(De);It{const{prefixCls:ke,className:xe,rootClassName:se,style:It,valueStyle:_e,value:Ye=0,title:Ft,valueRender:Ce,prefix:he,suffix:yt,loading:Vt=!1,formatter:Lt,precision:me,decimalSeparator:qe=".",groupSeparator:it=",",onMouseEnter:Xt,onMouseLeave:Xe}=De,Gt=Re(De,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Fe,direction:dn,className:$t,style:ae}=(0,be.dj)("statistic"),ne=Fe("statistic",ke),[te,ie,de]=Ue(ne),re=b.createElement(ue,{decimalSeparator:qe,groupSeparator:it,prefixCls:ne,formatter:Lt,precision:me,value:Ye}),le=Pe()(ne,{[`${ne}-rtl`]:dn==="rtl"},$t,xe,se,ie,de),Se=(0,pe.Z)(Gt,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},Se,{className:le,style:Object.assign(Object.assign({},ae),It),onMouseEnter:Xt,onMouseLeave:Xe}),Ft&&b.createElement("div",{className:`${ne}-title`},Ft),b.createElement(Ve.Z,{paragraph:!1,loading:Vt,className:`${ne}-skeleton`},b.createElement("div",{style:_e,className:`${ne}-content`},he&&b.createElement("span",{className:`${ne}-content-prefix`},he),Ce?Ce(re):re,yt&&b.createElement("span",{className:`${ne}-content-suffix`},yt)))))};const en=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Qe(De,ke){let xe=De;const se=/\[[^\]]*]/g,It=(ke.match(se)||[]).map(Ce=>Ce.slice(1,-1)),_e=ke.replace(se,"[]"),Ye=en.reduce((Ce,he)=>{let[yt,Vt]=he;if(Ce.includes(yt)){const Lt=Math.floor(xe/Vt);return xe-=Lt*Vt,Ce.replace(new RegExp(`${yt}+`,"g"),me=>{const qe=me.length;return Lt.toString().padStart(qe,"0")})}return Ce},_e);let Ft=0;return Ye.replace(se,()=>{const Ce=It[Ft];return Ft+=1,Ce})}function Ae(De,ke){const{format:xe=""}=ke,se=new Date(De).getTime(),It=Date.now(),_e=Math.max(se-It,0);return Qe(_e,xe)}var tt=function(De,ke){var xe={};for(var se in De)Object.prototype.hasOwnProperty.call(De,se)&&ke.indexOf(se)<0&&(xe[se]=De[se]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,se=Object.getOwnPropertySymbols(De);It{const{value:ke,format:xe="HH:mm:ss",onChange:se,onFinish:It}=De,_e=tt(De,["value","format","onChange","onFinish"]),Ye=(0,Me.Z)(),Ft=b.useRef(null),Ce=()=>{It==null||It(),Ft.current&&(clearInterval(Ft.current),Ft.current=null)},he=()=>{const Lt=zt(ke);Lt>=Date.now()&&(Ft.current=setInterval(()=>{Ye(),se==null||se(Lt-Date.now()),Lt(he(),()=>{Ft.current&&(clearInterval(Ft.current),Ft.current=null)}),[ke]);const yt=(Lt,me)=>Ae(Lt,Object.assign(Object.assign({},me),{format:xe})),Vt=Lt=>(0,ce.Tm)(Lt,{title:void 0});return b.createElement(kt,Object.assign({},_e,{value:ke,valueRender:Vt,formatter:yt}))};var ht=b.memo(Ot);kt.Countdown=ht;var Ct=kt},58755:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return It}});var b=ee(59301),Me=ee(58617),ce=ee(92310),et=ee.n(ce),Pe=ee(60499),pe=ee(18642),be=ee(72190),Ve=ee(42244),Ie=ee(18929),ue=ee(10228),$e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=b.forwardRef(function(_e,Ye){var Ft,Ce=_e.prefixCls,he=Ce===void 0?"rc-switch":Ce,yt=_e.className,Vt=_e.checked,Lt=_e.defaultChecked,me=_e.disabled,qe=_e.loadingIcon,it=_e.checkedChildren,Xt=_e.unCheckedChildren,Xe=_e.onClick,Gt=_e.onChange,Fe=_e.onKeyDown,dn=(0,Ve.Z)(_e,$e),$t=(0,Ie.Z)(!1,{value:Vt,defaultValue:Lt}),ae=(0,be.Z)($t,2),ne=ae[0],te=ae[1];function ie(Se,Ge){var He=ne;return me||(He=Se,te(He),Gt==null||Gt(He,Ge)),He}function de(Se){Se.which===ue.Z.LEFT?ie(!1,Se):Se.which===ue.Z.RIGHT&&ie(!0,Se),Fe==null||Fe(Se)}function re(Se){var Ge=ie(!ne,Se);Xe==null||Xe(Ge,Se)}var le=et()(he,yt,(Ft={},(0,pe.Z)(Ft,"".concat(he,"-checked"),ne),(0,pe.Z)(Ft,"".concat(he,"-disabled"),me),Ft));return b.createElement("button",(0,Pe.Z)({},dn,{type:"button",role:"switch","aria-checked":ne,disabled:me,className:le,ref:Ye,onKeyDown:de,onClick:re}),qe,b.createElement("span",{className:"".concat(he,"-inner")},b.createElement("span",{className:"".concat(he,"-inner-checked")},it),b.createElement("span",{className:"".concat(he,"-inner-unchecked")},Xt)))});Ee.displayName="Switch";var Rt=Ee,ot=ee(12919),st=ee(48755),Ue=ee(2171),Re=ee(31756),ft=ee(36237),kt=ee(17835),en=ee(63356),Qe=ee(16931),Ae=ee(51636);const tt=_e=>{const{componentCls:Ye,trackHeightSM:Ft,trackPadding:Ce,trackMinWidthSM:he,innerMinMarginSM:yt,innerMaxMarginSM:Vt,handleSizeSM:Lt,calc:me}=_e,qe=`${Ye}-inner`,it=(0,ft.unit)(me(Lt).add(me(Ce).mul(2)).equal()),Xt=(0,ft.unit)(me(Vt).mul(2).equal());return{[Ye]:{[`&${Ye}-small`]:{minWidth:he,height:Ft,lineHeight:(0,ft.unit)(Ft),[`${Ye}-inner`]:{paddingInlineStart:Vt,paddingInlineEnd:yt,[`${qe}-checked, ${qe}-unchecked`]:{minHeight:Ft},[`${qe}-checked`]:{marginInlineStart:`calc(-100% + ${it} - ${Xt})`,marginInlineEnd:`calc(100% - ${it} + ${Xt})`},[`${qe}-unchecked`]:{marginTop:me(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ye}-handle`]:{width:Lt,height:Lt},[`${Ye}-loading-icon`]:{top:me(me(Lt).sub(_e.switchLoadingIconSize)).div(2).equal(),fontSize:_e.switchLoadingIconSize},[`&${Ye}-checked`]:{[`${Ye}-inner`]:{paddingInlineStart:yt,paddingInlineEnd:Vt,[`${qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${qe}-unchecked`]:{marginInlineStart:`calc(100% - ${it} + ${Xt})`,marginInlineEnd:`calc(-100% + ${it} - ${Xt})`}},[`${Ye}-handle`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(me(Lt).add(Ce).equal())})`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${qe}`]:{[`${qe}-unchecked`]:{marginInlineStart:me(_e.marginXXS).div(2).equal(),marginInlineEnd:me(_e.marginXXS).mul(-1).div(2).equal()}},[`&${Ye}-checked ${qe}`]:{[`${qe}-checked`]:{marginInlineStart:me(_e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(_e.marginXXS).div(2).equal()}}}}}}},nt=_e=>{const{componentCls:Ye,handleSize:Ft,calc:Ce}=_e;return{[Ye]:{[`${Ye}-loading-icon${_e.iconCls}`]:{position:"relative",top:Ce(Ce(Ft).sub(_e.fontSize)).div(2).equal(),color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${Ye}-checked ${Ye}-loading-icon`]:{color:_e.switchColor}}}},zt=_e=>{const{componentCls:Ye,trackPadding:Ft,handleBg:Ce,handleShadow:he,handleSize:yt,calc:Vt}=_e,Lt=`${Ye}-handle`;return{[Ye]:{[Lt]:{position:"absolute",top:Ft,insetInlineStart:Ft,width:yt,height:yt,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ce,borderRadius:Vt(yt).div(2).equal(),boxShadow:he,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${Ye}-checked ${Lt}`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(Vt(yt).add(Ft).equal())})`},[`&:not(${Ye}-disabled):active`]:{[`${Lt}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${Ye}-checked ${Lt}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}}}},Ot=_e=>{const{componentCls:Ye,trackHeight:Ft,trackPadding:Ce,innerMinMargin:he,innerMaxMargin:yt,handleSize:Vt,calc:Lt}=_e,me=`${Ye}-inner`,qe=(0,ft.unit)(Lt(Vt).add(Lt(Ce).mul(2)).equal()),it=(0,ft.unit)(Lt(yt).mul(2).equal());return{[Ye]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yt,paddingInlineEnd:he,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${me}-checked, ${me}-unchecked`]:{display:"block",color:_e.colorTextLightSolid,fontSize:_e.fontSizeSM,transition:`margin-inline-start ${_e.switchDuration} ease-in-out, margin-inline-end ${_e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ft},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${it})`,marginInlineEnd:`calc(100% - ${qe} + ${it})`},[`${me}-unchecked`]:{marginTop:Lt(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ye}-checked ${me}`]:{paddingInlineStart:he,paddingInlineEnd:yt,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${it})`,marginInlineEnd:`calc(-100% + ${qe} - ${it})`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:Lt(Ce).mul(2).equal(),marginInlineEnd:Lt(Ce).mul(-1).mul(2).equal()}},[`&${Ye}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:Lt(Ce).mul(-1).mul(2).equal(),marginInlineEnd:Lt(Ce).mul(2).equal()}}}}}},ht=_e=>{const{componentCls:Ye,trackHeight:Ft,trackMinWidth:Ce}=_e;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ce,height:Ft,lineHeight:(0,ft.unit)(Ft),verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ye}-disabled)`]:{background:_e.colorTextTertiary}}),(0,en.Qy)(_e)),{[`&${Ye}-checked`]:{background:_e.switchColor,[`&:hover:not(${Ye}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${Ye}-loading, &${Ye}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ye}-rtl`]:{direction:"rtl"}})}},Ct=_e=>{const{fontSize:Ye,lineHeight:Ft,controlHeight:Ce,colorWhite:he}=_e,yt=Ye*Ft,Vt=Ce/2,Lt=2,me=yt-Lt*2,qe=Vt-Lt*2;return{trackHeight:yt,trackHeightSM:Vt,trackMinWidth:me*2+Lt*4,trackMinWidthSM:qe*2+Lt*2,trackPadding:Lt,handleBg:he,handleSize:me,handleSizeSM:qe,handleShadow:`0 2px 4px 0 ${new kt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+Lt+Lt*2,innerMinMarginSM:qe/2,innerMaxMarginSM:qe+Lt+Lt*2}};var De=(0,Qe.I$)("Switch",_e=>{const Ye=(0,Ae.mergeToken)(_e,{switchDuration:_e.motionDurationMid,switchColor:_e.colorPrimary,switchDisabledOpacity:_e.opacityLoading,switchLoadingIconSize:_e.calc(_e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${_e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ht(Ye),Ot(Ye),zt(Ye),nt(Ye),tt(Ye)]},Ct),ke=function(_e,Ye){var Ft={};for(var Ce in _e)Object.prototype.hasOwnProperty.call(_e,Ce)&&Ye.indexOf(Ce)<0&&(Ft[Ce]=_e[Ce]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Ce=Object.getOwnPropertySymbols(_e);he{const{prefixCls:Ft,size:Ce,disabled:he,loading:yt,className:Vt,rootClassName:Lt,style:me,checked:qe,value:it,defaultChecked:Xt,defaultValue:Xe,onChange:Gt}=_e,Fe=ke(_e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[dn,$t]=(0,Ie.Z)(!1,{value:qe!=null?qe:it,defaultValue:Xt!=null?Xt:Xe}),{getPrefixCls:ae,direction:ne,switch:te}=b.useContext(st.E_),ie=b.useContext(Ue.Z),de=(he!=null?he:ie)||yt,re=ae("switch",Ft),le=b.createElement("div",{className:`${re}-handle`},yt&&b.createElement(Me.Z,{className:`${re}-loading-icon`})),[Se,Ge,He]=De(re),Le=(0,Re.Z)(Ce),rt=et()(te==null?void 0:te.className,{[`${re}-small`]:Le==="small",[`${re}-loading`]:yt,[`${re}-rtl`]:ne==="rtl"},Vt,Lt,Ge,He),ut=Object.assign(Object.assign({},te==null?void 0:te.style),me),At=function(){$t(arguments.length<=0?void 0:arguments[0]),Gt==null||Gt.apply(void 0,arguments)};return Se(b.createElement(ot.Z,{component:"Switch"},b.createElement(Rt,Object.assign({},Fe,{checked:dn,onChange:At,prefixCls:re,className:rt,style:ut,disabled:de,ref:Ye,loadingIcon:le}))))});se.__ANT_SWITCH=!0;var It=se},70858:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return bc}});var b=ee(59301),Me={},ce="rc-table-internal-hook",et=ee(72190),Pe=ee(6089),pe=ee(34280),be=ee(13697),Ve=ee(4676);function Ie(ye){var ge=b.createContext(void 0),ct=function(qt){var ln=qt.value,Dn=qt.children,yn=b.useRef(ln);yn.current=ln;var Fn=b.useState(function(){return{getValue:function(){return yn.current},listeners:new Set}}),Mn=(0,et.Z)(Fn,1),ar=Mn[0];return(0,pe.Z)(function(){(0,Ve.unstable_batchedUpdates)(function(){ar.listeners.forEach(function(Qn){Qn(ln)})})},[ln]),b.createElement(ge.Provider,{value:ar},Dn)};return{Context:ge,Provider:ct,defaultValue:ye}}function ue(ye,ge){var ct=(0,Pe.Z)(typeof ge=="function"?ge:function(Qn){if(ge===void 0)return Qn;if(!Array.isArray(ge))return Qn[ge];var Yn={};return ge.forEach(function(Kn){Yn[Kn]=Qn[Kn]}),Yn}),Nt=b.useContext(ye==null?void 0:ye.Context),qt=Nt||{},ln=qt.listeners,Dn=qt.getValue,yn=b.useRef();yn.current=ct(Nt?Dn():ye==null?void 0:ye.defaultValue);var Fn=b.useState({}),Mn=(0,et.Z)(Fn,2),ar=Mn[1];return(0,pe.Z)(function(){if(!Nt)return;function Qn(Yn){var Kn=ct(Yn);(0,be.Z)(yn.current,Kn,!0)||ar({})}return ln.add(Qn),function(){ln.delete(Qn)}},[Nt]),yn.current}var $e=ee(60499),Ee=ee(8654);function Rt(){var ye=b.createContext(null);function ge(){return b.useContext(ye)}function ct(qt,ln){var Dn=(0,Ee.Yr)(qt),yn=function(Mn,ar){var Qn=Dn?{ref:ar}:{},Yn=b.useRef(0),Kn=b.useRef(Mn),Wn=ge();return Wn!==null?b.createElement(qt,(0,$e.Z)({},Mn,Qn)):((!ln||ln(Kn.current,Mn))&&(Yn.current+=1),Kn.current=Mn,b.createElement(ye.Provider,{value:Yn.current},b.createElement(qt,(0,$e.Z)({},Mn,Qn))))};return Dn?b.forwardRef(yn):yn}function Nt(qt,ln){var Dn=(0,Ee.Yr)(qt),yn=function(Mn,ar){var Qn=Dn?{ref:ar}:{};return ge(),b.createElement(qt,(0,$e.Z)({},Mn,Qn))};return Dn?b.memo(b.forwardRef(yn),ln):b.memo(yn,ln)}return{makeImmutable:ct,responseImmutable:Nt,useImmutableMark:ge}}var ot=Rt(),st=ot.makeImmutable,Ue=ot.responseImmutable,Re=ot.useImmutableMark,ft=Rt(),kt=ft.makeImmutable,en=ft.responseImmutable,Qe=ft.useImmutableMark,Ae=Ie(),tt=Ae;function nt(ye,ge){var ct=React.useRef(0);ct.current+=1;var Nt=React.useRef(ye),qt=[];Object.keys(ye||{}).map(function(Dn){var yn;(ye==null?void 0:ye[Dn])!==((yn=Nt.current)===null||yn===void 0?void 0:yn[Dn])&&qt.push(Dn)}),Nt.current=ye;var ln=React.useRef([]);return qt.length&&(ln.current=qt),React.useDebugValue(ct.current),React.useDebugValue(ln.current.join(", ")),ge&&console.log("".concat(ge,":"),ct.current,ln.current),ct.current}var zt=null,Ot=null,ht=ee(43749),Ct=ee(85899),De=ee(18642),ke=ee(92310),xe=ee.n(ke),se=ee(80547),It=ee(97938),_e=ee(48736),Ye=b.createContext({renderWithProps:!1}),Ft=Ye,Ce="RC_TABLE_KEY";function he(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function yt(ye){var ge=[],ct={};return ye.forEach(function(Nt){for(var qt=Nt||{},ln=qt.key,Dn=qt.dataIndex,yn=ln||he(Dn).join("-")||Ce;ct[yn];)yn="".concat(yn,"_next");ct[yn]=!0,ge.push(yn)}),ge}function Vt(ye){return ye!=null}function Lt(ye){return typeof ye=="number"&&!Number.isNaN(ye)}function me(ye){return ye&&(0,ht.Z)(ye)==="object"&&!Array.isArray(ye)&&!b.isValidElement(ye)}function qe(ye,ge,ct,Nt,qt,ln){var Dn=b.useContext(Ft),yn=Qe(),Fn=(0,se.Z)(function(){if(Vt(Nt))return[Nt];var Mn=ge==null||ge===""?[]:Array.isArray(ge)?ge:[ge],ar=(0,It.Z)(ye,Mn),Qn=ar,Yn=void 0;if(qt){var Kn=qt(ar,ye,ct);me(Kn)?(Qn=Kn.children,Yn=Kn.props,Dn.renderWithProps=!0):Qn=Kn}return[Qn,Yn]},[yn,ye,Nt,ge,qt,ct],function(Mn,ar){if(ln){var Qn=(0,et.Z)(Mn,2),Yn=Qn[1],Kn=(0,et.Z)(ar,2),Wn=Kn[1];return ln(Wn,Yn)}return Dn.renderWithProps?!0:!(0,be.Z)(Mn,ar,!0)});return Fn}function it(ye,ge,ct,Nt){var qt=ye+ge-1;return ye<=Nt&&qt>=ct}function Xt(ye,ge){return ue(tt,function(ct){var Nt=it(ye,ge||1,ct.hoverStartRow,ct.hoverEndRow);return[Nt,ct.onHover]})}var Xe=ee(70425),Gt=function(ge){var ct=ge.ellipsis,Nt=ge.rowType,qt=ge.children,ln,Dn=ct===!0?{showTitle:!0}:ct;return Dn&&(Dn.showTitle||Nt==="header")&&(typeof qt=="string"||typeof qt=="number"?ln=qt.toString():b.isValidElement(qt)&&typeof qt.props.children=="string"&&(ln=qt.props.children)),ln};function Fe(ye){var ge,ct,Nt,qt,ln,Dn,yn,Fn,Mn=ye.component,ar=ye.children,Qn=ye.ellipsis,Yn=ye.scope,Kn=ye.prefixCls,Wn=ye.className,Ir=ye.align,fr=ye.record,Nr=ye.render,Lr=ye.dataIndex,Mr=ye.renderIndex,jr=ye.shouldCellUpdate,Yr=ye.index,ao=ye.rowType,no=ye.colSpan,Lo=ye.rowSpan,xo=ye.fixLeft,po=ye.fixRight,Mo=ye.firstFixLeft,lo=ye.lastFixLeft,so=ye.firstFixRight,Kr=ye.lastFixRight,zr=ye.appendNode,oo=ye.additionalProps,co=oo===void 0?{}:oo,Co=ye.isSticky,Ur="".concat(Kn,"-cell"),Ho=ue(tt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),jo=Ho.supportSticky,Fi=Ho.allColumnsFixedLeft,Ni=Ho.rowHoverable,yi=qe(fr,Lr,Mr,ar,Nr,jr),Mi=(0,et.Z)(yi,2),Hi=Mi[0],Wo=Mi[1],Ko={},ji=typeof xo=="number"&&jo,Xi=typeof po=="number"&&jo;ji&&(Ko.position="sticky",Ko.left=xo),Xi&&(Ko.position="sticky",Ko.right=po);var vo=(ge=(ct=(Nt=Wo==null?void 0:Wo.colSpan)!==null&&Nt!==void 0?Nt:co.colSpan)!==null&&ct!==void 0?ct:no)!==null&&ge!==void 0?ge:1,Ao=(qt=(ln=(Dn=Wo==null?void 0:Wo.rowSpan)!==null&&Dn!==void 0?Dn:co.rowSpan)!==null&&ln!==void 0?ln:Lo)!==null&&qt!==void 0?qt:1,ho=Xt(Yr,Ao),ro=(0,et.Z)(ho,2),Yo=ro[0],oi=ro[1],Ei=(0,Xe.zX)(function(di){var si;fr&&oi(Yr,Yr+Ao-1),co==null||(si=co.onMouseEnter)===null||si===void 0||si.call(co,di)}),mi=(0,Xe.zX)(function(di){var si;fr&&oi(-1,-1),co==null||(si=co.onMouseLeave)===null||si===void 0||si.call(co,di)});if(vo===0||Ao===0)return null;var Wi=(yn=co.title)!==null&&yn!==void 0?yn:Gt({rowType:ao,ellipsis:Qn,children:Hi}),ta=xe()(Ur,Wn,(Fn={},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)(Fn,"".concat(Ur,"-fix-left"),ji&&jo),"".concat(Ur,"-fix-left-first"),Mo&&jo),"".concat(Ur,"-fix-left-last"),lo&&jo),"".concat(Ur,"-fix-left-all"),lo&&Fi&&jo),"".concat(Ur,"-fix-right"),Xi&&jo),"".concat(Ur,"-fix-right-first"),so&&jo),"".concat(Ur,"-fix-right-last"),Kr&&jo),"".concat(Ur,"-ellipsis"),Qn),"".concat(Ur,"-with-append"),zr),"".concat(Ur,"-fix-sticky"),(ji||Xi)&&Co&&jo),(0,De.Z)(Fn,"".concat(Ur,"-row-hover"),!Wo&&Yo)),co.className,Wo==null?void 0:Wo.className),bo={};Ir&&(bo.textAlign=Ir);var Do=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},Wo==null?void 0:Wo.style),Ko),bo),co.style),ai=Hi;return(0,ht.Z)(ai)==="object"&&!Array.isArray(ai)&&!b.isValidElement(ai)&&(ai=null),Qn&&(lo||so)&&(ai=b.createElement("span",{className:"".concat(Ur,"-content")},ai)),b.createElement(Mn,(0,$e.Z)({},Wo,co,{className:ta,style:Do,title:Wi,scope:Yn,onMouseEnter:Ni?Ei:void 0,onMouseLeave:Ni?mi:void 0,colSpan:vo!==1?vo:null,rowSpan:Ao!==1?Ao:null}),zr,ai)}var dn=b.memo(Fe);function $t(ye,ge,ct,Nt,qt){var ln=ct[ye]||{},Dn=ct[ge]||{},yn,Fn;ln.fixed==="left"?yn=Nt.left[qt==="rtl"?ge:ye]:Dn.fixed==="right"&&(Fn=Nt.right[qt==="rtl"?ye:ge]);var Mn=!1,ar=!1,Qn=!1,Yn=!1,Kn=ct[ge+1],Wn=ct[ye-1],Ir=Kn&&!Kn.fixed||Wn&&!Wn.fixed||ct.every(function(jr){return jr.fixed==="left"});if(qt==="rtl"){if(yn!==void 0){var fr=Wn&&Wn.fixed==="left";Yn=!fr&&Ir}else if(Fn!==void 0){var Nr=Kn&&Kn.fixed==="right";Qn=!Nr&&Ir}}else if(yn!==void 0){var Lr=Kn&&Kn.fixed==="left";Mn=!Lr&&Ir}else if(Fn!==void 0){var Mr=Wn&&Wn.fixed==="right";ar=!Mr&&Ir}return{fixLeft:yn,fixRight:Fn,lastFixLeft:Mn,firstFixRight:ar,lastFixRight:Qn,firstFixLeft:Yn,isSticky:Nt.isSticky}}var ae=b.createContext({}),ne=ae;function te(ye){var ge=ye.className,ct=ye.index,Nt=ye.children,qt=ye.colSpan,ln=qt===void 0?1:qt,Dn=ye.rowSpan,yn=ye.align,Fn=ue(tt,["prefixCls","direction"]),Mn=Fn.prefixCls,ar=Fn.direction,Qn=b.useContext(ne),Yn=Qn.scrollColumnIndex,Kn=Qn.stickyOffsets,Wn=Qn.flattenColumns,Ir=ct+ln-1,fr=Ir+1===Yn?ln+1:ln,Nr=$t(ct,ct+fr-1,Wn,Kn,ar);return b.createElement(dn,(0,$e.Z)({className:ge,index:ct,component:"td",prefixCls:Mn,record:null,dataIndex:null,align:yn,colSpan:fr,rowSpan:Dn,render:function(){return Nt}},Nr))}var ie=ee(42244),de=["children"];function re(ye){var ge=ye.children,ct=(0,ie.Z)(ye,de);return b.createElement("tr",ct,ge)}function le(ye){var ge=ye.children;return ge}le.Row=re,le.Cell=te;var Se=le;function Ge(ye){var ge=ye.children,ct=ye.stickyOffsets,Nt=ye.flattenColumns,qt=ue(tt,"prefixCls"),ln=Nt.length-1,Dn=Nt[ln],yn=b.useMemo(function(){return{stickyOffsets:ct,flattenColumns:Nt,scrollColumnIndex:Dn!=null&&Dn.scrollbar?ln:null}},[Dn,Nt,ln,ct]);return b.createElement(ne.Provider,{value:yn},b.createElement("tfoot",{className:"".concat(qt,"-summary")},ge))}var He=en(Ge),Le=Se,rt=ee(29301),ut=ee(24514),At=ee(75152),Ne=ee(26112);function Be(ye,ge,ct,Nt,qt,ln,Dn){ye.push({record:ge,indent:ct,index:Dn});var yn=ln(ge),Fn=qt==null?void 0:qt.has(yn);if(ge&&Array.isArray(ge[Nt])&&Fn)for(var Mn=0;Mn1?Mo-1:0),so=1;so=1)),style:(0,Ct.Z)((0,Ct.Z)({},ct),Nr==null?void 0:Nr.style)}),Wn.map(function(xo,po){var Mo=xo.render,lo=xo.dataIndex,so=xo.className,Kr=Je(Yn,xo,po,Fn,qt),zr=Kr.key,oo=Kr.fixedInfo,co=Kr.appendCellNode,Co=Kr.additionalCellProps;return b.createElement(dn,(0,$e.Z)({className:so,ellipsis:xo.ellipsis,align:xo.align,scope:xo.rowScope,component:xo.rowScope?Qn:ar,prefixCls:Kn,key:zr,record:Nt,index:qt,renderIndex:ln,dataIndex:lo,render:Mo,shouldCellUpdate:xo.shouldCellUpdate},oo,{appendNode:co,additionalProps:Co}))})),no;if(Mr&&(jr.current||Lr)){var Lo=fr(Nt,qt,Fn+1,Lr);no=b.createElement(vn,{expanded:Lr,className:xe()("".concat(Kn,"-expanded-row"),"".concat(Kn,"-expanded-row-level-").concat(Fn+1),Yr),prefixCls:Kn,component:Mn,cellComponent:ar,colSpan:Wn.length,isEmpty:!1},Lo)}return b.createElement(b.Fragment,null,ao,no)}var an=en(Tt);function _t(ye){var ge=ye.columnKey,ct=ye.onColumnResize,Nt=b.useRef();return(0,pe.Z)(function(){Nt.current&&ct(ge,Nt.current.offsetWidth)},[]),b.createElement(rt.Z,{data:ge},b.createElement("td",{ref:Nt,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var je=ee(29194);function Pt(ye){var ge=ye.prefixCls,ct=ye.columnsKey,Nt=ye.onColumnResize,qt=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(ge,"-measure-row"),style:{height:0,fontSize:0},ref:qt},b.createElement(rt.Z.Collection,{onBatchResize:function(Dn){(0,je.Z)(qt.current)&&Dn.forEach(function(yn){var Fn=yn.data,Mn=yn.size;Nt(Fn,Mn.offsetWidth)})}},ct.map(function(ln){return b.createElement(_t,{key:ln,columnKey:ln,onColumnResize:Nt})})))}function Kt(ye){var ge=ye.data,ct=ye.measureColumnWidth,Nt=ue(tt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),qt=Nt.prefixCls,ln=Nt.getComponent,Dn=Nt.onColumnResize,yn=Nt.flattenColumns,Fn=Nt.getRowKey,Mn=Nt.expandedKeys,ar=Nt.childrenColumnName,Qn=Nt.emptyNode,Yn=Ut(ge,ar,Mn,Fn),Kn=b.useRef({renderWithProps:!1}),Wn=ln(["body","wrapper"],"tbody"),Ir=ln(["body","row"],"tr"),fr=ln(["body","cell"],"td"),Nr=ln(["body","cell"],"th"),Lr;ge.length?Lr=Yn.map(function(jr,Yr){var ao=jr.record,no=jr.indent,Lo=jr.index,xo=Fn(ao,Yr);return b.createElement(an,{key:xo,rowKey:xo,record:ao,index:Yr,renderIndex:Lo,rowComponent:Ir,cellComponent:fr,scopeCellComponent:Nr,indent:no})}):Lr=b.createElement(vn,{expanded:!0,className:"".concat(qt,"-placeholder"),prefixCls:qt,component:Ir,cellComponent:fr,colSpan:yn.length,isEmpty:!0},Qn);var Mr=yt(yn);return b.createElement(Ft.Provider,{value:Kn.current},b.createElement(Wn,{className:"".concat(qt,"-tbody")},ct&&b.createElement(Pt,{prefixCls:qt,columnsKey:Mr,onColumnResize:Dn}),Lr))}var nn=en(Kt),On=["expandable"],_n="RC_TABLE_INTERNAL_COL_DEFINE";function nr(ye){var ge=ye.expandable,ct=(0,ie.Z)(ye,On),Nt;return"expandable"in ye?Nt=(0,Ct.Z)((0,Ct.Z)({},ct),ge):Nt=ct,Nt.showExpandColumn===!1&&(Nt.expandIconColumnIndex=-1),Nt}var ir=["columnType"];function Zn(ye){for(var ge=ye.colWidths,ct=ye.columns,Nt=ye.columCount,qt=ue(tt,["tableLayout"]),ln=qt.tableLayout,Dn=[],yn=Nt||ct.length,Fn=!1,Mn=yn-1;Mn>=0;Mn-=1){var ar=ge[Mn],Qn=ct&&ct[Mn],Yn=void 0,Kn=void 0;if(Qn&&(Yn=Qn[_n],ln==="auto"&&(Kn=Qn.minWidth)),ar||Kn||Yn||Fn){var Wn=Yn||{},Ir=Wn.columnType,fr=(0,ie.Z)(Wn,ir);Dn.unshift(b.createElement("col",(0,$e.Z)({key:Mn,style:{width:ar,minWidth:Kn}},fr))),Fn=!0}}return b.createElement("colgroup",null,Dn)}var er=Zn,kn=ee(77654),cn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function bn(ye,ge){return(0,b.useMemo)(function(){for(var ct=[],Nt=0;Nt1?"colgroup":"col":null,ellipsis:fr.ellipsis,align:fr.align,component:Dn,prefixCls:ar,key:Kn[Ir]},Nr,{additionalProps:Lr,rowType:"header"}))}))},Pn=sn;function Tn(ye){var ge=[];function ct(Dn,yn){var Fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ge[Fn]=ge[Fn]||[];var Mn=yn,ar=Dn.filter(Boolean).map(function(Qn){var Yn={key:Qn.key,className:Qn.className||"",children:Qn.title,column:Qn,colStart:Mn},Kn=1,Wn=Qn.children;return Wn&&Wn.length>0&&(Kn=ct(Wn,Mn,Fn+1).reduce(function(Ir,fr){return Ir+fr},0),Yn.hasSubColumns=!0),"colSpan"in Qn&&(Kn=Qn.colSpan),"rowSpan"in Qn&&(Yn.rowSpan=Qn.rowSpan),Yn.colSpan=Kn,Yn.colEnd=Yn.colStart+Kn-1,ge[Fn].push(Yn),Mn+=Kn,Kn});return ar}ct(ye,0);for(var Nt=ge.length,qt=function(yn){ge[yn].forEach(function(Fn){!("rowSpan"in Fn)&&!Fn.hasSubColumns&&(Fn.rowSpan=Nt-yn)})},ln=0;ln1&&arguments[1]!==void 0?arguments[1]:"";return typeof ge=="number"?ge:ge.endsWith("%")?ye*parseFloat(ge)/100:null}function An(ye,ge,ct){return b.useMemo(function(){if(ge&&ge>0){var Nt=0,qt=0;ye.forEach(function(Yn){var Kn=Nn(ge,Yn.width);Kn?Nt+=Kn:qt+=1});var ln=Math.max(ge,ct),Dn=Math.max(ln-Nt,qt),yn=qt,Fn=Dn/qt,Mn=0,ar=ye.map(function(Yn){var Kn=(0,Ct.Z)({},Yn),Wn=Nn(ge,Kn.width);if(Wn)Kn.width=Wn;else{var Ir=Math.floor(Fn);Kn.width=yn===1?Dn:Ir,Dn-=Ir,yn-=1}return Mn+=Kn.width,Kn});if(Mn0?(0,Ct.Z)((0,Ct.Z)({},ge),{},{children:xn(ct)}):ge})}function Vn(ye){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ye.filter(function(ct){return ct&&(0,ht.Z)(ct)==="object"}).reduce(function(ct,Nt,qt){var ln=Nt.fixed,Dn=ln===!0?"left":ln,yn="".concat(ge,"-").concat(qt),Fn=Nt.children;return Fn&&Fn.length>0?[].concat((0,kn.Z)(ct),(0,kn.Z)(Vn(Fn,yn).map(function(Mn){return(0,Ct.Z)({fixed:Dn},Mn)}))):[].concat((0,kn.Z)(ct),[(0,Ct.Z)((0,Ct.Z)({key:yn},Nt),{},{fixed:Dn})])},[])}function jn(ye){return ye.map(function(ge){var ct=ge.fixed,Nt=(0,ie.Z)(ge,Qt),qt=ct;return ct==="left"?qt="right":ct==="right"&&(qt="left"),(0,Ct.Z)({fixed:qt},Nt)})}function vt(ye,ge){var ct=ye.prefixCls,Nt=ye.columns,qt=ye.children,ln=ye.expandable,Dn=ye.expandedKeys,yn=ye.columnTitle,Fn=ye.getRowKey,Mn=ye.onTriggerExpand,ar=ye.expandIcon,Qn=ye.rowExpandable,Yn=ye.expandIconColumnIndex,Kn=ye.direction,Wn=ye.expandRowByClick,Ir=ye.columnWidth,fr=ye.fixed,Nr=ye.scrollWidth,Lr=ye.clientWidth,Mr=b.useMemo(function(){var lo=Nt||Yt(qt)||[];return xn(lo.slice())},[Nt,qt]),jr=b.useMemo(function(){if(ln){var lo=Mr.slice();if(!lo.includes(Me)){var so=Yn||0;so>=0&&(so||fr==="left"||!fr)&&lo.splice(so,0,Me),fr==="right"&&lo.splice(Mr.length,0,Me)}var Kr=lo.indexOf(Me);lo=lo.filter(function(Co,Ur){return Co!==Me||Ur===Kr});var zr=Mr[Kr],oo;fr?oo=fr:oo=zr?zr.fixed:null;var co=(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},_n,{className:"".concat(ct,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",yn),"fixed",oo),"className","".concat(ct,"-row-expand-icon-cell")),"width",Ir),"render",function(Ur,Ho,jo){var Fi=Fn(Ho,jo),Ni=Dn.has(Fi),yi=Qn?Qn(Ho):!0,Mi=ar({prefixCls:ct,expanded:Ni,expandable:yi,record:Ho,onExpand:Mn});return Wn?b.createElement("span",{onClick:function(Wo){return Wo.stopPropagation()}},Mi):Mi});return lo.map(function(Co){return Co===Me?co:Co})}return Mr.filter(function(Co){return Co!==Me})},[ln,Mr,Fn,Dn,ar,Kn]),Yr=b.useMemo(function(){var lo=jr;return ge&&(lo=ge(lo)),lo.length||(lo=[{render:function(){return null}}]),lo},[ge,jr,Kn]),ao=b.useMemo(function(){return Kn==="rtl"?jn(Vn(Yr)):Vn(Yr)},[Yr,Kn,Nr]),no=b.useMemo(function(){for(var lo=-1,so=ao.length-1;so>=0;so-=1){var Kr=ao[so].fixed;if(Kr==="left"||Kr===!0){lo=so;break}}if(lo>=0)for(var zr=0;zr<=lo;zr+=1){var oo=ao[zr].fixed;if(oo!=="left"&&oo!==!0)return!0}var co=ao.findIndex(function(Ho){var jo=Ho.fixed;return jo==="right"});if(co>=0)for(var Co=co;Co=co-yn?Lr(function(Co){return(0,Ct.Z)((0,Ct.Z)({},Co),{},{isHiddenScrollBar:!0})}):Lr(function(Co){return(0,Ct.Z)((0,Ct.Z)({},Co),{},{isHiddenScrollBar:!1})})}})},so=function(zr){Lr(function(oo){return(0,Ct.Z)((0,Ct.Z)({},oo),{},{scrollLeft:zr/Qn*Yn||0})})};return b.useImperativeHandle(ct,function(){return{setScrollLeft:so,checkScrollBarVisible:lo}}),b.useEffect(function(){var Kr=(0,In.Z)(document.body,"mouseup",xo,!1),zr=(0,In.Z)(document.body,"mousemove",Mo,!1);return lo(),function(){Kr.remove(),zr.remove()}},[Kn,ao]),b.useEffect(function(){if(ln.current){for(var Kr=[],zr=(0,Sn.bn)(ln.current);zr;)Kr.push(zr),zr=zr.parentElement;return Kr.forEach(function(oo){return oo.addEventListener("scroll",lo,!1)}),window.addEventListener("resize",lo,!1),window.addEventListener("scroll",lo,!1),Fn.addEventListener("scroll",lo,!1),function(){Kr.forEach(function(oo){return oo.removeEventListener("scroll",lo)}),window.removeEventListener("resize",lo),window.removeEventListener("scroll",lo),Fn.removeEventListener("scroll",lo)}}},[Fn]),b.useEffect(function(){Nr.isHiddenScrollBar||Lr(function(Kr){var zr=ln.current;return zr?(0,Ct.Z)((0,Ct.Z)({},Kr),{},{scrollLeft:zr.scrollLeft/zr.scrollWidth*zr.clientWidth}):Kr})},[Nr.isHiddenScrollBar]),Qn<=Yn||!Kn||Nr.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,At.Z)(),width:Yn,bottom:yn},className:"".concat(ar,"-sticky-scroll")},b.createElement("div",{onMouseDown:po,ref:Wn,className:xe()("".concat(ar,"-sticky-scroll-bar"),(0,De.Z)({},"".concat(ar,"-sticky-scroll-bar-active"),ao)),style:{width:"".concat(Kn,"px"),transform:"translate3d(".concat(Nr.scrollLeft,"px, 0, 0)")}}))},ur=b.forwardRef(qn);function tr(ye){return null}var Xn=tr;function or(ye){return null}var dr=or,br="rc-table",vr=[],Tr={};function Br(){return"No Data"}function cr(ye,ge){var ct=(0,Ct.Z)({rowKey:"key",prefixCls:br,emptyText:Br},ye),Nt=ct.prefixCls,qt=ct.className,ln=ct.rowClassName,Dn=ct.style,yn=ct.data,Fn=ct.rowKey,Mn=ct.scroll,ar=ct.tableLayout,Qn=ct.direction,Yn=ct.title,Kn=ct.footer,Wn=ct.summary,Ir=ct.caption,fr=ct.id,Nr=ct.showHeader,Lr=ct.components,Mr=ct.emptyText,jr=ct.onRow,Yr=ct.onHeaderRow,ao=ct.onScroll,no=ct.internalHooks,Lo=ct.transformColumns,xo=ct.internalRefs,po=ct.tailor,Mo=ct.getContainerWidth,lo=ct.sticky,so=ct.rowHoverable,Kr=so===void 0?!0:so,zr=yn||vr,oo=!!zr.length,co=no===ce,Co=b.useCallback(function(ti,ii){return(0,It.Z)(Lr,ti)||ii},[Lr]),Ur=b.useMemo(function(){return typeof Fn=="function"?Fn:function(ti){var ii=ti&&ti[Fn];return ii}},[Fn]),Ho=Co(["body"]),jo=Ht(),Fi=(0,et.Z)(jo,3),Ni=Fi[0],yi=Fi[1],Mi=Fi[2],Hi=Te(ct,zr,Ur),Wo=(0,et.Z)(Hi,6),Ko=Wo[0],ji=Wo[1],Xi=Wo[2],vo=Wo[3],Ao=Wo[4],ho=Wo[5],ro=Mn==null?void 0:Mn.x,Yo=b.useState(0),oi=(0,et.Z)(Yo,2),Ei=oi[0],mi=oi[1],Wi=Dt((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},ct),Ko),{},{expandable:!!Ko.expandedRowRender,columnTitle:Ko.columnTitle,expandedKeys:Xi,getRowKey:Ur,onTriggerExpand:ho,expandIcon:vo,expandIconColumnIndex:Ko.expandIconColumnIndex,direction:Qn,scrollWidth:co&&po&&typeof ro=="number"?ro:null,clientWidth:Ei}),co?Lo:null),ta=(0,et.Z)(Wi,4),bo=ta[0],Do=ta[1],ai=ta[2],di=ta[3],si=ai!=null?ai:ro,da=b.useMemo(function(){return{columns:bo,flattenColumns:Do}},[bo,Do]),_i=b.useRef(),Fa=b.useRef(),Ti=b.useRef(),qo=b.useRef();b.useImperativeHandle(ge,function(){return{nativeElement:_i.current,scrollTo:function(ii){var Ea;if(Ti.current instanceof HTMLElement){var Ga=ii.index,Ia=ii.top,_l=ii.key;if(Lt(Ia)){var Sl;(Sl=Ti.current)===null||Sl===void 0||Sl.scrollTo({top:Ia})}else{var fl,Kl=_l!=null?_l:Ur(zr[Ga]);(fl=Ti.current.querySelector('[data-row-key="'.concat(Kl,'"]')))===null||fl===void 0||fl.scrollIntoView()}}else(Ea=Ti.current)!==null&&Ea!==void 0&&Ea.scrollTo&&Ti.current.scrollTo(ii)}}});var vi=b.useRef(),bi=b.useState(!1),na=(0,et.Z)(bi,2),$i=na[0],ei=na[1],ki=b.useState(!1),li=(0,et.Z)(ki,2),xa=li[0],Yi=li[1],Ta=b.useState(new Map),$a=(0,et.Z)(Ta,2),ll=$a[0],xi=$a[1],ql=yt(Do),ka=ql.map(function(ti){return ll.get(ti)}),el=b.useMemo(function(){return ka},[ka.join("_")]),Va=pt(el,Do,Qn),Za=Mn&&Vt(Mn.y),Ci=Mn&&Vt(si)||!!Ko.fixed,Ua=Ci&&Do.some(function(ti){var ii=ti.fixed;return ii}),xl=b.useRef(),sl=lt(lo,Nt),cl=sl.isSticky,us=sl.offsetHeader,ds=sl.offsetSummary,fs=sl.offsetScroll,hs=sl.stickyClassName,Ps=sl.container,Fo=b.useMemo(function(){return Wn==null?void 0:Wn(zr)},[Wn,zr]),Xo=(Za||cl)&&b.isValidElement(Fo)&&Fo.type===Se&&Fo.props.fixed,Ri,Ki,ma;Za&&(Ki={overflowY:oo?"scroll":"auto",maxHeight:Mn.y}),Ci&&(Ri={overflowX:"auto"},Za||(Ki={overflowY:"hidden"}),ma={width:si===!0?"auto":si,minWidth:"100%"});var fa=b.useCallback(function(ti,ii){xi(function(Ea){if(Ea.get(ti)!==ii){var Ga=new Map(Ea);return Ga.set(ti,ii),Ga}return Ea})},[]),nl=wt(null),wa=(0,et.Z)(nl,2),jl=wa[0],Ns=wa[1];function es(ti,ii){ii&&(typeof ii=="function"?ii(ti):ii.scrollLeft!==ti&&(ii.scrollLeft=ti,ii.scrollLeft!==ti&&setTimeout(function(){ii.scrollLeft=ti},0)))}var Pl=(0,Pe.Z)(function(ti){var ii=ti.currentTarget,Ea=ti.scrollLeft,Ga=Qn==="rtl",Ia=typeof Ea=="number"?Ea:ii.scrollLeft,_l=ii||Tr;if(!Ns()||Ns()===_l){var Sl;jl(_l),es(Ia,Fa.current),es(Ia,Ti.current),es(Ia,vi.current),es(Ia,(Sl=xl.current)===null||Sl===void 0?void 0:Sl.setScrollLeft)}var fl=ii||Fa.current;if(fl){var Kl=co&&po&&typeof si=="number"?si:fl.scrollWidth,Hs=fl.clientWidth;if(Kl===Hs){ei(!1),Yi(!1);return}Ga?(ei(-Ia0)):(ei(Ia>0),Yi(Ia1?fr-Kr:0,oo=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},Lo),Mn),{},{flex:"0 0 ".concat(Kr,"px"),width:"".concat(Kr,"px"),marginRight:zr,pointerEvents:"auto"}),co=b.useMemo(function(){return Qn?lo<=1:po===0||lo===0||lo>1},[lo,po,Qn]);co?oo.visibility="hidden":Qn&&(oo.height=Yn==null?void 0:Yn(lo));var Co=co?function(){return null}:Kn,Ur={};return(lo===0||po===0)&&(Ur.rowSpan=1,Ur.colSpan=1),b.createElement(dn,(0,$e.Z)({className:xe()(Ir,ar),ellipsis:ct.ellipsis,align:ct.align,scope:ct.rowScope,component:Dn,prefixCls:ge.prefixCls,key:jr,record:Fn,index:ln,renderIndex:yn,dataIndex:Wn,render:Co,shouldCellUpdate:ct.shouldCellUpdate},Yr,{appendNode:ao,additionalProps:(0,Ct.Z)((0,Ct.Z)({},no),{},{style:oo},Ur)}))}var Xr=yr,go=["data","index","className","rowKey","style","extra","getHeight"],So=b.forwardRef(function(ye,ge){var ct=ye.data,Nt=ye.index,qt=ye.className,ln=ye.rowKey,Dn=ye.style,yn=ye.extra,Fn=ye.getHeight,Mn=(0,ie.Z)(ye,go),ar=ct.record,Qn=ct.indent,Yn=ct.index,Kn=ue(tt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Wn=Kn.scrollX,Ir=Kn.flattenColumns,fr=Kn.prefixCls,Nr=Kn.fixColumn,Lr=Kn.componentWidth,Mr=ue($r,["getComponent"]),jr=Mr.getComponent,Yr=Zt(ar,ln,Nt,Qn),ao=jr(["body","row"],"div"),no=jr(["body","cell"],"div"),Lo=Yr.rowSupportExpand,xo=Yr.expanded,po=Yr.rowProps,Mo=Yr.expandedRowRender,lo=Yr.expandedRowClassName,so;if(Lo&&xo){var Kr=Mo(ar,Nt,Qn+1,xo),zr=on(lo,ar,Nt,Qn),oo={};Nr&&(oo={style:(0,De.Z)({},"--virtual-width","".concat(Lr,"px"))});var co="".concat(fr,"-expanded-row-cell");so=b.createElement(ao,{className:xe()("".concat(fr,"-expanded-row"),"".concat(fr,"-expanded-row-level-").concat(Qn+1),zr)},b.createElement(dn,{component:no,prefixCls:fr,className:xe()(co,(0,De.Z)({},"".concat(co,"-fixed"),Nr)),additionalProps:oo},Kr))}var Co=(0,Ct.Z)((0,Ct.Z)({},Dn),{},{width:Wn});yn&&(Co.position="absolute",Co.pointerEvents="none");var Ur=b.createElement(ao,(0,$e.Z)({},po,Mn,{"data-row-key":ln,ref:Lo?null:ge,className:xe()(qt,"".concat(fr,"-row"),po==null?void 0:po.className,(0,De.Z)({},"".concat(fr,"-row-extra"),yn)),style:(0,Ct.Z)((0,Ct.Z)({},Co),po==null?void 0:po.style)}),Ir.map(function(Ho,jo){return b.createElement(Xr,{key:jo,component:no,rowInfo:Yr,column:Ho,colIndex:jo,indent:Qn,index:Nt,renderIndex:Yn,record:ar,inverse:yn,getHeight:Fn})}));return Lo?b.createElement("div",{ref:ge},Ur,so):Ur}),to=en(So),io=to,Oe=b.forwardRef(function(ye,ge){var ct=ye.data,Nt=ye.onScroll,qt=ue(tt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),ln=qt.flattenColumns,Dn=qt.onColumnResize,yn=qt.getRowKey,Fn=qt.expandedKeys,Mn=qt.prefixCls,ar=qt.childrenColumnName,Qn=qt.scrollX,Yn=qt.direction,Kn=ue($r),Wn=Kn.sticky,Ir=Kn.scrollY,fr=Kn.listItemHeight,Nr=Kn.getComponent,Lr=Kn.onScroll,Mr=b.useRef(),jr=Ut(ct,ar,Fn,yn),Yr=b.useMemo(function(){var so=0;return ln.map(function(Kr){var zr=Kr.width,oo=Kr.key;return so+=zr,[oo,zr,so]})},[ln]),ao=b.useMemo(function(){return Yr.map(function(so){return so[2]})},[Yr]);b.useEffect(function(){Yr.forEach(function(so){var Kr=(0,et.Z)(so,2),zr=Kr[0],oo=Kr[1];Dn(zr,oo)})},[Yr]),b.useImperativeHandle(ge,function(){var so,Kr={scrollTo:function(oo){var co;(co=Mr.current)===null||co===void 0||co.scrollTo(oo)},nativeElement:(so=Mr.current)===null||so===void 0?void 0:so.nativeElement};return Object.defineProperty(Kr,"scrollLeft",{get:function(){var oo;return((oo=Mr.current)===null||oo===void 0?void 0:oo.getScrollInfo().x)||0},set:function(oo){var co;(co=Mr.current)===null||co===void 0||co.scrollTo({left:oo})}}),Kr});var no=function(Kr,zr){var oo,co=(oo=jr[zr])===null||oo===void 0?void 0:oo.record,Co=Kr.onCell;if(Co){var Ur,Ho=Co(co,zr);return(Ur=Ho==null?void 0:Ho.rowSpan)!==null&&Ur!==void 0?Ur:1}return 1},Lo=function(Kr){var zr=Kr.start,oo=Kr.end,co=Kr.getSize,Co=Kr.offsetY;if(oo<0)return null;for(var Ur=ln.filter(function(vo){return no(vo,zr)===0}),Ho=zr,jo=function(Ao){if(Ur=Ur.filter(function(ho){return no(ho,Ao)===0}),!Ur.length)return Ho=Ao,1},Fi=zr;Fi>=0&&!jo(Fi);Fi-=1);for(var Ni=ln.filter(function(vo){return no(vo,oo)!==1}),yi=oo,Mi=function(Ao){if(Ni=Ni.filter(function(ho){return no(ho,Ao)!==1}),!Ni.length)return yi=Math.max(Ao-1,oo),1},Hi=oo;Hi1})&&Wo.push(Ao)},ji=Ho;ji<=yi;ji+=1)Ko(ji);var Xi=Wo.map(function(vo){var Ao=jr[vo],ho=yn(Ao.record,vo),ro=function(Ei){var mi=vo+Ei-1,Wi=yn(jr[mi].record,mi),ta=co(ho,Wi);return ta.bottom-ta.top},Yo=co(ho);return b.createElement(io,{key:vo,data:Ao,rowKey:ho,index:vo,style:{top:-Co+Yo.top},extra:!0,getHeight:ro})});return Xi},xo=b.useMemo(function(){return{columnsOffset:ao}},[ao]),po="".concat(Mn,"-tbody"),Mo=Nr(["body","wrapper"]),lo={};return Wn&&(lo.position="sticky",lo.bottom=0,(0,ht.Z)(Wn)==="object"&&Wn.offsetScroll&&(lo.bottom=Wn.offsetScroll)),b.createElement(wr.Provider,{value:xo},b.createElement(Fr.Z,{fullHeight:!1,ref:Mr,prefixCls:"".concat(po,"-virtual"),styles:{horizontalScrollBar:lo},className:po,height:Ir,itemHeight:fr||24,data:jr,itemKey:function(Kr){return yn(Kr.record)},component:Mo,scrollWidth:Qn,direction:Yn,onVirtualScroll:function(Kr){var zr,oo=Kr.x;Nt({currentTarget:(zr=Mr.current)===null||zr===void 0?void 0:zr.nativeElement,scrollLeft:oo})},onScroll:Lr,extraRender:Lo},function(so,Kr,zr){var oo=yn(so.record,Kr);return b.createElement(io,{data:so,rowKey:oo,index:Kr,style:zr.style})}))}),We=en(Oe),bt=We,Ze=function(ge,ct){var Nt=ct.ref,qt=ct.onScroll;return b.createElement(bt,{ref:Nt,data:ge,onScroll:qt})};function dt(ye,ge){var ct=ye.data,Nt=ye.columns,qt=ye.scroll,ln=ye.sticky,Dn=ye.prefixCls,yn=Dn===void 0?br:Dn,Fn=ye.className,Mn=ye.listItemHeight,ar=ye.components,Qn=ye.onScroll,Yn=qt||{},Kn=Yn.x,Wn=Yn.y;typeof Kn!="number"&&(Kn=1),typeof Wn!="number"&&(Wn=500);var Ir=(0,Xe.zX)(function(Lr,Mr){return(0,It.Z)(ar,Lr)||Mr}),fr=(0,Xe.zX)(Qn),Nr=b.useMemo(function(){return{sticky:ln,scrollY:Wn,listItemHeight:Mn,getComponent:Ir,onScroll:fr}},[ln,Wn,Mn,Ir,fr]);return b.createElement($r.Provider,{value:Nr},b.createElement(Sr,(0,$e.Z)({},ye,{className:xe()(Fn,"".concat(yn,"-virtual")),scroll:(0,Ct.Z)((0,Ct.Z)({},qt),{},{x:Kn}),components:(0,Ct.Z)((0,Ct.Z)({},ar),{},{body:ct!=null&&ct.length?Ze:void 0}),columns:Nt,internalHooks:ce,tailor:!0,ref:ge})))}var at=b.forwardRef(dt);function Mt(ye){return kt(at,ye)}var Bt=Mt(),Wt=null,Rn=ye=>null,Ln=ye=>null,Gn=ee(84105),lr=ee(82661),sr=ee(34643),pr=ee(34061),mr=ee(18929);function kr(ye){const[ge,ct]=(0,b.useState)(null);return[(0,b.useCallback)((ln,Dn,yn)=>{const Fn=ge!=null?ge:ln,Mn=Math.min(Fn||0,ln),ar=Math.max(Fn||0,ln),Qn=Dn.slice(Mn,ar+1).map(Wn=>ye(Wn)),Yn=Qn.some(Wn=>!yn.has(Wn)),Kn=[];return Qn.forEach(Wn=>{Yn?(yn.has(Wn)||Kn.push(Wn),yn.add(Wn)):(yn.delete(Wn),Kn.push(Wn))}),ct(Yn?ar:null),Kn},[ge]),ln=>{ct(ln)}]}var xr=ee(32383),Gr=ee(62673),Or=ee(75727),Dr=ee(47889);const Ar={},_r="SELECT_ALL",fo="SELECT_INVERT",ko="SELECT_NONE",Io=[],Vo=(ye,ge)=>{let ct=[];return(ge||[]).forEach(Nt=>{ct.push(Nt),Nt&&typeof Nt=="object"&&ye in Nt&&(ct=[].concat((0,kn.Z)(ct),(0,kn.Z)(Vo(ye,Nt[ye]))))}),ct};var Vr=(ye,ge)=>{const{preserveSelectedRowKeys:ct,selectedRowKeys:Nt,defaultSelectedRowKeys:qt,getCheckboxProps:ln,onChange:Dn,onSelect:yn,onSelectAll:Fn,onSelectInvert:Mn,onSelectNone:ar,onSelectMultiple:Qn,columnWidth:Yn,type:Kn,selections:Wn,fixed:Ir,renderCell:fr,hideSelectAll:Nr,checkStrictly:Lr=!0}=ge||{},{prefixCls:Mr,data:jr,pageData:Yr,getRecordByKey:ao,getRowKey:no,expandType:Lo,childrenColumnName:xo,locale:po,getPopupContainer:Mo}=ye,lo=(0,xr.ln)("Table"),[so,Kr]=kr(vo=>vo),[zr,oo]=(0,mr.Z)(Nt||qt||Io,{value:Nt}),co=b.useRef(new Map),Co=(0,b.useCallback)(vo=>{if(ct){const Ao=new Map;vo.forEach(ho=>{let ro=ao(ho);!ro&&co.current.has(ho)&&(ro=co.current.get(ho)),Ao.set(ho,ro)}),co.current=Ao}},[ao,ct]);b.useEffect(()=>{Co(zr)},[zr]);const Ur=(0,b.useMemo)(()=>Vo(xo,Yr),[xo,Yr]),{keyEntities:Ho}=(0,b.useMemo)(()=>{if(Lr)return{keyEntities:null};let vo=jr;if(ct){const Ao=new Set(Ur.map((ro,Yo)=>no(ro,Yo))),ho=Array.from(co.current).reduce((ro,Yo)=>{let[oi,Ei]=Yo;return Ao.has(oi)?ro:ro.concat(Ei)},[]);vo=[].concat((0,kn.Z)(vo),(0,kn.Z)(ho))}return(0,pr.I8)(vo,{externalGetKey:no,childrenPropName:xo})},[jr,no,Lr,xo,ct,Ur]),jo=(0,b.useMemo)(()=>{const vo=new Map;return Ur.forEach((Ao,ho)=>{const ro=no(Ao,ho),Yo=(ln?ln(Ao):null)||{};vo.set(ro,Yo)}),vo},[Ur,no,ln]),Fi=(0,b.useCallback)(vo=>{const Ao=no(vo);let ho;return jo.has(Ao)?ho=jo.get(no(vo)):ho=ln?ln(vo):void 0,!!(ho!=null&&ho.disabled)},[jo,no]),[Ni,yi]=(0,b.useMemo)(()=>{if(Lr)return[zr||[],[]];const{checkedKeys:vo,halfCheckedKeys:Ao}=(0,sr.S)(zr,!0,Ho,Fi);return[vo||[],Ao]},[zr,Lr,Ho,Fi]),Mi=(0,b.useMemo)(()=>{const vo=Kn==="radio"?Ni.slice(0,1):Ni;return new Set(vo)},[Ni,Kn]),Hi=(0,b.useMemo)(()=>Kn==="radio"?new Set:new Set(yi),[yi,Kn]);b.useEffect(()=>{ge||oo(Io)},[!!ge]);const Wo=(0,b.useCallback)((vo,Ao)=>{let ho,ro;Co(vo),ct?(ho=vo,ro=vo.map(Yo=>co.current.get(Yo))):(ho=[],ro=[],vo.forEach(Yo=>{const oi=ao(Yo);oi!==void 0&&(ho.push(Yo),ro.push(oi))})),oo(ho),Dn==null||Dn(ho,ro,{type:Ao})},[oo,ao,Dn,ct]),Ko=(0,b.useCallback)((vo,Ao,ho,ro)=>{if(yn){const Yo=ho.map(oi=>ao(oi));yn(ao(vo),Ao,Yo,ro)}Wo(ho,"single")},[yn,ao,Wo]),ji=(0,b.useMemo)(()=>!Wn||Nr?null:(Wn===!0?[_r,fo,ko]:Wn).map(Ao=>Ao===_r?{key:"all",text:po.selectionAll,onSelect(){Wo(jr.map((ho,ro)=>no(ho,ro)).filter(ho=>{const ro=jo.get(ho);return!(ro!=null&&ro.disabled)||Mi.has(ho)}),"all")}}:Ao===fo?{key:"invert",text:po.selectInvert,onSelect(){const ho=new Set(Mi);Yr.forEach((Yo,oi)=>{const Ei=no(Yo,oi),mi=jo.get(Ei);mi!=null&&mi.disabled||(ho.has(Ei)?ho.delete(Ei):ho.add(Ei))});const ro=Array.from(ho);Mn&&(lo.deprecated(!1,"onSelectInvert","onChange"),Mn(ro)),Wo(ro,"invert")}}:Ao===ko?{key:"none",text:po.selectNone,onSelect(){ar==null||ar(),Wo(Array.from(Mi).filter(ho=>{const ro=jo.get(ho);return ro==null?void 0:ro.disabled}),"none")}}:Ao).map(Ao=>Object.assign(Object.assign({},Ao),{onSelect:function(){for(var ho,ro,Yo=arguments.length,oi=new Array(Yo),Ei=0;Ei{var Ao;if(!ge)return vo.filter(qo=>qo!==Ar);let ho=(0,kn.Z)(vo);const ro=new Set(Mi),Yo=Ur.map(no).filter(qo=>!jo.get(qo).disabled),oi=Yo.every(qo=>ro.has(qo)),Ei=Yo.some(qo=>ro.has(qo)),mi=()=>{const qo=[];oi?Yo.forEach(bi=>{ro.delete(bi),qo.push(bi)}):Yo.forEach(bi=>{ro.has(bi)||(ro.add(bi),qo.push(bi))});const vi=Array.from(ro);Fn==null||Fn(!oi,vi.map(bi=>ao(bi)),qo.map(bi=>ao(bi))),Wo(vi,"all"),Kr(null)};let Wi,ta;if(Kn!=="radio"){let qo;if(ji){const ei={getPopupContainer:Mo,items:ji.map((ki,li)=>{const{key:xa,text:Yi,onSelect:Ta}=ki;return{key:xa!=null?xa:li,onClick:()=>{Ta==null||Ta(Yo)},label:Yi}})};qo=b.createElement("div",{className:`${Mr}-selection-extra`},b.createElement(Or.Z,{menu:ei,getPopupContainer:Mo},b.createElement("span",null,b.createElement(Gn.Z,null))))}const vi=Ur.map((ei,ki)=>{const li=no(ei,ki),xa=jo.get(li)||{};return Object.assign({checked:ro.has(li)},xa)}).filter(ei=>{let{disabled:ki}=ei;return ki}),bi=!!vi.length&&vi.length===Ur.length,na=bi&&vi.every(ei=>{let{checked:ki}=ei;return ki}),$i=bi&&vi.some(ei=>{let{checked:ki}=ei;return ki});ta=b.createElement(Gr.default,{checked:bi?na:!!Ur.length&&oi,indeterminate:bi?!na&&$i:!oi&&Ei,onChange:mi,disabled:Ur.length===0||bi,"aria-label":qo?"Custom selection":"Select all",skipGroup:!0}),Wi=!Nr&&b.createElement("div",{className:`${Mr}-selection`},ta,qo)}let bo;Kn==="radio"?bo=(qo,vi,bi)=>{const na=no(vi,bi),$i=ro.has(na),ei=jo.get(na);return{node:b.createElement(Dr.ZP,Object.assign({},ei,{checked:$i,onClick:ki=>{var li;ki.stopPropagation(),(li=ei==null?void 0:ei.onClick)===null||li===void 0||li.call(ei,ki)},onChange:ki=>{var li;ro.has(na)||Ko(na,!0,[na],ki.nativeEvent),(li=ei==null?void 0:ei.onChange)===null||li===void 0||li.call(ei,ki)}})),checked:$i}}:bo=(qo,vi,bi)=>{var na;const $i=no(vi,bi),ei=ro.has($i),ki=Hi.has($i),li=jo.get($i);let xa;return Lo==="nest"?xa=ki:xa=(na=li==null?void 0:li.indeterminate)!==null&&na!==void 0?na:ki,{node:b.createElement(Gr.default,Object.assign({},li,{indeterminate:xa,checked:ei,skipGroup:!0,onClick:Yi=>{var Ta;Yi.stopPropagation(),(Ta=li==null?void 0:li.onClick)===null||Ta===void 0||Ta.call(li,Yi)},onChange:Yi=>{var Ta;const{nativeEvent:$a}=Yi,{shiftKey:ll}=$a,xi=Yo.findIndex(ka=>ka===$i),ql=Ni.some(ka=>Yo.includes(ka));if(ll&&Lr&&ql){const ka=so(xi,Yo,ro),el=Array.from(ro);Qn==null||Qn(!ei,el.map(Va=>ao(Va)),ka.map(Va=>ao(Va))),Wo(el,"multiple")}else{const ka=Ni;if(Lr){const el=ei?(0,lr._5)(ka,$i):(0,lr.L0)(ka,$i);Ko($i,!ei,el,$a)}else{const el=(0,sr.S)([].concat((0,kn.Z)(ka),[$i]),!0,Ho,Fi),{checkedKeys:Va,halfCheckedKeys:Za}=el;let Ci=Va;if(ei){const Ua=new Set(Va);Ua.delete($i),Ci=(0,sr.S)(Array.from(Ua),{checked:!1,halfCheckedKeys:Za},Ho,Fi).checkedKeys}Ko($i,!ei,Ci,$a)}}Kr(ei?null:xi),(Ta=li==null?void 0:li.onChange)===null||Ta===void 0||Ta.call(li,Yi)}})),checked:ei}};const Do=(qo,vi,bi)=>{const{node:na,checked:$i}=bo(qo,vi,bi);return fr?fr($i,vi,bi,na):na};if(!ho.includes(Ar))if(ho.findIndex(qo=>{var vi;return((vi=qo[_n])===null||vi===void 0?void 0:vi.columnType)==="EXPAND_COLUMN"})===0){const[qo,...vi]=ho;ho=[qo,Ar].concat((0,kn.Z)(vi))}else ho=[Ar].concat((0,kn.Z)(ho));const ai=ho.indexOf(Ar);ho=ho.filter((qo,vi)=>qo!==Ar||vi===ai);const di=ho[ai-1],si=ho[ai+1];let da=Ir;da===void 0&&((si==null?void 0:si.fixed)!==void 0?da=si.fixed:(di==null?void 0:di.fixed)!==void 0&&(da=di.fixed)),da&&di&&((Ao=di[_n])===null||Ao===void 0?void 0:Ao.columnType)==="EXPAND_COLUMN"&&di.fixed===void 0&&(di.fixed=da);const _i=xe()(`${Mr}-selection-col`,{[`${Mr}-selection-col-with-dropdown`]:Wn&&Kn==="checkbox"}),Fa=()=>ge!=null&&ge.columnTitle?typeof ge.columnTitle=="function"?ge.columnTitle(ta):ge.columnTitle:Wi,Ti={fixed:da,width:Yn,className:`${Mr}-selection-column`,title:Fa(),render:Do,onCell:ge.onCell,[_n]:{className:_i}};return ho.map(qo=>qo===Ar?Ti:qo)},[no,Ur,ge,Ni,Mi,Hi,Yn,ji,Lo,jo,Qn,Ko,Fi]),Mi]},_o=ee(2738);function Uo(ye,ge){return ye._antProxy=ye._antProxy||{},Object.keys(ge).forEach(ct=>{if(!(ct in ye._antProxy)){const Nt=ye[ct];ye._antProxy[ct]=Nt,ye[ct]=ge[ct]}}),ye}function ni(ye,ge){return(0,b.useImperativeHandle)(ye,()=>{const ct=ge(),{nativeElement:Nt}=ct;return typeof Proxy!="undefined"?new Proxy(Nt,{get(qt,ln){return ct[ln]?ct[ln]:Reflect.get(qt,ln)}}):Uo(Nt,ct)})}var Zi=ee(83010),Si=ee(48755),Ai=ee(38406),Oi=ee(83397),Go=ee(31756),Di=ee(13783),ya=ee(85981),Qi=ee(31709),Qo=ee(29787),Ha=ee(57700);function Ba(ye){return ge=>{const{prefixCls:ct,onExpand:Nt,record:qt,expanded:ln,expandable:Dn}=ge,yn=`${ct}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:Fn=>{Nt(qt,Fn),Fn.stopPropagation()},className:xe()(yn,{[`${yn}-spaced`]:!Dn,[`${yn}-expanded`]:Dn&&ln,[`${yn}-collapsed`]:Dn&&!ln}),"aria-label":ln?ye.collapse:ye.expand,"aria-expanded":ln})}}var wo=Ba;function Eo(ye){return(ct,Nt)=>{const qt=ct.querySelector(`.${ye}-container`);let ln=Nt;if(qt){const Dn=getComputedStyle(qt),yn=parseInt(Dn.borderLeftWidth,10),Fn=parseInt(Dn.borderRightWidth,10);ln=Nt-yn-Fn}return ln}}const Zr=(ye,ge)=>"key"in ye&&ye.key!==void 0&&ye.key!==null?ye.key:ye.dataIndex?Array.isArray(ye.dataIndex)?ye.dataIndex.join("."):ye.dataIndex:ge;function Pr(ye,ge){return ge?`${ge}-${ye}`:`${ye}`}const Jr=(ye,ge)=>typeof ye=="function"?ye(ge):ye,mo=(ye,ge)=>{const ct=Jr(ye,ge);return Object.prototype.toString.call(ct)==="[object Object]"?"":ct};var ui={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Zo=ui,$o=ee(7657),Ro=function(ge,ct){return b.createElement($o.Z,(0,$e.Z)({},ge,{ref:ct,icon:Zo}))},hi=b.forwardRef(Ro),wi=hi,Bi=ee(9981),qi=ee(40192);function oa(ye){const ge=b.useRef(ye),ct=(0,qi.Z)();return[()=>ge.current,Nt=>{ge.current=Nt,ct()}]}var Ui=ee(7939),ja=ee(584),Pa=ee(93041),ia=ee(78857),Sa=ee(18287),Wa=ee(47472),Ra=ee(49397),pl=ye=>{const{value:ge,filterSearch:ct,tablePrefixCls:Nt,locale:qt,onChange:ln}=ye;return ct?b.createElement("div",{className:`${Nt}-filter-dropdown-search`},b.createElement(Ra.Z,{prefix:b.createElement(Wa.Z,null),placeholder:qt.filterSearchPlaceholder,onChange:ln,value:ge,htmlSize:1,className:`${Nt}-filter-dropdown-search-input`})):null},kl=ee(10228);const Al=ye=>{const{keyCode:ge}=ye;ge===kl.Z.ENTER&&ye.stopPropagation()};var ml=b.forwardRef((ye,ge)=>b.createElement("div",{className:ye.className,onClick:ct=>ct.stopPropagation(),onKeyDown:Al,ref:ge},ye.children));function qa(ye){let ge=[];return(ye||[]).forEach(ct=>{let{value:Nt,children:qt}=ct;ge.push(Nt),qt&&(ge=[].concat((0,kn.Z)(ge),(0,kn.Z)(qa(qt))))}),ge}function rl(ye){return ye.some(ge=>{let{children:ct}=ge;return ct})}function vl(ye,ge){return typeof ge=="string"||typeof ge=="number"?ge==null?void 0:ge.toString().toLowerCase().includes(ye.trim().toLowerCase()):!1}function El(ye){let{filters:ge,prefixCls:ct,filteredKeys:Nt,filterMultiple:qt,searchValue:ln,filterSearch:Dn}=ye;return ge.map((yn,Fn)=>{const Mn=String(yn.value);if(yn.children)return{key:Mn||Fn,label:yn.text,popupClassName:`${ct}-dropdown-submenu`,children:El({filters:yn.children,prefixCls:ct,filteredKeys:Nt,filterMultiple:qt,searchValue:ln,filterSearch:Dn})};const ar=qt?Gr.default:Dr.ZP,Qn={key:yn.value!==void 0?Mn:Fn,label:b.createElement(b.Fragment,null,b.createElement(ar,{checked:Nt.includes(Mn)}),b.createElement("span",null,yn.text))};return ln.trim()?typeof Dn=="function"?Dn(ln,yn)?Qn:null:vl(ln,yn.text)?Qn:null:Qn})}function ul(ye){return ye||[]}var ea=ye=>{var ge,ct,Nt,qt;const{tablePrefixCls:ln,prefixCls:Dn,column:yn,dropdownPrefixCls:Fn,columnKey:Mn,filterOnClose:ar,filterMultiple:Qn,filterMode:Yn="menu",filterSearch:Kn=!1,filterState:Wn,triggerFilter:Ir,locale:fr,children:Nr,getPopupContainer:Lr,rootClassName:Mr}=ye,{filterResetToDefaultFilteredValue:jr,defaultFilteredValue:Yr,filterDropdownProps:ao={},filterDropdownOpen:no,filterDropdownVisible:Lo,onFilterDropdownVisibleChange:xo,onFilterDropdownOpenChange:po}=yn,[Mo,lo]=b.useState(!1),so=!!(Wn&&(!((ge=Wn.filteredKeys)===null||ge===void 0)&&ge.length||Wn.forceFiltered)),Kr=bo=>{var Do;lo(bo),(Do=ao.onOpenChange)===null||Do===void 0||Do.call(ao,bo),po==null||po(bo),xo==null||xo(bo)},zr=(qt=(Nt=(ct=ao.open)!==null&&ct!==void 0?ct:no)!==null&&Nt!==void 0?Nt:Lo)!==null&&qt!==void 0?qt:Mo,oo=Wn==null?void 0:Wn.filteredKeys,[co,Co]=oa(ul(oo)),Ur=bo=>{let{selectedKeys:Do}=bo;Co(Do)},Ho=(bo,Do)=>{let{node:ai,checked:di}=Do;Ur(Qn?{selectedKeys:bo}:{selectedKeys:di&&ai.key?[ai.key]:[]})};b.useEffect(()=>{Mo&&Ur({selectedKeys:ul(oo)})},[oo]);const[jo,Fi]=b.useState([]),Ni=bo=>{Fi(bo)},[yi,Mi]=b.useState(""),Hi=bo=>{const{value:Do}=bo.target;Mi(Do)};b.useEffect(()=>{Mo||Mi("")},[Mo]);const Wo=bo=>{const Do=bo!=null&&bo.length?bo:null;if(Do===null&&(!Wn||!Wn.filteredKeys)||(0,be.Z)(Do,Wn==null?void 0:Wn.filteredKeys,!0))return null;Ir({column:yn,key:Mn,filteredKeys:Do})},Ko=()=>{Kr(!1),Wo(co())},ji=function(){let{confirm:bo,closeDropdown:Do}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};bo&&Wo([]),Do&&Kr(!1),Mi(""),Co(jr?(Yr||[]).map(ai=>String(ai)):[])},Xi=function(){let{closeDropdown:bo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};bo&&Kr(!1),Wo(co())},vo=(bo,Do)=>{Do.source==="trigger"&&(bo&&oo!==void 0&&Co(ul(oo)),Kr(bo),!bo&&!yn.filterDropdown&&ar&&Ko())},Ao=xe()({[`${Fn}-menu-without-submenu`]:!rl(yn.filters||[])}),ho=bo=>{if(bo.target.checked){const Do=qa(yn==null?void 0:yn.filters).map(ai=>String(ai));Co(Do)}else Co([])},ro=bo=>{let{filters:Do}=bo;return(Do||[]).map((ai,di)=>{const si=String(ai.value),da={title:ai.text,key:ai.value!==void 0?si:String(di)};return ai.children&&(da.children=ro({filters:ai.children})),da})},Yo=bo=>{var Do;return Object.assign(Object.assign({},bo),{text:bo.title,value:bo.key,children:((Do=bo.children)===null||Do===void 0?void 0:Do.map(ai=>Yo(ai)))||[]})};let oi;const{direction:Ei,renderEmpty:mi}=b.useContext(Si.E_);if(typeof yn.filterDropdown=="function")oi=yn.filterDropdown({prefixCls:`${Fn}-custom`,setSelectedKeys:bo=>Ur({selectedKeys:bo}),selectedKeys:co(),confirm:Xi,clearFilters:ji,filters:yn.filters,visible:zr,close:()=>{Kr(!1)}});else if(yn.filterDropdown)oi=yn.filterDropdown;else{const bo=co()||[],Do=()=>{var di,si;const da=(di=mi==null?void 0:mi("Table.filter"))!==null&&di!==void 0?di:b.createElement(ja.Z,{image:ja.Z.PRESENTED_IMAGE_SIMPLE,description:fr.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((yn.filters||[]).length===0)return da;if(Yn==="tree")return b.createElement(b.Fragment,null,b.createElement(pl,{filterSearch:Kn,value:yi,onChange:Hi,tablePrefixCls:ln,locale:fr}),b.createElement("div",{className:`${ln}-filter-dropdown-tree`},Qn?b.createElement(Gr.default,{checked:bo.length===qa(yn.filters).length,indeterminate:bo.length>0&&bo.lengthtypeof Kn=="function"?Kn(yi,Yo(Ti)):vl(yi,Ti.title):void 0})));const _i=El({filters:yn.filters||[],filterSearch:Kn,prefixCls:Dn,filteredKeys:co(),filterMultiple:Qn,searchValue:yi}),Fa=_i.every(Ti=>Ti===null);return b.createElement(b.Fragment,null,b.createElement(pl,{filterSearch:Kn,value:yi,onChange:Hi,tablePrefixCls:ln,locale:fr}),Fa?da:b.createElement(Pa.default,{selectable:!0,multiple:Qn,prefixCls:`${Fn}-menu`,className:Ao,onSelect:Ur,onDeselect:Ur,selectedKeys:bo,getPopupContainer:Lr,openKeys:jo,onOpenChange:Ni,items:_i}))},ai=()=>jr?(0,be.Z)((Yr||[]).map(di=>String(di)),bo,!0):bo.length===0;oi=b.createElement(b.Fragment,null,Do(),b.createElement("div",{className:`${Dn}-dropdown-btns`},b.createElement(Ui.ZP,{type:"link",size:"small",disabled:ai(),onClick:()=>ji()},fr.filterReset),b.createElement(Ui.ZP,{type:"primary",size:"small",onClick:Ko},fr.filterConfirm)))}yn.filterDropdown&&(oi=b.createElement(ia.J,{selectable:void 0},oi)),oi=b.createElement(ml,{className:`${Dn}-dropdown`},oi);const Wi=()=>{let bo;return typeof yn.filterIcon=="function"?bo=yn.filterIcon(so):yn.filterIcon?bo=yn.filterIcon:bo=b.createElement(wi,null),b.createElement("span",{role:"button",tabIndex:-1,className:xe()(`${Dn}-trigger`,{active:so}),onClick:Do=>{Do.stopPropagation()}},bo)},ta=(0,Bi.Z)({trigger:["click"],placement:Ei==="rtl"?"bottomLeft":"bottomRight",children:Wi(),getPopupContainer:Lr},Object.assign(Object.assign({},ao),{rootClassName:xe()(Mr,ao.rootClassName),open:zr,onOpenChange:vo,dropdownRender:()=>typeof(ao==null?void 0:ao.dropdownRender)=="function"?ao.dropdownRender(oi):oi}));return b.createElement("div",{className:`${Dn}-column`},b.createElement("span",{className:`${ln}-column-title`},Nr),b.createElement(Or.Z,Object.assign({},ta)))};const Gi=(ye,ge,ct)=>{let Nt=[];return(ye||[]).forEach((qt,ln)=>{var Dn;const yn=Pr(ln,ct);if(qt.filters||"filterDropdown"in qt||"onFilter"in qt)if("filteredValue"in qt){let Fn=qt.filteredValue;"filterDropdown"in qt||(Fn=(Dn=Fn==null?void 0:Fn.map(String))!==null&&Dn!==void 0?Dn:Fn),Nt.push({column:qt,key:Zr(qt,yn),filteredKeys:Fn,forceFiltered:qt.filtered})}else Nt.push({column:qt,key:Zr(qt,yn),filteredKeys:ge&&qt.defaultFilteredValue?qt.defaultFilteredValue:void 0,forceFiltered:qt.filtered});"children"in qt&&(Nt=[].concat((0,kn.Z)(Nt),(0,kn.Z)(Gi(qt.children,ge,yn))))}),Nt};function pi(ye,ge,ct,Nt,qt,ln,Dn,yn,Fn){return ct.map((Mn,ar)=>{const Qn=Pr(ar,yn),{filterOnClose:Yn=!0,filterMultiple:Kn=!0,filterMode:Wn,filterSearch:Ir}=Mn;let fr=Mn;if(fr.filters||fr.filterDropdown){const Nr=Zr(fr,Qn),Lr=Nt.find(Mr=>{let{key:jr}=Mr;return Nr===jr});fr=Object.assign(Object.assign({},fr),{title:Mr=>b.createElement(ea,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:ge,column:fr,columnKey:Nr,filterState:Lr,filterOnClose:Yn,filterMultiple:Kn,filterMode:Wn,filterSearch:Ir,triggerFilter:ln,locale:qt,getPopupContainer:Dn,rootClassName:Fn},Jr(Mn.title,Mr))})}return"children"in fr&&(fr=Object.assign(Object.assign({},fr),{children:pi(ye,ge,fr.children,Nt,qt,ln,Dn,Qn,Fn)})),fr})}const zo=ye=>{const ge={};return ye.forEach(ct=>{let{key:Nt,filteredKeys:qt,column:ln}=ct;const Dn=Nt,{filters:yn,filterDropdown:Fn}=ln;if(Fn)ge[Dn]=qt||null;else if(Array.isArray(qt)){const Mn=qa(yn);ge[Dn]=Mn.filter(ar=>qt.includes(String(ar)))}else ge[Dn]=null}),ge},Po=(ye,ge,ct)=>ge.reduce((qt,ln)=>{const{column:{onFilter:Dn,filters:yn},filteredKeys:Fn}=ln;return Dn&&Fn&&Fn.length?qt.map(Mn=>Object.assign({},Mn)).filter(Mn=>Fn.some(ar=>{const Qn=qa(yn),Yn=Qn.findIndex(Wn=>String(Wn)===String(ar)),Kn=Yn!==-1?Qn[Yn]:ar;return Mn[ct]&&(Mn[ct]=Po(Mn[ct],ge,ct)),Dn(Kn,Mn)})):qt},ye),ci=ye=>ye.flatMap(ge=>"children"in ge?[ge].concat((0,kn.Z)(ci(ge.children||[]))):[ge]);var gi=ye=>{const{prefixCls:ge,dropdownPrefixCls:ct,mergedColumns:Nt,onFilterChange:qt,getPopupContainer:ln,locale:Dn,rootClassName:yn}=ye,Fn=(0,xr.ln)("Table"),Mn=b.useMemo(()=>ci(Nt||[]),[Nt]),[ar,Qn]=b.useState(()=>Gi(Mn,!0)),Yn=b.useMemo(()=>{const fr=Gi(Mn,!1);if(fr.length===0)return fr;let Nr=!0,Lr=!0;if(fr.forEach(Mr=>{let{filteredKeys:jr}=Mr;jr!==void 0?Nr=!1:Lr=!1}),Nr){const Mr=(Mn||[]).map((jr,Yr)=>Zr(jr,Pr(Yr)));return ar.filter(jr=>{let{key:Yr}=jr;return Mr.includes(Yr)}).map(jr=>{const Yr=Mn[Mr.findIndex(ao=>ao===jr.key)];return Object.assign(Object.assign({},jr),{column:Object.assign(Object.assign({},jr.column),Yr),forceFiltered:Yr.filtered})})}return fr},[Mn,ar]),Kn=b.useMemo(()=>zo(Yn),[Yn]),Wn=fr=>{const Nr=Yn.filter(Lr=>{let{key:Mr}=Lr;return Mr!==fr.key});Nr.push(fr),Qn(Nr),qt(zo(Nr),Nr)};return[fr=>pi(ge,ct,fr,Yn,Dn,Wn,ln,void 0,yn),Yn,Kn]},aa=(ye,ge,ct)=>{const Nt=b.useRef({});function qt(ln){var Dn;if(!Nt.current||Nt.current.data!==ye||Nt.current.childrenColumnName!==ge||Nt.current.getRowKey!==ct){let Fn=function(Mn){Mn.forEach((ar,Qn)=>{const Yn=ct(ar,Qn);yn.set(Yn,ar),ar&&typeof ar=="object"&&ge in ar&&Fn(ar[ge]||[])})};const yn=new Map;Fn(ye),Nt.current={data:ye,childrenColumnName:ge,kvMap:yn,getRowKey:ct}}return(Dn=Nt.current.kvMap)===null||Dn===void 0?void 0:Dn.get(ln)}return[qt]},zi=function(ye,ge){var ct={};for(var Nt in ye)Object.prototype.hasOwnProperty.call(ye,Nt)&&ge.indexOf(Nt)<0&&(ct[Nt]=ye[Nt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Nt=Object.getOwnPropertySymbols(ye);qt{const ln=ye[qt];typeof ln!="function"&&(ct[qt]=ln)}),ct}function ca(ye,ge,ct){const Nt=ct&&typeof ct=="object"?ct:{},{total:qt=0}=Nt,ln=zi(Nt,["total"]),[Dn,yn]=(0,b.useState)(()=>({current:"defaultCurrent"in ln?ln.defaultCurrent:1,pageSize:"defaultPageSize"in ln?ln.defaultPageSize:la})),Fn=(0,Bi.Z)(Dn,ln,{total:qt>0?qt:ye}),Mn=Math.ceil((qt||ye)/Fn.pageSize);Fn.current>Mn&&(Fn.current=Mn||1);const ar=(Yn,Kn)=>{yn({current:Yn!=null?Yn:1,pageSize:Kn||Fn.pageSize})},Qn=(Yn,Kn)=>{var Wn;ct&&((Wn=ct.onChange)===null||Wn===void 0||Wn.call(ct,Yn,Kn)),ar(Yn,Kn),ge(Yn,Kn||(Fn==null?void 0:Fn.pageSize))};return ct===!1?[{},()=>{}]:[Object.assign(Object.assign({},Fn),{onChange:Qn}),ar]}var ua=ca,_a=ee(89489),Il=ee(59477),Cs=ee(25399);const Rl="ascend",dl="descend",ol=ye=>typeof ye.sorter=="object"&&typeof ye.sorter.multiple=="number"?ye.sorter.multiple:!1,Na=ye=>typeof ye=="function"?ye:ye&&typeof ye=="object"&&ye.compare?ye.compare:!1,yl=(ye,ge)=>ge?ye[ye.indexOf(ge)+1]:ye[0],il=(ye,ge,ct)=>{let Nt=[];const qt=(ln,Dn)=>{Nt.push({column:ln,key:Zr(ln,Dn),multiplePriority:ol(ln),sortOrder:ln.sortOrder})};return(ye||[]).forEach((ln,Dn)=>{const yn=Pr(Dn,ct);ln.children?("sortOrder"in ln&&qt(ln,yn),Nt=[].concat((0,kn.Z)(Nt),(0,kn.Z)(il(ln.children,ge,yn)))):ln.sorter&&("sortOrder"in ln?qt(ln,yn):ge&&ln.defaultSortOrder&&Nt.push({column:ln,key:Zr(ln,yn),multiplePriority:ol(ln),sortOrder:ln.defaultSortOrder}))}),Nt},Ul=(ye,ge,ct,Nt,qt,ln,Dn,yn)=>(ge||[]).map((Mn,ar)=>{const Qn=Pr(ar,yn);let Yn=Mn;if(Yn.sorter){const Kn=Yn.sortDirections||qt,Wn=Yn.showSorterTooltip===void 0?Dn:Yn.showSorterTooltip,Ir=Zr(Yn,Qn),fr=ct.find(xo=>{let{key:po}=xo;return po===Ir}),Nr=fr?fr.sortOrder:null,Lr=yl(Kn,Nr);let Mr;if(Mn.sortIcon)Mr=Mn.sortIcon({sortOrder:Nr});else{const xo=Kn.includes(Rl)&&b.createElement(Il.Z,{className:xe()(`${ye}-column-sorter-up`,{active:Nr===Rl})}),po=Kn.includes(dl)&&b.createElement(_a.Z,{className:xe()(`${ye}-column-sorter-down`,{active:Nr===dl})});Mr=b.createElement("span",{className:xe()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(xo&&po)})},b.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},xo,po))}const{cancelSort:jr,triggerAsc:Yr,triggerDesc:ao}=ln||{};let no=jr;Lr===dl?no=ao:Lr===Rl&&(no=Yr);const Lo=typeof Wn=="object"?Object.assign({title:no},Wn):{title:no};Yn=Object.assign(Object.assign({},Yn),{className:xe()(Yn.className,{[`${ye}-column-sort`]:Nr}),title:xo=>{const po=`${ye}-column-sorters`,Mo=b.createElement("span",{className:`${ye}-column-title`},Jr(Mn.title,xo)),lo=b.createElement("div",{className:po},Mo,Mr);return Wn?typeof Wn!="boolean"&&(Wn==null?void 0:Wn.target)==="sorter-icon"?b.createElement("div",{className:`${po} ${ye}-column-sorters-tooltip-target-sorter`},Mo,b.createElement(Cs.Z,Object.assign({},Lo),Mr)):b.createElement(Cs.Z,Object.assign({},Lo),lo):lo},onHeaderCell:xo=>{var po;const Mo=((po=Mn.onHeaderCell)===null||po===void 0?void 0:po.call(Mn,xo))||{},lo=Mo.onClick,so=Mo.onKeyDown;Mo.onClick=oo=>{Nt({column:Mn,key:Ir,sortOrder:Lr,multiplePriority:ol(Mn)}),lo==null||lo(oo)},Mo.onKeyDown=oo=>{oo.keyCode===kl.Z.ENTER&&(Nt({column:Mn,key:Ir,sortOrder:Lr,multiplePriority:ol(Mn)}),so==null||so(oo))};const Kr=mo(Mn.title,{}),zr=Kr==null?void 0:Kr.toString();return Nr&&(Mo["aria-sort"]=Nr==="ascend"?"ascending":"descending"),Mo["aria-label"]=zr||"",Mo.className=xe()(Mo.className,`${ye}-column-has-sorters`),Mo.tabIndex=0,Mn.ellipsis&&(Mo.title=(Kr!=null?Kr:"").toString()),Mo}})}return"children"in Yn&&(Yn=Object.assign(Object.assign({},Yn),{children:Ul(ye,Yn.children,ct,Nt,qt,ln,Dn,Qn)})),Yn}),Ws=ye=>{const{column:ge,sortOrder:ct}=ye;return{column:ge,order:ct,field:ge.dataIndex,columnKey:ge.key}},Ss=ye=>{const ge=ye.filter(ct=>{let{sortOrder:Nt}=ct;return Nt}).map(Ws);if(ge.length===0&&ye.length){const ct=ye.length-1;return Object.assign(Object.assign({},Ws(ye[ct])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ge.length<=1?ge[0]||{}:ge},Ol=(ye,ge,ct)=>{const Nt=ge.slice().sort((Dn,yn)=>yn.multiplePriority-Dn.multiplePriority),qt=ye.slice(),ln=Nt.filter(Dn=>{let{column:{sorter:yn},sortOrder:Fn}=Dn;return Na(yn)&&Fn});return ln.length?qt.sort((Dn,yn)=>{for(let Fn=0;Fn{const yn=Dn[ct];return yn?Object.assign(Object.assign({},Dn),{[ct]:Ol(yn,ge,ct)}):Dn}):qt};var _s=ye=>{const{prefixCls:ge,mergedColumns:ct,sortDirections:Nt,tableLocale:qt,showSorterTooltip:ln,onSorterChange:Dn}=ye,[yn,Fn]=b.useState(il(ct,!0)),Mn=(Ir,fr)=>{const Nr=[];return Ir.forEach((Lr,Mr)=>{const jr=Pr(Mr,fr);if(Nr.push(Zr(Lr,jr)),Array.isArray(Lr.children)){const Yr=Mn(Lr.children,jr);Nr.push.apply(Nr,(0,kn.Z)(Yr))}}),Nr},ar=b.useMemo(()=>{let Ir=!0;const fr=il(ct,!1);if(!fr.length){const jr=Mn(ct);return yn.filter(Yr=>{let{key:ao}=Yr;return jr.includes(ao)})}const Nr=[];function Lr(jr){Ir?Nr.push(jr):Nr.push(Object.assign(Object.assign({},jr),{sortOrder:null}))}let Mr=null;return fr.forEach(jr=>{Mr===null?(Lr(jr),jr.sortOrder&&(jr.multiplePriority===!1?Ir=!1:Mr=!0)):(Mr&&jr.multiplePriority!==!1||(Ir=!1),Lr(jr))}),Nr},[ct,yn]),Qn=b.useMemo(()=>{var Ir,fr;const Nr=ar.map(Lr=>{let{column:Mr,sortOrder:jr}=Lr;return{column:Mr,order:jr}});return{sortColumns:Nr,sortColumn:(Ir=Nr[0])===null||Ir===void 0?void 0:Ir.column,sortOrder:(fr=Nr[0])===null||fr===void 0?void 0:fr.order}},[ar]),Yn=Ir=>{let fr;Ir.multiplePriority===!1||!ar.length||ar[0].multiplePriority===!1?fr=[Ir]:fr=[].concat((0,kn.Z)(ar.filter(Nr=>{let{key:Lr}=Nr;return Lr!==Ir.key})),[Ir]),Fn(fr),Dn(Ss(fr),fr)};return[Ir=>Ul(ge,Ir,ar,Yn,Nt,qt,ln),ar,Qn,()=>Ss(ar)]};const Gl=(ye,ge)=>ye.map(Nt=>{const qt=Object.assign({},Nt);return qt.title=Jr(Nt.title,ge),"children"in qt&&(qt.children=Gl(qt.children,ge)),qt});var ws=ye=>[b.useCallback(ct=>Gl(ct,ye),[ye])],Ks=Wr((ye,ge)=>{const{_renderTimes:ct}=ye,{_renderTimes:Nt}=ge;return ct!==Nt}),Ll=Mt((ye,ge)=>{const{_renderTimes:ct}=ye,{_renderTimes:Nt}=ge;return ct!==Nt}),No=ee(36237),Fl=ee(17835),bl=ee(63356),cc=ee(16931),uc=ee(51636),Es=ye=>{const{componentCls:ge,lineWidth:ct,lineType:Nt,tableBorderColor:qt,tableHeaderBg:ln,tablePaddingVertical:Dn,tablePaddingHorizontal:yn,calc:Fn}=ye,Mn=`${(0,No.unit)(ct)} ${Nt} ${qt}`,ar=(Qn,Yn,Kn)=>({[`&${ge}-${Qn}`]:{[`> ${ge}-container`]:{[`> ${ge}-content, > ${ge}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ge}-expanded-row-fixed`]:{margin:`${(0,No.unit)(Fn(Yn).mul(-1).equal())} ${(0,No.unit)(Fn(Fn(Kn).add(ct)).mul(-1).equal())}`}}}}}});return{[`${ge}-wrapper`]:{[`${ge}${ge}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ge}-title`]:{border:Mn,borderBottom:0},[`> ${ge}-container`]:{borderInlineStart:Mn,borderTop:Mn,[` > ${ge}-content, > ${ge}-header, > ${ge}-body, > ${ge}-summary `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Mn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Mn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ge}-cell-fix-right-first::after`]:{borderInlineEnd:Mn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ge}-expanded-row-fixed`]:{margin:`${(0,No.unit)(Fn(Dn).mul(-1).equal())} ${(0,No.unit)(Fn(Fn(yn).add(ct)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:ct,bottom:0,borderInlineEnd:Mn,content:'""'}}}}}},[`&${ge}-scroll-horizontal`]:{[`> ${ge}-container > ${ge}-body`]:{"> table > tbody":{[` > tr${ge}-expanded-row, > tr${ge}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},ar("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle)),ar("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall)),{[`> ${ge}-footer`]:{border:Mn,borderTop:0}}),[`${ge}-cell`]:{[`${ge}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,No.unit)(ct)} 0 ${(0,No.unit)(ct)} ${ln}`}},[`${ge}-bordered ${ge}-cell-scrollbar`]:{borderInlineEnd:Mn}}}},$l=ye=>{const{componentCls:ge}=ye;return{[`${ge}-wrapper`]:{[`${ge}-cell-ellipsis`]:Object.assign(Object.assign({},bl.vS),{wordBreak:"keep-all",[` &${ge}-cell-fix-left-last, &${ge}-cell-fix-right-first `]:{overflow:"visible",[`${ge}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ge}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dc=ye=>{const{componentCls:ge}=ye;return{[`${ge}-wrapper`]:{[`${ge}-tbody > tr${ge}-placeholder`]:{textAlign:"center",color:ye.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ye.colorBgContainer}}}}},Gs=ye=>{const{componentCls:ge,antCls:ct,motionDurationSlow:Nt,lineWidth:qt,paddingXS:ln,lineType:Dn,tableBorderColor:yn,tableExpandIconBg:Fn,tableExpandColumnWidth:Mn,borderRadius:ar,tablePaddingVertical:Qn,tablePaddingHorizontal:Yn,tableExpandedRowBg:Kn,paddingXXS:Wn,expandIconMarginTop:Ir,expandIconSize:fr,expandIconHalfInner:Nr,expandIconScale:Lr,calc:Mr}=ye,jr=`${(0,No.unit)(qt)} ${Dn} ${yn}`,Yr=Mr(Wn).sub(qt).equal();return{[`${ge}-wrapper`]:{[`${ge}-expand-icon-col`]:{width:Mn},[`${ge}-row-expand-icon-cell`]:{textAlign:"center",[`${ge}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ge}-row-indent`]:{height:1,float:"left"},[`${ge}-row-expand-icon`]:Object.assign(Object.assign({},(0,bl.Nd)(ye)),{position:"relative",float:"left",width:fr,height:fr,color:"inherit",lineHeight:(0,No.unit)(fr),background:Fn,border:jr,borderRadius:ar,transform:`scale(${Lr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Nt} ease-out`,content:'""'},"&::before":{top:Nr,insetInlineEnd:Yr,insetInlineStart:Yr,height:qt},"&::after":{top:Yr,bottom:Yr,insetInlineStart:Nr,width:qt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ge}-row-indent + ${ge}-row-expand-icon`]:{marginTop:Ir,marginInlineEnd:ln},[`tr${ge}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Kn}},[`${ct}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ge}-expanded-row-fixed`]:{position:"relative",margin:`${(0,No.unit)(Mr(Qn).mul(-1).equal())} ${(0,No.unit)(Mr(Yn).mul(-1).equal())}`,padding:`${(0,No.unit)(Qn)} ${(0,No.unit)(Yn)}`}}}},Xs=ye=>{const{componentCls:ge,antCls:ct,iconCls:Nt,tableFilterDropdownWidth:qt,tableFilterDropdownSearchWidth:ln,paddingXXS:Dn,paddingXS:yn,colorText:Fn,lineWidth:Mn,lineType:ar,tableBorderColor:Qn,headerIconColor:Yn,fontSizeSM:Kn,tablePaddingHorizontal:Wn,borderRadius:Ir,motionDurationSlow:fr,colorTextDescription:Nr,colorPrimary:Lr,tableHeaderFilterActiveBg:Mr,colorTextDisabled:jr,tableFilterDropdownBg:Yr,tableFilterDropdownHeight:ao,controlItemBgHover:no,controlItemBgActive:Lo,boxShadowSecondary:xo,filterDropdownMenuBg:po,calc:Mo}=ye,lo=`${ct}-dropdown`,so=`${ge}-filter-dropdown`,Kr=`${ct}-tree`,zr=`${(0,No.unit)(Mn)} ${ar} ${Qn}`;return[{[`${ge}-wrapper`]:{[`${ge}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ge}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Mo(Dn).mul(-1).equal(),marginInline:`${(0,No.unit)(Dn)} ${(0,No.unit)(Mo(Wn).div(2).mul(-1).equal())}`,padding:`0 ${(0,No.unit)(Dn)}`,color:Yn,fontSize:Kn,borderRadius:Ir,cursor:"pointer",transition:`all ${fr}`,"&:hover":{color:Nr,background:Mr},"&.active":{color:Lr}}}},{[`${ct}-dropdown`]:{[so]:Object.assign(Object.assign({},(0,bl.Wf)(ye)),{minWidth:qt,backgroundColor:Yr,borderRadius:Ir,boxShadow:xo,overflow:"hidden",[`${lo}-menu`]:{maxHeight:ao,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:po,"&:empty::after":{display:"block",padding:`${(0,No.unit)(yn)} 0`,color:jr,fontSize:Kn,textAlign:"center",content:'"Not Found"'}},[`${so}-tree`]:{paddingBlock:`${(0,No.unit)(yn)} 0`,paddingInline:yn,[Kr]:{padding:0},[`${Kr}-treenode ${Kr}-node-content-wrapper:hover`]:{backgroundColor:no},[`${Kr}-treenode-checkbox-checked ${Kr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Lo}}},[`${so}-search`]:{padding:yn,borderBottom:zr,"&-input":{input:{minWidth:ln},[Nt]:{color:jr}}},[`${so}-checkall`]:{width:"100%",marginBottom:Dn,marginInlineStart:Dn},[`${so}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,No.unit)(Mo(yn).sub(Mn).equal())} ${(0,No.unit)(yn)}`,overflow:"hidden",borderTop:zr}})}},{[`${ct}-dropdown ${so}, ${so}-submenu`]:{[`${ct}-checkbox-wrapper + span`]:{paddingInlineStart:yn,color:Fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Xl=ye=>{const{componentCls:ge,lineWidth:ct,colorSplit:Nt,motionDurationSlow:qt,zIndexTableFixed:ln,tableBg:Dn,zIndexTableSticky:yn,calc:Fn}=ye,Mn=Nt;return{[`${ge}-wrapper`]:{[` ${ge}-cell-fix-left, ${ge}-cell-fix-right `]:{position:"sticky !important",zIndex:ln,background:Dn},[` ${ge}-cell-fix-left-first::after, ${ge}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Fn(ct).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${ge}-cell-fix-left-all::after`]:{display:"none"},[` ${ge}-cell-fix-right-first::after, ${ge}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:Fn(ct).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${ge}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Fn(yn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ge}-ping-left`]:{[`&:not(${ge}-has-fix-left) ${ge}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Mn}`},[` ${ge}-cell-fix-left-first::after, ${ge}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Mn}`},[`${ge}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ge}-ping-right`]:{[`&:not(${ge}-has-fix-right) ${ge}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Mn}`},[` ${ge}-cell-fix-right-first::after, ${ge}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Mn}`}},[`${ge}-fixed-column-gapped`]:{[` ${ge}-cell-fix-left-first::after, ${ge}-cell-fix-left-last::after, ${ge}-cell-fix-right-first::after, ${ge}-cell-fix-right-last::after `]:{boxShadow:"none"}}}}},Yl=ye=>{const{componentCls:ge,antCls:ct,margin:Nt}=ye;return{[`${ge}-wrapper`]:{[`${ge}-pagination${ct}-pagination`]:{margin:`${(0,No.unit)(Nt)} 0`},[`${ge}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ys=ye=>{const{componentCls:ge,tableRadius:ct}=ye;return{[`${ge}-wrapper`]:{[ge]:{[`${ge}-title, ${ge}-header`]:{borderRadius:`${(0,No.unit)(ct)} ${(0,No.unit)(ct)} 0 0`},[`${ge}-title + ${ge}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ge}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:ct,borderStartEndRadius:ct,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ct},"> *:last-child":{borderStartEndRadius:ct}}},"&-footer":{borderRadius:`0 0 ${(0,No.unit)(ct)} ${(0,No.unit)(ct)}`}}}}},Js=ye=>{const{componentCls:ge}=ye;return{[`${ge}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ge}-pagination-left`]:{justifyContent:"flex-end"},[`${ge}-pagination-right`]:{justifyContent:"flex-start"},[`${ge}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ge}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ge}-row-indent`]:{float:"right"}}}}},Dl=ye=>{const{componentCls:ge,antCls:ct,iconCls:Nt,fontSizeIcon:qt,padding:ln,paddingXS:Dn,headerIconColor:yn,headerIconHoverColor:Fn,tableSelectionColumnWidth:Mn,tableSelectedRowBg:ar,tableSelectedRowHoverBg:Qn,tableRowHoverBg:Yn,tablePaddingHorizontal:Kn,calc:Wn}=ye;return{[`${ge}-wrapper`]:{[`${ge}-selection-col`]:{width:Mn,[`&${ge}-selection-col-with-dropdown`]:{width:Wn(Mn).add(qt).add(Wn(ln).div(4)).equal()}},[`${ge}-bordered ${ge}-selection-col`]:{width:Wn(Mn).add(Wn(Dn).mul(2)).equal(),[`&${ge}-selection-col-with-dropdown`]:{width:Wn(Mn).add(qt).add(Wn(ln).div(4)).add(Wn(Dn).mul(2)).equal()}},[` table tr th${ge}-selection-column, table tr td${ge}-selection-column, ${ge}-selection-column `]:{paddingInlineEnd:ye.paddingXS,paddingInlineStart:ye.paddingXS,textAlign:"center",[`${ct}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ge}-selection-column${ge}-cell-fix-left`]:{zIndex:Wn(ye.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ge}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ge}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ge}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,No.unit)(Wn(Kn).div(4).equal()),[Nt]:{color:yn,fontSize:qt,verticalAlign:"baseline","&:hover":{color:Fn}}},[`${ge}-tbody`]:{[`${ge}-row`]:{[`&${ge}-row-selected`]:{[`> ${ge}-cell`]:{background:ar,"&-row-hover":{background:Qn}}},[`> ${ge}-cell-row-hover`]:{background:Yn}}}}}},hc=ye=>{const{componentCls:ge,tableExpandColumnWidth:ct,calc:Nt}=ye,qt=(ln,Dn,yn,Fn)=>({[`${ge}${ge}-${ln}`]:{fontSize:Fn,[` ${ge}-title, ${ge}-footer, ${ge}-cell, ${ge}-thead > tr > th, ${ge}-tbody > tr > th, ${ge}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${(0,No.unit)(Dn)} ${(0,No.unit)(yn)}`},[`${ge}-filter-trigger`]:{marginInlineEnd:(0,No.unit)(Nt(yn).div(2).mul(-1).equal())},[`${ge}-expanded-row-fixed`]:{margin:`${(0,No.unit)(Nt(Dn).mul(-1).equal())} ${(0,No.unit)(Nt(yn).mul(-1).equal())}`},[`${ge}-tbody`]:{[`${ge}-wrapper:only-child ${ge}`]:{marginBlock:(0,No.unit)(Nt(Dn).mul(-1).equal()),marginInline:`${(0,No.unit)(Nt(ct).sub(yn).equal())} ${(0,No.unit)(Nt(yn).mul(-1).equal())}`}},[`${ge}-selection-extra`]:{paddingInlineStart:(0,No.unit)(Nt(yn).div(4).equal())}}});return{[`${ge}-wrapper`]:Object.assign(Object.assign({},qt("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle,ye.tableFontSizeMiddle)),qt("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall,ye.tableFontSizeSmall))}},pc=ye=>{const{componentCls:ge,marginXXS:ct,fontSizeIcon:Nt,headerIconColor:qt,headerIconHoverColor:ln}=ye;return{[`${ge}-wrapper`]:{[`${ge}-thead th${ge}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ye.motionDurationSlow}, left 0s`,"&:hover":{background:ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ye.colorPrimary},[` &${ge}-cell-fix-left:hover, &${ge}-cell-fix-right:hover `]:{background:ye.tableFixedHeaderSortActiveBg}},[`${ge}-thead th${ge}-column-sort`]:{background:ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ge}-column-sort`]:{background:ye.tableBodySortBg},[`${ge}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ge}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ge}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ge}-column-sorter`]:{marginInlineStart:ct,color:qt,fontSize:0,transition:`color ${ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Nt,"&.active":{color:ye.colorPrimary}},[`${ge}-column-sorter-up + ${ge}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ge}-column-sorters:hover ${ge}-column-sorter`]:{color:ln}}}},mc=ye=>{const{componentCls:ge,opacityLoading:ct,tableScrollThumbBg:Nt,tableScrollThumbBgHover:qt,tableScrollThumbSize:ln,tableScrollBg:Dn,zIndexTableSticky:yn,stickyScrollBarBorderRadius:Fn,lineWidth:Mn,lineType:ar,tableBorderColor:Qn}=ye,Yn=`${(0,No.unit)(Mn)} ${ar} ${Qn}`;return{[`${ge}-wrapper`]:{[`${ge}-sticky`]:{"&-holder":{position:"sticky",zIndex:yn,background:ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,No.unit)(ln)} !important`,zIndex:yn,display:"flex",alignItems:"center",background:Dn,borderTop:Yn,opacity:ct,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ln,backgroundColor:Nt,borderRadius:Fn,transition:`all ${ye.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:qt}}}}}}},La=ye=>{const{componentCls:ge,lineWidth:ct,tableBorderColor:Nt,calc:qt}=ye,ln=`${(0,No.unit)(ct)} ${ye.lineType} ${Nt}`;return{[`${ge}-wrapper`]:{[`${ge}-summary`]:{position:"relative",zIndex:ye.zIndexTableFixed,background:ye.tableBg,"> tr":{"> th, > td":{borderBottom:ln}}},[`div${ge}-summary`]:{boxShadow:`0 ${(0,No.unit)(qt(ct).mul(-1).equal())} 0 ${Nt}`}}}},Ma=ye=>{const{componentCls:ge,motionDurationMid:ct,lineWidth:Nt,lineType:qt,tableBorderColor:ln,calc:Dn}=ye,yn=`${(0,No.unit)(Nt)} ${qt} ${ln}`,Fn=`${ge}-expanded-row-cell`;return{[`${ge}-wrapper`]:{[`${ge}-tbody-virtual`]:{[`${ge}-tbody-virtual-holder-inner`]:{[` & > ${ge}-row, & > div:not(${ge}-row) > ${ge}-row `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ge}-cell`]:{borderBottom:yn,transition:`background ${ct}`},[`${ge}-expanded-row`]:{[`${Fn}${Fn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,No.unit)(Nt)})`,borderInlineEnd:"none"}}},[`${ge}-bordered`]:{[`${ge}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:yn,position:"absolute"},[`${ge}-cell`]:{borderInlineEnd:yn,[`&${ge}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Dn(Nt).mul(-1).equal(),borderInlineStart:yn}}},[`&${ge}-virtual`]:{[`${ge}-placeholder ${ge}-cell`]:{borderInlineEnd:yn,borderBottom:yn}}}}}};const pa=ye=>{const{componentCls:ge,fontWeightStrong:ct,tablePaddingVertical:Nt,tablePaddingHorizontal:qt,tableExpandColumnWidth:ln,lineWidth:Dn,lineType:yn,tableBorderColor:Fn,tableFontSize:Mn,tableBg:ar,tableRadius:Qn,tableHeaderTextColor:Yn,motionDurationMid:Kn,tableHeaderBg:Wn,tableHeaderCellSplitColor:Ir,tableFooterTextColor:fr,tableFooterBg:Nr,calc:Lr}=ye,Mr=`${(0,No.unit)(Dn)} ${yn} ${Fn}`;return{[`${ge}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,bl.dF)()),{[ge]:Object.assign(Object.assign({},(0,bl.Wf)(ye)),{fontSize:Mn,background:ar,borderRadius:`${(0,No.unit)(Qn)} ${(0,No.unit)(Qn)} 0 0`,scrollbarColor:`${ye.tableScrollThumbBg} ${ye.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,No.unit)(Qn)} ${(0,No.unit)(Qn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${ge}-cell, ${ge}-thead > tr > th, ${ge}-tbody > tr > th, ${ge}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${(0,No.unit)(Nt)} ${(0,No.unit)(qt)}`,overflowWrap:"break-word"},[`${ge}-title`]:{padding:`${(0,No.unit)(Nt)} ${(0,No.unit)(qt)}`},[`${ge}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Yn,fontWeight:ct,textAlign:"start",background:Wn,borderBottom:Mr,transition:`background ${Kn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ge}-selection-column):not(${ge}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ir,transform:"translateY(-50%)",transition:`background-color ${Kn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ge}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Kn}, border-color ${Kn}`,borderBottom:Mr,[` > ${ge}-wrapper:only-child, > ${ge}-expanded-row-fixed > ${ge}-wrapper:only-child `]:{[ge]:{marginBlock:(0,No.unit)(Lr(Nt).mul(-1).equal()),marginInline:`${(0,No.unit)(Lr(ln).sub(qt).equal())} ${(0,No.unit)(Lr(qt).mul(-1).equal())}`,[`${ge}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Yn,fontWeight:ct,textAlign:"start",background:Wn,borderBottom:Mr,transition:`background ${Kn} ease`}}},[`${ge}-footer`]:{padding:`${(0,No.unit)(Nt)} ${(0,No.unit)(qt)}`,color:fr,background:Nr}})}},Ql=ye=>{const{colorFillAlter:ge,colorBgContainer:ct,colorTextHeading:Nt,colorFillSecondary:qt,colorFillContent:ln,controlItemBgActive:Dn,controlItemBgActiveHover:yn,padding:Fn,paddingSM:Mn,paddingXS:ar,colorBorderSecondary:Qn,borderRadiusLG:Yn,controlHeight:Kn,colorTextPlaceholder:Wn,fontSize:Ir,fontSizeSM:fr,lineHeight:Nr,lineWidth:Lr,colorIcon:Mr,colorIconHover:jr,opacityLoading:Yr,controlInteractiveSize:ao}=ye,no=new Fl.FastColor(qt).onBackground(ct).toHexString(),Lo=new Fl.FastColor(ln).onBackground(ct).toHexString(),xo=new Fl.FastColor(ge).onBackground(ct).toHexString(),po=new Fl.FastColor(Mr),Mo=new Fl.FastColor(jr),lo=ao/2-Lr,so=lo*2+Lr*3;return{headerBg:xo,headerColor:Nt,headerSortActiveBg:no,headerSortHoverBg:Lo,bodySortBg:xo,rowHoverBg:xo,rowSelectedBg:Dn,rowSelectedHoverBg:yn,rowExpandedBg:ge,cellPaddingBlock:Fn,cellPaddingInline:Fn,cellPaddingBlockMD:Mn,cellPaddingInlineMD:ar,cellPaddingBlockSM:ar,cellPaddingInlineSM:ar,borderColor:Qn,headerBorderRadius:Yn,footerBg:xo,footerColor:Nt,cellFontSize:Ir,cellFontSizeMD:Ir,cellFontSizeSM:Ir,headerSplitColor:Qn,fixedHeaderSortActiveBg:no,headerFilterHoverBg:ln,filterDropdownMenuBg:ct,filterDropdownBg:ct,expandIconBg:ct,selectionColumnWidth:Kn,stickyScrollBarBg:Wn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Ir*Nr-Lr*3)/2-Math.ceil((fr*1.4-Lr*3)/2),headerIconColor:po.clone().setA(po.a*Yr).toRgbString(),headerIconHoverColor:Mo.clone().setA(Mo.a*Yr).toRgbString(),expandIconHalfInner:lo,expandIconSize:so,expandIconScale:ao/so}},Qs=2;var cs=(0,cc.I$)("Table",ye=>{const{colorTextHeading:ge,colorSplit:ct,colorBgContainer:Nt,controlInteractiveSize:qt,headerBg:ln,headerColor:Dn,headerSortActiveBg:yn,headerSortHoverBg:Fn,bodySortBg:Mn,rowHoverBg:ar,rowSelectedBg:Qn,rowSelectedHoverBg:Yn,rowExpandedBg:Kn,cellPaddingBlock:Wn,cellPaddingInline:Ir,cellPaddingBlockMD:fr,cellPaddingInlineMD:Nr,cellPaddingBlockSM:Lr,cellPaddingInlineSM:Mr,borderColor:jr,footerBg:Yr,footerColor:ao,headerBorderRadius:no,cellFontSize:Lo,cellFontSizeMD:xo,cellFontSizeSM:po,headerSplitColor:Mo,fixedHeaderSortActiveBg:lo,headerFilterHoverBg:so,filterDropdownBg:Kr,expandIconBg:zr,selectionColumnWidth:oo,stickyScrollBarBg:co,calc:Co}=ye,Ur=(0,uc.mergeToken)(ye,{tableFontSize:Lo,tableBg:Nt,tableRadius:no,tablePaddingVertical:Wn,tablePaddingHorizontal:Ir,tablePaddingVerticalMiddle:fr,tablePaddingHorizontalMiddle:Nr,tablePaddingVerticalSmall:Lr,tablePaddingHorizontalSmall:Mr,tableBorderColor:jr,tableHeaderTextColor:Dn,tableHeaderBg:ln,tableFooterTextColor:ao,tableFooterBg:Yr,tableHeaderCellSplitColor:Mo,tableHeaderSortBg:yn,tableHeaderSortHoverBg:Fn,tableBodySortBg:Mn,tableFixedHeaderSortActiveBg:lo,tableHeaderFilterActiveBg:so,tableFilterDropdownBg:Kr,tableRowHoverBg:ar,tableSelectedRowBg:Qn,tableSelectedRowHoverBg:Yn,zIndexTableFixed:Qs,zIndexTableSticky:Co(Qs).add(1).equal({unit:!1}),tableFontSizeMiddle:xo,tableFontSizeSmall:po,tableSelectionColumnWidth:oo,tableExpandIconBg:zr,tableExpandColumnWidth:Co(qt).add(Co(ye.padding).mul(2)).equal(),tableExpandedRowBg:Kn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:co,tableScrollThumbBgHover:ge,tableScrollBg:ct});return[pa(Ur),Yl(Ur),La(Ur),pc(Ur),Xs(Ur),Es(Ur),Ys(Ur),Gs(Ur),La(Ur),dc(Ur),Dl(Ur),Xl(Ur),mc(Ur),$l(Ur),hc(Ur),Js(Ur),Ma(Ur)]},Ql,{unitless:{expandIconScale:!0}});const vc=[],gc=(ye,ge)=>{var ct,Nt;const{prefixCls:qt,className:ln,rootClassName:Dn,style:yn,size:Fn,bordered:Mn,dropdownPrefixCls:ar,dataSource:Qn,pagination:Yn,rowSelection:Kn,rowKey:Wn="key",rowClassName:Ir,columns:fr,children:Nr,childrenColumnName:Lr,onChange:Mr,getPopupContainer:jr,loading:Yr,expandIcon:ao,expandable:no,expandedRowRender:Lo,expandIconColumnIndex:xo,indentSize:po,scroll:Mo,sortDirections:lo,locale:so,showSorterTooltip:Kr={target:"full-header"},virtual:zr}=ye,oo=(0,xr.ln)("Table"),co=b.useMemo(()=>fr||Yt(Nr),[fr,Nr]),Co=b.useMemo(()=>co.some(Fo=>Fo.responsive),[co]),Ur=(0,Di.Z)(Co),Ho=b.useMemo(()=>{const Fo=new Set(Object.keys(Ur).filter(Xo=>Ur[Xo]));return co.filter(Xo=>!Xo.responsive||Xo.responsive.some(Ri=>Fo.has(Ri)))},[co,Ur]),jo=(0,_o.Z)(ye,["className","style","columns"]),{locale:Fi=ya.Z,direction:Ni,table:yi,renderEmpty:Mi,getPrefixCls:Hi,getPopupContainer:Wo}=b.useContext(Si.E_),Ko=(0,Go.Z)(Fn),ji=Object.assign(Object.assign({},Fi.Table),so),Xi=Qn||vc,vo=Hi("table",qt),Ao=Hi("dropdown",ar),[,ho]=(0,Ha.ZP)(),ro=(0,Oi.Z)(vo),[Yo,oi,Ei]=cs(vo,ro),mi=Object.assign(Object.assign({childrenColumnName:Lr,expandIconColumnIndex:xo},no),{expandIcon:(ct=no==null?void 0:no.expandIcon)!==null&&ct!==void 0?ct:(Nt=yi==null?void 0:yi.expandable)===null||Nt===void 0?void 0:Nt.expandIcon}),{childrenColumnName:Wi="children"}=mi,ta=b.useMemo(()=>Xi.some(Fo=>Fo==null?void 0:Fo[Wi])?"nest":Lo||no!=null&&no.expandedRowRender?"row":null,[Xi]),bo={body:b.useRef(null)},Do=Eo(vo),ai=b.useRef(null),di=b.useRef(null);ni(ge,()=>Object.assign(Object.assign({},di.current),{nativeElement:ai.current}));const si=b.useMemo(()=>typeof Wn=="function"?Wn:Fo=>Fo==null?void 0:Fo[Wn],[Wn]),[da]=aa(Xi,Wi,si),_i={},Fa=function(Fo,Xo){let Ri=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ki,ma,fa,nl;const wa=Object.assign(Object.assign({},_i),Fo);Ri&&((Ki=_i.resetPagination)===null||Ki===void 0||Ki.call(_i),!((ma=wa.pagination)===null||ma===void 0)&&ma.current&&(wa.pagination.current=1),Yn&&((fa=Yn.onChange)===null||fa===void 0||fa.call(Yn,1,(nl=wa.pagination)===null||nl===void 0?void 0:nl.pageSize))),Mo&&Mo.scrollToFirstRowOnChange!==!1&&bo.body.current&&(0,Zi.Z)(0,{getContainer:()=>bo.body.current}),Mr==null||Mr(wa.pagination,wa.filters,wa.sorter,{currentDataSource:Po(Ol(Xi,wa.sorterStates,Wi),wa.filterStates,Wi),action:Xo})},Ti=(Fo,Xo)=>{Fa({sorter:Fo,sorterStates:Xo},"sort",!1)},[qo,vi,bi,na]=_s({prefixCls:vo,mergedColumns:Ho,onSorterChange:Ti,sortDirections:lo||["ascend","descend"],tableLocale:ji,showSorterTooltip:Kr}),$i=b.useMemo(()=>Ol(Xi,vi,Wi),[Xi,vi]);_i.sorter=na(),_i.sorterStates=vi;const ei=(Fo,Xo)=>{Fa({filters:Fo,filterStates:Xo},"filter",!0)},[ki,li,xa]=gi({prefixCls:vo,locale:ji,dropdownPrefixCls:Ao,mergedColumns:Ho,onFilterChange:ei,getPopupContainer:jr||Wo,rootClassName:xe()(Dn,ro)}),Yi=Po($i,li,Wi);_i.filters=xa,_i.filterStates=li;const Ta=b.useMemo(()=>{const Fo={};return Object.keys(xa).forEach(Xo=>{xa[Xo]!==null&&(Fo[Xo]=xa[Xo])}),Object.assign(Object.assign({},bi),{filters:Fo})},[bi,xa]),[$a]=ws(Ta),ll=(Fo,Xo)=>{Fa({pagination:Object.assign(Object.assign({},_i.pagination),{current:Fo,pageSize:Xo})},"paginate")},[xi,ql]=ua(Yi.length,ll,Yn);_i.pagination=Yn===!1?{}:sa(xi,Yn),_i.resetPagination=ql;const ka=b.useMemo(()=>{if(Yn===!1||!xi.pageSize)return Yi;const{current:Fo=1,total:Xo,pageSize:Ri=la}=xi;return Yi.lengthRi?Yi.slice((Fo-1)*Ri,Fo*Ri):Yi:Yi.slice((Fo-1)*Ri,Fo*Ri)},[!!Yn,Yi,xi==null?void 0:xi.current,xi==null?void 0:xi.pageSize,xi==null?void 0:xi.total]),[el,Va]=Vr({prefixCls:vo,data:Yi,pageData:ka,getRowKey:si,getRecordByKey:da,expandType:ta,childrenColumnName:Wi,locale:ji,getPopupContainer:jr||Wo},Kn),Za=(Fo,Xo,Ri)=>{let Ki;return typeof Ir=="function"?Ki=xe()(Ir(Fo,Xo,Ri)):Ki=xe()(Ir),xe()({[`${vo}-row-selected`]:Va.has(si(Fo,Xo))},Ki)};mi.__PARENT_RENDER_ICON__=mi.expandIcon,mi.expandIcon=mi.expandIcon||ao||wo(ji),ta==="nest"&&mi.expandIconColumnIndex===void 0?mi.expandIconColumnIndex=Kn?1:0:mi.expandIconColumnIndex>0&&Kn&&(mi.expandIconColumnIndex-=1),typeof mi.indentSize!="number"&&(mi.indentSize=typeof po=="number"?po:15);const Ci=b.useCallback(Fo=>$a(el(ki(qo(Fo)))),[qo,ki,el]);let Ua,xl;if(Yn!==!1&&(xi!=null&&xi.total)){let Fo;xi.size?Fo=xi.size:Fo=Ko==="small"||Ko==="middle"?"small":void 0;const Xo=ma=>b.createElement(Qi.Z,Object.assign({},xi,{className:xe()(`${vo}-pagination ${vo}-pagination-${ma}`,xi.className),size:Fo})),Ri=Ni==="rtl"?"left":"right",{position:Ki}=xi;if(Ki!==null&&Array.isArray(Ki)){const ma=Ki.find(wa=>wa.includes("top")),fa=Ki.find(wa=>wa.includes("bottom")),nl=Ki.every(wa=>`${wa}`=="none");!ma&&!fa&&!nl&&(xl=Xo(Ri)),ma&&(Ua=Xo(ma.toLowerCase().replace("top",""))),fa&&(xl=Xo(fa.toLowerCase().replace("bottom","")))}else xl=Xo(Ri)}let sl;typeof Yr=="boolean"?sl={spinning:Yr}:typeof Yr=="object"&&(sl=Object.assign({spinning:!0},Yr));const cl=xe()(Ei,ro,`${vo}-wrapper`,yi==null?void 0:yi.className,{[`${vo}-wrapper-rtl`]:Ni==="rtl"},ln,Dn,oi),us=Object.assign(Object.assign({},yi==null?void 0:yi.style),yn),ds=typeof(so==null?void 0:so.emptyText)!="undefined"?so.emptyText:(Mi==null?void 0:Mi("Table"))||b.createElement(Ai.Z,{componentName:"Table"}),fs=zr?Ll:Ks,hs={},Ps=b.useMemo(()=>{const{fontSize:Fo,lineHeight:Xo,lineWidth:Ri,padding:Ki,paddingXS:ma,paddingSM:fa}=ho,nl=Math.floor(Fo*Xo);switch(Ko){case"middle":return fa*2+nl+Ri;case"small":return ma*2+nl+Ri;default:return Ki*2+nl+Ri}},[ho,Ko]);return zr&&(hs.listItemHeight=Ps),Yo(b.createElement("div",{ref:ai,className:cl,style:us},b.createElement(Qo.Z,Object.assign({spinning:!1},sl),Ua,b.createElement(fs,Object.assign({},hs,jo,{ref:di,columns:Ho,direction:Ni,expandable:mi,prefixCls:vo,className:xe()({[`${vo}-middle`]:Ko==="middle",[`${vo}-small`]:Ko==="small",[`${vo}-bordered`]:Mn,[`${vo}-empty`]:Xi.length===0},Ei,ro,oi),data:ka,rowKey:si,rowClassName:Za,emptyText:ds,internalHooks:ce,internalRefs:bo,transformColumns:Ci,getContainerWidth:Do})),xl)))};var yc=b.forwardRef(gc);const Os=(ye,ge)=>{const ct=b.useRef(0);return ct.current+=1,b.createElement(yc,Object.assign({},ye,{ref:ge,_renderTimes:ct.current}))},al=b.forwardRef(Os);al.SELECTION_COLUMN=Ar,al.EXPAND_COLUMN=Me,al.SELECTION_ALL=_r,al.SELECTION_INVERT=fo,al.SELECTION_NONE=ko,al.Column=Rn,al.ColumnGroup=Ln,al.Summary=Le;var Ds=al,bc=Ds},96599:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return xe}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(2738),Pe=ee(29509),pe=ee(78776),be=ee(22703),Ve=ee(12919),Ie=ee(48755),ue=ee(36237),$e=ee(17835),Ee=ee(63356),Rt=ee(51636),ot=ee(16931);const st=se=>{const{paddingXXS:It,lineWidth:_e,tagPaddingHorizontal:Ye,componentCls:Ft,calc:Ce}=se,he=Ce(Ye).sub(_e).equal(),yt=Ce(It).sub(_e).equal();return{[Ft]:Object.assign(Object.assign({},(0,Ee.Wf)(se)),{display:"inline-block",height:"auto",marginInlineEnd:se.marginXS,paddingInline:he,fontSize:se.tagFontSize,lineHeight:se.tagLineHeight,whiteSpace:"nowrap",background:se.defaultBg,border:`${(0,ue.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,opacity:1,transition:`all ${se.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ft}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:se.defaultColor},[`${Ft}-close-icon`]:{marginInlineStart:yt,fontSize:se.tagIconSize,color:se.colorTextDescription,cursor:"pointer",transition:`all ${se.motionDurationMid}`,"&:hover":{color:se.colorTextHeading}},[`&${Ft}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${se.iconCls}-close, ${se.iconCls}-close:hover`]:{color:se.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ft}-checkable-checked):hover`]:{color:se.colorPrimary,backgroundColor:se.colorFillSecondary},"&:active, &-checked":{color:se.colorTextLightSolid},"&-checked":{backgroundColor:se.colorPrimary,"&:hover":{backgroundColor:se.colorPrimaryHover}},"&:active":{backgroundColor:se.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${se.iconCls} + span, > span + ${se.iconCls}`]:{marginInlineStart:he}}),[`${Ft}-borderless`]:{borderColor:"transparent",background:se.tagBorderlessBg}}},Ue=se=>{const{lineWidth:It,fontSizeIcon:_e,calc:Ye}=se,Ft=se.fontSizeSM;return(0,Rt.mergeToken)(se,{tagFontSize:Ft,tagLineHeight:(0,ue.unit)(Ye(se.lineHeightSM).mul(Ft).equal()),tagIconSize:Ye(_e).sub(Ye(It).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:se.defaultBg})},Re=se=>({defaultBg:new $e.FastColor(se.colorFillQuaternary).onBackground(se.colorBgContainer).toHexString(),defaultColor:se.colorText});var ft=(0,ot.I$)("Tag",se=>{const It=Ue(se);return st(It)},Re),kt=function(se,It){var _e={};for(var Ye in se)Object.prototype.hasOwnProperty.call(se,Ye)&&It.indexOf(Ye)<0&&(_e[Ye]=se[Ye]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Ye=Object.getOwnPropertySymbols(se);Ft{const{prefixCls:_e,style:Ye,className:Ft,checked:Ce,onChange:he,onClick:yt}=se,Vt=kt(se,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Lt,tag:me}=b.useContext(Ie.E_),qe=dn=>{he==null||he(!Ce),yt==null||yt(dn)},it=Lt("tag",_e),[Xt,Xe,Gt]=ft(it),Fe=ce()(it,`${it}-checkable`,{[`${it}-checkable-checked`]:Ce},me==null?void 0:me.className,Ft,Xe,Gt);return Xt(b.createElement("span",Object.assign({},Vt,{ref:It,style:Object.assign(Object.assign({},Ye),me==null?void 0:me.style),className:Fe,onClick:qe})))}),Ae=ee(93427);const tt=se=>(0,Ae.Z)(se,(It,_e)=>{let{textColor:Ye,lightBorderColor:Ft,lightColor:Ce,darkColor:he}=_e;return{[`${se.componentCls}${se.componentCls}-${It}`]:{color:Ye,background:Ce,borderColor:Ft,"&-inverse":{color:se.colorTextLightSolid,background:he,borderColor:he},[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}});var nt=(0,ot.bk)(["Tag","preset"],se=>{const It=Ue(se);return tt(It)},Re);function zt(se){return typeof se!="string"?se:se.charAt(0).toUpperCase()+se.slice(1)}const Ot=(se,It,_e)=>{const Ye=zt(_e);return{[`${se.componentCls}${se.componentCls}-${It}`]:{color:se[`color${_e}`],background:se[`color${Ye}Bg`],borderColor:se[`color${Ye}Border`],[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ht=(0,ot.bk)(["Tag","status"],se=>{const It=Ue(se);return[Ot(It,"success","Success"),Ot(It,"processing","Info"),Ot(It,"error","Error"),Ot(It,"warning","Warning")]},Re),Ct=function(se,It){var _e={};for(var Ye in se)Object.prototype.hasOwnProperty.call(se,Ye)&&It.indexOf(Ye)<0&&(_e[Ye]=se[Ye]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Ye=Object.getOwnPropertySymbols(se);Ft{const{prefixCls:_e,className:Ye,rootClassName:Ft,style:Ce,children:he,icon:yt,color:Vt,onClose:Lt,bordered:me=!0,visible:qe}=se,it=Ct(se,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Xt,direction:Xe,tag:Gt}=b.useContext(Ie.E_),[Fe,dn]=b.useState(!0),$t=(0,et.Z)(it,["closeIcon","closable"]);b.useEffect(()=>{qe!==void 0&&dn(qe)},[qe]);const ae=(0,Pe.o2)(Vt),ne=(0,Pe.yT)(Vt),te=ae||ne,ie=Object.assign(Object.assign({backgroundColor:Vt&&!te?Vt:void 0},Gt==null?void 0:Gt.style),Ce),de=Xt("tag",_e),[re,le,Se]=ft(de),Ge=ce()(de,Gt==null?void 0:Gt.className,{[`${de}-${Vt}`]:te,[`${de}-has-color`]:Vt&&!te,[`${de}-hidden`]:!Fe,[`${de}-rtl`]:Xe==="rtl",[`${de}-borderless`]:!me},Ye,Ft,le,Se),He=Be=>{Be.stopPropagation(),Lt==null||Lt(Be),!Be.defaultPrevented&&dn(!1)},[,Le]=(0,pe.Z)((0,pe.w)(se),(0,pe.w)(Gt),{closable:!1,closeIconRender:Be=>{const Ut=b.createElement("span",{className:`${de}-close-icon`,onClick:He},Be);return(0,be.wm)(Be,Ut,Zt=>({onClick:mn=>{var vn;(vn=Zt==null?void 0:Zt.onClick)===null||vn===void 0||vn.call(Zt,mn),He(mn)},className:ce()(Zt==null?void 0:Zt.className,`${de}-close-icon`)}))}}),rt=typeof it.onClick=="function"||he&&he.type==="a",ut=yt||null,At=ut?b.createElement(b.Fragment,null,ut,he&&b.createElement("span",null,he)):he,Ne=b.createElement("span",Object.assign({},$t,{ref:It,className:Ge,style:ie}),At,Le,ae&&b.createElement(nt,{key:"preset",prefixCls:de}),ne&&b.createElement(ht,{key:"status",prefixCls:de}));return re(rt?b.createElement(Ve.Z,{component:"Tag"},Ne):Ne)});ke.CheckableTag=Qe;var xe=ke},53420:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return Tn}});var b=ee(59301),Me=ee(92310),ce=ee.n(Me),et=ee(60499),Pe=ee(77654),pe=ee(85899),be=ee(72190),Ve=ee(42244),Ie=ee(43749),ue=ee(37463),$e=ee(6551),Ee=ee(34643),Rt=ee(18929),ot=ee(48736),st=function(Jt){var wn=b.useRef({valueLabels:new Map});return b.useMemo(function(){var gn=wn.current.valueLabels,Nn=new Map,An=Jt.map(function(rr){var Qt=rr.value,Yt=rr.label,xn=Yt!=null?Yt:gn.get(Qt);return Nn.set(Qt,xn),(0,pe.Z)((0,pe.Z)({},rr),{},{label:xn})});return wn.current.valueLabels=Nn,[An]},[Jt])},Ue=function(wn,gn,Nn,An){return b.useMemo(function(){var rr=function(Te){return Te.map(function(gt){var Ke=gt.value;return Ke})},Qt=rr(wn),Yt=rr(gn),xn=Qt.filter(function(Dt){return!An[Dt]}),Vn=Qt,jn=Yt;if(Nn){var vt=(0,Ee.S)(Qt,!0,An);Vn=vt.checkedKeys,jn=vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Pe.Z)(xn),(0,Pe.Z)(Vn)))),jn]},[wn,gn,Nn,An])},Re=Ue,ft=ee(34061),kt=function(Jt,wn){return b.useMemo(function(){var gn=(0,ft.I8)(Jt,{fieldNames:wn,initWrapper:function(An){return(0,pe.Z)((0,pe.Z)({},An),{},{valueEntities:new Map})},processEntity:function(An,rr){var Qt=An.node[wn.value];if(0)var Yt;rr.valueEntities.set(Qt,An)}});return gn},[Jt,wn])},en=ee(18642),Qe=ee(11592),Ae=function(){return null},tt=Ae,nt=["children","value"];function zt(Jt){return(0,Qe.Z)(Jt).map(function(wn){if(!b.isValidElement(wn)||!wn.type)return null;var gn=wn,Nn=gn.key,An=gn.props,rr=An.children,Qt=An.value,Yt=(0,Ve.Z)(An,nt),xn=(0,pe.Z)({key:Nn,value:Qt},Yt),Vn=zt(rr);return Vn.length&&(xn.children=Vn),xn}).filter(function(wn){return wn})}function Ot(Jt){if(!Jt)return Jt;var wn=(0,pe.Z)({},Jt);return"props"in wn||Object.defineProperty(wn,"props",{get:function(){return(0,ot.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),wn}}),wn}function ht(Jt,wn,gn,Nn,An,rr){var Qt=null,Yt=null;function xn(){function Vn(jn){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return jn.map(function(Te,gt){var Ke="".concat(vt,"-").concat(gt),wt=Te[rr.value],Ht=gn.includes(wt),Hn=Vn(Te[rr.children]||[],Ke,Ht),Jn=b.createElement(tt,Te,Hn.map(function(mt){return mt.node}));if(wn===wt&&(Qt=Jn),Ht){var lt={pos:Ke,node:Jn,children:Hn};return Dt||Yt.push(lt),lt}return null}).filter(function(Te){return Te})}Yt||(Yt=[],Vn(Nn),Yt.sort(function(jn,vt){var Dt=jn.node.props.value,Te=vt.node.props.value,gt=gn.indexOf(Dt),Ke=gn.indexOf(Te);return gt-Ke}))}Object.defineProperty(Jt,"triggerNode",{get:function(){return(0,ot.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),xn(),Qt}}),Object.defineProperty(Jt,"allCheckedNodes",{get:function(){return(0,ot.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),xn(),An?Yt:Yt.map(function(jn){var vt=jn.node;return vt})}})}var Ct=function(wn,gn,Nn){var An=Nn.fieldNames,rr=Nn.treeNodeFilterProp,Qt=Nn.filterTreeNode,Yt=An.children;return b.useMemo(function(){if(!gn||Qt===!1)return wn;var xn=typeof Qt=="function"?Qt:function(jn,vt){return String(vt[rr]).toUpperCase().includes(gn.toUpperCase())},Vn=function jn(vt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vt.reduce(function(Te,gt){var Ke=gt[Yt],wt=Dt||xn(gn,Ot(gt)),Ht=jn(Ke||[],wt);return(wt||Ht.length)&&Te.push((0,pe.Z)((0,pe.Z)({},gt),{},(0,en.Z)({isLeaf:void 0},Yt,Ht))),Te},[])};return Vn(wn)},[wn,gn,Yt,rr,Qt])},De=Ct;function ke(Jt){var wn=b.useRef();wn.current=Jt;var gn=b.useCallback(function(){return wn.current.apply(wn,arguments)},[]);return gn}function xe(Jt,wn){var gn=wn.id,Nn=wn.pId,An=wn.rootPId,rr=new Map,Qt=[];return Jt.forEach(function(Yt){var xn=Yt[gn],Vn=(0,pe.Z)((0,pe.Z)({},Yt),{},{key:Yt.key||xn});rr.set(xn,Vn)}),rr.forEach(function(Yt){var xn=Yt[Nn],Vn=rr.get(xn);Vn?(Vn.children=Vn.children||[],Vn.children.push(Yt)):(xn===An||An===null)&&Qt.push(Yt)}),Qt}function se(Jt,wn,gn){return b.useMemo(function(){if(Jt){if(gn){var Nn=(0,pe.Z)({id:"id",pId:"pId",rootPId:null},(0,Ie.Z)(gn)==="object"?gn:{});return xe(Jt,Nn)}return Jt}return zt(wn)},[wn,gn,Jt])}var It=b.createContext(null),_e=It,Ye=ee(72054),Ft=ee(87632),Ce=ee(10228),he=ee(80547),yt=b.createContext(null),Vt=yt,Lt=function(wn){return Array.isArray(wn)?wn:wn!==void 0?[wn]:[]},me=function(wn){var gn=wn||{},Nn=gn.label,An=gn.value,rr=gn.children;return{_title:Nn?[Nn]:["title","label"],value:An||"value",key:An||"value",children:rr||"children"}},qe=function(wn){return!wn||wn.disabled||wn.disableCheckbox||wn.checkable===!1},it=function(wn,gn){var Nn=[],An=function rr(Qt){Qt.forEach(function(Yt){var xn=Yt[gn.children];xn&&(Nn.push(Yt[gn.value]),rr(xn))})};return An(wn),Nn},Xt=function(wn){return wn==null},Xe=ee(70425),Gt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fe=function(wn,gn){var Nn=(0,ue.lk)(),An=Nn.prefixCls,rr=Nn.multiple,Qt=Nn.searchValue,Yt=Nn.toggleOpen,xn=Nn.open,Vn=Nn.notFoundContent,jn=b.useContext(Vt),vt=jn.virtual,Dt=jn.listHeight,Te=jn.listItemHeight,gt=jn.listItemScrollOffset,Ke=jn.treeData,wt=jn.fieldNames,Ht=jn.onSelect,Hn=jn.dropdownMatchSelectWidth,Jn=jn.treeExpandAction,lt=jn.treeTitleRender,mt=jn.onPopupScroll,pt=jn.leftMaxCount,xt=jn.leafCountOnly,fn=jn.valueEntities,In=b.useContext(_e),pn=In.checkable,Sn=In.checkedKeys,$n=In.halfCheckedKeys,qn=In.treeExpandedKeys,ur=In.treeDefaultExpandAll,tr=In.treeDefaultExpandedKeys,Xn=In.onTreeExpand,or=In.treeIcon,dr=In.showTreeIcon,br=In.switcherIcon,vr=In.treeLine,Tr=In.treeNodeFilterProp,Br=In.loadData,cr=In.treeLoadedKeys,Er=In.treeMotion,Wr=In.onTreeLoad,Rr=In.keyEntities,Sr=b.useRef(),Fr=(0,he.Z)(function(){return Ke},[xn,Ke],function(Or,Dr){return Dr[0]&&Or[1]!==Dr[1]}),$r=b.useMemo(function(){return pn?{checked:Sn,halfChecked:$n}:null},[pn,Sn,$n]);b.useEffect(function(){if(xn&&!rr&&Sn.length){var Or;(Or=Sr.current)===null||Or===void 0||Or.scrollTo({key:Sn[0]})}},[xn]);var wr=function(Dr){Dr.preventDefault()},gr=function(Dr,Ar){var _r=Ar.node;pn&&qe(_r)||(Ht(_r.key,{selected:!Sn.includes(_r.key)}),rr||Yt(!1))},yr=b.useState(tr),Xr=(0,be.Z)(yr,2),go=Xr[0],So=Xr[1],to=b.useState(null),io=(0,be.Z)(to,2),Oe=io[0],We=io[1],bt=b.useMemo(function(){return qn?(0,Pe.Z)(qn):Qt?Oe:go},[go,Oe,qn,Qt]),Ze=function(Dr){So(Dr),We(Dr),Xn&&Xn(Dr)},dt=String(Qt).toLowerCase(),at=function(Dr){return dt?String(Dr[Tr]).toLowerCase().includes(dt):!1};b.useEffect(function(){Qt&&We(it(Ke,wt))},[Qt]);var Mt=b.useState(function(){return new Map}),Bt=(0,be.Z)(Mt,2),Wt=Bt[0],En=Bt[1];b.useEffect(function(){pt&&En(new Map)},[pt]);function Rn(Or){var Dr=Or[wt.value];if(!Wt.has(Dr)){var Ar=fn.get(Dr),_r=(Ar.children||[]).length===0;if(_r)Wt.set(Dr,!1);else{var fo=Ar.children.filter(function(Io){return!Io.node.disabled&&!Io.node.disableCheckbox&&!Sn.includes(Io.node[wt.value])}),ko=fo.length;Wt.set(Dr,ko>pt)}}return Wt.get(Dr)}var hn=(0,Xe.zX)(function(Or){var Dr=Or[wt.value];return Sn.includes(Dr)||pt===null?!1:pt<=0?!0:xt&&pt?Rn(Or):!1}),Ln=function Or(Dr){var Ar=(0,Ye.Z)(Dr),_r;try{for(Ar.s();!(_r=Ar.n()).done;){var fo=_r.value;if(!(fo.disabled||fo.selectable===!1)){if(Qt){if(at(fo))return fo}else return fo;if(fo[wt.children]){var ko=Or(fo[wt.children]);if(ko)return ko}}}}catch(Io){Ar.e(Io)}finally{Ar.f()}return null},Gn=b.useState(null),lr=(0,be.Z)(Gn,2),sr=lr[0],pr=lr[1],mr=Rr[sr];b.useEffect(function(){if(xn){var Or=null,Dr=function(){var _r=Ln(Fr);return _r?_r[wt.value]:null};!rr&&Sn.length&&!Qt?Or=Sn[0]:Or=Dr(),pr(Or)}},[xn,Qt]),b.useImperativeHandle(gn,function(){var Or;return{scrollTo:(Or=Sr.current)===null||Or===void 0?void 0:Or.scrollTo,onKeyDown:function(Ar){var _r,fo=Ar.which;switch(fo){case Ce.Z.UP:case Ce.Z.DOWN:case Ce.Z.LEFT:case Ce.Z.RIGHT:(_r=Sr.current)===null||_r===void 0||_r.onKeyDown(Ar);break;case Ce.Z.ENTER:{if(mr){var ko=hn(mr.node),Io=(mr==null?void 0:mr.node)||{},Vo=Io.selectable,Qr=Io.value,Vr=Io.disabled;Vo!==!1&&!Vr&&!ko&&gr(null,{node:{key:sr},selected:!Sn.includes(Qr)})}break}case Ce.Z.ESC:Yt(!1)}},onKeyUp:function(){}}});var kr=(0,he.Z)(function(){return!Qt},[Qt,qn||go],function(Or,Dr){var Ar=(0,be.Z)(Or,1),_r=Ar[0],fo=(0,be.Z)(Dr,2),ko=fo[0],Io=fo[1];return _r!==ko&&!!(ko||Io)}),xr=kr?Br:null;if(Fr.length===0)return b.createElement("div",{role:"listbox",className:"".concat(An,"-empty"),onMouseDown:wr},Vn);var Gr={fieldNames:wt};return cr&&(Gr.loadedKeys=cr),bt&&(Gr.expandedKeys=bt),b.createElement("div",{onMouseDown:wr},mr&&xn&&b.createElement("span",{style:Gt,"aria-live":"assertive"},mr.node.value),b.createElement(Ft.y6.Provider,{value:{nodeDisabled:hn}},b.createElement(Ft.ZP,(0,et.Z)({ref:Sr,focusable:!1,prefixCls:"".concat(An,"-tree"),treeData:Fr,height:Dt,itemHeight:Te,itemScrollOffset:gt,virtual:vt!==!1&&Hn!==!1,multiple:rr,icon:or,showIcon:dr,switcherIcon:br,showLine:vr,loadData:xr,motion:Er,activeKey:sr,checkable:pn,checkStrictly:!0,checkedKeys:$r,selectedKeys:pn?[]:Sn,defaultExpandAll:ur,titleRender:lt},Gr,{onActiveChange:pr,onSelect:gr,onCheck:gr,onExpand:Ze,onLoad:Wr,filterTreeNode:at,expandAction:Jn,onScroll:mt}))))},dn=b.forwardRef(Fe),$t=dn,ae="SHOW_ALL",ne="SHOW_PARENT",te="SHOW_CHILD";function ie(Jt,wn,gn,Nn){var An=new Set(Jt);return wn===te?Jt.filter(function(rr){var Qt=gn[rr];return!Qt||!Qt.children||!Qt.children.some(function(Yt){var xn=Yt.node;return An.has(xn[Nn.value])})||!Qt.children.every(function(Yt){var xn=Yt.node;return qe(xn)||An.has(xn[Nn.value])})}):wn===ne?Jt.filter(function(rr){var Qt=gn[rr],Yt=Qt?Qt.parent:null;return!Yt||qe(Yt.node)||!An.has(Yt.key)}):Jt}function de(Jt){var wn=Jt.searchPlaceholder,gn=Jt.treeCheckStrictly,Nn=Jt.treeCheckable,An=Jt.labelInValue,rr=Jt.value,Qt=Jt.multiple,Yt=Jt.showCheckedStrategy,xn=Jt.maxCount;warning(!wn,"`searchPlaceholder` has been removed."),gn&&An===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(An||gn)&&warning(toArray(rr).every(function(Vn){return Vn&&_typeof(Vn)==="object"&&"value"in Vn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),gn||Qt||Nn?warning(!rr||Array.isArray(rr),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(rr),"`value` should not be array when `TreeSelect` is single mode."),xn&&(Yt==="SHOW_ALL"&&!gn||Yt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var re=null,le=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Se(Jt){return!Jt||(0,Ie.Z)(Jt)!=="object"}var Ge=b.forwardRef(function(Jt,wn){var gn=Jt.id,Nn=Jt.prefixCls,An=Nn===void 0?"rc-tree-select":Nn,rr=Jt.value,Qt=Jt.defaultValue,Yt=Jt.onChange,xn=Jt.onSelect,Vn=Jt.onDeselect,jn=Jt.searchValue,vt=Jt.inputValue,Dt=Jt.onSearch,Te=Jt.autoClearSearchValue,gt=Te===void 0?!0:Te,Ke=Jt.filterTreeNode,wt=Jt.treeNodeFilterProp,Ht=wt===void 0?"value":wt,Hn=Jt.showCheckedStrategy,Jn=Jt.treeNodeLabelProp,lt=Jt.multiple,mt=Jt.treeCheckable,pt=Jt.treeCheckStrictly,xt=Jt.labelInValue,fn=Jt.maxCount,In=Jt.fieldNames,pn=Jt.treeDataSimpleMode,Sn=Jt.treeData,$n=Jt.children,qn=Jt.loadData,ur=Jt.treeLoadedKeys,tr=Jt.onTreeLoad,Xn=Jt.treeDefaultExpandAll,or=Jt.treeExpandedKeys,dr=Jt.treeDefaultExpandedKeys,br=Jt.onTreeExpand,vr=Jt.treeExpandAction,Tr=Jt.virtual,Br=Jt.listHeight,cr=Br===void 0?200:Br,Er=Jt.listItemHeight,Wr=Er===void 0?20:Er,Rr=Jt.listItemScrollOffset,Sr=Rr===void 0?0:Rr,Fr=Jt.onDropdownVisibleChange,$r=Jt.dropdownMatchSelectWidth,wr=$r===void 0?!0:$r,gr=Jt.treeLine,yr=Jt.treeIcon,Xr=Jt.showTreeIcon,go=Jt.switcherIcon,So=Jt.treeMotion,to=Jt.treeTitleRender,io=Jt.onPopupScroll,Oe=(0,Ve.Z)(Jt,le),We=(0,$e.ZP)(gn),bt=mt&&!pt,Ze=mt||pt,dt=pt||xt,at=Ze||lt,Mt=(0,Rt.Z)(Qt,{value:rr}),Bt=(0,be.Z)(Mt,2),Wt=Bt[0],En=Bt[1],Rn=b.useMemo(function(){return mt?Hn||te:ae},[Hn,mt]),hn=b.useMemo(function(){return me(In)},[JSON.stringify(In)]),Ln=(0,Rt.Z)("",{value:jn!==void 0?jn:vt,postState:function(Pr){return Pr||""}}),Gn=(0,be.Z)(Ln,2),lr=Gn[0],sr=Gn[1],pr=function(Pr){sr(Pr),Dt==null||Dt(Pr)},mr=se(Sn,$n,pn),kr=kt(mr,hn),xr=kr.keyEntities,Gr=kr.valueEntities,Or=b.useCallback(function(Zr){var Pr=[],Jr=[];return Zr.forEach(function(mo){Gr.has(mo)?Jr.push(mo):Pr.push(mo)}),{missingRawValues:Pr,existRawValues:Jr}},[Gr]),Dr=De(mr,lr,{fieldNames:hn,treeNodeFilterProp:Ht,filterTreeNode:Ke}),Ar=b.useCallback(function(Zr){if(Zr){if(Jn)return Zr[Jn];for(var Pr=hn._title,Jr=0;Jrya)){var ui=fo(Zr);if(En(ui),gt&&sr(""),Yt){var Zo=Zr;bt&&(Zo=mo.map(function(Pa){var ia=Gr.get(Pa);return ia?ia.node[hn.value]:Pa}));var $o=Pr||{triggerValue:void 0,selected:void 0},Ro=$o.triggerValue,hi=$o.selected,wi=Zo;if(pt){var Bi=Vr.filter(function(Pa){return!Zo.includes(Pa.value)});wi=[].concat((0,Pe.Z)(wi),(0,Pe.Z)(Bi))}var qi=fo(wi),oa={preValue:Qr,triggerValue:Ro},Ui=!0;(pt||Jr==="selection"&&!hi)&&(Ui=!1),ht(oa,Ro,Zr,mr,Ui,hn),Ze?oa.checked=hi:oa.selected=hi;var ja=dt?qi:qi.map(function(Pa){return Pa.value});Yt(at?ja:ja[0],dt?null:qi.map(function(Pa){return Pa.label}),oa)}}}),Qo=b.useCallback(function(Zr,Pr){var Jr,mo=Pr.selected,ui=Pr.source,Zo=xr[Zr],$o=Zo==null?void 0:Zo.node,Ro=(Jr=$o==null?void 0:$o[hn.value])!==null&&Jr!==void 0?Jr:Zr;if(!at)Qi([Ro],{selected:!0,triggerValue:Ro},"option");else{var hi=mo?[].concat((0,Pe.Z)(_o),[Ro]):Zi.filter(function(ia){return ia!==Ro});if(bt){var wi=Or(hi),Bi=wi.missingRawValues,qi=wi.existRawValues,oa=qi.map(function(ia){return Gr.get(ia).key}),Ui;if(mo){var ja=(0,Ee.S)(oa,!0,xr);Ui=ja.checkedKeys}else{var Pa=(0,Ee.S)(oa,{checked:!1,halfCheckedKeys:Si},xr);Ui=Pa.checkedKeys}hi=[].concat((0,Pe.Z)(Bi),(0,Pe.Z)(Ui.map(function(ia){return xr[ia].node[hn.value]})))}Qi(hi,{selected:mo,triggerValue:Ro},ui||"option")}mo||!at?xn==null||xn(Ro,Ot($o)):Vn==null||Vn(Ro,Ot($o))},[Or,Gr,xr,hn,at,_o,Qi,bt,xn,Vn,Zi,Si,fn]),Ha=b.useCallback(function(Zr){if(Fr){var Pr={};Object.defineProperty(Pr,"documentClickClose",{get:function(){return(0,ot.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Fr(Zr,Pr)}},[Fr]),Ba=ke(function(Zr,Pr){var Jr=Zr.map(function(mo){return mo.value});if(Pr.type==="clear"){Qi(Jr,{},"selection");return}Pr.values.length&&Qo(Pr.values[0].value,{selected:!1,source:"selection"})}),wo=b.useMemo(function(){return{virtual:Tr,dropdownMatchSelectWidth:wr,listHeight:cr,listItemHeight:Wr,listItemScrollOffset:Sr,treeData:Dr,fieldNames:hn,onSelect:Qo,treeExpandAction:vr,treeTitleRender:to,onPopupScroll:io,leftMaxCount:fn===void 0?null:fn-Di.length,leafCountOnly:Rn==="SHOW_CHILD"&&!pt&&!!mt,valueEntities:Gr}},[Tr,wr,cr,Wr,Sr,Dr,hn,Qo,vr,to,io,fn,Di.length,Rn,pt,mt,Gr]),Eo=b.useMemo(function(){return{checkable:Ze,loadData:qn,treeLoadedKeys:ur,onTreeLoad:tr,checkedKeys:Zi,halfCheckedKeys:Si,treeDefaultExpandAll:Xn,treeExpandedKeys:or,treeDefaultExpandedKeys:dr,onTreeExpand:br,treeIcon:yr,treeMotion:So,showTreeIcon:Xr,switcherIcon:go,treeLine:gr,treeNodeFilterProp:Ht,keyEntities:xr}},[Ze,qn,ur,tr,Zi,Si,Xn,or,dr,br,yr,So,Xr,go,gr,Ht,xr]);return b.createElement(Vt.Provider,{value:wo},b.createElement(_e.Provider,{value:Eo},b.createElement(ue.Ac,(0,et.Z)({ref:wn},Oe,{id:We,prefixCls:An,mode:at?"multiple":void 0,displayValues:Di,onDisplayValuesChange:Ba,searchValue:lr,onSearch:pr,OptionList:$t,emptyOptions:!mr.length,onDropdownVisibleChange:Ha,dropdownMatchSelectWidth:wr}))))}),He=Ge;He.TreeNode=tt,He.SHOW_ALL=ae,He.SHOW_PARENT=ne,He.SHOW_CHILD=te;var Le=He,rt=Le,ut=ee(2738),At=ee(75030),Ne=ee(86641),Be=ee(45915),Ut=ee(82855),Zt=ee(48755),mn=ee(38406),vn=ee(2171),jt=ee(83397),Cn=ee(31756),on=ee(56553),Je=ee(24971),Tt=ee(1722),an=ee(90376),_t=ee(68525),je=ee(90005),Pt=ee(70045),Kt=ee(57700),nn=ee(85278),On=ee(36237),_n=ee(36170),nr=ee(51636),ir=ee(16931),Zn=ee(12425);const er=Jt=>{const{componentCls:wn,treePrefixCls:gn,colorBgElevated:Nn}=Jt,An=`.${gn}`;return[{[`${wn}-dropdown`]:[{padding:`${(0,On.unit)(Jt.paddingXS)} ${(0,On.unit)(Jt.calc(Jt.paddingXS).div(2).equal())}`},(0,Zn.Yk)(gn,(0,nr.mergeToken)(Jt,{colorBgContainer:Nn}),!1),{[An]:{borderRadius:0,[`${An}-list-holder-inner`]:{alignItems:"stretch",[`${An}-treenode`]:{[`${An}-node-content-wrapper`]:{flex:"auto"}}}}},(0,_n.C2)(`${gn}-checkbox`,Jt),{"&-rtl":{direction:"rtl",[`${An}-switcher${An}-switcher_close`]:{[`${An}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},kn=null;function cn(Jt,wn,gn){return(0,ir.I$)("TreeSelect",Nn=>{const An=(0,nr.mergeToken)(Nn,{treePrefixCls:wn});return[er(An)]},Zn.TM)(Jt,gn)}var bn=function(Jt,wn){var gn={};for(var Nn in Jt)Object.prototype.hasOwnProperty.call(Jt,Nn)&&wn.indexOf(Nn)<0&&(gn[Nn]=Jt[Nn]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,Nn=Object.getOwnPropertySymbols(Jt);An{var gn;const{prefixCls:Nn,size:An,disabled:rr,bordered:Qt=!0,className:Yt,rootClassName:xn,treeCheckable:Vn,multiple:jn,listHeight:vt=256,listItemHeight:Dt,placement:Te,notFoundContent:gt,switcherIcon:Ke,treeLine:wt,getPopupContainer:Ht,popupClassName:Hn,dropdownClassName:Jn,treeIcon:lt=!1,transitionName:mt,choiceTransitionName:pt="",status:xt,treeExpandAction:fn,builtinPlacements:In,dropdownMatchSelectWidth:pn,popupMatchSelectWidth:Sn,allowClear:$n,variant:qn,dropdownStyle:ur,tagRender:tr,maxCount:Xn,showCheckedStrategy:or,treeCheckStrictly:dr}=Jt,br=bn(Jt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:vr,getPrefixCls:Tr,renderEmpty:Br,direction:cr,virtual:Er,popupMatchSelectWidth:Wr,popupOverflow:Rr}=b.useContext(Zt.E_),[,Sr]=(0,Kt.ZP)(),Fr=Dt!=null?Dt:(Sr==null?void 0:Sr.controlHeightSM)+(Sr==null?void 0:Sr.paddingXXS),$r=Tr(),wr=Tr("select",Nn),gr=Tr("select-tree",Nn),yr=Tr("tree-select",Nn),{compactSize:Xr,compactItemClassnames:go}=(0,Pt.ri)(wr,cr),So=(0,jt.Z)(wr),to=(0,jt.Z)(yr),[io,Oe,We]=(0,an.Z)(wr,So),[bt]=cn(yr,gr,to),[Ze,dt]=(0,Je.Z)("treeSelect",qn,Qt),at=ce()(Hn||Jn,`${yr}-dropdown`,{[`${yr}-dropdown-rtl`]:cr==="rtl"},xn,We,So,to,Oe),Mt=!!(Vn||jn),Bt=b.useMemo(()=>{if(!(Xn&&(or==="SHOW_ALL"&&!dr||or==="SHOW_PARENT")))return Xn},[Xn,or,dr]),Wt=(0,je.Z)(Jt.suffixIcon,Jt.showArrow),En=(gn=Sn!=null?Sn:pn)!==null&&gn!==void 0?gn:Wr,{status:Rn,hasFeedback:hn,isFormItemInput:Ln,feedbackIcon:Gn}=b.useContext(on.aM),lr=(0,Ut.F)(Rn,xt),{suffixIcon:sr,removeIcon:pr,clearIcon:mr}=(0,_t.Z)(Object.assign(Object.assign({},br),{multiple:Mt,showSuffixIcon:Wt,hasFeedback:hn,feedbackIcon:Gn,prefixCls:wr,componentName:"TreeSelect"})),kr=$n===!0?{clearIcon:mr}:$n;let xr;gt!==void 0?xr=gt:xr=(Br==null?void 0:Br("Select"))||b.createElement(mn.Z,{componentName:"Select"});const Gr=(0,ut.Z)(br,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Or=b.useMemo(()=>Te!==void 0?Te:cr==="rtl"?"bottomRight":"bottomLeft",[Te,cr]),Dr=(0,Cn.Z)(Qr=>{var Vr;return(Vr=An!=null?An:Xr)!==null&&Vr!==void 0?Vr:Qr}),Ar=b.useContext(vn.Z),_r=rr!=null?rr:Ar,fo=ce()(!Nn&&yr,{[`${wr}-lg`]:Dr==="large",[`${wr}-sm`]:Dr==="small",[`${wr}-rtl`]:cr==="rtl",[`${wr}-${Ze}`]:dt,[`${wr}-in-form-item`]:Ln},(0,Ut.Z)(wr,lr,hn),go,Yt,xn,We,So,to,Oe),ko=Qr=>b.createElement(nn.Z,{prefixCls:gr,switcherIcon:Ke,treeNodeProps:Qr,showLine:wt}),[Io]=(0,At.Cn)("SelectLike",ur==null?void 0:ur.zIndex),Vo=b.createElement(rt,Object.assign({virtual:Er,disabled:_r},Gr,{dropdownMatchSelectWidth:En,builtinPlacements:(0,Tt.Z)(In,Rr),ref:wn,prefixCls:wr,className:fo,listHeight:vt,listItemHeight:Fr,treeCheckable:Vn&&b.createElement("span",{className:`${wr}-tree-checkbox-inner`}),treeLine:!!wt,suffixIcon:sr,multiple:Mt,placement:Or,removeIcon:pr,allowClear:kr,switcherIcon:ko,showTreeIcon:lt,notFoundContent:xr,getPopupContainer:Ht||vr,treeMotion:null,dropdownClassName:at,dropdownStyle:Object.assign(Object.assign({},ur),{zIndex:Io}),choiceTransitionName:(0,Ne.m)($r,"",pt),transitionName:(0,Ne.m)($r,"slide-up",mt),treeExpandAction:fn,tagRender:Mt?tr:void 0,maxCount:Bt,showCheckedStrategy:or,treeCheckStrictly:dr}));return io(bt(Vo))},sn=b.forwardRef(St),Pn=(0,Be.Z)(sn,"dropdownAlign",Jt=>(0,ut.Z)(Jt,["visible"]));sn.TreeNode=tt,sn.SHOW_ALL=ae,sn.SHOW_PARENT=ne,sn.SHOW_CHILD=te,sn._InternalPanelDoNotUseOrYouWillBeFired=Pn;var Tn=sn},18287:function(Bn,rn,ee){"use strict";ee.d(rn,{default:function(){return Lt}});var b=ee(87632),Me=ee(77654),ce=ee(59301),et=ee(52671),Pe=ee(8657),pe=ee(60499),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Ve=be,Ie=ee(7657),ue=function(qe,it){return ce.createElement(Ie.Z,(0,pe.Z)({},qe,{ref:it,icon:Ve}))},$e=ce.forwardRef(ue),Ee=$e,Rt=ee(92310),ot=ee.n(Rt),st=ee(82661),Ue=ee(34061),Re=ee(48755),ft=ee(56082),kt=ee(86641),en=ee(57700),Qe=ee(12425);const Ae=4;function tt(me){const{dropPosition:qe,dropLevelOffset:it,prefixCls:Xt,indent:Xe,direction:Gt="ltr"}=me,Fe=Gt==="ltr"?"left":"right",dn=Gt==="ltr"?"right":"left",$t={[Fe]:-it*Xe+Ae,[dn]:0};switch(qe){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Fe]=Xe+Ae;break}return ce.createElement("div",{style:$t,className:`${Xt}-drop-indicator`})}var nt=tt,zt=ee(85278),ht=ce.forwardRef((me,qe)=>{var it;const{getPrefixCls:Xt,direction:Xe,virtual:Gt,tree:Fe}=ce.useContext(Re.E_),{prefixCls:dn,className:$t,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:ie,blockNode:de=!1,children:re,checkable:le=!1,selectable:Se=!0,draggable:Ge,motion:He,style:Le}=me,rt=Xt("tree",dn),ut=Xt(),At=He!=null?He:Object.assign(Object.assign({},(0,kt.Z)(ut)),{motionAppear:!1}),Ne=Object.assign(Object.assign({},me),{checkable:le,selectable:Se,showIcon:ae,motion:At,blockNode:de,showLine:!!ne,dropIndicatorRender:nt}),[Be,Ut,Zt]=(0,Qe.ZP)(rt),[,mn]=(0,en.ZP)(),vn=mn.paddingXS/2+(((it=mn.Tree)===null||it===void 0?void 0:it.titleHeight)||mn.controlHeightSM),jt=ce.useMemo(()=>{if(!Ge)return!1;let on={};switch(typeof Ge){case"function":on.nodeDraggable=Ge;break;case"object":on=Object.assign({},Ge);break;default:break}return on.icon!==!1&&(on.icon=on.icon||ce.createElement(ft.Z,null)),on},[Ge]),Cn=on=>ce.createElement(zt.Z,{prefixCls:rt,switcherIcon:te,switcherLoadingIcon:ie,treeNodeProps:on,showLine:ne});return Be(ce.createElement(b.ZP,Object.assign({itemHeight:vn,ref:qe,virtual:Gt},Ne,{style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Le),prefixCls:rt,className:ot()({[`${rt}-icon-hide`]:!ae,[`${rt}-block-node`]:de,[`${rt}-unselectable`]:!Se,[`${rt}-rtl`]:Xe==="rtl"},Fe==null?void 0:Fe.className,$t,Ut,Zt),direction:Xe,checkable:le&&ce.createElement("span",{className:`${rt}-checkbox-inner`}),selectable:Se,switcherIcon:Cn,draggable:jt}),re))});const Ct=0,De=1,ke=2;function xe(me,qe,it){const{key:Xt,children:Xe}=it;function Gt(Fe){const dn=Fe[Xt],$t=Fe[Xe];qe(dn,Fe)!==!1&&xe($t||[],qe,it)}me.forEach(Gt)}function se(me){let{treeData:qe,expandedKeys:it,startKey:Xt,endKey:Xe,fieldNames:Gt}=me;const Fe=[];let dn=Ct;if(Xt&&Xt===Xe)return[Xt];if(!Xt||!Xe)return[];function $t(ae){return ae===Xt||ae===Xe}return xe(qe,ae=>{if(dn===ke)return!1;if($t(ae)){if(Fe.push(ae),dn===Ct)dn=De;else if(dn===De)return dn=ke,!1}else dn===De&&Fe.push(ae);return it.includes(ae)},(0,Ue.w$)(Gt)),Fe}function It(me,qe,it){const Xt=(0,Me.Z)(qe),Xe=[];return xe(me,(Gt,Fe)=>{const dn=Xt.indexOf(Gt);return dn!==-1&&(Xe.push(Fe),Xt.splice(dn,1)),!!Xt.length},(0,Ue.w$)(it)),Xe}var _e=function(me,qe){var it={};for(var Xt in me)Object.prototype.hasOwnProperty.call(me,Xt)&&qe.indexOf(Xt)<0&&(it[Xt]=me[Xt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Xt=Object.getOwnPropertySymbols(me);Xe{var{defaultExpandAll:it,defaultExpandParent:Xt,defaultExpandedKeys:Xe}=me,Gt=_e(me,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Fe=ce.useRef(null),dn=ce.useRef(null),$t=()=>{const{keyEntities:Be}=(0,Ue.I8)(Ft(Gt));let Ut;return it?Ut=Object.keys(Be):Xt?Ut=(0,st.r7)(Gt.expandedKeys||Xe||[],Be):Ut=Gt.expandedKeys||Xe||[],Ut},[ae,ne]=ce.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[te,ie]=ce.useState(()=>$t());ce.useEffect(()=>{"selectedKeys"in Gt&&ne(Gt.selectedKeys)},[Gt.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in Gt&&ie(Gt.expandedKeys)},[Gt.expandedKeys]);const de=(Be,Ut)=>{var Zt;return"expandedKeys"in Gt||ie(Be),(Zt=Gt.onExpand)===null||Zt===void 0?void 0:Zt.call(Gt,Be,Ut)},re=(Be,Ut)=>{var Zt;const{multiple:mn,fieldNames:vn}=Gt,{node:jt,nativeEvent:Cn}=Ut,{key:on=""}=jt,Je=Ft(Gt),Tt=Object.assign(Object.assign({},Ut),{selected:!0}),an=(Cn==null?void 0:Cn.ctrlKey)||(Cn==null?void 0:Cn.metaKey),_t=Cn==null?void 0:Cn.shiftKey;let je;mn&&an?(je=Be,Fe.current=on,dn.current=je,Tt.selectedNodes=It(Je,je,vn)):mn&&_t?(je=Array.from(new Set([].concat((0,Me.Z)(dn.current||[]),(0,Me.Z)(se({treeData:Je,expandedKeys:te,startKey:on,endKey:Fe.current,fieldNames:vn}))))),Tt.selectedNodes=It(Je,je,vn)):(je=[on],Fe.current=on,dn.current=je,Tt.selectedNodes=It(Je,je,vn)),(Zt=Gt.onSelect)===null||Zt===void 0||Zt.call(Gt,je,Tt),"selectedKeys"in Gt||ne(je)},{getPrefixCls:le,direction:Se}=ce.useContext(Re.E_),{prefixCls:Ge,className:He,showIcon:Le=!0,expandAction:rt="click"}=Gt,ut=_e(Gt,["prefixCls","className","showIcon","expandAction"]),At=le("tree",Ge),Ne=ot()(`${At}-directory`,{[`${At}-directory-rtl`]:Se==="rtl"},He);return ce.createElement(ht,Object.assign({icon:Ye,ref:qe,blockNode:!0},ut,{showIcon:Le,expandAction:rt,prefixCls:At,className:Ne,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:de}))};var yt=ce.forwardRef(Ce);const Vt=ht;Vt.DirectoryTree=yt,Vt.TreeNode=b.OF;var Lt=Vt},12425:function(Bn,rn,ee){"use strict";ee.d(rn,{ZP:function(){return st},Yk:function(){return Ee},TM:function(){return Rt}});var b=ee(36237),Me=ee(36170),ce=ee(63356),et=ee(34961),Pe=ee(51636),pe=ee(16931);const be=Ue=>{let{treeCls:Re,treeNodeCls:ft,directoryNodeSelectedBg:kt,directoryNodeSelectedColor:en,motionDurationMid:Qe,borderRadius:Ae,controlItemBgHover:tt}=Ue;return{[`${Re}${Re}-directory ${ft}`]:{[`${Re}-node-content-wrapper`]:{position:"static",[`> *:not(${Re}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Qe}`,content:'""',borderRadius:Ae},"&:hover:before":{background:tt}},[`${Re}-switcher, ${Re}-checkbox, ${Re}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Re}-switcher, ${Re}-draggable-icon`]:{color:en},[`${Re}-node-content-wrapper`]:{color:en,background:"transparent","&:before, &:hover:before":{background:kt}}}}}},Ve=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ie=(Ue,Re)=>({[`.${Ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Re.motionDurationSlow}`}}}),ue=(Ue,Re)=>({[`.${Ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Re.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,b.unit)(Re.lineWidthBold)} solid ${Re.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$e=(Ue,Re)=>{const{treeCls:ft,treeNodeCls:kt,treeNodePadding:en,titleHeight:Qe,indentSize:Ae,nodeSelectedBg:tt,nodeHoverBg:nt,colorTextQuaternary:zt,controlItemBgActiveDisabled:Ot}=Re;return{[ft]:Object.assign(Object.assign({},(0,ce.Wf)(Re)),{background:Re.colorBgContainer,borderRadius:Re.borderRadius,transition:`background-color ${Re.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${ft}-rtl ${ft}-switcher_close ${ft}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${ft}-active-focused)`]:Object.assign({},(0,ce.oN)(Re)),[`${ft}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ft}-block-node`]:{[`${ft}-list-holder-inner`]:{alignItems:"stretch",[`${ft}-node-content-wrapper`]:{flex:"auto"},[`${kt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Re.colorPrimary}`,opacity:0,animationName:Ve,animationDuration:Re.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Re.borderRadius}}},[kt]:{display:"flex",alignItems:"flex-start",marginBottom:en,lineHeight:(0,b.unit)(Qe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:en},[`&-disabled ${ft}-node-content-wrapper`]:{color:Re.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${ft}-checkbox-disabled + ${ft}-node-selected,&${kt}-disabled${kt}-selected ${ft}-node-content-wrapper`]:{backgroundColor:Ot},[`${ft}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${kt}-disabled)`]:{[`${ft}-node-content-wrapper`]:{"&:hover":{color:Re.nodeHoverColor}}},[`&-active ${ft}-node-content-wrapper`]:{background:Re.controlItemBgHover},[`&:not(${kt}-disabled).filter-node ${ft}-title`]:{color:Re.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${ft}-draggable-icon`]:{flexShrink:0,width:Qe,textAlign:"center",visibility:"visible",color:zt},[`&${kt}-disabled ${ft}-draggable-icon`]:{visibility:"hidden"}}},[`${ft}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ae}},[`${ft}-draggable-icon`]:{visibility:"hidden"},[`${ft}-switcher, ${ft}-checkbox`]:{marginInlineEnd:Re.calc(Re.calc(Qe).sub(Re.controlInteractiveSize)).div(2).equal()},[`${ft}-switcher`]:Object.assign(Object.assign({},Ie(Ue,Re)),{position:"relative",flex:"none",alignSelf:"stretch",width:Qe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Re.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Qe,height:Qe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Re.borderRadius,transition:`all ${Re.motionDurationSlow}`},[`&:not(${ft}-switcher-noop):hover:before`]:{backgroundColor:Re.colorBgTextHover},[`&_close ${ft}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Re.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Re.calc(Qe).div(2).equal(),bottom:Re.calc(en).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Re.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Re.calc(Re.calc(Qe).div(2).equal()).mul(.8).equal(),height:Re.calc(Qe).div(2).equal(),borderBottom:`1px solid ${Re.colorBorder}`,content:'""'}}}),[`${ft}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Qe,paddingBlock:0,paddingInline:Re.paddingXS,background:"transparent",borderRadius:Re.borderRadius,cursor:"pointer",transition:`all ${Re.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ue(Ue,Re)),{"&:hover":{backgroundColor:nt},[`&${ft}-node-selected`]:{color:Re.nodeSelectedColor,backgroundColor:tt},[`${ft}-iconEle`]:{display:"inline-block",width:Qe,height:Qe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${ft}-unselectable ${ft}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${kt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Re.colorPrimary}`},"&-show-line":{[`${ft}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Re.calc(Qe).div(2).equal(),bottom:Re.calc(en).mul(-1).equal(),borderInlineEnd:`1px solid ${Re.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${ft}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${kt}-leaf-last ${ft}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(Re.calc(Qe).div(2).equal())} !important`}})}},Ee=function(Ue,Re){let ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const kt=`.${Ue}`,en=`${kt}-treenode`,Qe=Re.calc(Re.paddingXS).div(2).equal(),Ae=(0,Pe.mergeToken)(Re,{treeCls:kt,treeNodeCls:en,treeNodePadding:Qe});return[$e(Ue,Ae),ft&&be(Ae)].filter(Boolean)},Rt=Ue=>{const{controlHeightSM:Re,controlItemBgHover:ft,controlItemBgActive:kt}=Ue,en=Re;return{titleHeight:en,indentSize:en,nodeHoverBg:ft,nodeHoverColor:Ue.colorText,nodeSelectedBg:kt,nodeSelectedColor:Ue.colorText}},ot=Ue=>{const{colorTextLightSolid:Re,colorPrimary:ft}=Ue;return Object.assign(Object.assign({},Rt(Ue)),{directoryNodeSelectedColor:Re,directoryNodeSelectedBg:ft})};var st=(0,pe.I$)("Tree",(Ue,Re)=>{let{prefixCls:ft}=Re;return[{[Ue.componentCls]:(0,Me.C2)(`${ft}-checkbox`,Ue)},Ee(ft,Ue),(0,et.Z)(Ue)]},ot)},85278:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Re}});var b=ee(59301),Me=ee(60499),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},et=ce,Pe=ee(7657),pe=function(kt,en){return b.createElement(Pe.Z,(0,Me.Z)({},kt,{ref:en,icon:et}))},be=b.forwardRef(pe),Ve=be,Ie=ee(52671),ue=ee(58617),$e=ee(15075),Ee=ee(43531),Rt=ee(92310),ot=ee.n(Rt),st=ee(22703),Re=ft=>{const{prefixCls:kt,switcherIcon:en,treeNodeProps:Qe,showLine:Ae,switcherLoadingIcon:tt}=ft,{isLeaf:nt,expanded:zt,loading:Ot}=Qe;if(Ot)return b.isValidElement(tt)?tt:b.createElement(ue.Z,{className:`${kt}-switcher-loading-icon`});let ht;if(Ae&&typeof Ae=="object"&&(ht=Ae.showLeafIcon),nt){if(!Ae)return null;if(typeof ht!="boolean"&&ht){const ke=typeof ht=="function"?ht(Qe):ht,xe=`${kt}-switcher-line-custom-icon`;return b.isValidElement(ke)?(0,st.Tm)(ke,{className:ot()(ke.props.className||"",xe)}):ke}return ht?b.createElement(Ie.Z,{className:`${kt}-switcher-line-icon`}):b.createElement("span",{className:`${kt}-switcher-leaf-line`})}const Ct=`${kt}-switcher-icon`,De=typeof en=="function"?en(Qe):en;return b.isValidElement(De)?(0,st.Tm)(De,{className:ot()(De.props.className||"",Ct)}):De!==void 0?De:Ae?zt?b.createElement($e.Z,{className:`${kt}-switcher-line-icon`}):b.createElement(Ee.Z,{className:`${kt}-switcher-line-icon`}):b.createElement(Ve,{className:Ct})}},99498:function(Bn,rn,ee){(function(b){b(ee(89780))})(function(b){b.defineOption("placeholder","",function(Ve,Ie,ue){var $e=ue&&ue!=b.Init;if(Ie&&!$e)Ve.on("blur",Pe),Ve.on("change",pe),Ve.on("swapDoc",pe),b.on(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose=function(){et(Ve)}),pe(Ve);else if(!Ie&&$e){Ve.off("blur",Pe),Ve.off("change",pe),Ve.off("swapDoc",pe),b.off(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose),Me(Ve);var Ee=Ve.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}Ie&&!Ve.hasFocus()&&Pe(Ve)});function Me(Ve){Ve.state.placeholder&&(Ve.state.placeholder.parentNode.removeChild(Ve.state.placeholder),Ve.state.placeholder=null)}function ce(Ve){Me(Ve);var Ie=Ve.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Ve.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var ue=Ve.getOption("placeholder");typeof ue=="string"&&(ue=document.createTextNode(ue)),Ie.appendChild(ue),Ve.display.lineSpace.insertBefore(Ie,Ve.display.lineSpace.firstChild)}function et(Ve){setTimeout(function(){var Ie=!1,ue=Ve.getInputField();ue.nodeName=="TEXTAREA"?Ie=!ue.value:Ve.lineCount()==1&&(Ie=!/[^\u200b]/.test(ue.querySelector(".CodeMirror-line").textContent)),Ie?ce(Ve):Me(Ve)},20)}function Pe(Ve){be(Ve)&&ce(Ve)}function pe(Ve){var Ie=Ve.getWrapperElement(),ue=be(Ve);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(ue?" CodeMirror-empty":""),ue?ce(Ve):Me(Ve)}function be(Ve){return Ve.lineCount()===1&&Ve.getLine(0)===""}})},25717:function(Bn,rn,ee){(function(b){b(ee(89780))})(function(b){var Me={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ce=b.Pos;b.defineOption("autoCloseBrackets",!1,function(st,Ue,Re){Re&&Re!=b.Init&&(st.removeKeyMap(Pe),st.state.closeBrackets=null),Ue&&(pe(et(Ue,"pairs")),st.state.closeBrackets=Ue,st.addKeyMap(Pe))});function et(st,Ue){return Ue=="pairs"&&typeof st=="string"?st:typeof st=="object"&&st[Ue]!=null?st[Ue]:Me[Ue]}var Pe={Backspace:Ie,Enter:ue};function pe(st){for(var Ue=0;Ue=0;kt--){var Qe=ft[kt].head;st.replaceRange("",ce(Qe.line,Qe.ch-1),ce(Qe.line,Qe.ch+1),"+delete")}}function ue(st){var Ue=Ve(st),Re=Ue&&et(Ue,"explode");if(!Re||st.getOption("disableInput"))return b.Pass;for(var ft=st.listSelections(),kt=0;kt0;return{anchor:new ce(st.anchor.line,st.anchor.ch+(Ue?-1:1)),head:new ce(st.head.line,st.head.ch+(Ue?1:-1))}}function Ee(st,Ue){var Re=Ve(st);if(!Re||st.getOption("disableInput"))return b.Pass;var ft=et(Re,"pairs"),kt=ft.indexOf(Ue);if(kt==-1)return b.Pass;for(var en=et(Re,"closeBefore"),Qe=et(Re,"triples"),Ae=ft.charAt(kt+1)==Ue,tt=st.listSelections(),nt=kt%2==0,zt,Ot=0;Ot=0&&st.getRange(Ct,ce(Ct.line,Ct.ch+3))==Ue+Ue+Ue?De="skipThree":De="skip";else if(Ae&&Ct.ch>1&&Qe.indexOf(Ue)>=0&&st.getRange(ce(Ct.line,Ct.ch-2),Ct)==Ue+Ue){if(Ct.ch>2&&/\bstring/.test(st.getTokenTypeAt(ce(Ct.line,Ct.ch-2))))return b.Pass;De="addFour"}else if(Ae){var xe=Ct.ch==0?" ":st.getRange(ce(Ct.line,Ct.ch-1),Ct);if(!b.isWordChar(ke)&&xe!=Ue&&!b.isWordChar(xe))De="both";else return b.Pass}else if(nt&&(ke.length===0||/\s/.test(ke)||en.indexOf(ke)>-1))De="both";else return b.Pass;if(!zt)zt=De;else if(zt!=De)return b.Pass}var se=kt%2?ft.charAt(kt-1):Ue,It=kt%2?Ue:ft.charAt(kt+1);st.operation(function(){if(zt=="skip")st.execCommand("goCharRight");else if(zt=="skipThree")for(var _e=0;_e<3;_e++)st.execCommand("goCharRight");else if(zt=="surround"){for(var Ye=st.getSelections(),_e=0;_e'"]=function(Rt){return et(Rt)}),Ie.addKeyMap(Ee)}});var Me=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ce=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function et(Ie){if(Ie.getOption("disableInput"))return b.Pass;for(var ue=Ie.listSelections(),$e=[],Ee=Ie.getOption("autoCloseTags"),Rt=0;Rtot.ch&&(kt=kt.slice(0,kt.length-st.end+ot.ch));var tt=kt.toLowerCase();if(!kt||st.type=="string"&&(st.end!=ot.ch||!/[\"\']/.test(st.string.charAt(st.string.length-1))||st.string.length==1)||st.type=="tag"&&ft.close||st.string.indexOf("/")==ot.ch-st.start-1||Qe&&be(Qe,tt)>-1||Ve(Ie,Ue.mode.xmlCurrentContext&&Ue.mode.xmlCurrentContext(Re)||[],kt,ot,!0))return b.Pass;var nt=typeof Ee=="object"&&Ee.emptyTags;if(nt&&be(nt,kt)>-1){$e[Rt]={text:"/>",newPos:b.Pos(ot.line,ot.ch+2)};continue}var zt=Ae&&be(Ae,tt)>-1;$e[Rt]={indent:zt,text:">"+(zt?` `:"")+"",newPos:zt?b.Pos(ot.line+1,0):b.Pos(ot.line,ot.ch+1)}}for(var Ot=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Rt=ue.length-1;Rt>=0;Rt--){var ht=$e[Rt];Ie.replaceRange(ht.text,ue[Rt].head,ue[Rt].anchor,"+insert");var Ct=Ie.listSelections().slice(0);Ct[Rt]={head:ht.newPos,anchor:ht.newPos},Ie.setSelections(Ct),!Ot&&ht.indent&&(Ie.indentLine(ht.newPos.line,null,!0),Ie.indentLine(ht.newPos.line+1,null,!0))}}function Pe(Ie,ue){for(var $e=Ie.listSelections(),Ee=[],Rt=ue?"/":""&&(Qe+=">"),Ee[Ue]=Qe}if(Ie.replaceSelections(Ee),$e=Ie.listSelections(),!st)for(var Ue=0;Ue<$e.length;Ue++)(Ue==$e.length-1||$e[Ue].head.line<$e[Ue+1].head.line)&&Ie.indentLine($e[Ue].head.line)}function pe(Ie){return Ie.getOption("disableInput")?b.Pass:Pe(Ie,!0)}b.commands.closeTag=function(Ie){return Pe(Ie)};function be(Ie,ue){if(Ie.indexOf)return Ie.indexOf(ue);for(var $e=0,Ee=Ie.length;$e=0&&ue[Re]==$e;Re--)++Ue;Ee=st.to;for(var Re=1;Re=Re.max))return Re.ch=0,Re.text=Re.cm.getLine(++Re.line),!0}function ue(Re){if(!(Re.line<=Re.min))return Re.text=Re.cm.getLine(--Re.line),Re.ch=Re.text.length,!0}function $e(Re){for(;;){var ft=Re.text.indexOf(">",Re.ch);if(ft==-1){if(Ie(Re))continue;return}if(!Ve(Re,ft+1)){Re.ch=ft+1;continue}var kt=Re.text.lastIndexOf("/",ft),en=kt>-1&&!/\S/.test(Re.text.slice(kt+1,ft));return Re.ch=ft+1,en?"selfClose":"regular"}}function Ee(Re){for(;;){var ft=Re.ch?Re.text.lastIndexOf("<",Re.ch-1):-1;if(ft==-1){if(ue(Re))continue;return}if(!Ve(Re,ft+1)){Re.ch=ft;continue}pe.lastIndex=ft,Re.ch=ft;var kt=pe.exec(Re.text);if(kt&&kt.index==ft)return kt}}function Rt(Re){for(;;){pe.lastIndex=Re.ch;var ft=pe.exec(Re.text);if(!ft){if(Ie(Re))continue;return}if(!Ve(Re,ft.index+1)){Re.ch=ft.index+1;continue}return Re.ch=ft.index+ft[0].length,ft}}function ot(Re){for(;;){var ft=Re.ch?Re.text.lastIndexOf(">",Re.ch-1):-1;if(ft==-1){if(ue(Re))continue;return}if(!Ve(Re,ft+1)){Re.ch=ft;continue}var kt=Re.text.lastIndexOf("/",ft),en=kt>-1&&!/\S/.test(Re.text.slice(kt+1,ft));return Re.ch=ft+1,en?"selfClose":"regular"}}function st(Re,ft){for(var kt=[];;){var en=Rt(Re),Qe,Ae=Re.line,tt=Re.ch-(en?en[0].length:0);if(!en||!(Qe=$e(Re)))return;if(Qe!="selfClose")if(en[1]){for(var nt=kt.length-1;nt>=0;--nt)if(kt[nt]==en[2]){kt.length=nt;break}if(nt<0&&(!ft||ft==en[2]))return{tag:en[2],from:Me(Ae,tt),to:Me(Re.line,Re.ch)}}else kt.push(en[2])}}function Ue(Re,ft){for(var kt=[];;){var en=ot(Re);if(!en)return;if(en=="selfClose"){Ee(Re);continue}var Qe=Re.line,Ae=Re.ch,tt=Ee(Re);if(!tt)return;if(tt[1])kt.push(tt[2]);else{for(var nt=kt.length-1;nt>=0;--nt)if(kt[nt]==tt[2]){kt.length=nt;break}if(nt<0&&(!ft||ft==tt[2]))return{tag:tt[2],from:Me(Re.line,Re.ch),to:Me(Qe,Ae)}}}}b.registerHelper("fold","xml",function(Re,ft){for(var kt=new be(Re,ft.line,0);;){var en=Rt(kt);if(!en||kt.line!=ft.line)return;var Qe=$e(kt);if(!Qe)return;if(!en[1]&&Qe!="selfClose"){var Ae=Me(kt.line,kt.ch),tt=st(kt,en[2]);return tt&&ce(tt.from,Ae)>0?{from:Ae,to:tt.from}:null}}}),b.findMatchingTag=function(Re,ft,kt){var en=new be(Re,ft.line,ft.ch,kt);if(!(en.text.indexOf(">")==-1&&en.text.indexOf("<")==-1)){var Qe=$e(en),Ae=Qe&&Me(en.line,en.ch),tt=Qe&&Ee(en);if(!(!Qe||!tt||ce(en,ft)>0)){var nt={from:Me(en.line,en.ch),to:Ae,tag:tt[2]};return Qe=="selfClose"?{open:nt,close:null,at:"open"}:tt[1]?{open:Ue(en,tt[2]),close:nt,at:"close"}:(en=new be(Re,Ae.line,Ae.ch,kt),{open:nt,close:st(en,tt[2]),at:"open"})}}},b.findEnclosingTag=function(Re,ft,kt,en){for(var Qe=new be(Re,ft.line,ft.ch,kt);;){var Ae=Ue(Qe,en);if(!Ae)break;var tt=new be(Re,ft.line,ft.ch,kt),nt=st(tt,Ae.tag);if(nt)return{open:Ae,close:nt}}},b.scanForClosingTag=function(Re,ft,kt,en){var Qe=new be(Re,ft.line,ft.ch,en?{from:0,to:en}:null);return st(Qe,kt)}})},89780:function(Bn){(function(rn,ee){Bn.exports=ee()})(this,function(){"use strict";var rn=navigator.userAgent,ee=navigator.platform,b=/gecko\/\d/i.test(rn),Me=/MSIE \d/.test(rn),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rn),et=/Edge\/(\d+)/.exec(rn),Pe=Me||ce||et,pe=Pe&&(Me?document.documentMode||6:+(et||ce)[1]),be=!et&&/WebKit\//.test(rn),Ve=be&&/Qt\/\d+\.\d+/.test(rn),Ie=!et&&/Chrome\//.test(rn),ue=/Opera\//.test(rn),$e=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(rn),Rt=/PhantomJS/.test(rn),ot=!et&&/AppleWebKit/.test(rn)&&/Mobile\/\w+/.test(rn),st=/Android/.test(rn),Ue=ot||st||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(rn),Re=ot||/Mac/.test(ee),ft=/\bCrOS\b/.test(rn),kt=/win/i.test(ee),en=ue&&rn.match(/Version\/(\d*\.\d*)/);en&&(en=Number(en[1])),en&&en>=15&&(ue=!1,be=!0);var Qe=Re&&(Ve||ue&&(en==null||en<12.11)),Ae=b||Pe&&pe>=9;function tt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var nt=function(a,y){var E=a.className,x=tt(y).exec(E);if(x){var z=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(z?x[1]+z:"")}};function zt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ot(a,y){return zt(a).appendChild(y)}function ht(a,y,E,x){var z=document.createElement(a);if(E&&(z.className=E),x&&(z.style.cssText=x),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var oe=0;oe=y)return fe+(y-oe);fe+=ve-oe,fe+=E-fe%E,oe=ve+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=Ye(this.onTimeout,this)};he.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},he.prototype.set=function(a,y){this.f=y;var E=+new Date+a;(!this.id||E=y)return x+Math.min(fe,y-z);if(z+=oe-x,z+=E-z%E,x=oe+1,z>=y)return x}}var Xe=[""];function Gt(a){for(;Xe.length<=a;)Xe.push(Fe(Xe)+" ");return Xe[a]}function Fe(a){return a[a.length-1]}function dn(a,y){for(var E=[],x=0;x"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function de(a,y){return y?y.source.indexOf("\\w")>-1&&ie(a)?!0:y.test(a):ie(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var le=/[\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 Se(a){return a.charCodeAt(0)>=768&&le.test(a)}function Ge(a,y,E){for(;(E<0?y>0:yE?-1:1;;){if(y==E)return y;var z=(y+E)/2,oe=x<0?Math.ceil(z):Math.floor(z);if(oe==y)return a(oe)?y:E;a(oe)?E=oe:y=oe+x}}function Le(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var z=!1,oe=0;oey||y==E&&fe.to==y)&&(x(Math.max(fe.from,y),Math.min(fe.to,E),fe.level==1?"rtl":"ltr",oe),z=!0)}z||x(y,E,"ltr")}var rt=null;function ut(a,y,E){var x;rt=null;for(var z=0;zy)return z;oe.to==y&&(oe.from!=oe.to&&E=="before"?x=z:rt=z),oe.from==y&&(oe.from!=oe.to&&E!="before"?x=z:rt=z)}return x!=null?x:rt}var At=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(ze){return ze<=247?a.charAt(ze):1424<=ze&&ze<=1524?"R":1536<=ze&&ze<=1785?y.charAt(ze-1536):1774<=ze&&ze<=2220?"r":8192<=ze&&ze<=8203?"w":ze==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,oe=/[LRr]/,fe=/[Lb1n]/,ve=/[1n]/;function we(ze,tn,un){this.level=ze,this.from=tn,this.to=un}return function(ze,tn){var un=tn=="ltr"?"L":"R";if(ze.length==0||tn=="ltr"&&!x.test(ze))return!1;for(var Un=ze.length,zn=[],hr=0;hr-1&&(x[y]=z.slice(0,oe).concat(z.slice(oe+1)))}}}function vn(a,y){var E=Zt(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),z=0;z0}function Je(a){a.prototype.on=function(y,E){Ut(this,y,E)},a.prototype.off=function(y,E){mn(this,y,E)}}function Tt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function an(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function _t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function je(a){Tt(a),an(a)}function Pt(a){return a.target||a.srcElement}function Kt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Re&&a.ctrlKey&&y==1&&(y=3),y}var nn=function(){if(Pe&&pe<9)return!1;var a=ht("div");return"draggable"in a||"dragDrop"in a}(),On;function _n(a){if(On==null){var y=ht("span","\u200B");Ot(a,ht("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(On=y.offsetWidth<=1&&y.offsetHeight>2&&!(Pe&&pe<8))}var E=On?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var nr;function ir(a){if(nr!=null)return nr;var y=Ot(a,document.createTextNode("A\u062EA")),E=De(y,0,1).getBoundingClientRect(),x=De(y,1,2).getBoundingClientRect();return zt(a),!E||E.left==E.right?!1:nr=x.right-E.right<3}var Zn=` b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var z=a.indexOf(` `,y);z==-1&&(z=a.length);var oe=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),fe=oe.indexOf("\r");fe!=-1?(E.push(oe.slice(0,fe)),y+=fe+1):(E.push(oe),y=z+1)}return E}:function(a){return a.split(/\r\n?|\n/)},er=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(E){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},kn=function(){var a=ht("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),cn=null;function bn(a){if(cn!=null)return cn;var y=Ot(a,ht("span","x")),E=y.getBoundingClientRect(),x=De(y,0,1).getBoundingClientRect();return cn=Math.abs(E.left-x.left)>1}var St={},Et={};function sn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),St[a]=y}function Pn(a,y){Et[a]=y}function Tn(a){if(typeof a=="string"&&Et.hasOwnProperty(a))a=Et[a];else if(a&&typeof a.name=="string"&&Et.hasOwnProperty(a.name)){var y=Et[a.name];typeof y=="string"&&(y={name:y}),a=ne(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Jt(a,y){y=Tn(y);var E=St[y.name];if(!E)return Jt(a,"text/plain");var x=E(a,y);if(wn.hasOwnProperty(y.name)){var z=wn[y.name];for(var oe in z)z.hasOwnProperty(oe)&&(x.hasOwnProperty(oe)&&(x["_"+oe]=x[oe]),x[oe]=z[oe])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var fe in y.modeProps)x[fe]=y.modeProps[fe];return x}var wn={};function gn(a,y){var E=wn.hasOwnProperty(a)?wn[a]:wn[a]={};Ft(y,E)}function Nn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var z=y[x];z instanceof Array&&(z=z.concat([])),E[x]=z}return E}function An(a,y){for(var E;a.innerMode&&(E=a.innerMode(y),!(!E||E.mode==a));)y=E.state,a=E.mode;return E||{mode:a,state:y}}function rr(a,y,E){return a.startState?a.startState(y,E):!0}var Qt=function(a,y,E){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.posy},Qt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Qt.prototype.backUp=function(a){this.pos-=a},Qt.prototype.column=function(){return this.lastColumnPos0?null:(oe&&y!==!1&&(this.pos+=oe[0].length),oe)}},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Qt.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Qt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Yt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var E=a;!E.lines;)for(var x=0;;++x){var z=E.children[x],oe=z.chunkSize();if(y=a.first&&yE?Ke(E,Yt(a,E).text.length):xt(y,Yt(a,y.line).text.length)}function xt(a,y){var E=a.ch;return E==null||E>y?Ke(a.line,y):E<0?Ke(a.line,0):a}function fn(a,y){for(var E=[],x=0;xthis.maxLookAhead&&(this.maxLookAhead=a),y},pn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pn.fromSaved=function(a,y,E){return y instanceof In?new pn(a,Nn(a.mode,y.state),E,y.lookAhead):new pn(a,Nn(a.mode,y),E)},pn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new In(y,this.maxLookAhead):y};function Sn(a,y,E,x){var z=[a.state.modeGen],oe={};vr(a,y.text,a.doc.mode,E,function(ze,tn){return z.push(ze,tn)},oe,x);for(var fe=E.state,ve=function(ze){E.baseTokens=z;var tn=a.state.overlays[ze],un=1,Un=0;E.state=!0,vr(a,y.text,tn.mode,E,function(zn,hr){for(var Cr=un;Unzn&&z.splice(un,1,zn,z[un+1],Hr),un+=2,Un=Math.min(zn,Hr)}if(hr)if(tn.opaque)z.splice(Cr,un-Cr,zn,"overlay "+hr),un=Cr+2;else for(;Cra.options.maxHighlightLength&&Nn(a.doc.mode,x.state),oe=Sn(a,y,x);z&&(x.state=z),y.stateAfter=x.save(!z),y.styles=oe.styles,oe.classes?y.styleClasses=oe.classes:y.styleClasses&&(y.styleClasses=null),E===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function qn(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new pn(x,!0,y);var oe=Tr(a,y,E),fe=oe>x.first&&Yt(x,oe-1).stateAfter,ve=fe?pn.fromSaved(x,fe,oe):new pn(x,rr(x.mode),oe);return x.iter(oe,y,function(we){ur(a,we.text,ve);var ze=ve.line;we.stateAfter=ze==y-1||ze%5==0||ze>=z.viewFrom&&zey.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var or=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function dr(a,y,E,x){var z=a.doc,oe=z.mode,fe;y=pt(z,y);var ve=Yt(z,y.line),we=qn(a,y.line,E),ze=new Qt(ve.text,a.options.tabSize,we),tn;for(x&&(tn=[]);(x||ze.posa.options.maxHighlightLength?(ve=!1,fe&&ur(a,y,x,tn.pos),tn.pos=y.length,un=null):un=br(Xn(E,tn,x.state,Un),oe),Un){var zn=Un[0].name;zn&&(un="m-"+(un?zn+" "+un:zn))}if(!ve||ze!=un){for(;wefe;--ve){if(ve<=oe.first)return oe.first;var we=Yt(oe,ve-1),ze=we.stateAfter;if(ze&&(!E||ve+(ze instanceof In?ze.lookAhead:0)<=oe.modeFrontier))return ve;var tn=Ce(we.text,null,a.options.tabSize);(z==null||x>tn)&&(z=ve-1,x=tn)}return z}function Br(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierE;x--){var z=Yt(a,x).stateAfter;if(z&&(!(z instanceof In)||x+z.lookAhead=y:oe.to>y);(x||(x=[])).push(new Sr(fe,oe.from,we?null:oe.to))}}return x}function yr(a,y,E){var x;if(a)for(var z=0;z=y:oe.to>y);if(ve||oe.from==y&&fe.type=="bookmark"&&(!E||oe.marker.insertLeft)){var we=oe.from==null||(fe.inclusiveLeft?oe.from<=y:oe.from0&&ve)for(var yo=0;yo0)){var tn=[we,1],un=wt(ze.from,ve.from),Un=wt(ze.to,ve.to);(un<0||!fe.inclusiveLeft&&!un)&&tn.push({from:ze.from,to:ve.from}),(Un>0||!fe.inclusiveRight&&!Un)&&tn.push({from:ve.to,to:ze.to}),z.splice.apply(z,tn),we+=tn.length-3}}return z}function to(a){var y=a.markedSpans;if(y){for(var E=0;Ey)&&(!x||bt(x,oe.marker)<0)&&(x=oe.marker)}return x}function Bt(a,y,E,x,z){var oe=Yt(a,y),fe=Er&&oe.markedSpans;if(fe)for(var ve=0;ve=0&&un<=0||tn<=0&&un>=0)&&(tn<=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?wt(ze.to,E)>=0:wt(ze.to,E)>0)||tn>=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?wt(ze.from,x)<=0:wt(ze.from,x)<0)))return!0}}}function Wt(a){for(var y;y=dt(a);)a=y.find(-1,!0).line;return a}function En(a){for(var y;y=at(a);)a=y.find(1,!0).line;return a}function Rn(a){for(var y,E;y=at(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function hn(a,y){var E=Yt(a,y),x=Wt(E);return E==x?y:vt(x)}function Ln(a,y){if(y>a.lastLine())return y;var E=Yt(a,y),x;if(!Gn(a,E))return y;for(;x=at(E);)E=x.find(1,!0).line;return vt(E)+1}function Gn(a,y){var E=Er&&y.markedSpans;if(E){for(var x=void 0,z=0;zy.maxLineLength&&(y.maxLineLength=z,y.maxLine=x)})}var kr=function(a,y,E){this.text=a,io(this,y),this.height=E?E(this):1};kr.prototype.lineNo=function(){return vt(this)},Je(kr);function xr(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),to(a),io(a,E);var z=x?x(a):1;z!=a.height&&jn(a,z)}function Gr(a){a.parent=null,to(a)}var Or={},Dr={};function Ar(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Dr:Or;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function _r(a,y){var E=Ct("span",null,null,be?"padding-right: .1px":null),x={pre:Ct("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var oe=z?y.rest[z-1]:y.line,fe=void 0;x.pos=0,x.addToken=ko,ir(a.display.measure)&&(fe=Ne(oe,a.doc.direction))&&(x.addToken=Vo(x.addToken,fe)),x.map=[];var ve=y!=a.display.externalMeasured&&vt(oe);Vr(oe,x,$n(a,oe,ve)),oe.styleClasses&&(oe.styleClasses.bgClass&&(x.bgClass=It(oe.styleClasses.bgClass,x.bgClass||"")),oe.styleClasses.textClass&&(x.textClass=It(oe.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(_n(a.display.measure))),z==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(be){var we=x.content.lastChild;(/\bcm-tab\b/.test(we.className)||we.querySelector&&we.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return vn(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=It(x.pre.className,x.textClass||"")),x}function fo(a){var y=ht("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function ko(a,y,E,x,z,oe,fe){if(y){var ve=a.splitSpaces?Io(y,a.trailingSpace):y,we=a.cm.state.specialChars,ze=!1,tn;if(!we.test(y))a.col+=y.length,tn=document.createTextNode(ve),a.map.push(a.pos,a.pos+y.length,tn),Pe&&pe<9&&(ze=!0),a.pos+=y.length;else{tn=document.createDocumentFragment();for(var un=0;;){we.lastIndex=un;var Un=we.exec(y),zn=Un?Un.index-un:y.length-un;if(zn){var hr=document.createTextNode(ve.slice(un,un+zn));Pe&&pe<9?tn.appendChild(ht("span",[hr])):tn.appendChild(hr),a.map.push(a.pos,a.pos+zn,hr),a.col+=zn,a.pos+=zn}if(!Un)break;un+=zn+1;var Cr=void 0;if(Un[0]==" "){var Hr=a.cm.options.tabSize,qr=Hr-a.col%Hr;Cr=tn.appendChild(ht("span",Gt(qr),"cm-tab")),Cr.setAttribute("role","presentation"),Cr.setAttribute("cm-text"," "),a.col+=qr}else Un[0]=="\r"||Un[0]==` `?(Cr=tn.appendChild(ht("span",Un[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cr.setAttribute("cm-text",Un[0]),a.col+=1):(Cr=a.cm.options.specialCharPlaceholder(Un[0]),Cr.setAttribute("cm-text",Un[0]),Pe&&pe<9?tn.appendChild(ht("span",[Cr])):tn.appendChild(Cr),a.col+=1);a.map.push(a.pos,a.pos+1,Cr),a.pos++}}if(a.trailingSpace=ve.charCodeAt(y.length-1)==32,E||x||z||ze||oe||fe){var uo=E||"";x&&(uo+=x),z&&(uo+=z);var eo=ht("span",[tn],uo,oe);if(fe)for(var yo in fe)fe.hasOwnProperty(yo)&&yo!="style"&&yo!="class"&&eo.setAttribute(yo,fe[yo]);return a.content.appendChild(eo)}a.content.appendChild(tn)}}function Io(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",z=0;zze&&un.from<=ze));Un++);if(un.to>=tn)return a(E,x,z,oe,fe,ve,we);a(E,x.slice(0,un.to-ze),z,oe,null,ve,we),oe=null,x=x.slice(un.to-ze),ze=un.to}}}function Qr(a,y,E,x){var z=!x&&E.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!x&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",E.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Vr(a,y,E){var x=a.markedSpans,z=a.text,oe=0;if(!x){for(var fe=1;fewe||Jo.collapsed&&To.to==we&&To.from==we)){if(To.to!=null&&To.to!=we&&zn>To.to&&(zn=To.to,Cr=""),Jo.className&&(hr+=" "+Jo.className),Jo.css&&(Un=(Un?Un+";":"")+Jo.css),Jo.startStyle&&To.from==we&&(Hr+=" "+Jo.startStyle),Jo.endStyle&&To.to==zn&&(yo||(yo=[])).push(Jo.endStyle,To.to),Jo.title&&((uo||(uo={})).title=Jo.title),Jo.attributes)for(var Li in Jo.attributes)(uo||(uo={}))[Li]=Jo.attributes[Li];Jo.collapsed&&(!qr||bt(qr.marker,Jo)<0)&&(qr=To)}else To.from>we&&zn>To.from&&(zn=To.from)}if(yo)for(var Oa=0;Oa=ve)break;for(var tl=Math.min(ve,zn);;){if(tn){var Xa=we+tn.length;if(!qr){var va=Xa>tl?tn.slice(0,tl-we):tn;y.addToken(y,va,un?un+hr:hr,Hr,we+va.length==zn?Cr:"",Un,uo)}if(Xa>=tl){tn=tn.slice(tl-we),we=tl;break}we=Xa,Hr=""}tn=z.slice(oe,oe=E[ze++]),un=Ar(E[ze++],y.cm.options)}}}function _o(a,y,E){this.line=y,this.rest=Rn(y),this.size=this.rest?vt(Fe(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Gn(a,y)}function Uo(a,y,E){for(var x=[],z,oe=y;oe2&&oe.push((we.bottom+ze.top)/2-E.top)}}oe.push(E.bottom-E.top)}}function ja(a,y,E){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;xE)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function Pa(a,y){y=Wt(y);var E=vt(y),x=a.display.externalMeasured=new _o(a.doc,y,E);x.lineN=E;var z=x.built=_r(a,x);return x.text=z.pre,Ot(a.display.lineMeasure,z.pre),x}function ia(a,y,E,x){return Ra(a,Wa(a,y),E,x)}function Sa(a,y){if(y>=a.display.viewFrom&&y=E.lineN&&yy)&&(oe=we-ve,z=oe-1,y>=we&&(fe="right")),z!=null){if(x=a[ze+2],ve==we&&E==(x.insertLeft?"left":"right")&&(fe=E),E=="left"&&z==0)for(;ze&&a[ze-2]==a[ze-3]&&a[ze-1].insertLeft;)x=a[(ze-=3)+2],fe="left";if(E=="right"&&z==we-ve)for(;ze=0&&(E=a[z]).left==E.right;z--);return E}function Al(a,y,E,x){var z=pl(y.map,E,x),oe=z.node,fe=z.start,ve=z.end,we=z.collapse,ze;if(oe.nodeType==3){for(var tn=0;tn<4;tn++){for(;fe&&Se(y.line.text.charAt(z.coverStart+fe));)--fe;for(;z.coverStart+ve0&&(we=x="right");var un;a.options.lineWrapping&&(un=oe.getClientRects()).length>1?ze=un[x=="right"?un.length-1:0]:ze=oe.getBoundingClientRect()}if(Pe&&pe<9&&!fe&&(!ze||!ze.left&&!ze.right)){var Un=oe.parentNode.getClientRects()[0];Un?ze={left:Un.left,right:Un.left+ua(a.display),top:Un.top,bottom:Un.bottom}:ze=Qa}for(var zn=ze.top-y.rect.top,hr=ze.bottom-y.rect.top,Cr=(zn+hr)/2,Hr=y.view.measure.heights,qr=0;qr=x.text.length?(we=x.text.length,ze="before"):we<=0&&(we=0,ze="after"),!ve)return fe(ze=="before"?we-1:we,ze=="before");function tn(hr,Cr,Hr){var qr=ve[Cr],uo=qr.level==1;return fe(Hr?hr-1:hr,uo!=Hr)}var un=ut(ve,we,ze),Un=rt,zn=tn(we,un,ze=="before");return Un!=null&&(zn.other=tn(we,Un,ze!="before")),zn}function zo(a,y){var E=0;y=pt(a.doc,y),a.options.lineWrapping||(E=ua(a.display)*y.ch);var x=Yt(a.doc,y.line),z=sr(x)+Ro(a.display);return{left:E,right:E,top:z,bottom:z+x.height}}function Po(a,y,E,x,z){var oe=Ke(a,y,E);return oe.xRel=z,x&&(oe.outside=x),oe}function ci(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Po(x.first,0,null,-1,-1);var z=Dt(x,E),oe=x.first+x.size-1;if(z>oe)return Po(x.first+x.size-1,Yt(x,oe).text.length,null,1,1);y<0&&(y=0);for(var fe=Yt(x,z);;){var ve=aa(a,fe,z,y,E),we=Mt(fe,ve.ch+(ve.xRel>0||ve.outside>0?1:0));if(!we)return ve;var ze=we.find(1);if(ze.line==z)return ze;fe=Yt(x,z=ze.line)}}function Pi(a,y,E,x){x-=ul(y);var z=y.text.length,oe=He(function(fe){return Ra(a,E,fe-1).bottom<=x},z,0);return z=He(function(fe){return Ra(a,E,fe).top>x},oe,z),{begin:oe,end:z}}function gi(a,y,E,x){E||(E=Wa(a,y));var z=gl(a,y,Ra(a,E,x),"line").top;return Pi(a,y,E,z)}function ri(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function aa(a,y,E,x,z){z-=sr(y);var oe=Wa(a,y),fe=ul(y),ve=0,we=y.text.length,ze=!0,tn=Ne(y,a.doc.direction);if(tn){var un=(a.options.lineWrapping?la:zi)(a,y,E,oe,tn,x,z);ze=un.level!=1,ve=ze?un.from:un.to-1,we=ze?un.to:un.from-1}var Un=null,zn=null,hr=He(function(Bo){var To=Ra(a,oe,Bo);return To.top+=fe,To.bottom+=fe,ri(To,x,z,!1)?(To.top<=z&&To.left<=x&&(Un=Bo,zn=To),!0):!1},ve,we),Cr,Hr,qr=!1;if(zn){var uo=x-zn.left=yo.bottom?1:0}return hr=Ge(y.text,hr,1),Po(E,hr,Hr,qr,x-Cr)}function zi(a,y,E,x,z,oe,fe){var ve=He(function(un){var Un=z[un],zn=Un.level!=1;return ri(pi(a,Ke(E,zn?Un.to:Un.from,zn?"before":"after"),"line",y,x),oe,fe,!0)},0,z.length-1),we=z[ve];if(ve>0){var ze=we.level!=1,tn=pi(a,Ke(E,ze?we.from:we.to,ze?"after":"before"),"line",y,x);ri(tn,oe,fe,!0)&&tn.top>fe&&(we=z[ve-1])}return we}function la(a,y,E,x,z,oe,fe){var ve=Pi(a,y,x,fe),we=ve.begin,ze=ve.end;/\s/.test(y.text.charAt(ze-1))&&ze--;for(var tn=null,un=null,Un=0;Un=ze||zn.to<=we)){var hr=zn.level!=1,Cr=Ra(a,x,hr?Math.min(ze,zn.to)-1:Math.max(we,zn.from)).right,Hr=CrHr)&&(tn=zn,un=Hr)}}return tn||(tn=z[z.length-1]),tn.fromze&&(tn={from:tn.from,to:ze,level:tn.level}),tn}var sa;function ca(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(sa==null){sa=ht("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)sa.appendChild(document.createTextNode("x")),sa.appendChild(ht("br"));sa.appendChild(document.createTextNode("x"))}Ot(a.measure,sa);var E=sa.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),zt(a.measure),E||1}function ua(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ht("span","xxxxxxxxxx"),E=ht("pre",[y],"CodeMirror-line-like");Ot(a.measure,E);var x=y.getBoundingClientRect(),z=(x.right-x.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function _a(a){for(var y=a.display,E={},x={},z=y.gutters.clientLeft,oe=y.gutters.firstChild,fe=0;oe;oe=oe.nextSibling,++fe){var ve=a.display.gutterSpecs[fe].className;E[ve]=oe.offsetLeft+oe.clientLeft+z,x[ve]=oe.clientWidth}return{fixedPos:Il(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function Il(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cs(a){var y=ca(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/ua(a.display)-3);return function(z){if(Gn(a.doc,z))return 0;var oe=0;if(z.widgets)for(var fe=0;fe0&&(ze=Yt(a.doc,we.line).text).length==we.ch){var tn=Ce(ze,ze.length,a.options.tabSize)-ze.length;we=Ke(we.line,Math.max(0,Math.round((oe-wi(a.display).left)/ua(a.display))-tn))}return we}function ol(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var E=a.display.view,x=0;xy)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)Er&&hn(a.doc,y)z.viewFrom?il(a):(z.viewFrom+=x,z.viewTo+=x);else if(y<=z.viewFrom&&E>=z.viewTo)il(a);else if(y<=z.viewFrom){var oe=Ul(a,E,E+x,1);oe?(z.view=z.view.slice(oe.index),z.viewFrom=oe.lineN,z.viewTo+=x):il(a)}else if(E>=z.viewTo){var fe=Ul(a,y,y,-1);fe?(z.view=z.view.slice(0,fe.index),z.viewTo=fe.lineN):il(a)}else{var ve=Ul(a,y,y,-1),we=Ul(a,E,E+x,1);ve&&we?(z.view=z.view.slice(0,ve.index).concat(Uo(a,ve.lineN,we.lineN)).concat(z.view.slice(we.index)),z.viewTo+=x):il(a)}var ze=z.externalMeasured;ze&&(E=z.lineN&&y=x.viewTo)){var oe=x.view[ol(a,y)];if(oe.node!=null){var fe=oe.changes||(oe.changes=[]);yt(fe,E)==-1&&fe.push(E)}}}function il(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ul(a,y,E,x){var z=ol(a,y),oe,fe=a.display.view;if(!Er||E==a.doc.first+a.doc.size)return{index:z,lineN:E};for(var ve=a.display.viewFrom,we=0;we0){if(z==fe.length-1)return null;oe=ve+fe[z].size-y,z++}else oe=ve-y;y+=oe,E+=oe}for(;hn(a.doc,E)!=E;){if(z==(x<0?0:fe.length-1))return null;E+=x*fe[z-(x<0?1:0)].size,z+=x}return{index:z,lineN:E}}function Ws(a,y,E){var x=a.display,z=x.view;z.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=Uo(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=Uo(a,y,x.viewFrom).concat(x.view):x.viewFromE&&(x.view=x.view.slice(0,ol(a,E)))),x.viewTo=E}function Ss(a){for(var y=a.display.view,E=0,x=0;x=a.display.viewTo||ve.to().line0?y.blinker=setInterval(function(){a.hasFocus()||Ll(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function sc(a){a.state.focused||(a.display.input.focus(),Vs(a))}function Ks(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ll(a))},100)}function Vs(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(vn(a,"focus",a,y),a.state.focused=!0,se(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),be&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),ws(a))}function Ll(a,y){a.state.delayingBlurEvent||(a.state.focused&&(vn(a,"blur",a,y),a.state.focused=!1,nt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function No(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x.005||tn<-.005)&&(jn(z.line,fe),Fl(z.line),z.rest))for(var un=0;una.display.sizerWidth){var Un=Math.ceil(ve/ua(a.display));Un>a.display.maxLineLength&&(a.display.maxLineLength=Un,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Fl(a){if(a.widgets)for(var y=0;y=fe&&(oe=Dt(y,sr(Yt(y,we))-a.wrapper.clientHeight),fe=we)}return{from:oe,to:Math.max(fe,oe+1)}}function cc(a,y){if(!jt(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),z=null;if(y.top+x.top<0?z=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!Rt){var oe=ht("div","\u200B",null,`position: absolute; top: `+(y.top-E.viewOffset-Ro(a.display))+`px; height: `+(y.bottom-y.top+Bi(a)+E.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(z),a.display.lineSpace.removeChild(oe)}}}function uc(a,y,E,x){x==null&&(x=0);var z;!a.options.lineWrapping&&y==E&&(y=y.ch?Ke(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?Ke(y.line,y.ch+1,"before"):y);for(var oe=0;oe<5;oe++){var fe=!1,ve=pi(a,y),we=!E||E==y?ve:pi(a,E);z={left:Math.min(ve.left,we.left),top:Math.min(ve.top,we.top)-x,right:Math.max(ve.left,we.left),bottom:Math.max(ve.bottom,we.bottom)+x};var ze=Es(a,z),tn=a.doc.scrollTop,un=a.doc.scrollLeft;if(ze.scrollTop!=null&&(ss(a,ze.scrollTop),Math.abs(a.doc.scrollTop-tn)>1&&(fe=!0)),ze.scrollLeft!=null&&(Zl(a,ze.scrollLeft),Math.abs(a.doc.scrollLeft-un)>1&&(fe=!0)),!fe)break}return z}function kc(a,y){var E=Es(a,y);E.scrollTop!=null&&ss(a,E.scrollTop),E.scrollLeft!=null&&Zl(a,E.scrollLeft)}function Es(a,y){var E=a.display,x=ca(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,oe=oa(a),fe={};y.bottom-y.top>oe&&(y.bottom=y.top+oe);var ve=a.doc.height+hi(E),we=y.topve-x;if(y.topz+oe){var tn=Math.min(y.top,(ze?ve:y.bottom)-oe);tn!=z&&(fe.scrollTop=tn)}var un=a.options.fixedGutter?0:E.gutters.offsetWidth,Un=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-un,zn=qi(a)-E.gutters.offsetWidth,hr=y.right-y.left>zn;return hr&&(y.right=y.left+zn),y.left<10?fe.scrollLeft=0:y.leftzn+Un-3&&(fe.scrollLeft=y.right+(hr?0:10)-zn),fe}function Us(a,y){y!=null&&(Is(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function $l(a){Is(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function ls(a,y,E){(y!=null||E!=null)&&Is(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function dc(a,y){Is(a),a.curOp.scrollToPos=y}function Is(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=zo(a,y.from),x=zo(a,y.to);Gs(a,E,x,y.margin)}}function Gs(a,y,E,x){var z=Es(a,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-x,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+x});ls(a,z.scrollLeft,z.scrollTop)}function ss(a,y){Math.abs(a.doc.scrollTop-y)<2||(b||Ds(a,{top:y}),Xs(a,y,!0),b&&Ds(a),Ql(a,100))}function Xs(a,y,E){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!E)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Zl(a,y,E,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((E?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,ct(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function Xl(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+hi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?E:0,docHeight:x,scrollHeight:x+Bi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var zl=function(a,y,E){this.cm=E;var x=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=ht("div",[ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=z.tabIndex=-1,a(x),a(z),Ut(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),Ut(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Pe&&pe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};zl.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,E=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var z=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?x:0,bottom:y?x:0}},zl.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},zl.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},zl.prototype.zeroWidthHack=function(){var a=Re&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new he,this.disableVert=new he},zl.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var z=a.getBoundingClientRect(),oe=E=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);oe!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},zl.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Yl=function(){};Yl.prototype.update=function(){return{bottom:0,right:0}},Yl.prototype.setScrollLeft=function(){},Yl.prototype.setScrollTop=function(){},Yl.prototype.clear=function(){};function Jl(a,y){y||(y=Xl(a));var E=a.display.barWidth,x=a.display.barHeight;Ys(a,y);for(var z=0;z<4&&E!=a.display.barWidth||x!=a.display.barHeight;z++)E!=a.display.barWidth&&a.options.lineWrapping&&No(a),Ys(a,Xl(a)),E=a.display.barWidth,x=a.display.barHeight}function Ys(a,y){var E=a.display,x=E.scrollbars.update(y);E.sizer.style.paddingRight=(E.barWidth=x.right)+"px",E.sizer.style.paddingBottom=(E.barHeight=x.bottom)+"px",E.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(E.scrollbarFiller.style.display="block",E.scrollbarFiller.style.height=x.bottom+"px",E.scrollbarFiller.style.width=x.right+"px"):E.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(E.gutterFiller.style.display="block",E.gutterFiller.style.height=x.bottom+"px",E.gutterFiller.style.width=y.gutterWidth+"px"):E.gutterFiller.style.display=""}var fc={native:zl,null:Yl};function Js(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&nt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new fc[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ut(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,E){E=="horizontal"?Zl(a,y):ss(a,y)},a),a.display.scrollbars.addClass&&se(a.display.wrapper,a.display.scrollbars.addClass)}var Ac=0;function Dl(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Ac},Zi(a.curOp)}function Hl(a){var y=a.curOp;y&&Ai(y,function(E){for(var x=0;x=E.viewTo)||E.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new cs(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function pc(a){a.updatedDisplay=a.mustUpdate&&Os(a.cm,a.update)}function Rc(a){var y=a.cm,E=y.display;a.updatedDisplay&&No(y),a.barMeasure=Xl(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ia(y,E.maxLine,E.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(E.scroller.clientWidth,E.sizer.offsetLeft+a.adjustWidthTo+Bi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function mc(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var E=+new Date+a.options.workTime,x=qn(a,y.highlightFrontier),z=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(oe){if(x.line>=a.display.viewFrom){var fe=oe.styles,ve=oe.text.length>a.options.maxHighlightLength?Nn(y.mode,x.state):null,we=Sn(a,oe,x,!0);ve&&(x.state=ve),oe.styles=we.styles;var ze=oe.styleClasses,tn=we.classes;tn?oe.styleClasses=tn:ze&&(oe.styleClasses=null);for(var un=!fe||fe.length!=oe.styles.length||ze!=tn&&(!ze||!tn||ze.bgClass!=tn.bgClass||ze.textClass!=tn.textClass),Un=0;!un&&UnE)return Ql(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),z.length&&La(a,function(){for(var oe=0;oe=E.viewFrom&&y.visible.to<=E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo)&&E.renderedView==E.view&&Ss(a)==0)return!1;Nt(a)&&(il(a),y.dims=_a(a));var z=x.first+x.size,oe=Math.max(y.visible.from-a.options.viewportMargin,x.first),fe=Math.min(z,y.visible.to+a.options.viewportMargin);E.viewFromfe&&E.viewTo-fe<20&&(fe=Math.min(z,E.viewTo)),Er&&(oe=hn(a.doc,oe),fe=Ln(a.doc,fe));var ve=oe!=E.viewFrom||fe!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;Ws(a,oe,fe),E.viewOffset=sr(Yt(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var we=Ss(a);if(!ve&&we==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var ze=gc(a);return we>4&&(E.lineDiv.style.display="none"),bc(a,E.updateLineNumbers,y.dims),we>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,yc(ze),zt(E.cursorDiv),zt(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,ve&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,Ql(a,400)),E.updateLineNumbers=null,!0}function al(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==qi(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+hi(a.display)-oa(a),E.top)}),y.visible=bl(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=bl(a.display,a.doc,E));if(!Os(a,y))break;No(a);var z=Xl(a);Ol(a),Jl(a,z),ge(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ds(a,y){var E=new cs(a,y);if(Os(a,E)){No(a),al(a,E);var x=Xl(a);Ol(a),Jl(a,x),ge(a,x),E.finish()}}function bc(a,y,E){var x=a.display,z=a.options.lineNumbers,oe=x.lineDiv,fe=oe.firstChild;function ve(hr){var Cr=hr.nextSibling;return be&&Re&&a.display.currentWheelTarget==hr?hr.style.display="none":hr.parentNode.removeChild(hr),Cr}for(var we=x.view,ze=x.viewFrom,tn=0;tn-1&&(zn=!1),ya(a,un,ze,E)),zn&&(zt(un.lineNumber),un.lineNumber.appendChild(document.createTextNode(gt(a.options,ze)))),fe=un.node.nextSibling}ze+=un.size}for(;fe;)fe=ve(fe)}function ye(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function ge(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Bi(a)+"px"}function ct(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=Il(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,oe=x+"px",fe=0;fefe.clientWidth,we=fe.scrollHeight>fe.clientHeight;if(x&&ve||z&&we){if(z&&Re&&be){e:for(var ze=y.target,tn=oe.view;ze!=fe;ze=ze.parentNode)for(var un=0;un=0&&wt(a,x.to())<=0)return E}return-1};var Wn=function(a,y){this.anchor=a,this.head=y};Wn.prototype.from=function(){return lt(this.anchor,this.head)},Wn.prototype.to=function(){return Jn(this.anchor,this.head)},Wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(a,y,E){var x=a&&a.options.selectionsMayTouch,z=y[E];y.sort(function(Un,zn){return wt(Un.from(),zn.from())}),E=yt(y,z);for(var oe=1;oe0:we>=0){var ze=lt(ve.from(),fe.from()),tn=Jn(ve.to(),fe.to()),un=ve.empty()?fe.from()==fe.head:ve.from()==ve.head;oe<=E&&--E,y.splice(--oe,2,new Wn(un?tn:ze,un?ze:tn))}}return new Kn(y,E)}function fr(a,y){return new Kn([new Wn(a,y||a)],0)}function Nr(a){return a.text?Ke(a.from.line+a.text.length-1,Fe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Lr(a,y){if(wt(a,y.from)<0)return a;if(wt(a,y.to)<=0)return Nr(y);var E=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=Nr(y).ch-y.to.ch),Ke(E,x)}function Mr(a,y){for(var E=[],x=0;x1&&a.remove(ve.line+1,hr-1),a.insert(ve.line+1,qr)}Go(a,"change",a,y)}function po(a,y,E){function x(z,oe,fe){if(z.linked)for(var ve=0;ve1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Fe(a.done)}function Co(a,y,E,x){var z=a.history;z.undone.length=0;var oe=+new Date,fe,ve;if((z.lastOp==x||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(fe=co(z,z.lastOp==x)))ve=Fe(fe.changes),wt(y.from,y.to)==0&&wt(y.from,ve.to)==0?ve.to=Nr(y):fe.changes.push(zr(a,y));else{var we=Fe(z.done);for((!we||!we.ranges)&&jo(a.sel,z.done),fe={changes:[zr(a,y)],generation:z.generation},z.done.push(fe);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(E),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=oe,z.lastOp=z.lastSelOp=x,z.lastOrigin=z.lastSelOrigin=y.origin,ve||vn(a,"historyAdded")}function Ur(a,y,E,x){var z=y.charAt(0);return z=="*"||z=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Ho(a,y,E,x){var z=a.history,oe=x&&x.origin;E==z.lastSelOp||oe&&z.lastSelOrigin==oe&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==oe||Ur(a,oe,Fe(z.done),y))?z.done[z.done.length-1]=y:jo(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=oe,z.lastSelOp=E,x&&x.clearRedo!==!1&&oo(z.undone)}function jo(a,y){var E=Fe(y);E&&E.ranges&&E.equals(a)||y.push(a)}function Fi(a,y,E,x){var z=y["spans_"+a.id],oe=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(fe){fe.markedSpans&&((z||(z=y["spans_"+a.id]={}))[oe]=fe.markedSpans),++oe})}function Ni(a){if(!a)return null;for(var y,E=0;E-1&&(Fe(ve)[un]=ze[un],delete ze[un])}}return x}function Wo(a,y,E,x){if(x){var z=a.anchor;if(E){var oe=wt(y,z)<0;oe!=wt(E,z)<0?(z=y,y=E):oe!=wt(y,E)<0&&(y=E)}return new Wn(z,y)}else return new Wn(E||y,y)}function Ko(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),ro(a,new Kn([Wo(a.sel.primary(),y,E,z)],0),x)}function ji(a,y,E){for(var x=[],z=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe=y.ch:ve.to>y.ch))){if(z&&(vn(we,"beforeCursorEnter"),we.explicitlyCleared))if(oe.markedSpans){--fe;continue}else break;if(!we.atomic)continue;if(E){var un=we.find(x<0?1:-1),Un=void 0;if((x<0?tn:ze)&&(un=bo(a,un,-x,un&&un.line==y.line?oe:null)),un&&un.line==y.line&&(Un=wt(un,E))&&(x<0?Un<0:Un>0))return Wi(a,un,y,x,z)}var zn=we.find(x<0?-1:1);return(x<0?ze:tn)&&(zn=bo(a,zn,x,zn.line==y.line?oe:null)),zn?Wi(a,zn,y,x,z):null}}return y}function ta(a,y,E,x,z){var oe=x||1,fe=Wi(a,y,E,oe,z)||!z&&Wi(a,y,E,oe,!0)||Wi(a,y,E,-oe,z)||!z&&Wi(a,y,E,-oe,!0);return fe||(a.cantEdit=!0,Ke(a.first,0))}function bo(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?pt(a,Ke(y.line-1)):null:E>0&&y.ch==(x||Yt(a,y.line)).text.length?y.line=0;--z)si(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else si(a,y)}}function si(a,y){if(!(y.text.length==1&&y.text[0]==""&&wt(y.from,y.to)==0)){var E=Mr(a,y);Co(a,y,E,a.cm?a.cm.curOp.id:NaN),Fa(a,y,E,Xr(a,y));var x=[];po(a,function(z,oe){!oe&&yt(x,z.history)==-1&&(na(z.history,y),x.push(z.history)),Fa(z,y,null,Xr(z,y))})}}function da(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var z=a.history,oe,fe=a.sel,ve=y=="undo"?z.done:z.undone,we=y=="undo"?z.undone:z.done,ze=0;ze=0;--zn){var hr=Un(zn);if(hr)return hr.v}}}}function _i(a,y){if(y!=0&&(a.first+=y,a.sel=new Kn(dn(a.sel.ranges,function(z){return new Wn(Ke(z.anchor.line+y,z.anchor.ch),Ke(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Na(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;xa.lastLine())){if(y.from.lineoe&&(y={from:y.from,to:Ke(oe,Yt(a,oe).text.length),text:[y.text[0]],origin:y.origin}),y.removed=xn(a,y.from,y.to),E||(E=Mr(a,y)),a.cm?Ti(a.cm,y,x):xo(a,y,x),Yo(a,E,me),a.cantEdit&&ta(a,Ke(a.firstLine(),0))&&(a.cantEdit=!1)}}function Ti(a,y,E){var x=a.doc,z=a.display,oe=y.from,fe=y.to,ve=!1,we=oe.line;a.options.lineWrapping||(we=vt(Wt(Yt(x,oe.line))),x.iter(we,fe.line+1,function(zn){if(zn==z.maxLine)return ve=!0,!0})),x.sel.contains(y.from,y.to)>-1&&Cn(a),xo(x,y,E,Cs(a)),a.options.lineWrapping||(x.iter(we,oe.line+y.text.length,function(zn){var hr=pr(zn);hr>z.maxLineLength&&(z.maxLine=zn,z.maxLineLength=hr,z.maxLineChanged=!0,ve=!1)}),ve&&(a.curOp.updateMaxLine=!0)),Br(x,oe.line),Ql(a,400);var ze=y.text.length-(fe.line-oe.line)-1;y.full?Na(a):oe.line==fe.line&&y.text.length==1&&!Lo(a.doc,y)?yl(a,oe.line,"text"):Na(a,oe.line,fe.line+1,ze);var tn=on(a,"changes"),un=on(a,"change");if(un||tn){var Un={from:oe,to:fe,text:y.text,removed:y.removed,origin:y.origin};un&&Go(a,"change",a,Un),tn&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Un)}a.display.selForContextMenu=null}function qo(a,y,E,x,z){var oe;x||(x=E),wt(x,E)<0&&(oe=[x,E],E=oe[0],x=oe[1]),typeof y=="string"&&(y=a.splitLines(y)),di(a,{from:E,to:x,text:y,origin:z})}function vi(a,y,E,x){E1||!(this.children[0]instanceof ei))){var ve=[];this.collapse(ve),this.children=[new ei(ve)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var fe=z.lines.length%25+25,ve=fe;ve10);a.parent.maybeSpill()}},iterN:function(a,y,E){for(var x=0;xa.display.maxLineLength&&(a.display.maxLine=ze,a.display.maxLineLength=tn,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&Na(a,x,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ei(a.doc)),a&&Go(a,"markerCleared",a,this,x,z),y&&Hl(a),this.parent&&this.parent.clear()}},$a.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,z=0;z0||fe==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=Ct("span",[oe.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Bt(a,y.line,y,E,oe)||y.line!=E.line&&Bt(a,E.line,y,E,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rr()}oe.addToHistory&&Co(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var ve=y.line,we=a.cm,ze;if(a.iter(ve,E.line+1,function(un){we&&oe.collapsed&&!we.options.lineWrapping&&Wt(un)==we.display.maxLine&&(ze=!0),oe.collapsed&&ve!=y.line&&jn(un,0),wr(un,new Sr(oe,ve==y.line?y.ch:null,ve==E.line?E.ch:null)),++ve}),oe.collapsed&&a.iter(y.line,E.line+1,function(un){Gn(a,un)&&jn(un,0)}),oe.clearOnEnter&&Ut(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(Wr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++Ta,oe.atomic=!0),we){if(ze&&(we.curOp.updateMaxLine=!0),oe.collapsed)Na(we,y.line,E.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var tn=y.line;tn<=E.line;tn++)yl(we,tn,"text");oe.atomic&&Ei(we.doc),Go(we,"markerAdded",we,oe)}return oe}var xi=function(a,y){this.markers=a,this.primary=y;for(var E=0;E=0;we--)di(this,x[we]);ve?ho(this,ve):this.cm&&$l(this.cm)}),undo:pa(function(){da(this,"undo")}),redo:pa(function(){da(this,"redo")}),undoSelection:pa(function(){da(this,"undo",!0)}),redoSelection:pa(function(){da(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,E=0,x=0;x=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,E){a=pt(this,a),y=pt(this,y);var x=[],z=a.line;return this.iter(a.line,y.line+1,function(oe){var fe=oe.markedSpans;if(fe)for(var ve=0;ve=we.to||we.from==null&&z!=a.line||we.from!=null&&z==y.line&&we.from>=y.ch)&&(!E||E(we.marker))&&x.push(we.marker.parent||we.marker)}++z}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var E=y.markedSpans;if(E)for(var x=0;xa)return y=a,!0;a-=oe,++E}),pt(this,Ke(E,y))},indexFromPos:function(a){a=pt(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var tn=a.dataTransfer.getData("Text");if(tn){var un;if(y.state.draggingText&&!y.state.draggingText.copy&&(un=y.listSelections()),Yo(y.doc,fr(E,E)),un)for(var Un=0;Un=0;ve--)qo(a.doc,"",x[ve].from,x[ve].to,"+delete");$l(a)})}function Ms(a,y,E){var x=Ge(a.text,y+E,E);return x<0||x>a.text.length?null:x}function ms(a,y,E){var x=Ms(a,y.ch,E);return x==null?null:new Ke(y.line,x,E<0?"after":"before")}function Ts(a,y,E,x,z){if(a){y.doc.direction=="rtl"&&(z=-z);var oe=Ne(E,y.doc.direction);if(oe){var fe=z<0?Fe(oe):oe[0],ve=z<0==(fe.level==1),we=ve?"after":"before",ze;if(fe.level>0||y.doc.direction=="rtl"){var tn=Wa(y,E);ze=z<0?E.text.length-1:0;var un=Ra(y,tn,ze).top;ze=He(function(Un){return Ra(y,tn,Un).top==un},z<0==(fe.level==1)?fe.from:fe.to-1,ze),we=="before"&&(ze=Ms(E,ze,1))}else ze=z<0?fe.to:fe.from;return new Ke(x,ze,we)}}return new Ke(x,z<0?E.text.length:0,z<0?"before":"after")}function qs(a,y,E,x){var z=Ne(y,a.doc.direction);if(!z)return ms(y,E,x);E.ch>=y.text.length?(E.ch=y.text.length,E.sticky="before"):E.ch<=0&&(E.ch=0,E.sticky="after");var oe=ut(z,E.ch,E.sticky),fe=z[oe];if(a.doc.direction=="ltr"&&fe.level%2==0&&(x>0?fe.to>E.ch:fe.from=fe.from&&Un>=tn.begin)){var zn=un?"before":"after";return new Ke(E.line,Un,zn)}}var hr=function(qr,uo,eo){for(var yo=function(Li,Oa){return Oa?new Ke(E.line,ve(Li,1),"before"):new Ke(E.line,Li,"after")};qr>=0&&qr0==(Bo.level!=1),Jo=To?eo.begin:ve(eo.end,-1);if(Bo.from<=Jo&&Jo0?tn.end:ve(tn.begin,-1);return Hr!=null&&!(x>0&&Hr==y.text.length)&&(Cr=hr(x>0?0:z.length-1,x,ze(Hr)),Cr)?Cr:null}var Cl={selectAll:Do,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),me)},killLine:function(a){return Nl(a,function(y){if(y.empty()){var E=Yt(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line0)z=new Ke(z.line,z.ch+1),a.replaceRange(oe.charAt(z.ch-1)+oe.charAt(z.ch-2),Ke(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var fe=Yt(a.doc,z.line-1).text;fe&&(z=new Ke(z.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+fe.charAt(fe.length-1),Ke(z.line-1,fe.length-1),z,"+transpose"))}}E.push(new Wn(z,z))}a.setSelections(E)})},newlineAndIndent:function(a){return La(a,function(){for(var y=a.listSelections(),E=y.length-1;E>=0;E--)a.replaceRange(a.doc.lineSeparator(),y[E].anchor,y[E].head,"+input");y=a.listSelections();for(var x=0;xa&&wt(y,this.pos)==0&&E==this.button};var Ml,Wl;function Zs(a,y){var E=+new Date;return Wl&&Wl.compare(E,a,y)?(Ml=Wl=null,"triple"):Ml&&Ml.compare(E,a,y)?(Wl=new vs(E,a,y),Ml=null,"double"):(Ml=new vs(E,a,y),Wl=null,"single")}function zs(a){var y=this,E=y.display;if(!(jt(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,$o(E,a)){be||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!fl(y,a)){var x=dl(y,a),z=Kt(a),oe=x?Zs(x,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Ec(y,z,x,oe,a))&&(z==1?x?ii(y,x,oe,a):Pt(a)==E.scroller&&Tt(a):z==2?(x&&Ko(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Ae?y.display.input.onContextMenu(a):Ks(y)))}}}function Ec(a,y,E,x,z){var oe="Click";return x=="double"?oe="Double"+oe:x=="triple"&&(oe="Triple"+oe),oe=(y==1?"Left":y==2?"Middle":"Right")+oe,ns(a,es(oe,z),z,function(fe){if(typeof fe=="string"&&(fe=Cl[fe]),!fe)return!1;var ve=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ve=fe(a,E)!=Lt}finally{a.state.suppressEdits=!1}return ve})}function ti(a,y,E){var x=a.getOption("configureMouse"),z=x?x(a,y,E):{};if(z.unit==null){var oe=ft?E.shiftKey&&E.metaKey:E.altKey;z.unit=oe?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||E.shiftKey),z.addNew==null&&(z.addNew=Re?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Re?E.altKey:E.ctrlKey)),z}function ii(a,y,E,x){Pe?setTimeout(Ye(sc,a),0):a.curOp.focus=xe();var z=ti(a,E,x),oe=a.doc.sel,fe;a.options.dragDrop&&nn&&!a.isReadOnly()&&E=="single"&&(fe=oe.contains(y))>-1&&(wt((fe=oe.ranges[fe]).from(),y)<0||y.xRel>0)&&(wt(fe.to(),y)>0||y.xRel<0)?Ea(a,x,y,z):Ia(a,x,y,z)}function Ea(a,y,E,x){var z=a.display,oe=!1,fe=ba(a,function(ze){be&&(z.scroller.draggable=!1),a.state.draggingText=!1,mn(z.wrapper.ownerDocument,"mouseup",fe),mn(z.wrapper.ownerDocument,"mousemove",ve),mn(z.scroller,"dragstart",we),mn(z.scroller,"drop",fe),oe||(Tt(ze),x.addNew||Ko(a.doc,E,null,null,x.extend),be&&!$e||Pe&&pe==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),ve=function(ze){oe=oe||Math.abs(y.clientX-ze.clientX)+Math.abs(y.clientY-ze.clientY)>=10},we=function(){return oe=!0};be&&(z.scroller.draggable=!0),a.state.draggingText=fe,fe.copy=!x.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ut(z.wrapper.ownerDocument,"mouseup",fe),Ut(z.wrapper.ownerDocument,"mousemove",ve),Ut(z.scroller,"dragstart",we),Ut(z.scroller,"drop",fe),Ks(a),setTimeout(function(){return z.input.focus()},20)}function Ga(a,y,E){if(E=="char")return new Wn(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new Wn(Ke(y.line,0),pt(a.doc,Ke(y.line+1,0)));var x=E(a,y);return new Wn(x.from,x.to)}function Ia(a,y,E,x){var z=a.display,oe=a.doc;Tt(y);var fe,ve,we=oe.sel,ze=we.ranges;if(x.addNew&&!x.extend?(ve=oe.sel.contains(E),ve>-1?fe=ze[ve]:fe=new Wn(E,E)):(fe=oe.sel.primary(),ve=oe.sel.primIndex),x.unit=="rectangle")x.addNew||(fe=new Wn(E,E)),E=dl(a,y,!0,!0),ve=-1;else{var tn=Ga(a,E,x.unit);x.extend?fe=Wo(fe,tn.anchor,tn.head,x.extend):fe=tn}x.addNew?ve==-1?(ve=ze.length,ro(oe,Ir(a,ze.concat([fe]),ve),{scroll:!1,origin:"*mouse"})):ze.length>1&&ze[ve].empty()&&x.unit=="char"&&!x.extend?(ro(oe,Ir(a,ze.slice(0,ve).concat(ze.slice(ve+1)),0),{scroll:!1,origin:"*mouse"}),we=oe.sel):Xi(oe,ve,fe,qe):(ve=0,ro(oe,new Kn([fe],0),qe),we=oe.sel);var un=E;function Un(eo){if(wt(un,eo)!=0)if(un=eo,x.unit=="rectangle"){for(var yo=[],Bo=a.options.tabSize,To=Ce(Yt(oe,E.line).text,E.ch,Bo),Jo=Ce(Yt(oe,eo.line).text,eo.ch,Bo),Li=Math.min(To,Jo),Oa=Math.max(To,Jo),Ji=Math.min(E.line,eo.line),tl=Math.min(a.lastLine(),Math.max(E.line,eo.line));Ji<=tl;Ji++){var Xa=Yt(oe,Ji).text,va=Xt(Xa,Li,Bo);Li==Oa?yo.push(new Wn(Ke(Ji,va),Ke(Ji,va))):Xa.length>va&&yo.push(new Wn(Ke(Ji,va),Ke(Ji,Xt(Xa,Oa,Bo))))}yo.length||yo.push(new Wn(E,E)),ro(oe,Ir(a,we.ranges.slice(0,ve).concat(yo),ve),{origin:"*mouse",scroll:!1}),a.scrollIntoView(eo)}else{var Ya=fe,Aa=Ga(a,eo,x.unit),Ca=Ya.anchor,ga;wt(Aa.anchor,Ca)>0?(ga=Aa.head,Ca=lt(Ya.from(),Aa.anchor)):(ga=Aa.anchor,Ca=Jn(Ya.to(),Aa.head));var ra=we.ranges.slice(0);ra[ve]=_l(a,new Wn(pt(oe,Ca),ga)),ro(oe,Ir(a,ra,ve),qe)}}var zn=z.wrapper.getBoundingClientRect(),hr=0;function Cr(eo){var yo=++hr,Bo=dl(a,eo,!0,x.unit=="rectangle");if(Bo)if(wt(Bo,un)!=0){a.curOp.focus=xe(),Un(Bo);var To=bl(z,oe);(Bo.line>=To.to||Bo.linezn.bottom?20:0;Jo&&setTimeout(ba(a,function(){hr==yo&&(z.scroller.scrollTop+=Jo,Cr(eo))}),50)}}function Hr(eo){a.state.selectingText=!1,hr=1/0,eo&&(Tt(eo),z.input.focus()),mn(z.wrapper.ownerDocument,"mousemove",qr),mn(z.wrapper.ownerDocument,"mouseup",uo),oe.history.lastSelOrigin=null}var qr=ba(a,function(eo){eo.buttons===0||!Kt(eo)?Hr(eo):Cr(eo)}),uo=ba(a,Hr);a.state.selectingText=uo,Ut(z.wrapper.ownerDocument,"mousemove",qr),Ut(z.wrapper.ownerDocument,"mouseup",uo)}function _l(a,y){var E=y.anchor,x=y.head,z=Yt(a.doc,E.line);if(wt(E,x)==0&&E.sticky==x.sticky)return y;var oe=Ne(z);if(!oe)return y;var fe=ut(oe,E.ch,E.sticky),ve=oe[fe];if(ve.from!=E.ch&&ve.to!=E.ch)return y;var we=fe+(ve.from==E.ch==(ve.level!=1)?0:1);if(we==0||we==oe.length)return y;var ze;if(x.line!=E.line)ze=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var tn=ut(oe,x.ch,x.sticky),un=tn-fe||(x.ch-E.ch)*(ve.level==1?-1:1);tn==we-1||tn==we?ze=un<0:ze=un>0}var Un=oe[we+(ze?-1:0)],zn=ze==(Un.level==1),hr=zn?Un.from:Un.to,Cr=zn?"after":"before";return E.ch==hr&&E.sticky==Cr?y:new Wn(new Ke(E.line,hr,Cr),x)}function Sl(a,y,E,x){var z,oe;if(y.touches)z=y.touches[0].clientX,oe=y.touches[0].clientY;else try{z=y.clientX,oe=y.clientY}catch(Un){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&Tt(y);var fe=a.display,ve=fe.lineDiv.getBoundingClientRect();if(oe>ve.bottom||!on(a,E))return _t(y);oe-=ve.top-fe.viewOffset;for(var we=0;we=z){var tn=Dt(a.doc,oe),un=a.display.gutterSpecs[we];return vn(a,E,a,tn,un.className,y),_t(y)}}}function fl(a,y){return Sl(a,y,"gutterClick",!0)}function Kl(a,y){$o(a.display,y)||Hs(a,y)||jt(a,y,"contextmenu")||Ae||a.display.input.onContextMenu(y)}function Hs(a,y){return on(a,"gutterContextMenu")?Sl(a,y,"gutterContextMenu",!1):!1}function Fc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),rl(a)}var gs={toString:function(){return"CodeMirror.Init"}},$c={},tc={};function Jc(a){var y=a.optionHandlers;function E(x,z,oe,fe){a.defaults[x]=z,oe&&(y[x]=fe?function(ve,we,ze){ze!=gs&&oe(ve,we,ze)}:oe)}a.defineOption=E,a.Init=gs,E("value","",function(x,z){return x.setValue(z)},!0),E("mode",null,function(x,z){x.doc.modeOption=z,ao(x)},!0),E("indentUnit",2,ao,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){no(x),rl(x),Na(x)},!0),E("lineSeparator",null,function(x,z){if(x.doc.lineSep=z,!!z){var oe=[],fe=x.doc.first;x.doc.iter(function(we){for(var ze=0;;){var tn=we.text.indexOf(z,ze);if(tn==-1)break;ze=tn+z.length,oe.push(Ke(fe,tn))}fe++});for(var ve=oe.length-1;ve>=0;ve--)qo(x.doc,z,oe[ve],Ke(oe[ve].line,oe[ve].ch+z.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,z,oe){x.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),oe!=gs&&x.refresh()}),E("specialCharPlaceholder",fo,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",Ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,z){return x.getInputField().spellcheck=z},!0),E("autocorrect",!1,function(x,z){return x.getInputField().autocorrect=z},!0),E("autocapitalize",!1,function(x,z){return x.getInputField().autocapitalize=z},!0),E("rtlMoveVisually",!kt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Fc(x),Dn(x)},!0),E("keyMap","default",function(x,z,oe){var fe=ps(z),ve=oe!=gs&&ps(oe);ve&&ve.detach&&ve.detach(x,fe),fe.attach&&fe.attach(x,ve||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,qc,!0),E("gutters",[],function(x,z){x.display.gutterSpecs=qt(z,x.options.lineNumbers),Dn(x)},!0),E("fixedGutter",!0,function(x,z){x.display.gutters.style.left=z?Il(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return Jl(x)},!0),E("scrollbarStyle","native",function(x){Js(x),Jl(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,z){x.display.gutterSpecs=qt(x.options.gutters,z),Dn(x)},!0),E("firstLineNumber",1,Dn,!0),E("lineNumberFormatter",function(x){return x},Dn,!0),E("showCursorWhenSelecting",!1,Ol,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,z){z=="nocursor"&&(Ll(x),x.display.input.blur()),x.display.input.readOnlyChanged(z)}),E("screenReaderLabel",null,function(x,z){z=z===""?null:z,x.display.input.screenReaderLabelChanged(z)}),E("disableInput",!1,function(x,z){z||x.display.input.reset()},!0),E("dragDrop",!0,Qc),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,Ol,!0),E("singleCursorHeightPerLine",!0,Ol,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,no,!0),E("addModeClass",!1,no,!0),E("pollInterval",100),E("undoDepth",200,function(x,z){return x.doc.history.undoDepth=z}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,no,!0),E("moveInputWithCursor",!0,function(x,z){z||x.display.input.resetPosition()}),E("tabindex",null,function(x,z){return x.display.input.getField().tabIndex=z||""}),E("autofocus",null),E("direction","ltr",function(x,z){return x.doc.setDirection(z)},!0),E("phrases",null)}function Qc(a,y,E){var x=E&&E!=gs;if(!y!=!x){var z=a.display.dragFunctions,oe=y?Ut:mn;oe(a.display.scroller,"dragstart",z.start),oe(a.display.scroller,"dragenter",z.enter),oe(a.display.scroller,"dragover",z.over),oe(a.display.scroller,"dragleave",z.leave),oe(a.display.scroller,"drop",z.drop)}}function qc(a){a.options.lineWrapping?(se(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(nt(a.display.wrapper,"CodeMirror-wrap"),mr(a)),Rl(a),Na(a),rl(a),setTimeout(function(){return Jl(a)},100)}function Vi(a,y){var E=this;if(!(this instanceof Vi))return new Vi(a,y);this.options=y=y?Ft(y):{},Ft($c,y,!1);var x=y.value;typeof x=="string"?x=new Ci(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var z=new Vi.inputStyles[y.inputStyle](this),oe=this.display=new yn(a,x,z,y);oe.wrapper.CodeMirror=this,Fc(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Js(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 he,keySeq:null,specialChars:null},y.autofocus&&!Ue&&oe.input.focus(),Pe&&pe<11&&setTimeout(function(){return E.display.input.reset(!0)},20),eu(this),hs(),Dl(this),this.curOp.forceUpdate=!0,Mo(this,x),y.autofocus&&!Ue||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&Vs(E)},20):Ll(this);for(var fe in tc)tc.hasOwnProperty(fe)&&tc[fe](this,y[fe],gs);Nt(this),y.finishInit&&y.finishInit(this);for(var ve=0;ve20*20}Ut(y.scroller,"touchstart",function(we){if(!jt(a,we)&&!oe(we)&&!fl(a,we)){y.input.ensurePolled(),clearTimeout(E);var ze=+new Date;y.activeTouch={start:ze,moved:!1,prev:ze-x.end<=300?x:null},we.touches.length==1&&(y.activeTouch.left=we.touches[0].pageX,y.activeTouch.top=we.touches[0].pageY)}}),Ut(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ut(y.scroller,"touchend",function(we){var ze=y.activeTouch;if(ze&&!$o(y,we)&&ze.left!=null&&!ze.moved&&new Date-ze.start<300){var tn=a.coordsChar(y.activeTouch,"page"),un;!ze.prev||fe(ze,ze.prev)?un=new Wn(tn,tn):!ze.prev.prev||fe(ze,ze.prev.prev)?un=a.findWordAt(tn):un=new Wn(Ke(tn.line,0),pt(a.doc,Ke(tn.line+1,0))),a.setSelection(un.anchor,un.head),a.focus(),Tt(we)}z()}),Ut(y.scroller,"touchcancel",z),Ut(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ss(a,y.scroller.scrollTop),Zl(a,y.scroller.scrollLeft,!0),vn(a,"scroll",a))}),Ut(y.scroller,"mousewheel",function(we){return Yn(a,we)}),Ut(y.scroller,"DOMMouseScroll",function(we){return Yn(a,we)}),Ut(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(we){jt(a,we)||je(we)},over:function(we){jt(a,we)||(cl(a,we),je(we))},start:function(we){return sl(a,we)},drop:ba(a,xl),leave:function(we){jt(a,we)||us(a)}};var ve=y.input.getField();Ut(ve,"keyup",function(we){return Fs.call(a,we)}),Ut(ve,"keydown",ba(a,Ls)),Ut(ve,"keypress",ba(a,$s)),Ut(ve,"focus",function(we){return Vs(a,we)}),Ut(ve,"blur",function(we){return Ll(a,we)})}var Ic=[];Vi.defineInitHook=function(a){return Ic.push(a)};function js(a,y,E,x){var z=a.doc,oe;E==null&&(E="add"),E=="smart"&&(z.mode.indent?oe=qn(a,y).state:E="prev");var fe=a.options.tabSize,ve=Yt(z,y),we=Ce(ve.text,null,fe);ve.stateAfter&&(ve.stateAfter=null);var ze=ve.text.match(/^\s*/)[0],tn;if(!x&&!/\S/.test(ve.text))tn=0,E="not";else if(E=="smart"&&(tn=z.mode.indent(oe,ve.text.slice(ze.length),ve.text),tn==Lt||tn>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?tn=Ce(Yt(z,y-1).text,null,fe):tn=0:E=="add"?tn=we+a.options.indentUnit:E=="subtract"?tn=we-a.options.indentUnit:typeof E=="number"&&(tn=we+E),tn=Math.max(0,tn);var un="",Un=0;if(a.options.indentWithTabs)for(var zn=Math.floor(tn/fe);zn;--zn)Un+=fe,un+=" ";if(Unfe,we=Zn(y),ze=null;if(ve&&x.ranges.length>1)if(hl&&hl.text.join(` `)==y){if(x.ranges.length%hl.text.length==0){ze=[];for(var tn=0;tn=0;Un--){var zn=x.ranges[Un],hr=zn.from(),Cr=zn.to();zn.empty()&&(E&&E>0?hr=Ke(hr.line,hr.ch-E):a.state.overwrite&&!ve?Cr=Ke(Cr.line,Math.min(Yt(oe,Cr.line).text.length,Cr.ch+Fe(we).length)):ve&&hl&&hl.lineWise&&hl.text.join(` `)==we.join(` `)&&(hr=Cr=Ke(hr.line,0)));var Hr={from:hr,to:Cr,text:ze?ze[Un%ze.length]:we,origin:z||(ve?"paste":a.state.cutIncoming>fe?"cut":"+input")};di(a.doc,Hr),Go(a,"inputRead",a,Hr)}y&&!ve&&zc(a,y),$l(a),a.curOp.updateInput<2&&(a.curOp.updateInput=un),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Zc(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&La(y,function(){return Oc(y,E,0,null,"paste")}),!0}function zc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var z=E.ranges[x];if(!(z.head.ch>100||x&&E.ranges[x-1].head.line==z.head.line)){var oe=a.getModeAt(z.head),fe=!1;if(oe.electricChars){for(var ve=0;ve-1){fe=js(a,z.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(Yt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(fe=js(a,z.head.line,"smart"));fe&&Go(a,"electricInput",a,z.head.line)}}}function Hc(a){for(var y=[],E=[],x=0;xoe&&(js(this,ve.head.line,x,!0),oe=ve.head.line,fe==this.doc.sel.primIndex&&$l(this));else{var we=ve.from(),ze=ve.to(),tn=Math.max(oe,we.line);oe=Math.min(this.lastLine(),ze.line-(ze.ch?0:1))+1;for(var un=tn;un0&&Xi(this.doc,fe,new Wn(we,Un[fe].to()),me)}}}),getTokenAt:function(x,z){return dr(this,x,z)},getLineTokens:function(x,z){return dr(this,Ke(x),z,!0)},getTokenTypeAt:function(x){x=pt(this.doc,x);var z=$n(this,Yt(this.doc,x.line)),oe=0,fe=(z.length-1)/2,ve=x.ch,we;if(ve==0)we=z[2];else for(;;){var ze=oe+fe>>1;if((ze?z[ze*2-1]:0)>=ve)fe=ze;else if(z[ze*2+1]we&&(x=we,fe=!0),ve=Yt(this.doc,x)}else ve=x;return gl(this,ve,{top:0,left:0},z||"page",oe||fe).top+(fe?this.doc.height-sr(ve):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return ua(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,z,oe,fe,ve){var we=this.display;x=pi(this,pt(this.doc,x));var ze=x.bottom,tn=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),we.sizer.appendChild(z),fe=="over")ze=x.top;else if(fe=="above"||fe=="near"){var un=Math.max(we.wrapper.clientHeight,this.doc.height),Un=Math.max(we.sizer.clientWidth,we.lineSpace.clientWidth);(fe=="above"||x.bottom+z.offsetHeight>un)&&x.top>z.offsetHeight?ze=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=un&&(ze=x.bottom),tn+z.offsetWidth>Un&&(tn=Un-z.offsetWidth)}z.style.top=ze+"px",z.style.left=z.style.right="",ve=="right"?(tn=we.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(ve=="left"?tn=0:ve=="middle"&&(tn=(we.sizer.clientWidth-z.offsetWidth)/2),z.style.left=tn+"px"),oe&&kc(this,{left:tn,top:ze,right:tn+z.offsetWidth,bottom:ze+z.offsetHeight})},triggerOnKeyDown:Ma(Ls),triggerOnKeyPress:Ma($s),triggerOnKeyUp:Fs,triggerOnMouseDown:Ma(zs),execCommand:function(x){if(Cl.hasOwnProperty(x))return Cl[x].call(null,this)},triggerElectric:Ma(function(x){zc(this,x)}),findPosH:function(x,z,oe,fe){var ve=1;z<0&&(ve=-1,z=-z);for(var we=pt(this.doc,x),ze=0;ze0&&tn(oe.charAt(fe-1));)--fe;for(;ve.5||this.options.lineWrapping)&&Rl(this),vn(this,"refresh",this)}),swapDoc:Ma(function(x){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Mo(this,x),rl(this),this.display.input.reset(),ls(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Go(this,"swapDoc",this,z),z}),phrase:function(x){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,x)?z[x]:x},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}},Je(a),a.registerHelper=function(x,z,oe){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][z]=oe},a.registerGlobalHelper=function(x,z,oe,fe){a.registerHelper(x,z,fe),E[x]._global.push({pred:oe,val:fe})}}function Dc(a,y,E,x,z){var oe=y,fe=E,ve=Yt(a,y.line),we=z&&a.direction=="rtl"?-E:E;function ze(){var uo=y.line+we;return uo=a.first+a.size?!1:(y=new Ke(uo,y.ch,y.sticky),ve=Yt(a,uo))}function tn(uo){var eo;if(x=="codepoint"){var yo=ve.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(yo)?eo=null:eo=new Ke(y.line,Math.max(0,Math.min(ve.text.length,y.ch+E*(yo>=55296&&yo<56320?2:1))),-E)}else z?eo=qs(a.cm,ve,y,E):eo=ms(ve,y,E);if(eo==null)if(!uo&&ze())y=Ts(z,a.cm,ve,y.line,we);else return!1;else y=eo;return!0}if(x=="char"||x=="codepoint")tn();else if(x=="column")tn(!0);else if(x=="word"||x=="group")for(var un=null,Un=x=="group",zn=a.cm&&a.cm.getHelper(y,"wordChars"),hr=!0;!(E<0&&!tn(!hr));hr=!1){var Cr=ve.text.charAt(y.ch)||` `,Hr=de(Cr,zn)?"w":Un&&Cr==` `?"n":!Un||/\s/.test(Cr)?null:"p";if(Un&&!hr&&!Hr&&(Hr="s"),un&&un!=Hr){E<0&&(E=1,tn(),y.sticky="after");break}if(Hr&&(un=Hr),E>0&&!tn(!hr))break}var qr=ta(a,y,oe,fe,!0);return Ht(oe,qr)&&(qr.hitSide=!0),qr}function _c(a,y,E,x){var z=a.doc,oe=y.left,fe;if(x=="page"){var ve=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),we=Math.max(ve-.5*ca(a.display),3);fe=(E>0?y.bottom:y.top)+E*we}else x=="line"&&(fe=E>0?y.bottom+3:y.top-3);for(var ze;ze=ci(a,oe,fe),!!ze.outside;){if(E<0?fe<=0:fe>=z.height){ze.hitSide=!0;break}fe+=E*5}return ze}var Ii=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ii.prototype.init=function(a){var y=this,E=this,x=E.cm,z=E.div=a.lineDiv;jc(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function oe(ve){for(var we=ve.target;we;we=we.parentNode){if(we==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(we.className))break}return!1}Ut(z,"paste",function(ve){!oe(ve)||jt(x,ve)||Zc(ve,x)||pe<=11&&setTimeout(ba(x,function(){return y.updateFromDOM()}),20)}),Ut(z,"compositionstart",function(ve){y.composing={data:ve.data,done:!1}}),Ut(z,"compositionupdate",function(ve){y.composing||(y.composing={data:ve.data,done:!1})}),Ut(z,"compositionend",function(ve){y.composing&&(ve.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ut(z,"touchstart",function(){return E.forceCompositionEnd()}),Ut(z,"input",function(){y.composing||y.readFromDOMSoon()});function fe(ve){if(!(!oe(ve)||jt(x,ve))){if(x.somethingSelected())nc({lineWise:!1,text:x.getSelections()}),ve.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var we=Hc(x);nc({lineWise:!0,text:we.text}),ve.type=="cut"&&x.operation(function(){x.setSelections(we.ranges,0,me),x.replaceSelection("",null,"cut")})}else return;if(ve.clipboardData){ve.clipboardData.clearData();var ze=hl.text.join(` `);if(ve.clipboardData.setData("Text",ze),ve.clipboardData.getData("Text")==ze){ve.preventDefault();return}}var tn=Wc(),un=tn.firstChild;x.display.lineSpace.insertBefore(tn,x.display.lineSpace.firstChild),un.value=hl.text.join(` `);var Un=document.activeElement;_e(un),setTimeout(function(){x.display.lineSpace.removeChild(tn),Un.focus(),Un==z&&E.showPrimarySelection()},50)}}Ut(z,"copy",fe),Ut(z,"cut",fe)},Ii.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ii.prototype.prepareSelection=function(){var a=lc(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ii.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ii.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ii.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),z=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||z.line=y.display.viewFrom&&Kc(y,x)||{node:ve[0].measure.map[2],offset:0},ze=z.linea.firstLine()&&(x=Ke(x.line-1,Yt(a.doc,x.line-1).length)),z.ch==Yt(a.doc,z.line).text.length&&z.liney.viewTo-1)return!1;var oe,fe,ve;x.line==y.viewFrom||(oe=ol(a,x.line))==0?(fe=vt(y.view[0].line),ve=y.view[0].node):(fe=vt(y.view[oe].line),ve=y.view[oe-1].node.nextSibling);var we=ol(a,z.line),ze,tn;if(we==y.view.length-1?(ze=y.viewTo-1,tn=y.lineDiv.lastChild):(ze=vt(y.view[we+1].line)-1,tn=y.view[we+1].node.previousSibling),!ve)return!1;for(var un=a.doc.splitLines(ru(a,ve,tn,fe,ze)),Un=xn(a.doc,Ke(fe,0),Ke(ze,Yt(a.doc,ze).text.length));un.length>1&&Un.length>1;)if(Fe(un)==Fe(Un))un.pop(),Un.pop(),ze--;else if(un[0]==Un[0])un.shift(),Un.shift(),fe++;else break;for(var zn=0,hr=0,Cr=un[0],Hr=Un[0],qr=Math.min(Cr.length,Hr.length);znx.ch&&uo.charCodeAt(uo.length-hr-1)==eo.charCodeAt(eo.length-hr-1);)zn--,hr++;un[un.length-1]=uo.slice(0,uo.length-hr).replace(/^\u200b+/,""),un[0]=un[0].slice(zn).replace(/\u200b+$/,"");var Bo=Ke(fe,zn),To=Ke(ze,Un.length?Fe(Un).length-hr:0);if(un.length>1||un[0]||wt(Bo,To))return qo(a.doc,un,Bo,To,"+input"),!0},Ii.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ii.prototype.reset=function(){this.forceCompositionEnd()},Ii.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ii.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ii.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&La(this.cm,function(){return Na(a.cm)})},Ii.prototype.setUneditable=function(a){a.contentEditable="false"},Ii.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ba(this.cm,Oc)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ii.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ii.prototype.onContextMenu=function(){},Ii.prototype.resetPosition=function(){},Ii.prototype.needsContentAttribute=!0;function Kc(a,y){var E=Sa(a,y.line);if(!E||E.hidden)return null;var x=Yt(a.doc,y.line),z=ja(E,x,y.line),oe=Ne(x,a.doc.direction),fe="left";if(oe){var ve=ut(oe,y.ch);fe=ve%2?"right":"left"}var we=pl(z.map,y.ch,fe);return we.offset=we.collapse=="right"?we.end:we.start,we}function nu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function ys(a,y){return y&&(a.bad=!0),a}function ru(a,y,E,x,z){var oe="",fe=!1,ve=a.doc.lineSeparator(),we=!1;function ze(zn){return function(hr){return hr.id==zn}}function tn(){fe&&(oe+=ve,we&&(oe+=ve),fe=we=!1)}function un(zn){zn&&(tn(),oe+=zn)}function Un(zn){if(zn.nodeType==1){var hr=zn.getAttribute("cm-text");if(hr){un(hr);return}var Cr=zn.getAttribute("cm-marker"),Hr;if(Cr){var qr=a.findMarks(Ke(x,0),Ke(z+1,0),ze(+Cr));qr.length&&(Hr=qr[0].find(0))&&un(xn(a.doc,Hr.from,Hr.to).join(ve));return}if(zn.getAttribute("contenteditable")=="false")return;var uo=/^(pre|div|p|li|table|br)$/i.test(zn.nodeName);if(!/^br$/i.test(zn.nodeName)&&zn.textContent.length==0)return;uo&&tn();for(var eo=0;eo=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Ut(z,"paste",function(fe){jt(x,fe)||Zc(fe,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function oe(fe){if(!jt(x,fe)){if(x.somethingSelected())nc({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var ve=Hc(x);nc({lineWise:!0,text:ve.text}),fe.type=="cut"?x.setSelections(ve.ranges,null,me):(E.prevInput="",z.value=ve.text.join(` `),_e(z))}else return;fe.type=="cut"&&(x.state.cutIncoming=+new Date)}}Ut(z,"cut",oe),Ut(z,"copy",oe),Ut(a.scroller,"paste",function(fe){if(!($o(a,fe)||jt(x,fe))){if(!z.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var ve=new Event("paste");ve.clipboardData=fe.clipboardData,z.dispatchEvent(ve)}}),Ut(a.lineSpace,"selectstart",function(fe){$o(a,fe)||Tt(fe)}),Ut(z,"compositionstart",function(){var fe=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:fe,range:x.markText(fe,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Ut(z,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},ha.prototype.createField=function(a){this.wrapper=Wc(),this.textarea=this.wrapper.firstChild},ha.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ha.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=lc(a);if(a.options.moveInputWithCursor){var z=pi(a,E.sel.primary().head,"div"),oe=y.wrapper.getBoundingClientRect(),fe=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+fe.top-oe.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+fe.left-oe.left))}return x},ha.prototype.showSelection=function(a){var y=this.cm,E=y.display;Ot(E.cursorDiv,a.cursors),Ot(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ha.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&_e(this.textarea),Pe&&pe>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Pe&&pe>=9&&(this.hasSelection=null))}},ha.prototype.getField=function(){return this.textarea},ha.prototype.supportsTouch=function(){return!1},ha.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ue||xe()!=this.textarea))try{this.textarea.focus()}catch(a){}},ha.prototype.blur=function(){this.textarea.blur()},ha.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ha.prototype.receivedFocus=function(){this.slowPoll()},ha.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ha.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function E(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},ha.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||er(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=E.value;if(z==x&&!y.somethingSelected())return!1;if(Pe&&pe>=9&&this.hasSelection===z||Re&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var oe=z.charCodeAt(0);if(oe==8203&&!x&&(x="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,ve=Math.min(x.length,z.length);fe1e3||z.indexOf(` `)>-1?E.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ha.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ha.prototype.onKeyPress=function(){Pe&&pe>=9&&(this.hasSelection=null),this.fastPoll()},ha.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var oe=dl(E,a),fe=x.scroller.scrollTop;if(!oe||ue)return;var ve=E.options.resetSelectionOnContextMenu;ve&&E.doc.sel.contains(oe)==-1&&ba(E,ro)(E.doc,fr(oe),me);var we=z.style.cssText,ze=y.wrapper.style.cssText,tn=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-tn.top-5)+"px; left: "+(a.clientX-tn.left-5)+`px; z-index: 1000; background: `+(Pe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var un;be&&(un=window.scrollY),x.input.focus(),be&&window.scrollTo(null,un),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=zn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function Un(){if(z.selectionStart!=null){var Cr=E.somethingSelected(),Hr="\u200B"+(Cr?z.value:"");z.value="\u21DA",z.value=Hr,y.prevInput=Cr?"":"\u200B",z.selectionStart=1,z.selectionEnd=Hr.length,x.selForContextMenu=E.doc.sel}}function zn(){if(y.contextMenuPending==zn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ze,z.style.cssText=we,Pe&&pe<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=fe),z.selectionStart!=null)){(!Pe||Pe&&pe<9)&&Un();var Cr=0,Hr=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?ba(E,Do)(E):Cr++<10?x.detectingSelectAll=setTimeout(Hr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Hr,200)}}if(Pe&&pe>=9&&Un(),Ae){je(a);var hr=function(){mn(window,"mouseup",hr),setTimeout(zn,20)};Ut(window,"mouseup",hr)}else setTimeout(zn,50)},ha.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ha.prototype.setUneditable=function(){},ha.prototype.needsContentAttribute=!1;function iu(a,y){if(y=y?Ft(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var E=xe();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=ve.getValue()}var z;if(a.form&&(Ut(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var oe=a.form;z=oe.submit;try{var fe=oe.submit=function(){x(),oe.submit=z,oe.submit(),oe.submit=fe}}catch(we){}}y.finishInit=function(we){we.save=x,we.getTextArea=function(){return a},we.toTextArea=function(){we.toTextArea=isNaN,x(),a.parentNode.removeChild(we.getWrapperElement()),a.style.display="",a.form&&(mn(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var ve=Vi(function(we){return a.parentNode.insertBefore(we,a.nextSibling)},y);return ve}function au(a){a.off=mn,a.on=Ut,a.wheelEventPixels=Qn,a.Doc=Ci,a.splitLines=Zn,a.countColumn=Ce,a.findColumn=Xt,a.isWordChar=ie,a.Pass=Lt,a.signal=vn,a.Line=kr,a.changeEnd=Nr,a.scrollbarModel=fc,a.Pos=Ke,a.cmpPos=wt,a.modes=St,a.mimeModes=Et,a.resolveMode=Tn,a.getMode=Jt,a.modeExtensions=wn,a.extendMode=gn,a.copyState=Nn,a.startState=rr,a.innerMode=An,a.commands=Cl,a.keyMap=fa,a.keyName=Pl,a.isModifierKey=Ns,a.lookupKey=jl,a.normalizeKeyMap=wa,a.StringStream=Qt,a.SharedTextMarker=xi,a.TextMarker=$a,a.LineWidget=li,a.e_preventDefault=Tt,a.e_stopPropagation=an,a.e_stop=je,a.addClass=se,a.contains=ke,a.rmClass=nt,a.keyNames=Xo}Jc(Vi),tu(Vi);var lu="iter insert remove copy getEditor constructor".split(" ");for(var oc in Ci.prototype)Ci.prototype.hasOwnProperty(oc)&&yt(lu,oc)<0&&(Vi.prototype[oc]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ci.prototype[oc]));return Je(Ci),Vi.inputStyles={textarea:ha,contenteditable:Ii},Vi.defineMode=function(a){!Vi.defaults.mode&&a!="null"&&(Vi.defaults.mode=a),sn.apply(this,arguments)},Vi.defineMIME=Pn,Vi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Vi.defineMIME("text/plain","null"),Vi.defineExtension=function(a,y){Vi.prototype[a]=y},Vi.defineDocExtension=function(a,y){Ci.prototype[a]=y},Vi.fromTextArea=iu,au(Vi),Vi.version="5.58.2",Vi})},25419:function(Bn,rn,ee){(function(b){b(ee(89780),ee(15525),ee(98101))})(function(b){"use strict";b.defineMode("markdown",function(Me,ce){var et=b.getMode(Me,"text/html"),Pe=et.name=="null";function pe(Ce){if(b.findModeByName){var he=b.findModeByName(Ce);he&&(Ce=he.mime||he.mimes[0])}var yt=b.getMode(Me,Ce);return yt.name=="null"?null:yt}ce.highlightFormatting===void 0&&(ce.highlightFormatting=!1),ce.maxBlockquoteDepth===void 0&&(ce.maxBlockquoteDepth=0),ce.taskLists===void 0&&(ce.taskLists=!1),ce.strikethrough===void 0&&(ce.strikethrough=!1),ce.emoji===void 0&&(ce.emoji=!1),ce.fencedCodeBlockHighlighting===void 0&&(ce.fencedCodeBlockHighlighting=!0),ce.fencedCodeBlockDefaultMode===void 0&&(ce.fencedCodeBlockDefaultMode="text/plain"),ce.xml===void 0&&(ce.xml=!0),ce.tokenTypeOverrides===void 0&&(ce.tokenTypeOverrides={});var be={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ve in be)be.hasOwnProperty(Ve)&&ce.tokenTypeOverrides[Ve]&&(be[Ve]=ce.tokenTypeOverrides[Ve]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,$e=/^\[(x| )\](?=\s)/i,Ee=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Rt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ot=/^[^#!\[\]*_\\<>` "'(~:]+/,st=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ue=/^\s*\[[^\]]+?\]:.*$/,Re=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ft=" ";function kt(Ce,he,yt){return he.f=he.inline=yt,yt(Ce,he)}function en(Ce,he,yt){return he.f=he.block=yt,yt(Ce,he)}function Qe(Ce){return!Ce||!/\S/.test(Ce.string)}function Ae(Ce){if(Ce.linkTitle=!1,Ce.linkHref=!1,Ce.linkText=!1,Ce.em=!1,Ce.strong=!1,Ce.strikethrough=!1,Ce.quote=0,Ce.indentedCode=!1,Ce.f==nt){var he=Pe;if(!he){var yt=b.innerMode(et,Ce.htmlState);he=yt.mode.name=="xml"&&yt.state.tagStart===null&&!yt.state.context&&yt.state.tokenize.isInText}he&&(Ce.f=Ct,Ce.block=tt,Ce.htmlState=null)}return Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:null},null}function tt(Ce,he){var yt=Ce.column()===he.indentation,Vt=Qe(he.prevLine.stream),Lt=he.indentedCode,me=he.prevLine.hr,qe=he.list!==!1,it=(he.listStack[he.listStack.length-1]||0)+3;he.indentedCode=!1;var Xt=he.indentation;if(he.indentationDiff===null&&(he.indentationDiff=he.indentation,qe)){for(he.list=null;Xt=4&&(Lt||he.prevLine.fencedCodeEnd||he.prevLine.header||Vt))return Ce.skipToEnd(),he.indentedCode=!0,be.code;if(Ce.eatSpace())return null;if(yt&&he.indentation<=it&&(Fe=Ce.match(Ee))&&Fe[1].length<=6)return he.quote=0,he.header=Fe[1].length,he.thisLine.header=!0,ce.highlightFormatting&&(he.formatting="header"),he.f=he.inline,Ot(he);if(he.indentation<=it&&Ce.eat(">"))return he.quote=yt?1:he.quote+1,ce.highlightFormatting&&(he.formatting="quote"),Ce.eatSpace(),Ot(he);if(!Gt&&!he.setext&&yt&&he.indentation<=it&&(Fe=Ce.match(ue))){var dn=Fe[1]?"ol":"ul";return he.indentation=Xt+Ce.current().length,he.list=!0,he.quote=0,he.listStack.push(he.indentation),he.em=!1,he.strong=!1,he.code=!1,he.strikethrough=!1,ce.taskLists&&Ce.match($e,!1)&&(he.taskList=!0),he.f=he.inline,ce.highlightFormatting&&(he.formatting=["list","list-"+dn]),Ot(he)}else{if(yt&&he.indentation<=it&&(Fe=Ce.match(st,!0)))return he.quote=0,he.fencedEndRE=new RegExp(Fe[1]+"+ *$"),he.localMode=ce.fencedCodeBlockHighlighting&&pe(Fe[2]||ce.fencedCodeBlockDefaultMode),he.localMode&&(he.localState=b.startState(he.localMode)),he.f=he.block=zt,ce.highlightFormatting&&(he.formatting="code-block"),he.code=-1,Ot(he);if(he.setext||(!Xe||!qe)&&!he.quote&&he.list===!1&&!he.code&&!Gt&&!Ue.test(Ce.string)&&(Fe=Ce.lookAhead(1))&&(Fe=Fe.match(Rt)))return he.setext?(he.header=he.setext,he.setext=0,Ce.skipToEnd(),ce.highlightFormatting&&(he.formatting="header")):(he.header=Fe[0].charAt(0)=="="?1:2,he.setext=he.header),he.thisLine.header=!0,he.f=he.inline,Ot(he);if(Gt)return Ce.skipToEnd(),he.hr=!0,he.thisLine.hr=!0,be.hr;if(Ce.peek()==="[")return kt(Ce,he,It)}return kt(Ce,he,he.inline)}function nt(Ce,he){var yt=et.token(Ce,he.htmlState);if(!Pe){var Vt=b.innerMode(et,he.htmlState);(Vt.mode.name=="xml"&&Vt.state.tagStart===null&&!Vt.state.context&&Vt.state.tokenize.isInText||he.md_inside&&Ce.current().indexOf(">")>-1)&&(he.f=Ct,he.block=tt,he.htmlState=null)}return yt}function zt(Ce,he){var yt=he.listStack[he.listStack.length-1]||0,Vt=he.indentation=Ce.quote?he.push(be.formatting+"-"+Ce.formatting[yt]+"-"+Ce.quote):he.push("error"))}if(Ce.taskOpen)return he.push("meta"),he.length?he.join(" "):null;if(Ce.taskClosed)return he.push("property"),he.length?he.join(" "):null;if(Ce.linkHref?he.push(be.linkHref,"url"):(Ce.strong&&he.push(be.strong),Ce.em&&he.push(be.em),Ce.strikethrough&&he.push(be.strikethrough),Ce.emoji&&he.push(be.emoji),Ce.linkText&&he.push(be.linkText),Ce.code&&he.push(be.code),Ce.image&&he.push(be.image),Ce.imageAltText&&he.push(be.imageAltText,"link"),Ce.imageMarker&&he.push(be.imageMarker)),Ce.header&&he.push(be.header,be.header+"-"+Ce.header),Ce.quote&&(he.push(be.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Ce.quote?he.push(be.quote+"-"+Ce.quote):he.push(be.quote+"-"+ce.maxBlockquoteDepth)),Ce.list!==!1){var Vt=(Ce.listStack.length-1)%3;Vt?Vt===1?he.push(be.list2):he.push(be.list3):he.push(be.list1)}return Ce.trailingSpaceNewLine?he.push("trailing-space-new-line"):Ce.trailingSpace&&he.push("trailing-space-"+(Ce.trailingSpace%2?"a":"b")),he.length?he.join(" "):null}function ht(Ce,he){if(Ce.match(ot,!0))return Ot(he)}function Ct(Ce,he){var yt=he.text(Ce,he);if(typeof yt!="undefined")return yt;if(he.list)return he.list=null,Ot(he);if(he.taskList){var Vt=Ce.match($e,!0)[1]===" ";return Vt?he.taskOpen=!0:he.taskClosed=!0,ce.highlightFormatting&&(he.formatting="task"),he.taskList=!1,Ot(he)}if(he.taskOpen=!1,he.taskClosed=!1,he.header&&Ce.match(/^#+$/,!0))return ce.highlightFormatting&&(he.formatting="header"),Ot(he);var Lt=Ce.next();if(he.linkTitle){he.linkTitle=!1;var me=Lt;Lt==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var qe="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(Ce.match(new RegExp(qe),!0))return be.linkHref}if(Lt==="`"){var it=he.formatting;ce.highlightFormatting&&(he.formatting="code"),Ce.eatWhile("`");var Xt=Ce.current().length;if(he.code==0&&(!he.quote||Xt==1))return he.code=Xt,Ot(he);if(Xt==he.code){var Xe=Ot(he);return he.code=0,Xe}else return he.formatting=it,Ot(he)}else if(he.code)return Ot(he);if(Lt==="\\"&&(Ce.next(),ce.highlightFormatting)){var Gt=Ot(he),Fe=be.formatting+"-escape";return Gt?Gt+" "+Fe:Fe}if(Lt==="!"&&Ce.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return he.imageMarker=!0,he.image=!0,ce.highlightFormatting&&(he.formatting="image"),Ot(he);if(Lt==="["&&he.imageMarker&&Ce.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return he.imageMarker=!1,he.imageAltText=!0,ce.highlightFormatting&&(he.formatting="image"),Ot(he);if(Lt==="]"&&he.imageAltText){ce.highlightFormatting&&(he.formatting="image");var Gt=Ot(he);return he.imageAltText=!1,he.image=!1,he.inline=he.f=ke,Gt}if(Lt==="["&&!he.image)return he.linkText&&Ce.match(/^.*?\]/)||(he.linkText=!0,ce.highlightFormatting&&(he.formatting="link")),Ot(he);if(Lt==="]"&&he.linkText){ce.highlightFormatting&&(he.formatting="link");var Gt=Ot(he);return he.linkText=!1,he.inline=he.f=Ce.match(/\(.*?\)| ?\[.*?\]/,!1)?ke:Ct,Gt}if(Lt==="<"&&Ce.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=De,ce.highlightFormatting&&(he.formatting="link");var Gt=Ot(he);return Gt?Gt+=" ":Gt="",Gt+be.linkInline}if(Lt==="<"&&Ce.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=De,ce.highlightFormatting&&(he.formatting="link");var Gt=Ot(he);return Gt?Gt+=" ":Gt="",Gt+be.linkEmail}if(ce.xml&&Lt==="<"&&Ce.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dn=Ce.string.indexOf(">",Ce.pos);if(dn!=-1){var $t=Ce.string.substring(Ce.start,dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($t)&&(he.md_inside=!0)}return Ce.backUp(1),he.htmlState=b.startState(et),en(Ce,he,nt)}if(ce.xml&&Lt==="<"&&Ce.match(/^\/\w*?>/))return he.md_inside=!1,"tag";if(Lt==="*"||Lt==="_"){for(var ae=1,ne=Ce.pos==1?" ":Ce.string.charAt(Ce.pos-2);ae<3&&Ce.eat(Lt);)ae++;var te=Ce.peek()||" ",ie=!/\s/.test(te)&&(!Re.test(te)||/\s/.test(ne)||Re.test(ne)),de=!/\s/.test(ne)&&(!Re.test(ne)||/\s/.test(te)||Re.test(te)),re=null,le=null;if(ae%2&&(!he.em&&ie&&(Lt==="*"||!de||Re.test(ne))?re=!0:he.em==Lt&&de&&(Lt==="*"||!ie||Re.test(te))&&(re=!1)),ae>1&&(!he.strong&&ie&&(Lt==="*"||!de||Re.test(ne))?le=!0:he.strong==Lt&&de&&(Lt==="*"||!ie||Re.test(te))&&(le=!1)),le!=null||re!=null){ce.highlightFormatting&&(he.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(he.em=Lt),le===!0&&(he.strong=Lt);var Xe=Ot(he);return re===!1&&(he.em=!1),le===!1&&(he.strong=!1),Xe}}else if(Lt===" "&&(Ce.eat("*")||Ce.eat("_"))){if(Ce.peek()===" ")return Ot(he);Ce.backUp(1)}if(ce.strikethrough){if(Lt==="~"&&Ce.eatWhile(Lt)){if(he.strikethrough){ce.highlightFormatting&&(he.formatting="strikethrough");var Xe=Ot(he);return he.strikethrough=!1,Xe}else if(Ce.match(/^[^\s]/,!1))return he.strikethrough=!0,ce.highlightFormatting&&(he.formatting="strikethrough"),Ot(he)}else if(Lt===" "&&Ce.match(/^~~/,!0)){if(Ce.peek()===" ")return Ot(he);Ce.backUp(2)}}if(ce.emoji&&Lt===":"&&Ce.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){he.emoji=!0,ce.highlightFormatting&&(he.formatting="emoji");var Se=Ot(he);return he.emoji=!1,Se}return Lt===" "&&(Ce.match(/^ +$/,!1)?he.trailingSpace++:he.trailingSpace&&(he.trailingSpaceNewLine=!0)),Ot(he)}function De(Ce,he){var yt=Ce.next();if(yt===">"){he.f=he.inline=Ct,ce.highlightFormatting&&(he.formatting="link");var Vt=Ot(he);return Vt?Vt+=" ":Vt="",Vt+be.linkInline}return Ce.match(/^[^>]+/,!0),be.linkInline}function ke(Ce,he){if(Ce.eatSpace())return null;var yt=Ce.next();return yt==="("||yt==="["?(he.f=he.inline=se(yt==="("?")":"]"),ce.highlightFormatting&&(he.formatting="link-string"),he.linkHref=!0,Ot(he)):"error"}var xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function se(Ce){return function(he,yt){var Vt=he.next();if(Vt===Ce){yt.f=yt.inline=Ct,ce.highlightFormatting&&(yt.formatting="link-string");var Lt=Ot(yt);return yt.linkHref=!1,Lt}return he.match(xe[Ce]),yt.linkHref=!0,Ot(yt)}}function It(Ce,he){return Ce.match(/^([^\]\\]|\\.)*\]:/,!1)?(he.f=_e,Ce.next(),ce.highlightFormatting&&(he.formatting="link"),he.linkText=!0,Ot(he)):kt(Ce,he,Ct)}function _e(Ce,he){if(Ce.match(/^\]:/,!0)){he.f=he.inline=Ye,ce.highlightFormatting&&(he.formatting="link");var yt=Ot(he);return he.linkText=!1,yt}return Ce.match(/^([^\]\\]|\\.)+/,!0),be.linkText}function Ye(Ce,he){return Ce.eatSpace()?null:(Ce.match(/^[^\s]+/,!0),Ce.peek()===void 0?he.linkTitle=!0:Ce.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),he.f=he.inline=Ct,be.linkHref+" url")}var Ft={startState:function(){return{f:tt,prevLine:{stream:null},thisLine:{stream:null},block:tt,htmlState:null,indentation:0,inline:Ct,text:ht,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ce){return{f:Ce.f,prevLine:Ce.prevLine,thisLine:Ce.thisLine,block:Ce.block,htmlState:Ce.htmlState&&b.copyState(et,Ce.htmlState),indentation:Ce.indentation,localMode:Ce.localMode,localState:Ce.localMode?b.copyState(Ce.localMode,Ce.localState):null,inline:Ce.inline,text:Ce.text,formatting:!1,linkText:Ce.linkText,linkTitle:Ce.linkTitle,linkHref:Ce.linkHref,code:Ce.code,em:Ce.em,strong:Ce.strong,strikethrough:Ce.strikethrough,emoji:Ce.emoji,header:Ce.header,setext:Ce.setext,hr:Ce.hr,taskList:Ce.taskList,list:Ce.list,listStack:Ce.listStack.slice(0),quote:Ce.quote,indentedCode:Ce.indentedCode,trailingSpace:Ce.trailingSpace,trailingSpaceNewLine:Ce.trailingSpaceNewLine,md_inside:Ce.md_inside,fencedEndRE:Ce.fencedEndRE}},token:function(Ce,he){if(he.formatting=!1,Ce!=he.thisLine.stream){if(he.header=0,he.hr=!1,Ce.match(/^\s*$/,!0))return Ae(he),null;if(he.prevLine=he.thisLine,he.thisLine={stream:Ce},he.taskList=!1,he.trailingSpace=0,he.trailingSpaceNewLine=!1,!he.localState&&(he.f=he.block,he.f!=nt)){var yt=Ce.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(he.indentation=yt,he.indentationDiff=null,yt>0)return null}}return he.f(Ce,he)},innerMode:function(Ce){return Ce.block==nt?{state:Ce.htmlState,mode:et}:Ce.localState?{state:Ce.localState,mode:Ce.localMode}:{state:Ce,mode:Ft}},indent:function(Ce,he,yt){return Ce.block==nt&&et.indent?et.indent(Ce.htmlState,he,yt):Ce.localState&&Ce.localMode.indent?Ce.localMode.indent(Ce.localState,he,yt):b.Pass},blankLine:Ae,getType:Ot,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ft},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(Bn,rn,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Me=0;Me-1&&et.substring(be+1,et.length);if(Ve)return b.findModeByExtension(Ve)},b.findModeByName=function(et){et=et.toLowerCase();for(var Pe=0;Pe0?ot.cmdState[ot.cmdState.length-1]:null}function pe(ot){var st=ot.cmdState.pop();st&&st.closeBracket()}function be(ot){for(var st=ot.cmdState,Ue=st.length-1;Ue>=0;Ue--){var Re=st[Ue];if(Re.name!="DEFAULT")return Re}return{styleIdentifier:function(){return null}}}function Ve(ot,st,Ue){return function(){this.name=ot,this.bracketNo=0,this.style=st,this.styles=Ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Ve("importmodule","tag",["string","builtin"]),Ie.documentclass=Ve("documentclass","tag",["","atom"]),Ie.usepackage=Ve("usepackage","tag",["atom"]),Ie.begin=Ve("begin","tag",["atom"]),Ie.end=Ve("end","tag",["atom"]),Ie.label=Ve("label","tag",["atom"]),Ie.ref=Ve("ref","tag",["atom"]),Ie.eqref=Ve("eqref","tag",["atom"]),Ie.cite=Ve("cite","tag",["atom"]),Ie.bibitem=Ve("bibitem","tag",["atom"]),Ie.Bibitem=Ve("Bibitem","tag",["atom"]),Ie.RBibitem=Ve("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ue(ot,st){ot.f=st}function $e(ot,st){var Ue;if(ot.match(/^\\[a-zA-Z@]+/)){var Re=ot.current().slice(1);return Ue=Ie.hasOwnProperty(Re)?Ie[Re]:Ie.DEFAULT,Ue=new Ue,et(st,Ue),ue(st,Rt),Ue.style}if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/\\]/))return"tag";if(ot.match("\\["))return ue(st,function(kt,en){return Ee(kt,en,"\\]")}),"keyword";if(ot.match("\\("))return ue(st,function(kt,en){return Ee(kt,en,"\\)")}),"keyword";if(ot.match("$$"))return ue(st,function(kt,en){return Ee(kt,en,"$$")}),"keyword";if(ot.match("$"))return ue(st,function(kt,en){return Ee(kt,en,"$")}),"keyword";var ft=ot.next();if(ft=="%")return ot.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if(Ue=Pe(st),Ue)Ue.closeBracket(ft),ue(st,Rt);else return"error";return"bracket"}else return ft=="{"||ft=="["?(Ue=Ie.DEFAULT,Ue=new Ue,et(st,Ue),"bracket"):/\d/.test(ft)?(ot.eatWhile(/[\w.%]/),"atom"):(ot.eatWhile(/[\w\-_]/),Ue=be(st),Ue.name=="begin"&&(Ue.argument=ot.current()),Ue.styleIdentifier())}function Ee(ot,st,Ue){if(ot.eatSpace())return null;if(Ue&&ot.match(Ue))return ue(st,$e),"keyword";if(ot.match(/^\\[a-zA-Z@]+/))return"tag";if(ot.match(/^[a-zA-Z]+/))return"variable-2";if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/]/)||ot.match(/^[\^_&]/))return"tag";if(ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Re=ot.next();return Re=="{"||Re=="}"||Re=="["||Re=="]"||Re=="("||Re==")"?"bracket":Re=="%"?(ot.skipToEnd(),"comment"):"error"}function Rt(ot,st){var Ue=ot.peek(),Re;return Ue=="{"||Ue=="["?(Re=Pe(st),Re.openBracket(Ue),ot.eat(Ue),ue(st,$e),"bracket"):/[ \t\r]/.test(Ue)?(ot.eat(Ue),null):(ue(st,$e),pe(st),$e(ot,st))}return{startState:function(){var ot=ce.inMathMode?function(st,Ue){return Ee(st,Ue)}:$e;return{cmdState:[],f:ot}},copyState:function(ot){return{cmdState:ot.cmdState.slice(),f:ot.f}},token:function(ot,st){return st.f(ot,st)},blankLine:function(ot){ot.f=$e,ot.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(Bn,rn,ee){(function(b){b(ee(89780))})(function(b){"use strict";var Me={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(et,Pe){var pe=et.indentUnit,be={},Ve=Pe.htmlMode?Me:ce;for(var Ie in Ve)be[Ie]=Ve[Ie];for(var Ie in Pe)be[Ie]=Pe[Ie];var ue,$e;function Ee(De,ke){function xe(_e){return ke.tokenize=_e,_e(De,ke)}var se=De.next();if(se=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?xe(st("atom","]]>")):null:De.match("--")?xe(st("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),xe(Ue(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),ke.tokenize=st("meta","?>"),"meta"):(ue=De.eat("/")?"closeTag":"openTag",ke.tokenize=Rt,"tag bracket");if(se=="&"){var It;return De.eat("#")?De.eat("x")?It=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):It=De.eatWhile(/[\d]/)&&De.eat(";"):It=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),It?"atom":"error"}else return De.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Rt(De,ke){var xe=De.next();if(xe==">"||xe=="/"&&De.eat(">"))return ke.tokenize=Ee,ue=xe==">"?"endTag":"selfcloseTag","tag bracket";if(xe=="=")return ue="equals",null;if(xe=="<"){ke.tokenize=Ee,ke.state=en,ke.tagName=ke.tagStart=null;var se=ke.tokenize(De,ke);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(xe)?(ke.tokenize=ot(xe),ke.stringStartCol=De.column(),ke.tokenize(De,ke)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ot(De){var ke=function(xe,se){for(;!xe.eol();)if(xe.next()==De){se.tokenize=Rt;break}return"string"};return ke.isInAttribute=!0,ke}function st(De,ke){return function(xe,se){for(;!xe.eol();){if(xe.match(ke)){se.tokenize=Ee;break}xe.next()}return De}}function Ue(De){return function(ke,xe){for(var se;(se=ke.next())!=null;){if(se=="<")return xe.tokenize=Ue(De+1),xe.tokenize(ke,xe);if(se==">")if(De==1){xe.tokenize=Ee;break}else return xe.tokenize=Ue(De-1),xe.tokenize(ke,xe)}return"meta"}}function Re(De,ke,xe){this.prev=De.context,this.tagName=ke,this.indent=De.indented,this.startOfLine=xe,(be.doNotIndent.hasOwnProperty(ke)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function ft(De){De.context&&(De.context=De.context.prev)}function kt(De,ke){for(var xe;;){if(!De.context||(xe=De.context.tagName,!be.contextGrabbers.hasOwnProperty(xe)||!be.contextGrabbers[xe].hasOwnProperty(ke)))return;ft(De)}}function en(De,ke,xe){return De=="openTag"?(xe.tagStart=ke.column(),Qe):De=="closeTag"?Ae:en}function Qe(De,ke,xe){return De=="word"?(xe.tagName=ke.current(),$e="tag",zt):be.allowMissingTagName&&De=="endTag"?($e="tag bracket",zt(De,ke,xe)):($e="error",Qe)}function Ae(De,ke,xe){if(De=="word"){var se=ke.current();return xe.context&&xe.context.tagName!=se&&be.implicitlyClosed.hasOwnProperty(xe.context.tagName)&&ft(xe),xe.context&&xe.context.tagName==se||be.matchClosing===!1?($e="tag",tt):($e="tag error",nt)}else return be.allowMissingTagName&&De=="endTag"?($e="tag bracket",tt(De,ke,xe)):($e="error",nt)}function tt(De,ke,xe){return De!="endTag"?($e="error",tt):(ft(xe),en)}function nt(De,ke,xe){return $e="error",tt(De,ke,xe)}function zt(De,ke,xe){if(De=="word")return $e="attribute",Ot;if(De=="endTag"||De=="selfcloseTag"){var se=xe.tagName,It=xe.tagStart;return xe.tagName=xe.tagStart=null,De=="selfcloseTag"||be.autoSelfClosers.hasOwnProperty(se)?kt(xe,se):(kt(xe,se),xe.context=new Re(xe,se,It==xe.indented)),en}return $e="error",zt}function Ot(De,ke,xe){return De=="equals"?ht:(be.allowMissing||($e="error"),zt(De,ke,xe))}function ht(De,ke,xe){return De=="string"?Ct:De=="word"&&be.allowUnquoted?($e="string",zt):($e="error",zt(De,ke,xe))}function Ct(De,ke,xe){return De=="string"?Ct:zt(De,ke,xe)}return{startState:function(De){var ke={tokenize:Ee,state:en,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(ke.baseIndent=De),ke},token:function(De,ke){if(!ke.tagName&&De.sol()&&(ke.indented=De.indentation()),De.eatSpace())return null;ue=null;var xe=ke.tokenize(De,ke);return(xe||ue)&&xe!="comment"&&($e=null,ke.state=ke.state(ue||xe,De,ke),$e&&(xe=$e=="error"?xe+" error":$e)),xe},indent:function(De,ke,xe){var se=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+pe;if(se&&se.noIndent)return b.Pass;if(De.tokenize!=Rt&&De.tokenize!=Ee)return xe?xe.match(/^(\s*)/)[0].length:0;if(De.tagName)return be.multilineTagIndentPastTag!==!1?De.tagStart+De.tagName.length+2:De.tagStart+pe*(be.multilineTagIndentFactor||1);if(be.alignCDATA&&/$/,blockCommentStart:"",configuration:be.htmlMode?"html":"xml",helperType:be.htmlMode?"html":"xml",skipAttribute:function(De){De.state==ht&&(De.state=zt)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var ke=[],xe=De.context;xe;xe=xe.prev)xe.tagName&&ke.push(xe.tagName);return ke.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Bn,rn,ee){var b,Me;(function(ce,et){Bn.exports=et(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(ce){"use strict";ce=ce||{};var et=ce.Base64,Pe="2.6.4",pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",be=function(xe){for(var se={},It=0,_e=xe.length;It<_e;It++)se[xe.charAt(It)]=It;return se}(pe),Ve=String.fromCharCode,Ie=function(xe){if(xe.length<2){var se=xe.charCodeAt(0);return se<128?xe:se<2048?Ve(192|se>>>6)+Ve(128|se&63):Ve(224|se>>>12&15)+Ve(128|se>>>6&63)+Ve(128|se&63)}else{var se=65536+(xe.charCodeAt(0)-55296)*1024+(xe.charCodeAt(1)-56320);return Ve(240|se>>>18&7)+Ve(128|se>>>12&63)+Ve(128|se>>>6&63)+Ve(128|se&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$e=function(xe){return xe.replace(ue,Ie)},Ee=function(xe){var se=[0,2,1][xe.length%3],It=xe.charCodeAt(0)<<16|(xe.length>1?xe.charCodeAt(1):0)<<8|(xe.length>2?xe.charCodeAt(2):0),_e=[pe.charAt(It>>>18),pe.charAt(It>>>12&63),se>=2?"=":pe.charAt(It>>>6&63),se>=1?"=":pe.charAt(It&63)];return _e.join("")},Rt=ce.btoa&&typeof ce.btoa=="function"?function(xe){return ce.btoa(xe)}:function(xe){if(xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return xe.replace(/[\s\S]{1,3}/g,Ee)},ot=function(xe){return Rt($e(String(xe)))},st=function(xe){return xe.replace(/[+\/]/g,function(se){return se=="+"?"-":"_"}).replace(/=/g,"")},Ue=function(xe,se){return se?st(ot(xe)):ot(xe)},Re=function(xe){return Ue(xe,!0)},ft;ce.Uint8Array&&(ft=function(xe,se){for(var It="",_e=0,Ye=xe.length;_e>>18)+pe.charAt(yt>>>12&63)+(typeof Ce!="undefined"?pe.charAt(yt>>>6&63):"=")+(typeof he!="undefined"?pe.charAt(yt&63):"=")}return se?st(It):It});var kt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,en=function(xe){switch(xe.length){case 4:var se=(7&xe.charCodeAt(0))<<18|(63&xe.charCodeAt(1))<<12|(63&xe.charCodeAt(2))<<6|63&xe.charCodeAt(3),It=se-65536;return Ve((It>>>10)+55296)+Ve((It&1023)+56320);case 3:return Ve((15&xe.charCodeAt(0))<<12|(63&xe.charCodeAt(1))<<6|63&xe.charCodeAt(2));default:return Ve((31&xe.charCodeAt(0))<<6|63&xe.charCodeAt(1))}},Qe=function(xe){return xe.replace(kt,en)},Ae=function(xe){var se=xe.length,It=se%4,_e=(se>0?be[xe.charAt(0)]<<18:0)|(se>1?be[xe.charAt(1)]<<12:0)|(se>2?be[xe.charAt(2)]<<6:0)|(se>3?be[xe.charAt(3)]:0),Ye=[Ve(_e>>>16),Ve(_e>>>8&255),Ve(_e&255)];return Ye.length-=[0,0,2,1][It],Ye.join("")},tt=ce.atob&&typeof ce.atob=="function"?function(xe){return ce.atob(xe)}:function(xe){return xe.replace(/\S{1,4}/g,Ae)},nt=function(xe){return tt(String(xe).replace(/[^A-Za-z0-9\+\/]/g,""))},zt=function(xe){return Qe(tt(xe))},Ot=function(xe){return String(xe).replace(/[-_]/g,function(se){return se=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ht=function(xe){return zt(Ot(xe))},Ct;ce.Uint8Array&&(Ct=function(xe){return Uint8Array.from(nt(Ot(xe)),function(se){return se.charCodeAt(0)})});var De=function(){var xe=ce.Base64;return ce.Base64=et,xe};if(ce.Base64={VERSION:Pe,atob:nt,btoa:Rt,fromBase64:ht,toBase64:Ue,utob:$e,encode:Ue,encodeURI:Re,btou:Qe,decode:ht,noConflict:De,fromUint8Array:ft,toUint8Array:Ct},typeof Object.defineProperty=="function"){var ke=function(xe){return{value:xe,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ke(function(){return ht(this)})),Object.defineProperty(String.prototype,"toBase64",ke(function(xe){return Ue(this,xe)})),Object.defineProperty(String.prototype,"toBase64URI",ke(function(){return Ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),Bn.exports?Bn.exports.Base64=ce.Base64:(b=[],Me=function(){return ce.Base64}.apply(rn,b),Me!==void 0&&(Bn.exports=Me)),{Base64:ce.Base64}})},2859:function(Bn,rn,ee){"use strict";ee.d(rn,{hP:function(){return $t}});var b=function(ae,ne){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var de in ie)Object.prototype.hasOwnProperty.call(ie,de)&&(te[de]=ie[de])})(ae,ne)};function Me(ae,ne){function te(){this.constructor=ae}b(ae,ne),ae.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function ce(ae,ne,te,ie){return new(te||(te=Promise))(function(de,re){function le(He){try{Ge(ie.next(He))}catch(Le){re(Le)}}function Se(He){try{Ge(ie.throw(He))}catch(Le){re(Le)}}function Ge(He){var Le;He.done?de(He.value):(Le=He.value,Le instanceof te?Le:new te(function(rt){rt(Le)})).then(le,Se)}Ge((ie=ie.apply(ae,ne||[])).next())})}function et(ae,ne){var te,ie,de,re,le={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return re={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function Se(Ge){return function(He){return function(Le){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,ie&&(de=2&Le[0]?ie.return:Le[0]?ie.throw||((de=ie.return)&&de.call(ie),0):ie.next)&&!(de=de.call(ie,Le[1])).done)return de;switch(ie=0,de&&(Le=[2&Le[0],de.value]),Le[0]){case 0:case 1:de=Le;break;case 4:return le.label++,{value:Le[1],done:!1};case 5:le.label++,ie=Le[1],Le=[0];continue;case 7:Le=le.ops.pop(),le.trys.pop();continue;default:if(de=le.trys,!((de=de.length>0&&de[de.length-1])||Le[0]!==6&&Le[0]!==2)){le=0;continue}if(Le[0]===3&&(!de||Le[1]>de[0]&&Le[1]',"select"),this.addActionButton(ie,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(re){var le=document.createElement("div");le.className=""+te.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",re.typeName),le.innerHTML=re.icon,le.addEventListener("click",function(){te.markerToolbarButtonClicked(le,re)}),te.buttons.push(le),te.markerButtons.push(le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'',"render"),this.addActionButton(de,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ae.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var te=0;te0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){te.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),ot=function(){function ae(ne,te,ie,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=ie,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new Ee("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new Ee("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-panel-row_colors",` background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px; padding: `+te+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new $e("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new $e("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(ne){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ne){var te,ie,de=this;this.panels=ne,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var le;re.uiStyleSettings=de.uiStyleSettings;var Se=document.createElement("div");Se.className=de.toolboxButtonStyleClass.name+" "+((le=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:de.toolboxButtonStyleColorsClass.name),Se.innerHTML=re.icon,Se.title=re.title,Se.addEventListener("click",function(){de.panelButtonClick(re)}),de.panelButtons.push(Se),de.buttonRow.appendChild(Se)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,ie=-1;if(ne!==this.activePanel){ie=this.panels.indexOf(ne),this.panelRow.innerHTML="";var de=ne.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ne}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){te.displayMode==="inline"?te.panelRow.style.display="none":te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,le){var Se,Ge;re.className=te.toolboxButtonStyleClass.name+" "+(le===ie?""+((Se=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Se!==void 0?Se:te.toolboxActiveButtonStyleColorsClass.name):""+((Ge=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:te.toolboxButtonStyleColorsClass.name))})},ae}(),st=function(ae,ne){this.title=ae,this.icon=ne},Ue=function(ae){function ne(te,ie,de,re){var le=ae.call(this,te,re||'')||this;return le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=ie,le.currentColor=de,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(de){var re=te.getColorBox(de);ie.appendChild(re),te.colorBoxes.push(re)}),ie},ne.prototype.getColorBox=function(te){var ie=this,de=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-de,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=re-2+"px",le.style.height=re-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(re+2)/2+"px",le.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentColor(te,le)});var Se=document.createElement("div");return Se.style.display="inline-block",Se.style.width=re-2+"px",Se.style.height=re-2+"px",Se.style.backgroundColor=te,Se.style.borderRadius=re/2+"px",te==="transparent"&&(Se.style.fill=this.uiStyleSettings.toolboxAccentColor,Se.innerHTML=` `),le.appendChild(Se),le},ne.prototype.setCurrentColor=function(te,ie){var de=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(st),Re=function(){function ae(ne,te,ie){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=te,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ne,te){},ae.prototype.dblClick=function(ne,te){},ae.prototype.manipulate=function(ne){},ae.prototype.pointerUp=function(ne){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ae.prototype.scale=function(ne,te){},ae.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ae.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ft=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},ae}(),kt=function(){function ae(){this.GRIP_SIZE=10,this.visual=pe.createGroup(),this.visual.appendChild(pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ae}(),en=function(){function ae(){}return ae.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ae.toSVGMatrix=function(ne,te){return ne.a=te.a,ne.b=te.b,ne.c=te.c,ne.d=te.d,ne.e=te.e,ne.f=te.f,ne},ae}(),Qe=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(pe.createTransform()),re.setupControlBox(),re}return Me(ne,ae),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var ie=pe.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!!(this.controlGrips.findGripByVisual(te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te))},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.left=te.x,this.top=te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(te);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},ne.prototype.manipulate=function(te){var ie=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(te)},ne.prototype.resize=function(te){var ie=this.manipulationStartLeft,de=this.manipulationStartWidth,re=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+te.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+te.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+te.y-this.manipulationStartY}de>=0?(this.left=ie,this.width=de):(this.left=ie+de,this.width=-de),le>=0?(this.top=re,this.height=le):(this.top=re+le,this.height=-le),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.prototype.rotate=function(te){if(Math.abs(te.x-this.centerX)>.1){var ie=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},ne.prototype.applyRotation=function(){var te=this.container.transform.baseVal.getItem(0);te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(te,0)},ne.prototype.rotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM(),de=pe.createPoint(te.x,te.y);return{x:(de=de.matrixTransform(ie)).x,y:de.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM();ie=ie.inverse();var de=pe.createPoint(te.x,te.y);return{x:(de=de.matrixTransform(ie)).x,y:de.y}},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=pe.createGroup();var te=pe.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ft,this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){var te=this.controlBox.transform.baseVal.getItem(0);te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(te,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ne.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ne.prototype.createGrip=function(){var te=new kt;return te.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,ie=-te/2,de=ie,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,Se=this.height+this.CB_DISTANCE-te/2,Ge=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,de),this.positionGrip(this.controlGrips.topCenter.visual,re,de),this.positionGrip(this.controlGrips.topRight.visual,Ge,de),this.positionGrip(this.controlGrips.centerLeft.visual,ie,le),this.positionGrip(this.controlGrips.centerRight.visual,Ge,le),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Se),this.positionGrip(this.controlGrips.bottomCenter.visual,re,Se),this.positionGrip(this.controlGrips.bottomRight.visual,Ge,Se),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,de-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,ie,de){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,de),te.transform.baseVal.replaceItem(re,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:en.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:en.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(en.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(en.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie);var de=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:de.x*te,y:de.y*ie});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*ie,this.adjustControlBox()},ne}(Re),Ae=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.title="Rectangle marker",ne}(Qe),tt=function(ae){function ne(te,ie,de,re){var le=ae.call(this,te,re||'')||this;return le.widths=[],le.widthBoxes=[],le.widths=ie,le.currentWidth=de,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(de){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=de===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(de,re)}),ie.appendChild(re);var le=document.createElement("div");le.innerText=de.toString(),le.style.marginRight="5px",re.appendChild(le);var Se=document.createElement("div");Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.display="flex",Se.style.alignItems="center";var Ge=document.createElement("hr");Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop=de+"px solid "+te.uiStyleSettings.toolboxColor,Ge.style.flexGrow="2",Se.appendChild(Ge),re.appendChild(Se),te.widthBoxes.push(re)}),ie},ne.prototype.setCurrentWidth=function(te,ie){var de=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(st),nt=function(ae){function ne(te,ie,de,re){var le=ae.call(this,te,re||'')||this;return le.styles=[],le.styleBoxes=[],le.styles=ie,le.currentStyle=de,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(de){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.styles.length-5+"%",re.style.borderColor=de===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(de,re)}),ie.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var Se=` `;le.innerHTML=Se,re.appendChild(le),te.styleBoxes.push(re)}),ie},ne.prototype.setCurrentStyle=function(te,ie){var de=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(st),zt=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.strokeColor=de.defaultColor,re.strokeWidth=de.defaultStrokeWidth,re.strokeDasharray=de.defaultStrokeDasharray,re.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new tt("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Me(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='',ne}(Ae),Ot=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ht=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.state==="new"&&(this.x1=te.x,this.y1=te.y,this.x2=te.x,this.y2=te.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(te){this.state==="creating"?this.resize(te):this.state==="move"?(this.x1=this.manipulationStartX1+te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(te)},ne.prototype.resize=function(te){switch(this.activeGrip){case this.grip1:this.x1=te.x,this.y1=te.y;break;case this.grip2:case void 0:this.x2=te.x,this.y2=te.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){this.positionGrips()},ne.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ne.prototype.createGrip=function(){var te=new kt;return te.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-te/2,this.y1-te/2),this.positionGrip(this.grip2.visual,this.x2-te/2,this.y2-te/2)},ne.prototype.positionGrip=function(te,ie,de){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,de),te.transform.baseVal.replaceItem(re,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.x1=this.x1*te,this.y1=this.y1*ie,this.x2=this.x2*te,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ne}(Re),Ct=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=de.defaultColor,re.strokeWidth=de.defaultStrokeWidth,re.strokeDasharray=de.defaultStrokeDasharray,re.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new tt("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='',ne}(ht),De=function(ae){function ne(te,ie,de,re){var le=ae.call(this,te,re||'')||this;return le.fonts=[],le.fontBoxes=[],le.fonts=ie,le.currentFont=de,le.setCurrentFont=le.setCurrentFont.bind(le),le}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(de){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.fonts.length-5+"%",re.style.borderColor=de===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(de,re)}),ie.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=de,le.style.overflow="hidden";var Se=document.createElement("div");Se.style.whiteSpace="nowrap",Se.style.overflow="hidden",Se.style.textOverflow="ellipsis",Se.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(Se),re.appendChild(le),te.fontBoxes.push(re)}),ie},ne.prototype.setCurrentFont=function(te,ie){var de=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(st),ke=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=de.defaultColor,re.fontFamily=de.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Ue("Color",de.defaultColorSet,de.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new De("Font",de.defaultFontFamilies,de.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){if(ae.prototype.ownsTarget.call(this,te)||te===this.visual||te===this.textElement||te===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(de){de===te&&(ie=!0)}),ie},ne.prototype.createVisual=function(){this.visual=pe.createGroup(),this.bgRectangle=pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.renderText=function(){var te=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ie){te.textElement.appendChild(pe.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var te=this.textElement.getBBox(),ie=1;if(te.width>0&&te.height>0){var de=(1*this.width-this.width*this.padding*2/100)/te.width,re=(1*this.height-this.height*this.padding*2/100)/te.height;ie=Math.min(de,re)}return ie},ne.prototype.getTextPosition=function(te){var ie=this.textElement.getBBox(),de=0,re=0;return ie.width>0&&ie.height>0&&(de=(this.width-ie.width*te)/2,re=this.height/2-ie.height*te/2),{x:de,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),ie=this.getTextScale(),de=this.getTextPosition(ie);de.y-=te.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var te=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,te.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var de=ie.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(de)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){te.textEditDivClicked(te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ne.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var te=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),re={x:de.width*te,y:de.height*te};ie.x-=re.x/2,ie.y-=re.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*te,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(te){this.text=te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&pe.setAttributes(this.textElement,[["fill",te]]),this.color=te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(te)},ne.prototype.setFont=function(te){this.textElement&&pe.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.icon='',ne}(Qe),xe=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=de.defaultColor,re.lineWidth=de.defaultStrokeWidth,re.pixelRatio=de.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Ue("Color",de.defaultColorSet,de.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new tt("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=pe.createGroup(),this.drawingImage=pe.createImage(),this.visual.appendChild(this.drawingImage);var te=pe.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,ie)},ne.prototype.manipulate=function(te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(te.x,te.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,te)},ne.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=ie[0],re=ie[1],le=ie[2],Se=ie[3],Ge=!1,He=0;He0&&(Ge=!0,HeSe&&(Se=He),Le>le&&(le=Le));if(Ge){this.left=de/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-de)/this.pixelRatio,this.height=(Se-re)/this.pixelRatio;var rt=document.createElement("canvas");rt.width=le-de,rt.height=Se-re,rt.getContext("2d").putImageData(this.canvasContext.getImageData(de,re,le-de,Se-re),0,0),this.drawingImgUrl=rt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},ne.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.icon='',ne}(Qe),se=function(ae){function ne(te,ie,de){var re=ae.call(this,te,de||'')||this;return re.typeBoxes=[],re.currentType=ie,re.setCurrentType=re.setCurrentType.bind(re),re}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var de=function(Se){var Ge="both";switch(Se){case 0:Ge="both";break;case 1:Ge="start";break;case 2:Ge="end";break;case 3:Ge="none"}var He=document.createElement("div");if(He.style.display="flex",He.style.flexGrow="2",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.borderColor=Ge===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){te.setCurrentType(Ge,He)}),ie.appendChild(He),Ge==="both"||Ge==="start"){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.minHeight="20px",Le.innerHTML=` `,Le.style.marginLeft="5px",He.appendChild(Le)}var rt=document.createElement("div");rt.style.display="flex",rt.style.alignItems="center",rt.style.minHeight="20px",rt.style.flexGrow="2";var ut=document.createElement("hr");if(ut.style.minWidth="20px",ut.style.border="0px",ut.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),ut.style.flexGrow="2",rt.appendChild(ut),He.appendChild(rt),Ge==="both"||Ge==="end"){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.minHeight="20px",At.innerHTML=` `,At.style.marginRight="5px",He.appendChild(At)}re.typeBoxes.push(He)},re=this,le=0;le<4;le++)de(le);return ie},ne.prototype.setCurrentType=function(te,ie){var de=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(st),It=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new se("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,ie){var de=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-de/2+","+(ie+re/2)+" "+te+","+(ie-re/2)+" "+(te+de/2)+","+(ie+re/2)},ne.prototype.createTips=function(){this.arrow1=pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var te=0;Math.abs(this.x1-this.x2)>.1&&(te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},ne.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='',ne}(Ct),_e=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.fillColor=de.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Ue("Color",de.defaultColorSet,de.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Me(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='',ne}(Ae),Ye=function(ae){function ne(te,ie,de,re){var le=ae.call(this,te,re||'')||this;return le.opacities=[],le.opacityBoxes=[],le.opacities=ie,le.currentOpacity=de,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return Me(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(de){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=de===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(de,re)}),ie.appendChild(re);var le=document.createElement("div");le.innerText=100*de+"%",re.appendChild(le),te.opacityBoxes.push(re)}),ie},ne.prototype.setCurrentOpacity=function(te,ie){var de=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(st),Ft=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=de.defaultHighlightColor,re.strokeWidth=0,re.opacity=de.defaultHighlightOpacity,re.fillPanel=new Ue("Color",de.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Ye("Opacity",de.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Me(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.icon='',ne}(_e),Ce='',he='',yt=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=de.defaultStrokeColor,re.bgColor=de.defaultFillColor,re.fontFamily=de.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Ue("Text color",de.defaultColorSet,re.color,Ce),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Ue("Fill color",de.defaultColorSet,re.bgColor,he),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new De("Font",de.defaultFontFamilies,de.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new kt,re.tipGrip.visual.transform.baseVal.appendItem(pe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,ie)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(ie),this.positionTip()}},ne.prototype.manipulate=function(te){if(this.tipMoving){var ie=this.unrotatePoint(te);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(pe.setAttributes(this.bgRectangle,[["fill",te]]),pe.setAttributes(this.tip,[["fill",te]])),this.bgColor=te,this.fillColorChanged(te)},ne.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ne.prototype.setTipPoints=function(te){te===void 0&&(te=!1);var ie=Math.min(this.height/2,15),de=this.height/5;te&&(this.tipPosition={x:ie+de/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?re.1)){var te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.icon='',ne}(Ct),me=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.strokePanel.colors=de.defaultColorSet,re.fillColor="transparent",re}return Me(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.icon='',ne}(Vt),qe=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),it=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=de.defaultColor,re.strokeWidth=de.defaultStrokeWidth,re.strokeDasharray=de.defaultStrokeDasharray,re.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new tt("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorCurve=pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=te.x,this.curveY=te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-te/2,this.curveY-te/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ne.prototype.manipulate=function(te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+te.y-this.manipulationStartY),ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ae.prototype.resize.call(this,te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},ne.prototype.scale=function(te,ie){this.curveX=this.curveX*te,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,te,ie)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.icon='',ne}(ht),Xt=function(ae){function ne(te,ie,de){var re=ae.call(this,te,ie,de)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=de.defaultColor,re.strokeWidth=de.defaultStrokeWidth,re.strokeDasharray=de.defaultStrokeDasharray,re.fillColor=de.defaultFillColor,re.textColor=de.defaultStrokeColor,re.fontFamily=de.defaultFontFamily,re.fontSize=de.defaultCaptionFontSize,re.captionText=de.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Ue("Line color",Pe(de.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ue("Fill color",Pe(de.defaultColorSet,["transparent"]),re.fillColor,he),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new tt("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new De("Font",de.defaultFontFamilies,de.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Ue("Text color",de.defaultColorSet,re.textColor,Ce),re.textColorPanel.onColorChanged=re.setTextColor,re}return Me(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=pe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.sizeCaption=function(){var te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=te.width+2*this.PADDING,this.captionBoxHeight=te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),pe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ne.prototype.showTextEditor=function(){var te=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){te.finishTextEditing(te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){te.finishTextEditing(te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ne.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ne.prototype.finishTextEditing=function(te){this.setCaptionText(te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(te){this.captionElement&&pe.setAttributes(this.captionElement,[["font-family",te]]),this.fontFamily=te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(te){this.captionElement&&pe.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return te.typeName=this.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.icon='',ne}(Qe),Xe=function(){function ae(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=te}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Gt=function(ae){function ne(te,ie,de){var re=ae.call(this,te,!1)||this;return re.dataUrl=ie,re.state=de,re}return Me(ne,ae),ne}(Xe),Fe=function(ae){function ne(te,ie,de){de===void 0&&(de=!1);var re=ae.call(this,te,de)||this;return re.marker=ie,re}return Me(ne,ae),ne}(Xe),dn=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(ne,te){this[ne].push(te)},ae.prototype.removeEventListener=function(ne,te){var ie=this[ne].indexOf(te);ie>-1&&this[ne].splice(ie,1)},ae}(),$t=function(){function ae(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ot,this._isOpen=!1,this.undoRedoManager=new qe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[zt,xe,It,ke,me,Vt,Ft,yt,Lt,_e,Ct,it,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[zt,xe,It,ke,Vt,Ft,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[zt,xe,It,ke,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var te=this;this._availableMarkerTypes.splice(0),ne.forEach(function(ie){if(typeof ie=="string"){var de=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===ie});de!==void 0&&te._availableMarkerTypes.push(de)}else te._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ne){this._zoomLevel=ne,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),be.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new Xe(ne))})},ae.prototype.render=function(){return ce(this,void 0,void 0,function(){var ne;return et(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Ve).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var ie=!1;ne||this.eventListeners.beforeclose.forEach(function(de){var re=new Xe(te,!0);de(re),re.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new Xe(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],ie=0;iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,ie=te',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ne=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Rt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(ne,te){if(ne==="marker"&&te!==void 0)this.createNewMarker(te);else if(ne==="action")switch(te){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var re=new Fe(ne,ne._currentMarker,!0);de(re),re.defaultPrevented&&(te=!0)}),!te){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new Fe(ne,ie))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var Se=new Fe(ne,void 0,!0);le(Se),Se.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var ie=function(le){var Se=de.markers[le];de.setCurrentMarker(de.markers[le]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Ge){return Ge(new Fe(ne,Se))})},de=this,re=this.markers.length-1;re>=0;re--)ie(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ne;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var te=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===te.width&&ie.height===te.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),de1&&this.panTo({x:ne.clientX,y:ne.clientY}))},ae.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ne,te){var ie=this.markerImage.getBoundingClientRect();return{x:(ne-ie.left)/this.zoomLevel,y:(te-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(ne){be.addKey(ne)},ae.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ae.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ae.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ne=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(te){return te(new Xe(ne))}))},ae.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new Xe(ne))}))},ae.instanceCounter=0,ae}()},6551:function(Bn,rn,ee){"use strict";ee.d(rn,{ZP:function(){return be}});var b=ee(72190),Me=ee(59301),ce=ee(47273),et=0,Pe=(0,ce.Z)();function pe(){var Ve;return Pe?(Ve=et,et+=1):Ve="TEST_OR_SSR",Ve}function be(Ve){var Ie=Me.useState(),ue=(0,b.Z)(Ie,2),$e=ue[0],Ee=ue[1];return Me.useEffect(function(){Ee("rc_select_".concat(pe()))},[]),Ve||$e}},37463:function(Bn,rn,ee){"use strict";ee.d(rn,{Ac:function(){return jt},Xo:function(){return on},Wx:function(){return Tt},ZP:function(){return jn},lk:function(){return en}});var b=ee(60499),Me=ee(77654),ce=ee(18642),et=ee(85899),Pe=ee(72190),pe=ee(42244),be=ee(43749),Ve=ee(18929),Ie=ee(48736),ue=ee(59301),$e=ee(92310),Ee=ee.n($e),Rt=ee(34280),ot=ee(49658),st=ee(8654),Ue=function(Dt){var Te=Dt.className,gt=Dt.customizeIcon,Ke=Dt.customizeIconProps,wt=Dt.children,Ht=Dt.onMouseDown,Hn=Dt.onClick,Jn=typeof gt=="function"?gt(Ke):gt;return ue.createElement("span",{className:Te,onMouseDown:function(mt){mt.preventDefault(),Ht==null||Ht(mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Hn,"aria-hidden":!0},Jn!==void 0?Jn:ue.createElement("span",{className:Ee()(Te.split(/\s+/).map(function(lt){return"".concat(lt,"-icon")}))},wt))},Re=Ue,ft=function(Dt,Te,gt,Ke,wt){var Ht=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Hn=arguments.length>6?arguments[6]:void 0,Jn=arguments.length>7?arguments[7]:void 0,lt=ue.useMemo(function(){if((0,be.Z)(Ke)==="object")return Ke.clearIcon;if(wt)return wt},[Ke,wt]),mt=ue.useMemo(function(){return!!(!Ht&&Ke&&(gt.length||Hn)&&!(Jn==="combobox"&&Hn===""))},[Ke,Ht,gt.length,Hn,Jn]);return{allowClear:mt,clearIcon:ue.createElement(Re,{className:"".concat(Dt,"-clear"),onMouseDown:Te,customizeIcon:lt},"\xD7")}},kt=ue.createContext(null);function en(){return ue.useContext(kt)}function Qe(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Dt=ue.useState(!1),Te=(0,Pe.Z)(Dt,2),gt=Te[0],Ke=Te[1],wt=ue.useRef(null),Ht=function(){window.clearTimeout(wt.current)};ue.useEffect(function(){return Ht},[]);var Hn=function(lt,mt){Ht(),wt.current=window.setTimeout(function(){Ke(lt),mt&&mt()},vt)};return[gt,Hn,Ht]}function Ae(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Dt=ue.useRef(null),Te=ue.useRef(null);ue.useEffect(function(){return function(){window.clearTimeout(Te.current)}},[]);function gt(Ke){(Ke||Dt.current===null)&&(Dt.current=Ke),window.clearTimeout(Te.current),Te.current=window.setTimeout(function(){Dt.current=null},vt)}return[function(){return Dt.current},gt]}function tt(vt,Dt,Te,gt){var Ke=ue.useRef(null);Ke.current={open:Dt,triggerOpen:Te,customizedTrigger:gt},ue.useEffect(function(){function wt(Ht){var Hn;if(!((Hn=Ke.current)!==null&&Hn!==void 0&&Hn.customizedTrigger)){var Jn=Ht.target;Jn.shadowRoot&&Ht.composed&&(Jn=Ht.composedPath()[0]||Jn),Ke.current.open&&vt().filter(function(lt){return lt}).every(function(lt){return!lt.contains(Jn)&<!==Jn})&&Ke.current.triggerOpen(!1)}}return window.addEventListener("mousedown",wt),function(){return window.removeEventListener("mousedown",wt)}},[])}var nt=ee(10228);function zt(vt){return vt&&![nt.Z.ESC,nt.Z.SHIFT,nt.Z.BACKSPACE,nt.Z.TAB,nt.Z.WIN_KEY,nt.Z.ALT,nt.Z.META,nt.Z.WIN_KEY_RIGHT,nt.Z.CTRL,nt.Z.SEMICOLON,nt.Z.EQUALS,nt.Z.CAPS_LOCK,nt.Z.CONTEXT_MENU,nt.Z.F1,nt.Z.F2,nt.Z.F3,nt.Z.F4,nt.Z.F5,nt.Z.F6,nt.Z.F7,nt.Z.F8,nt.Z.F9,nt.Z.F10,nt.Z.F11,nt.Z.F12].includes(vt)}var Ot=ee(26112),ht=ee(83836);function Ct(vt,Dt,Te){var gt=(0,et.Z)((0,et.Z)({},vt),Te?Dt:{});return Object.keys(Dt).forEach(function(Ke){var wt=Dt[Ke];typeof wt=="function"&&(gt[Ke]=function(){for(var Ht,Hn=arguments.length,Jn=new Array(Hn),lt=0;ltur&&(Gn="".concat(lr.slice(0,ur),"..."))}var sr=function(mr){mr&&mr.stopPropagation(),br(Wt)};return typeof or=="function"?bt(hn,Gn,En,Ln,sr):We(Wt,Gn,En,Ln,sr)},dt=function(Wt){if(!Ke.length)return null;var En=typeof Xn=="function"?Xn(Wt):Xn;return typeof or=="function"?bt(void 0,En,!1,!1,void 0,!0):We({title:En},En,!1)},at=ue.createElement("div",{className:"".concat(to,"-search"),style:{width:wr},onFocus:function(){So(!0)},onBlur:function(){So(!1)}},ue.createElement(It,{ref:Jn,open:wt,prefixCls:gt,id:Te,inputElement:null,disabled:mt,autoFocus:fn,autoComplete:In,editable:Oe,activeDescendantId:pn,value:io,onKeyDown:Br,onMouseDown:cr,onChange:vr,onPaste:Tr,onCompositionStart:Er,onCompositionEnd:Wr,onBlur:Rr,tabIndex:Sn,attrs:(0,Ot.Z)(Dt,!0)}),ue.createElement("span",{ref:Sr,className:"".concat(to,"-search-mirror"),"aria-hidden":!0},io,"\xA0")),Mt=ue.createElement(ht.Z,{prefixCls:"".concat(to,"-overflow"),data:Ke,renderItem:Ze,renderRest:dt,suffix:at,itemKey:me,maxCount:qn});return ue.createElement("span",{className:"".concat(to,"-wrap")},Mt,!Ke.length&&!io&&ue.createElement("span",{className:"".concat(to,"-placeholder")},lt))},Xt=it,Xe=function(Dt){var Te=Dt.inputElement,gt=Dt.prefixCls,Ke=Dt.id,wt=Dt.inputRef,Ht=Dt.disabled,Hn=Dt.autoFocus,Jn=Dt.autoComplete,lt=Dt.activeDescendantId,mt=Dt.mode,pt=Dt.open,xt=Dt.values,fn=Dt.placeholder,In=Dt.tabIndex,pn=Dt.showSearch,Sn=Dt.searchValue,$n=Dt.activeValue,qn=Dt.maxLength,ur=Dt.onInputKeyDown,tr=Dt.onInputMouseDown,Xn=Dt.onInputChange,or=Dt.onInputPaste,dr=Dt.onInputCompositionStart,br=Dt.onInputCompositionEnd,vr=Dt.onInputBlur,Tr=Dt.title,Br=ue.useState(!1),cr=(0,Pe.Z)(Br,2),Er=cr[0],Wr=cr[1],Rr=mt==="combobox",Sr=Rr||pn,Fr=xt[0],$r=Sn||"";Rr&&$n&&!Er&&($r=$n),ue.useEffect(function(){Rr&&Wr(!1)},[Rr,$n]);var wr=mt!=="combobox"&&!pt&&!pn?!1:!!$r,gr=Tr===void 0?Vt(Fr):Tr,yr=ue.useMemo(function(){return Fr?null:ue.createElement("span",{className:"".concat(gt,"-selection-placeholder"),style:wr?{visibility:"hidden"}:void 0},fn)},[Fr,wr,fn,gt]);return ue.createElement("span",{className:"".concat(gt,"-selection-wrap")},ue.createElement("span",{className:"".concat(gt,"-selection-search")},ue.createElement(It,{ref:wt,prefixCls:gt,id:Ke,open:pt,inputElement:Te,disabled:Ht,autoFocus:Hn,autoComplete:Jn,editable:Sr,activeDescendantId:lt,value:$r,onKeyDown:ur,onMouseDown:tr,onChange:function(go){Wr(!0),Xn(go)},onPaste:or,onCompositionStart:dr,onCompositionEnd:br,onBlur:vr,tabIndex:In,attrs:(0,Ot.Z)(Dt,!0),maxLength:Rr?qn:void 0})),!Rr&&Fr?ue.createElement("span",{className:"".concat(gt,"-selection-item"),title:gr,style:wr?{visibility:"hidden"}:void 0},Fr.label):null,yr)},Gt=Xe,Fe=function(Dt,Te){var gt=(0,ue.useRef)(null),Ke=(0,ue.useRef)(!1),wt=Dt.prefixCls,Ht=Dt.open,Hn=Dt.mode,Jn=Dt.showSearch,lt=Dt.tokenWithEnter,mt=Dt.disabled,pt=Dt.prefix,xt=Dt.autoClearSearchValue,fn=Dt.onSearch,In=Dt.onSearchSubmit,pn=Dt.onToggleOpen,Sn=Dt.onInputKeyDown,$n=Dt.onInputBlur,qn=Dt.domRef;ue.useImperativeHandle(Te,function(){return{focus:function(gr){gt.current.focus(gr)},blur:function(){gt.current.blur()}}});var ur=Ae(0),tr=(0,Pe.Z)(ur,2),Xn=tr[0],or=tr[1],dr=function(gr){var yr=gr.which,Xr=gt.current instanceof HTMLTextAreaElement;!Xr&&Ht&&(yr===nt.Z.UP||yr===nt.Z.DOWN)&&gr.preventDefault(),Sn&&Sn(gr),yr===nt.Z.ENTER&&Hn==="tags"&&!Ke.current&&!Ht&&(In==null||In(gr.target.value)),!(Xr&&!Ht&&~[nt.Z.UP,nt.Z.DOWN,nt.Z.LEFT,nt.Z.RIGHT].indexOf(yr))&&zt(yr)&&pn(!0)},br=function(){or(!0)},vr=(0,ue.useRef)(null),Tr=function(gr){fn(gr,!0,Ke.current)!==!1&&pn(!0)},Br=function(){Ke.current=!0},cr=function(gr){Ke.current=!1,Hn!=="combobox"&&Tr(gr.target.value)},Er=function(gr){var yr=gr.target.value;if(lt&&vr.current&&/[\r\n]/.test(vr.current)){var Xr=vr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yr=yr.replace(Xr,vr.current)}vr.current=null,Tr(yr)},Wr=function(gr){var yr=gr.clipboardData,Xr=yr==null?void 0:yr.getData("text");vr.current=Xr||""},Rr=function(gr){var yr=gr.target;if(yr!==gt.current){var Xr=document.body.style.msTouchAction!==void 0;Xr?setTimeout(function(){gt.current.focus()}):gt.current.focus()}},Sr=function(gr){var yr=Xn();gr.target!==gt.current&&!yr&&!(Hn==="combobox"&&mt)&&gr.preventDefault(),(Hn!=="combobox"&&(!Jn||!yr)||!Ht)&&(Ht&&xt!==!1&&fn("",!0,!1),pn())},Fr={inputRef:gt,onInputKeyDown:dr,onInputMouseDown:br,onInputChange:Er,onInputPaste:Wr,onInputCompositionStart:Br,onInputCompositionEnd:cr,onInputBlur:$n},$r=Hn==="multiple"||Hn==="tags"?ue.createElement(Xt,(0,b.Z)({},Dt,Fr)):ue.createElement(Gt,(0,b.Z)({},Dt,Fr));return ue.createElement("div",{ref:qn,className:"".concat(wt,"-selector"),onClick:Rr,onMouseDown:Sr},pt&&ue.createElement("div",{className:"".concat(wt,"-prefix")},pt),$r)},dn=ue.forwardRef(Fe),$t=dn,ae=ee(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(Dt){var Te=Dt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Te,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Te,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Te,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Te,adjustY:1},htmlRegion:"scroll"}}},ie=function(Dt,Te){var gt=Dt.prefixCls,Ke=Dt.disabled,wt=Dt.visible,Ht=Dt.children,Hn=Dt.popupElement,Jn=Dt.animation,lt=Dt.transitionName,mt=Dt.dropdownStyle,pt=Dt.dropdownClassName,xt=Dt.direction,fn=xt===void 0?"ltr":xt,In=Dt.placement,pn=Dt.builtinPlacements,Sn=Dt.dropdownMatchSelectWidth,$n=Dt.dropdownRender,qn=Dt.dropdownAlign,ur=Dt.getPopupContainer,tr=Dt.empty,Xn=Dt.getTriggerDOMNode,or=Dt.onPopupVisibleChange,dr=Dt.onPopupMouseEnter,br=(0,pe.Z)(Dt,ne),vr="".concat(gt,"-dropdown"),Tr=Hn;$n&&(Tr=$n(Hn));var Br=ue.useMemo(function(){return pn||te(Sn)},[pn,Sn]),cr=Jn?"".concat(vr,"-").concat(Jn):lt,Er=typeof Sn=="number",Wr=ue.useMemo(function(){return Er?null:Sn===!1?"minWidth":"width"},[Sn,Er]),Rr=mt;Er&&(Rr=(0,et.Z)((0,et.Z)({},Rr),{},{width:Sn}));var Sr=ue.useRef(null);return ue.useImperativeHandle(Te,function(){return{getPopupElement:function(){var $r;return($r=Sr.current)===null||$r===void 0?void 0:$r.popupElement}}}),ue.createElement(ae.Z,(0,b.Z)({},br,{showAction:or?["click"]:[],hideAction:or?["click"]:[],popupPlacement:In||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Br,prefixCls:vr,popupTransitionName:cr,popup:ue.createElement("div",{onMouseEnter:dr},Tr),ref:Sr,stretch:Wr,popupAlign:qn,popupVisible:wt,getPopupContainer:ur,popupClassName:Ee()(pt,(0,ce.Z)({},"".concat(vr,"-empty"),tr)),popupStyle:Rr,getTriggerDOMNode:Xn,onPopupVisibleChange:or}),Ht)},de=ue.forwardRef(ie),re=de,le=ee(48745);function Se(vt,Dt){var Te=vt.key,gt;return"value"in vt&&(gt=vt.value),Te!=null?Te:gt!==void 0?gt:"rc-index-key-".concat(Dt)}function Ge(vt){return typeof vt!="undefined"&&!Number.isNaN(vt)}function He(vt,Dt){var Te=vt||{},gt=Te.label,Ke=Te.value,wt=Te.options,Ht=Te.groupLabel,Hn=gt||(Dt?"children":"label");return{label:Hn,value:Ke||"value",options:wt||"options",groupLabel:Ht||Hn}}function Le(vt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=Dt.fieldNames,gt=Dt.childrenAsData,Ke=[],wt=He(Te,!1),Ht=wt.label,Hn=wt.value,Jn=wt.options,lt=wt.groupLabel;function mt(pt,xt){Array.isArray(pt)&&pt.forEach(function(fn){if(xt||!(Jn in fn)){var In=fn[Hn];Ke.push({key:Se(fn,Ke.length),groupOption:xt,data:fn,label:fn[Ht],value:In})}else{var pn=fn[lt];pn===void 0&>&&(pn=fn.label),Ke.push({key:Se(fn,Ke.length),group:!0,data:fn,label:pn}),mt(fn[Jn],!0)}})}return mt(vt,!1),Ke}function rt(vt){var Dt=(0,et.Z)({},vt);return"props"in Dt||Object.defineProperty(Dt,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Dt}}),Dt}var ut=function(Dt,Te,gt){if(!Te||!Te.length)return null;var Ke=!1,wt=function Hn(Jn,lt){var mt=(0,le.Z)(lt),pt=mt[0],xt=mt.slice(1);if(!pt)return[Jn];var fn=Jn.split(pt);return Ke=Ke||fn.length>1,fn.reduce(function(In,pn){return[].concat((0,Me.Z)(In),(0,Me.Z)(Hn(pn,xt)))},[]).filter(Boolean)},Ht=wt(Dt,Te);return Ke?typeof gt!="undefined"?Ht.slice(0,gt):Ht:null},At=ue.createContext(null),Ne=At;function Be(vt){var Dt=vt.visible,Te=vt.values;if(!Dt)return null;var gt=50;return ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Te.slice(0,gt).map(function(Ke){var wt=Ke.label,Ht=Ke.value;return["number","string"].includes((0,be.Z)(wt))?wt:Ht}).join(", ")),Te.length>gt?", ...":null)}var Ut=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Zt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],mn=function(Dt){return Dt==="tags"||Dt==="multiple"},vn=ue.forwardRef(function(vt,Dt){var Te,gt=vt.id,Ke=vt.prefixCls,wt=vt.className,Ht=vt.showSearch,Hn=vt.tagRender,Jn=vt.direction,lt=vt.omitDomProps,mt=vt.displayValues,pt=vt.onDisplayValuesChange,xt=vt.emptyOptions,fn=vt.notFoundContent,In=fn===void 0?"Not Found":fn,pn=vt.onClear,Sn=vt.mode,$n=vt.disabled,qn=vt.loading,ur=vt.getInputElement,tr=vt.getRawInputElement,Xn=vt.open,or=vt.defaultOpen,dr=vt.onDropdownVisibleChange,br=vt.activeValue,vr=vt.onActiveValueChange,Tr=vt.activeDescendantId,Br=vt.searchValue,cr=vt.autoClearSearchValue,Er=vt.onSearch,Wr=vt.onSearchSplit,Rr=vt.tokenSeparators,Sr=vt.allowClear,Fr=vt.prefix,$r=vt.suffixIcon,wr=vt.clearIcon,gr=vt.OptionList,yr=vt.animation,Xr=vt.transitionName,go=vt.dropdownStyle,So=vt.dropdownClassName,to=vt.dropdownMatchSelectWidth,io=vt.dropdownRender,Oe=vt.dropdownAlign,We=vt.placement,bt=vt.builtinPlacements,Ze=vt.getPopupContainer,dt=vt.showAction,at=dt===void 0?[]:dt,Mt=vt.onFocus,Bt=vt.onBlur,Wt=vt.onKeyUp,En=vt.onKeyDown,Rn=vt.onMouseDown,hn=(0,pe.Z)(vt,Ut),Ln=mn(Sn),Gn=(Ht!==void 0?Ht:Ln)||Sn==="combobox",lr=(0,et.Z)({},hn);Zt.forEach(function(zo){delete lr[zo]}),lt==null||lt.forEach(function(zo){delete lr[zo]});var sr=ue.useState(!1),pr=(0,Pe.Z)(sr,2),mr=pr[0],kr=pr[1];ue.useEffect(function(){kr((0,ot.Z)())},[]);var xr=ue.useRef(null),Gr=ue.useRef(null),Or=ue.useRef(null),Dr=ue.useRef(null),Ar=ue.useRef(null),_r=ue.useRef(!1),fo=Qe(),ko=(0,Pe.Z)(fo,3),Io=ko[0],Vo=ko[1],Qr=ko[2];ue.useImperativeHandle(Dt,function(){var zo,Po;return{focus:(zo=Dr.current)===null||zo===void 0?void 0:zo.focus,blur:(Po=Dr.current)===null||Po===void 0?void 0:Po.blur,scrollTo:function(Pi){var gi;return(gi=Ar.current)===null||gi===void 0?void 0:gi.scrollTo(Pi)},nativeElement:xr.current||Gr.current}});var Vr=ue.useMemo(function(){var zo;if(Sn!=="combobox")return Br;var Po=(zo=mt[0])===null||zo===void 0?void 0:zo.value;return typeof Po=="string"||typeof Po=="number"?String(Po):""},[Br,Sn,mt]),_o=Sn==="combobox"&&typeof ur=="function"&&ur()||null,Uo=typeof tr=="function"&&tr(),ni=(0,st.x1)(Gr,Uo==null||(Te=Uo.props)===null||Te===void 0?void 0:Te.ref),Zi=ue.useState(!1),Si=(0,Pe.Z)(Zi,2),Ai=Si[0],Oi=Si[1];(0,Rt.Z)(function(){Oi(!0)},[]);var Go=(0,Ve.Z)(!1,{defaultValue:or,value:Xn}),Di=(0,Pe.Z)(Go,2),ya=Di[0],Qi=Di[1],Qo=Ai?ya:!1,Ha=!In&&xt;($n||Ha&&Qo&&Sn==="combobox")&&(Qo=!1);var Ba=Ha?!1:Qo,wo=ue.useCallback(function(zo){var Po=zo!==void 0?zo:!Qo;$n||(Qi(Po),Qo!==Po&&(dr==null||dr(Po)))},[$n,Qo,Qi,dr]),Eo=ue.useMemo(function(){return(Rr||[]).some(function(zo){return[` `,`\r `].includes(zo)})},[Rr]),Zr=ue.useContext(Ne)||{},Pr=Zr.maxCount,Jr=Zr.rawValues,mo=function(Po,ci,Pi){if(!(Ln&&Ge(Pr)&&(Jr==null?void 0:Jr.size)>=Pr)){var gi=!0,ri=Po;vr==null||vr(null);var aa=ut(Po,Rr,Ge(Pr)?Pr-Jr.size:void 0),zi=Pi?null:aa;return Sn!=="combobox"&&zi&&(ri="",Wr==null||Wr(zi),wo(!1),gi=!1),Er&&Vr!==ri&&Er(ri,{source:ci?"typing":"effect"}),gi}},ui=function(Po){!Po||!Po.trim()||Er(Po,{source:"submit"})};ue.useEffect(function(){!Qo&&!Ln&&Sn!=="combobox"&&mo("",!1,!1)},[Qo]),ue.useEffect(function(){ya&&$n&&Qi(!1),$n&&!_r.current&&Vo(!1)},[$n]);var Zo=Ae(),$o=(0,Pe.Z)(Zo,2),Ro=$o[0],hi=$o[1],wi=ue.useRef(!1),Bi=function(Po){var ci=Ro(),Pi=Po.key,gi=Pi==="Enter";if(gi&&(Sn!=="combobox"&&Po.preventDefault(),Qo||wo(!0)),hi(!!Vr),Pi==="Backspace"&&!ci&&Ln&&!Vr&&mt.length){for(var ri=(0,Me.Z)(mt),aa=null,zi=ri.length-1;zi>=0;zi-=1){var la=ri[zi];if(!la.disabled){ri.splice(zi,1),aa=la;break}}aa&&pt(ri,{type:"remove",values:[aa]})}for(var sa=arguments.length,ca=new Array(sa>1?sa-1:0),ua=1;ua1?ci-1:0),gi=1;gi1?aa-1:0),la=1;la=In},[Hn,In,tr==null?void 0:tr.size]),Rr=function(at){at.preventDefault()},Sr=function(at){var Mt;(Mt=Er.current)===null||Mt===void 0||Mt.scrollTo(typeof at=="number"?{index:at}:at)},Fr=ue.useCallback(function(dt){return Jn==="combobox"?!1:tr.has(dt)},[Jn,(0,Me.Z)(tr).toString(),tr.size]),$r=function(at){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Bt=cr.length,Wt=0;Wt1&&arguments[1]!==void 0?arguments[1]:!1;Xr(at);var Bt={source:Mt?"keyboard":"mouse"},Wt=cr[at];if(!Wt){Sn(null,-1,Bt);return}Sn(Wt.value,at,Bt)};(0,ue.useEffect)(function(){go($n!==!1?$r(0):-1)},[cr.length,lt]);var So=ue.useCallback(function(dt){return Jn==="combobox"?String(dt).toLowerCase()===lt.toLowerCase():tr.has(dt)},[Jn,lt,(0,Me.Z)(tr).toString(),tr.size]);(0,ue.useEffect)(function(){var dt=setTimeout(function(){if(!Hn&&Ht&&tr.size===1){var Mt=Array.from(tr)[0],Bt=cr.findIndex(function(Wt){var En=Wt.data;return lt?String(En.value).startsWith(lt):En.value===Mt});Bt!==-1&&(go(Bt),Sr(Bt))}});if(Ht){var at;(at=Er.current)===null||at===void 0||at.scrollTo(void 0)}return function(){return clearTimeout(dt)}},[Ht,lt]);var to=function(at){at!==void 0&&qn(at,{selected:!tr.has(at)}),Hn||mt(!1)};if(ue.useImperativeHandle(Te,function(){return{onKeyDown:function(at){var Mt=at.which,Bt=at.ctrlKey;switch(Mt){case nt.Z.N:case nt.Z.P:case nt.Z.UP:case nt.Z.DOWN:{var Wt=0;if(Mt===nt.Z.UP?Wt=-1:Mt===nt.Z.DOWN?Wt=1:Pt()&&Bt&&(Mt===nt.Z.N?Wt=1:Mt===nt.Z.P&&(Wt=-1)),Wt!==0){var En=$r(yr+Wt,Wt);Sr(En),go(En,!0)}break}case nt.Z.TAB:case nt.Z.ENTER:{var Rn,hn=cr[yr];hn&&!(hn!=null&&(Rn=hn.data)!==null&&Rn!==void 0&&Rn.disabled)&&!Wr?to(hn.value):to(void 0),Ht&&at.preventDefault();break}case nt.Z.ESC:mt(!1),Ht&&at.stopPropagation()}},onKeyUp:function(){},scrollTo:function(at){Sr(at)}}}),cr.length===0)return ue.createElement("div",{role:"listbox",id:"".concat(wt,"_list"),className:"".concat(Br,"-empty"),onMouseDown:Rr},pt);var io=Object.keys(Xn).map(function(dt){return Xn[dt]}),Oe=function(at){return at.label};function We(dt,at){var Mt=dt.group;return{role:Mt?"presentation":"option",id:"".concat(wt,"_list_").concat(at)}}var bt=function(at){var Mt=cr[at];if(!Mt)return null;var Bt=Mt.data||{},Wt=Bt.value,En=Mt.group,Rn=(0,Ot.Z)(Bt,!0),hn=Oe(Mt);return Mt?ue.createElement("div",(0,b.Z)({"aria-label":typeof hn=="string"&&!En?hn:null},Rn,{key:at},We(Mt,at),{"aria-selected":So(Wt)}),Wt):null},Ze={role:"listbox",id:"".concat(wt,"_list")};return ue.createElement(ue.Fragment,null,or&&ue.createElement("div",(0,b.Z)({},Ze,{style:{height:0,width:0,overflow:"hidden"}}),bt(yr-1),bt(yr),bt(yr+1)),ue.createElement(je.Z,{itemKey:"key",ref:Er,data:cr,height:br,itemHeight:vr,fullHeight:!1,onMouseDown:Rr,onScroll:xt,virtual:or,direction:dr,innerProps:or?null:Ze},function(dt,at){var Mt=dt.group,Bt=dt.groupOption,Wt=dt.data,En=dt.label,Rn=dt.value,hn=Wt.key;if(Mt){var Ln,Gn=(Ln=Wt.title)!==null&&Ln!==void 0?Ln:nn(En)?En.toString():void 0;return ue.createElement("div",{className:Ee()(Br,"".concat(Br,"-group"),Wt.className),title:Gn},En!==void 0?En:hn)}var lr=Wt.disabled,sr=Wt.title,pr=Wt.children,mr=Wt.style,kr=Wt.className,xr=(0,pe.Z)(Wt,Kt),Gr=(0,_t.Z)(xr,io),Or=Fr(Rn),Dr=lr||!Or&&Wr,Ar="".concat(Br,"-option"),_r=Ee()(Br,Ar,kr,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Ar,"-grouped"),Bt),"".concat(Ar,"-active"),yr===at&&!Dr),"".concat(Ar,"-disabled"),Dr),"".concat(Ar,"-selected"),Or)),fo=Oe(dt),ko=!ur||typeof ur=="function"||Or,Io=typeof fo=="number"?fo:fo||Rn,Vo=nn(Io)?Io.toString():void 0;return sr!==void 0&&(Vo=sr),ue.createElement("div",(0,b.Z)({},(0,Ot.Z)(Gr),or?{}:We(dt,at),{"aria-selected":So(Rn),className:_r,title:Vo,onMouseMove:function(){yr===at||Dr||go(at)},onClick:function(){Dr||to(Rn)},style:mr}),ue.createElement("div",{className:"".concat(Ar,"-content")},typeof Tr=="function"?Tr(dt,{index:at}):Io),ue.isValidElement(ur)||Or,ko&&ue.createElement(Re,{className:"".concat(Br,"-option-state"),customizeIcon:ur,customizeIconProps:{value:Rn,disabled:Dr,isSelected:Or}},Or?"\u2713":null))}))},_n=ue.forwardRef(On),nr=_n,ir=function(vt,Dt){var Te=ue.useRef({values:new Map,options:new Map}),gt=ue.useMemo(function(){var wt=Te.current,Ht=wt.values,Hn=wt.options,Jn=vt.map(function(pt){if(pt.label===void 0){var xt;return(0,et.Z)((0,et.Z)({},pt),{},{label:(xt=Ht.get(pt.value))===null||xt===void 0?void 0:xt.label})}return pt}),lt=new Map,mt=new Map;return Jn.forEach(function(pt){lt.set(pt.value,pt),mt.set(pt.value,Dt.get(pt.value)||Hn.get(pt.value))}),Te.current.values=lt,Te.current.options=mt,Jn},[vt,Dt]),Ke=ue.useCallback(function(wt){return Dt.get(wt)||Te.current.options.get(wt)},[Dt]);return[gt,Ke]};function Zn(vt,Dt){return _e(vt).join("").toUpperCase().includes(Dt)}var er=function(vt,Dt,Te,gt,Ke){return ue.useMemo(function(){if(!Te||gt===!1)return vt;var wt=Dt.options,Ht=Dt.label,Hn=Dt.value,Jn=[],lt=typeof gt=="function",mt=Te.toUpperCase(),pt=lt?gt:function(fn,In){return Ke?Zn(In[Ke],mt):In[wt]?Zn(In[Ht!=="children"?Ht:"label"],mt):Zn(In[Hn],mt)},xt=lt?function(fn){return rt(fn)}:function(fn){return fn};return vt.forEach(function(fn){if(fn[wt]){var In=pt(Te,xt(fn));if(In)Jn.push(fn);else{var pn=fn[wt].filter(function(Sn){return pt(Te,xt(Sn))});pn.length&&Jn.push((0,et.Z)((0,et.Z)({},fn),{},(0,ce.Z)({},wt,pn)))}return}pt(Te,xt(fn))&&Jn.push(fn)}),Jn},[vt,gt,Ke,Te,Dt])},kn=ee(6551),cn=ee(11592),bn=["children","value"],St=["children"];function Et(vt){var Dt=vt,Te=Dt.key,gt=Dt.props,Ke=gt.children,wt=gt.value,Ht=(0,pe.Z)(gt,bn);return(0,et.Z)({key:Te,value:wt!==void 0?wt:Te,children:Ke},Ht)}function sn(vt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,cn.Z)(vt).map(function(Te,gt){if(!ue.isValidElement(Te)||!Te.type)return null;var Ke=Te,wt=Ke.type.isSelectOptGroup,Ht=Ke.key,Hn=Ke.props,Jn=Hn.children,lt=(0,pe.Z)(Hn,St);return Dt||!wt?Et(Te):(0,et.Z)((0,et.Z)({key:"__RC_SELECT_GRP__".concat(Ht===null?gt:Ht,"__"),label:Ht},lt),{},{options:sn(Jn)})}).filter(function(Te){return Te})}var Pn=function(Dt,Te,gt,Ke,wt){return ue.useMemo(function(){var Ht=Dt,Hn=!Dt;Hn&&(Ht=sn(Te));var Jn=new Map,lt=new Map,mt=function(fn,In,pn){pn&&typeof pn=="string"&&fn.set(In[pn],In)},pt=function xt(fn){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pn=0;pn1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht0?wo(Pr.options):Pr.options}):Pr})},ko=ue.useMemo(function(){return qn?fo(_r):_r},[_r,qn,Ze]),Io=ue.useMemo(function(){return Le(ko,{fieldNames:Oe,childrenAsData:to})},[ko,Oe,to]),Vo=function(Eo){var Zr=En(Eo);if(Gn(Zr),gr&&(Zr.length!==mr.length||Zr.some(function(mo,ui){var Zo;return((Zo=mr[ui])===null||Zo===void 0?void 0:Zo.value)!==(mo==null?void 0:mo.value)}))){var Pr=wr?Zr:Zr.map(function(mo){return mo.value}),Jr=Zr.map(function(mo){return rt(kr(mo.value))});gr(So?Pr:Pr[0],So?Jr:Jr[0])}},Qr=ue.useState(null),Vr=(0,Pe.Z)(Qr,2),_o=Vr[0],Uo=Vr[1],ni=ue.useState(0),Zi=(0,Pe.Z)(ni,2),Si=Zi[0],Ai=Zi[1],Oi=br!==void 0?br:gt!=="combobox",Go=ue.useCallback(function(wo,Eo){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pr=Zr.source,Jr=Pr===void 0?"keyboard":Pr;Ai(Eo),Ht&>==="combobox"&&wo!==null&&Jr==="keyboard"&&Uo(String(wo))},[Ht,gt]),Di=function(Eo,Zr,Pr){var Jr=function(){var oa,Ui=kr(Eo);return[wr?{label:Ui==null?void 0:Ui[Oe.label],value:Eo,key:(oa=Ui==null?void 0:Ui.key)!==null&&oa!==void 0?oa:Eo}:Eo,rt(Ui)]};if(Zr&&fn){var mo=Jr(),ui=(0,Pe.Z)(mo,2),Zo=ui[0],$o=ui[1];fn(Zo,$o)}else if(!Zr&&In&&Pr!=="clear"){var Ro=Jr(),hi=(0,Pe.Z)(Ro,2),wi=hi[0],Bi=hi[1];In(wi,Bi)}},ya=Jt(function(wo,Eo){var Zr,Pr=So?Eo.selected:!0;Pr?Zr=So?[].concat((0,Me.Z)(mr),[wo]):[wo]:Zr=mr.filter(function(Jr){return Jr.value!==wo}),Vo(Zr),Di(wo,Pr),gt==="combobox"?Uo(""):(!mn||xt)&&(dt(""),Uo(""))}),Qi=function(Eo,Zr){Vo(Eo);var Pr=Zr.type,Jr=Zr.values;(Pr==="remove"||Pr==="clear")&&Jr.forEach(function(mo){Di(mo.value,!1,Pr)})},Qo=function(Eo,Zr){if(dt(Eo),Uo(null),Zr.source==="submit"){var Pr=(Eo||"").trim();if(Pr){var Jr=Array.from(new Set([].concat((0,Me.Z)(Gr),[Pr])));Vo(Jr),Di(Pr,!0),dt("")}return}Zr.source!=="blur"&&(gt==="combobox"&&Vo(Eo),mt==null||mt(Eo))},Ha=function(Eo){var Zr=Eo;gt!=="tags"&&(Zr=Eo.map(function(Jr){var mo=Bt.get(Jr);return mo==null?void 0:mo.value}).filter(function(Jr){return Jr!==void 0}));var Pr=Array.from(new Set([].concat((0,Me.Z)(Gr),(0,Me.Z)(Zr))));Vo(Pr),Pr.forEach(function(Jr){Di(Jr,!0)})},Ba=ue.useMemo(function(){var wo=Tr!==!1&&Sn!==!1;return(0,et.Z)((0,et.Z)({},at),{},{flattenOptions:Io,onActiveValue:Go,defaultActiveFirstOption:Oi,onSelect:ya,menuItemSelectedIcon:vr,rawValues:Gr,fieldNames:Oe,virtual:wo,direction:Br,listHeight:Er,listItemHeight:Rr,childrenAsData:to,maxCount:yr,optionRender:or})},[yr,at,Io,Go,Oi,ya,vr,Gr,Oe,Tr,Sn,Br,Er,Rr,to,or]);return ue.createElement(Ne.Provider,{value:Ba},ue.createElement(jt,(0,b.Z)({},Xr,{id:go,prefixCls:wt,ref:Dt,omitDomProps:rr,mode:gt,displayValues:xr,onDisplayValuesChange:Qi,direction:Br,searchValue:Ze,onSearch:Qo,autoClearSearchValue:xt,onSearchSplit:Ha,dropdownMatchSelectWidth:Sn,OptionList:nr,emptyOptions:!Io.length,activeValue:_o,activeDescendantId:"".concat(go,"_list_").concat(Si)})))}),xn=Yt;xn.Option=Tt,xn.OptGroup=on;var Vn=xn,jn=Vn},22711:function(Bn,rn,ee){"use strict";ee.r(rn),ee.d(rn,{ResizableTextArea:function(){return De},default:function(){return It}});var b=ee(60499),Me=ee(18642),ce=ee(85899),et=ee(77654),Pe=ee(72190),pe=ee(42244),be=ee(92310),Ve=ee.n(be),Ie=ee(36901),ue=ee(66003),$e=ee(30292),Ee=ee(18929),Rt=ee(59301),ot=ee(43749),st=ee(29301),Ue=ee(34280),Re=ee(16089),ft=` 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; `,kt=["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"],en={},Qe;function Ae(_e){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=_e.getAttribute("id")||_e.getAttribute("data-reactid")||_e.getAttribute("name");if(Ye&&en[Ft])return en[Ft];var Ce=window.getComputedStyle(_e),he=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),yt=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),Vt=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),Lt=kt.map(function(qe){return"".concat(qe,":").concat(Ce.getPropertyValue(qe))}).join(";"),me={sizingStyle:Lt,paddingSize:yt,borderSize:Vt,boxSizing:he};return Ye&&Ft&&(en[Ft]=me),me}function tt(_e){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe||(Qe=document.createElement("textarea"),Qe.setAttribute("tab-index","-1"),Qe.setAttribute("aria-hidden","true"),Qe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qe)),_e.getAttribute("wrap")?Qe.setAttribute("wrap",_e.getAttribute("wrap")):Qe.removeAttribute("wrap");var he=Ae(_e,Ye),yt=he.paddingSize,Vt=he.borderSize,Lt=he.boxSizing,me=he.sizingStyle;Qe.setAttribute("style","".concat(me,";").concat(ft)),Qe.value=_e.value||_e.placeholder||"";var qe=void 0,it=void 0,Xt,Xe=Qe.scrollHeight;if(Lt==="border-box"?Xe+=Vt:Lt==="content-box"&&(Xe-=yt),Ft!==null||Ce!==null){Qe.value=" ";var Gt=Qe.scrollHeight-yt;Ft!==null&&(qe=Gt*Ft,Lt==="border-box"&&(qe=qe+yt+Vt),Xe=Math.max(qe,Xe)),Ce!==null&&(it=Gt*Ce,Lt==="border-box"&&(it=it+yt+Vt),Xt=Xe>it?"":"hidden",Xe=Math.min(it,Xe))}var Fe={height:Xe,overflowY:Xt,resize:"none"};return qe&&(Fe.minHeight=qe),it&&(Fe.maxHeight=it),Fe}var nt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zt=0,Ot=1,ht=2,Ct=Rt.forwardRef(function(_e,Ye){var Ft=_e,Ce=Ft.prefixCls,he=Ft.defaultValue,yt=Ft.value,Vt=Ft.autoSize,Lt=Ft.onResize,me=Ft.className,qe=Ft.style,it=Ft.disabled,Xt=Ft.onChange,Xe=Ft.onInternalAutoSize,Gt=(0,pe.Z)(Ft,nt),Fe=(0,Ee.Z)(he,{value:yt,postState:function(Tt){return Tt!=null?Tt:""}}),dn=(0,Pe.Z)(Fe,2),$t=dn[0],ae=dn[1],ne=function(Tt){ae(Tt.target.value),Xt==null||Xt(Tt)},te=Rt.useRef();Rt.useImperativeHandle(Ye,function(){return{textArea:te.current}});var ie=Rt.useMemo(function(){return Vt&&(0,ot.Z)(Vt)==="object"?[Vt.minRows,Vt.maxRows]:[]},[Vt]),de=(0,Pe.Z)(ie,2),re=de[0],le=de[1],Se=!!Vt,Ge=function(){try{if(document.activeElement===te.current){var Tt=te.current,an=Tt.selectionStart,_t=Tt.selectionEnd,je=Tt.scrollTop;te.current.setSelectionRange(an,_t),te.current.scrollTop=je}}catch(Pt){}},He=Rt.useState(ht),Le=(0,Pe.Z)(He,2),rt=Le[0],ut=Le[1],At=Rt.useState(),Ne=(0,Pe.Z)(At,2),Be=Ne[0],Ut=Ne[1],Zt=function(){ut(zt)};(0,Ue.Z)(function(){Se&&Zt()},[yt,re,le,Se]),(0,Ue.Z)(function(){if(rt===zt)ut(Ot);else if(rt===Ot){var Je=tt(te.current,!1,re,le);ut(ht),Ut(Je)}else Ge()},[rt]);var mn=Rt.useRef(),vn=function(){Re.Z.cancel(mn.current)},jt=function(Tt){rt===ht&&(Lt==null||Lt(Tt),Vt&&(vn(),mn.current=(0,Re.Z)(function(){Zt()})))};Rt.useEffect(function(){return vn},[]);var Cn=Se?Be:null,on=(0,ce.Z)((0,ce.Z)({},qe),Cn);return(rt===zt||rt===Ot)&&(on.overflowY="hidden",on.overflowX="hidden"),Rt.createElement(st.Z,{onResize:jt,disabled:!(Vt||Lt)},Rt.createElement("textarea",(0,b.Z)({},Gt,{ref:te,style:on,className:Ve()(Ce,me,(0,Me.Z)({},"".concat(Ce,"-disabled"),it)),disabled:it,value:$t,onChange:ne})))}),De=Ct,ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],xe=Rt.forwardRef(function(_e,Ye){var Ft,Ce=_e.defaultValue,he=_e.value,yt=_e.onFocus,Vt=_e.onBlur,Lt=_e.onChange,me=_e.allowClear,qe=_e.maxLength,it=_e.onCompositionStart,Xt=_e.onCompositionEnd,Xe=_e.suffix,Gt=_e.prefixCls,Fe=Gt===void 0?"rc-textarea":Gt,dn=_e.showCount,$t=_e.count,ae=_e.className,ne=_e.style,te=_e.disabled,ie=_e.hidden,de=_e.classNames,re=_e.styles,le=_e.onResize,Se=_e.onClear,Ge=_e.onPressEnter,He=_e.readOnly,Le=_e.autoSize,rt=_e.onKeyDown,ut=(0,pe.Z)(_e,ke),At=(0,Ee.Z)(Ce,{value:he,defaultValue:Ce}),Ne=(0,Pe.Z)(At,2),Be=Ne[0],Ut=Ne[1],Zt=Be==null?"":String(Be),mn=Rt.useState(!1),vn=(0,Pe.Z)(mn,2),jt=vn[0],Cn=vn[1],on=Rt.useRef(!1),Je=Rt.useState(null),Tt=(0,Pe.Z)(Je,2),an=Tt[0],_t=Tt[1],je=(0,Rt.useRef)(null),Pt=(0,Rt.useRef)(null),Kt=function(){var xn;return(xn=Pt.current)===null||xn===void 0?void 0:xn.textArea},nn=function(){Kt().focus()};(0,Rt.useImperativeHandle)(Ye,function(){var Yt;return{resizableTextArea:Pt.current,focus:nn,blur:function(){Kt().blur()},nativeElement:((Yt=je.current)===null||Yt===void 0?void 0:Yt.nativeElement)||Kt()}}),(0,Rt.useEffect)(function(){Cn(function(Yt){return!te&&Yt})},[te]);var On=Rt.useState(null),_n=(0,Pe.Z)(On,2),nr=_n[0],ir=_n[1];Rt.useEffect(function(){if(nr){var Yt;(Yt=Kt()).setSelectionRange.apply(Yt,(0,et.Z)(nr))}},[nr]);var Zn=(0,ue.Z)($t,dn),er=(Ft=Zn.max)!==null&&Ft!==void 0?Ft:qe,kn=Number(er)>0,cn=Zn.strategy(Zt),bn=!!er&&cn>er,St=function(xn,Vn){var jn=Vn;!on.current&&Zn.exceedFormatter&&Zn.max&&Zn.strategy(Vn)>Zn.max&&(jn=Zn.exceedFormatter(Vn,{max:Zn.max}),Vn!==jn&&ir([Kt().selectionStart||0,Kt().selectionEnd||0])),Ut(jn),(0,$e.rJ)(xn.currentTarget,xn,Lt,jn)},Et=function(xn){on.current=!0,it==null||it(xn)},sn=function(xn){on.current=!1,St(xn,xn.currentTarget.value),Xt==null||Xt(xn)},Pn=function(xn){St(xn,xn.target.value)},Tn=function(xn){xn.key==="Enter"&&Ge&&Ge(xn),rt==null||rt(xn)},Jt=function(xn){Cn(!0),yt==null||yt(xn)},wn=function(xn){Cn(!1),Vt==null||Vt(xn)},gn=function(xn){Ut(""),nn(),(0,$e.rJ)(Kt(),xn,Lt)},Nn=Xe,An;Zn.show&&(Zn.showFormatter?An=Zn.showFormatter({value:Zt,count:cn,maxLength:er}):An="".concat(cn).concat(kn?" / ".concat(er):""),Nn=Rt.createElement(Rt.Fragment,null,Nn,Rt.createElement("span",{className:Ve()("".concat(Fe,"-data-count"),de==null?void 0:de.count),style:re==null?void 0:re.count},An)));var rr=function(xn){var Vn;le==null||le(xn),(Vn=Kt())!==null&&Vn!==void 0&&Vn.style.height&&_t(!0)},Qt=!Le&&!dn&&!me;return Rt.createElement(Ie.BaseInput,{ref:je,value:Zt,allowClear:me,handleReset:gn,suffix:Nn,prefixCls:Fe,classNames:(0,ce.Z)((0,ce.Z)({},de),{},{affixWrapper:Ve()(de==null?void 0:de.affixWrapper,(0,Me.Z)((0,Me.Z)({},"".concat(Fe,"-show-count"),dn),"".concat(Fe,"-textarea-allow-clear"),me))}),disabled:te,focused:jt,className:Ve()(ae,bn&&"".concat(Fe,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},ne),an&&!Qt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof An=="string"?An:void 0}},hidden:ie,readOnly:He,onClear:Se},Rt.createElement(De,(0,b.Z)({},ut,{autoSize:Le,maxLength:qe,onKeyDown:Tn,onChange:Pn,onFocus:Jt,onBlur:wn,onCompositionStart:Et,onCompositionEnd:sn,className:Ve()(de==null?void 0:de.textarea),style:(0,ce.Z)((0,ce.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:Fe,onResize:rr,ref:Pt,readOnly:He})))}),se=xe,It=se},639:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return en}});var b=ee(60499),Me=ee(18642),ce=ee(85899),et=ee(72190),Pe=ee(42244),pe=ee(59301),be=ee(92310),Ve=ee.n(be),Ie=ee(26112),ue=ee(30699),$e=function(Ae){for(var tt=Ae.prefixCls,nt=Ae.level,zt=Ae.isStart,Ot=Ae.isEnd,ht="".concat(tt,"-indent-unit"),Ct=[],De=0;De0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=ie.length,le=de.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function Se(Ge,He){var Le=new Map;Ge.forEach(function(ut){Le.set(ut,!0)});var rt=He.filter(function(ut){return!Le.has(ut)});return rt.length===1?rt[0]:null}return re ").concat(de);return de}var Xt=Ue.forwardRef(function(ie,de){var re=ie.prefixCls,le=ie.data,Se=ie.selectable,Ge=ie.checkable,He=ie.expandedKeys,Le=ie.selectedKeys,rt=ie.checkedKeys,ut=ie.loadedKeys,At=ie.loadingKeys,Ne=ie.halfCheckedKeys,Be=ie.keyEntities,Ut=ie.disabled,Zt=ie.dragging,mn=ie.dragOverNodeKey,vn=ie.dropPosition,jt=ie.motion,Cn=ie.height,on=ie.itemHeight,Je=ie.virtual,Tt=ie.scrollWidth,an=ie.focusable,_t=ie.activeItem,je=ie.focused,Pt=ie.tabIndex,Kt=ie.onKeyDown,nn=ie.onFocus,On=ie.onBlur,_n=ie.onActiveChange,nr=ie.onListChangeStart,ir=ie.onListChangeEnd,Zn=(0,Ae.Z)(ie,Ye),er=Ue.useRef(null),kn=Ue.useRef(null);Ue.useImperativeHandle(de,function(){return{scrollTo:function(Hn){er.current.scrollTo(Hn)},getIndentWidth:function(){return kn.current.offsetWidth}}});var cn=Ue.useState(He),bn=(0,Qe.Z)(cn,2),St=bn[0],Et=bn[1],sn=Ue.useState(le),Pn=(0,Qe.Z)(sn,2),Tn=Pn[0],Jt=Pn[1],wn=Ue.useState(le),gn=(0,Qe.Z)(wn,2),Nn=gn[0],An=gn[1],rr=Ue.useState([]),Qt=(0,Qe.Z)(rr,2),Yt=Qt[0],xn=Qt[1],Vn=Ue.useState(null),jn=(0,Qe.Z)(Vn,2),vt=jn[0],Dt=jn[1],Te=Ue.useRef(le);Te.current=le;function gt(){var Ht=Te.current;Jt(Ht),An(Ht),xn([]),Dt(null),ir()}(0,tt.Z)(function(){Et(He);var Ht=It(St,He);if(Ht.key!==null)if(Ht.add){var Hn=Tn.findIndex(function(fn){var In=fn.key;return In===Ht.key}),Jn=me(_e(Tn,le,Ht.key),Je,Cn,on),lt=Tn.slice();lt.splice(Hn+1,0,Lt),An(lt),xn(Jn),Dt("show")}else{var mt=le.findIndex(function(fn){var In=fn.key;return In===Ht.key}),pt=me(_e(le,Tn,Ht.key),Je,Cn,on),xt=le.slice();xt.splice(mt+1,0,Lt),An(xt),xn(pt),Dt("hide")}else Tn!==le&&(Jt(le),An(le))},[He,le]),Ue.useEffect(function(){Zt||gt()},[Zt]);var Ke=jt?Nn:le,wt={expandedKeys:He,selectedKeys:Le,loadedKeys:ut,loadingKeys:At,checkedKeys:rt,halfCheckedKeys:Ne,dragOverNodeKey:mn,dropPosition:vn,keyEntities:Be};return Ue.createElement(Ue.Fragment,null,je&&_t&&Ue.createElement("span",{style:Ft,"aria-live":"assertive"},it(_t)),Ue.createElement("div",null,Ue.createElement("input",{style:Ft,disabled:an===!1||Ut,tabIndex:an!==!1?Pt:null,onKeyDown:Kt,onFocus:nn,onBlur:On,value:"",onChange:Ce,"aria-label":"for screen reader"})),Ue.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ue.createElement("div",{className:"".concat(re,"-indent")},Ue.createElement("div",{ref:kn,className:"".concat(re,"-indent-unit")}))),Ue.createElement(nt.Z,(0,b.Z)({},Zn,{data:Ke,itemKey:qe,height:Cn,fullHeight:!1,virtual:Je,itemHeight:on,scrollWidth:Tt,prefixCls:"".concat(re,"-list"),ref:er,role:"tree",onVisibleChange:function(Hn){Hn.every(function(Jn){return qe(Jn)!==he})&>()}}),function(Ht){var Hn=Ht.pos,Jn=Object.assign({},(en(Ht.data),Ht.data)),lt=Ht.title,mt=Ht.key,pt=Ht.isStart,xt=Ht.isEnd,fn=(0,De.km)(mt,Hn);delete Jn.key,delete Jn.children;var In=(0,De.H8)(fn,wt);return Ue.createElement(se,(0,b.Z)({},Jn,In,{title:lt,active:!!_t&&mt===_t.key,pos:Hn,data:Ht.data,isStart:pt,isEnd:xt,motion:jt,motionNodes:mt===he?Yt:null,motionType:vt,onMotionStart:nr,onMotionEnd:gt,treeNodeRequiredProps:wt,onMouseMove:function(){_n(null)}}))}))}),Xe=Xt,Gt=ee(82661),Fe=ee(34643),dn=ee(65065),$t=10,ae=function(ie){(0,Ve.Z)(re,ie);var de=(0,Ie.Z)(re);function re(){var le;(0,Pe.Z)(this,re);for(var Se=arguments.length,Ge=new Array(Se),He=0;He2&&arguments[2]!==void 0?arguments[2]:!1,Ne=le.state,Be=Ne.dragChildrenKeys,Ut=Ne.dropPosition,Zt=Ne.dropTargetKey,mn=Ne.dropTargetPos,vn=Ne.dropAllowed;if(vn){var jt=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Zt!==null){var Cn=(0,ce.Z)((0,ce.Z)({},(0,De.H8)(Zt,le.getTreeNodeRequiredProps())),{},{active:((ut=le.getActiveItem())===null||ut===void 0?void 0:ut.key)===Zt,data:(0,dn.Z)(le.state.keyEntities,Zt).node}),on=Be.includes(Zt);(0,st.ZP)(!on,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Je=(0,Gt.yx)(mn),Tt={event:Le,node:(0,De.F)(Cn),dragNode:le.dragNodeProps?(0,De.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(Be),dropToGap:Ut!==0,dropPosition:Ut+Number(Je[Je.length-1])};At||jt==null||jt(Tt),le.dragNodeProps=null}}}),(0,ue.Z)((0,be.Z)(le),"cleanDragState",function(){var Le=le.state.draggingNodeKey;Le!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,ue.Z)((0,be.Z)(le),"triggerExpandActionExpand",function(Le,rt){var ut=le.state,At=ut.expandedKeys,Ne=ut.flattenNodes,Be=rt.expanded,Ut=rt.key,Zt=rt.isLeaf;if(!(Zt||Le.shiftKey||Le.metaKey||Le.ctrlKey)){var mn=Ne.filter(function(jt){return jt.key===Ut})[0],vn=(0,De.F)((0,ce.Z)((0,ce.Z)({},(0,De.H8)(Ut,le.getTreeNodeRequiredProps())),{},{data:mn.data}));le.setExpandedKeys(Be?(0,Gt._5)(At,Ut):(0,Gt.L0)(At,Ut)),le.onNodeExpand(Le,vn)}}),(0,ue.Z)((0,be.Z)(le),"onNodeClick",function(Le,rt){var ut=le.props,At=ut.onClick,Ne=ut.expandAction;Ne==="click"&&le.triggerExpandActionExpand(Le,rt),At==null||At(Le,rt)}),(0,ue.Z)((0,be.Z)(le),"onNodeDoubleClick",function(Le,rt){var ut=le.props,At=ut.onDoubleClick,Ne=ut.expandAction;Ne==="doubleClick"&&le.triggerExpandActionExpand(Le,rt),At==null||At(Le,rt)}),(0,ue.Z)((0,be.Z)(le),"onNodeSelect",function(Le,rt){var ut=le.state.selectedKeys,At=le.state,Ne=At.keyEntities,Be=At.fieldNames,Ut=le.props,Zt=Ut.onSelect,mn=Ut.multiple,vn=rt.selected,jt=rt[Be.key],Cn=!vn;Cn?mn?ut=(0,Gt.L0)(ut,jt):ut=[jt]:ut=(0,Gt._5)(ut,jt);var on=ut.map(function(Je){var Tt=(0,dn.Z)(Ne,Je);return Tt?Tt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:ut}),Zt==null||Zt(ut,{event:"select",selected:Cn,node:rt,selectedNodes:on,nativeEvent:Le.nativeEvent})}),(0,ue.Z)((0,be.Z)(le),"onNodeCheck",function(Le,rt,ut){var At=le.state,Ne=At.keyEntities,Be=At.checkedKeys,Ut=At.halfCheckedKeys,Zt=le.props,mn=Zt.checkStrictly,vn=Zt.onCheck,jt=rt.key,Cn,on={event:"check",node:rt,checked:ut,nativeEvent:Le.nativeEvent};if(mn){var Je=ut?(0,Gt.L0)(Be,jt):(0,Gt._5)(Be,jt),Tt=(0,Gt._5)(Ut,jt);Cn={checked:Je,halfChecked:Tt},on.checkedNodes=Je.map(function(nn){return(0,dn.Z)(Ne,nn)}).filter(Boolean).map(function(nn){return nn.node}),le.setUncontrolledState({checkedKeys:Je})}else{var an=(0,Fe.S)([].concat((0,et.Z)(Be),[jt]),!0,Ne),_t=an.checkedKeys,je=an.halfCheckedKeys;if(!ut){var Pt=new Set(_t);Pt.delete(jt);var Kt=(0,Fe.S)(Array.from(Pt),{checked:!1,halfCheckedKeys:je},Ne);_t=Kt.checkedKeys,je=Kt.halfCheckedKeys}Cn=_t,on.checkedNodes=[],on.checkedNodesPositions=[],on.halfCheckedKeys=je,_t.forEach(function(nn){var On=(0,dn.Z)(Ne,nn);if(On){var _n=On.node,nr=On.pos;on.checkedNodes.push(_n),on.checkedNodesPositions.push({node:_n,pos:nr})}}),le.setUncontrolledState({checkedKeys:_t},!1,{halfCheckedKeys:je})}vn==null||vn(Cn,on)}),(0,ue.Z)((0,be.Z)(le),"onNodeLoad",function(Le){var rt,ut=Le.key,At=le.state.keyEntities,Ne=(0,dn.Z)(At,ut);if(!(Ne!=null&&(rt=Ne.children)!==null&&rt!==void 0&&rt.length)){var Be=new Promise(function(Ut,Zt){le.setState(function(mn){var vn=mn.loadedKeys,jt=vn===void 0?[]:vn,Cn=mn.loadingKeys,on=Cn===void 0?[]:Cn,Je=le.props,Tt=Je.loadData,an=Je.onLoad;if(!Tt||jt.includes(ut)||on.includes(ut))return null;var _t=Tt(Le);return _t.then(function(){var je=le.state.loadedKeys,Pt=(0,Gt.L0)(je,ut);an==null||an(Pt,{event:"load",node:Le}),le.setUncontrolledState({loadedKeys:Pt}),le.setState(function(Kt){return{loadingKeys:(0,Gt._5)(Kt.loadingKeys,ut)}}),Ut()}).catch(function(je){if(le.setState(function(Kt){return{loadingKeys:(0,Gt._5)(Kt.loadingKeys,ut)}}),le.loadingRetryTimes[ut]=(le.loadingRetryTimes[ut]||0)+1,le.loadingRetryTimes[ut]>=$t){var Pt=le.state.loadedKeys;(0,st.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,Gt.L0)(Pt,ut)}),Ut()}Zt(je)}),{loadingKeys:(0,Gt.L0)(on,ut)}})});return Be.catch(function(){}),Be}}),(0,ue.Z)((0,be.Z)(le),"onNodeMouseEnter",function(Le,rt){var ut=le.props.onMouseEnter;ut==null||ut({event:Le,node:rt})}),(0,ue.Z)((0,be.Z)(le),"onNodeMouseLeave",function(Le,rt){var ut=le.props.onMouseLeave;ut==null||ut({event:Le,node:rt})}),(0,ue.Z)((0,be.Z)(le),"onNodeContextMenu",function(Le,rt){var ut=le.props.onRightClick;ut&&(Le.preventDefault(),ut({event:Le,node:rt}))}),(0,ue.Z)((0,be.Z)(le),"onFocus",function(){var Le=le.props.onFocus;le.setState({focused:!0});for(var rt=arguments.length,ut=new Array(rt),At=0;At1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var At=!1,Ne=!0,Be={};Object.keys(Le).forEach(function(Ut){if(le.props.hasOwnProperty(Ut)){Ne=!1;return}At=!0,Be[Ut]=Le[Ut]}),At&&(!rt||Ne)&&le.setState((0,ce.Z)((0,ce.Z)({},Be),ut))}}),(0,ue.Z)((0,be.Z)(le),"scrollTo",function(Le){le.listRef.current.scrollTo(Le)}),le}return(0,pe.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Se=this.props,Ge=Se.activeKey,He=Se.itemScrollOffset,Le=He===void 0?0:He;Ge!==void 0&&Ge!==this.state.activeKey&&(this.setState({activeKey:Ge}),Ge!==null&&this.scrollTo({key:Ge,offset:Le}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Se=this.state,Ge=Se.focused,He=Se.flattenNodes,Le=Se.keyEntities,rt=Se.draggingNodeKey,ut=Se.activeKey,At=Se.dropLevelOffset,Ne=Se.dropContainerKey,Be=Se.dropTargetKey,Ut=Se.dropPosition,Zt=Se.dragOverNodeKey,mn=Se.indent,vn=this.props,jt=vn.prefixCls,Cn=vn.className,on=vn.style,Je=vn.showLine,Tt=vn.focusable,an=vn.tabIndex,_t=an===void 0?0:an,je=vn.selectable,Pt=vn.showIcon,Kt=vn.icon,nn=vn.switcherIcon,On=vn.draggable,_n=vn.checkable,nr=vn.checkStrictly,ir=vn.disabled,Zn=vn.motion,er=vn.loadData,kn=vn.filterTreeNode,cn=vn.height,bn=vn.itemHeight,St=vn.scrollWidth,Et=vn.virtual,sn=vn.titleRender,Pn=vn.dropIndicatorRender,Tn=vn.onContextMenu,Jt=vn.onScroll,wn=vn.direction,gn=vn.rootClassName,Nn=vn.rootStyle,An=(0,ot.Z)(this.props,{aria:!0,data:!0}),rr;On&&((0,Me.Z)(On)==="object"?rr=On:typeof On=="function"?rr={nodeDraggable:On}:rr={});var Qt={prefixCls:jt,selectable:je,showIcon:Pt,icon:Kt,switcherIcon:nn,draggable:rr,draggingNodeKey:rt,checkable:_n,checkStrictly:nr,disabled:ir,keyEntities:Le,dropLevelOffset:At,dropContainerKey:Ne,dropTargetKey:Be,dropPosition:Ut,dragOverNodeKey:Zt,indent:mn,direction:wn,dropIndicatorRender:Pn,loadData:er,filterTreeNode:kn,titleRender:sn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return Ue.createElement(Re.k.Provider,{value:Qt},Ue.createElement("div",{className:Ee()(jt,Cn,gn,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(jt,"-show-line"),Je),"".concat(jt,"-focused"),Ge),"".concat(jt,"-active-focused"),ut!==null)),style:Nn},Ue.createElement(Xe,(0,b.Z)({ref:this.listRef,prefixCls:jt,style:on,data:He,disabled:ir,selectable:je,checkable:!!_n,motion:Zn,dragging:rt!==null,height:cn,itemHeight:bn,virtual:Et,focusable:Tt,focused:Ge,tabIndex:_t,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Tn,onScroll:Jt,scrollWidth:St},this.getTreeNodeRequiredProps(),An))))}}],[{key:"getDerivedStateFromProps",value:function(Se,Ge){var He=Ge.prevProps,Le={prevProps:Se};function rt(_t){return!He&&Se.hasOwnProperty(_t)||He&&He[_t]!==Se[_t]}var ut,At=Ge.fieldNames;if(rt("fieldNames")&&(At=(0,De.w$)(Se.fieldNames),Le.fieldNames=At),rt("treeData")?ut=Se.treeData:rt("children")&&((0,st.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,De.zn)(Se.children)),ut){Le.treeData=ut;var Ne=(0,De.I8)(ut,{fieldNames:At});Le.keyEntities=(0,ce.Z)((0,ue.Z)({},he,Vt),Ne.keyEntities)}var Be=Le.keyEntities||Ge.keyEntities;if(rt("expandedKeys")||He&&rt("autoExpandParent"))Le.expandedKeys=Se.autoExpandParent||!He&&Se.defaultExpandParent?(0,Gt.r7)(Se.expandedKeys,Be):Se.expandedKeys;else if(!He&&Se.defaultExpandAll){var Ut=(0,ce.Z)({},Be);delete Ut[he];var Zt=[];Object.keys(Ut).forEach(function(_t){var je=Ut[_t];je.children&&je.children.length&&Zt.push(je.key)}),Le.expandedKeys=Zt}else!He&&Se.defaultExpandedKeys&&(Le.expandedKeys=Se.autoExpandParent||Se.defaultExpandParent?(0,Gt.r7)(Se.defaultExpandedKeys,Be):Se.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,ut||Le.expandedKeys){var mn=(0,De.oH)(ut||Ge.treeData,Le.expandedKeys||Ge.expandedKeys,At);Le.flattenNodes=mn}if(Se.selectable&&(rt("selectedKeys")?Le.selectedKeys=(0,Gt.BT)(Se.selectedKeys,Se):!He&&Se.defaultSelectedKeys&&(Le.selectedKeys=(0,Gt.BT)(Se.defaultSelectedKeys,Se))),Se.checkable){var vn;if(rt("checkedKeys")?vn=(0,Gt.E6)(Se.checkedKeys)||{}:!He&&Se.defaultCheckedKeys?vn=(0,Gt.E6)(Se.defaultCheckedKeys)||{}:ut&&(vn=(0,Gt.E6)(Se.checkedKeys)||{checkedKeys:Ge.checkedKeys,halfCheckedKeys:Ge.halfCheckedKeys}),vn){var jt=vn,Cn=jt.checkedKeys,on=Cn===void 0?[]:Cn,Je=jt.halfCheckedKeys,Tt=Je===void 0?[]:Je;if(!Se.checkStrictly){var an=(0,Fe.S)(on,!0,Be);on=an.checkedKeys,Tt=an.halfCheckedKeys}Le.checkedKeys=on,Le.halfCheckedKeys=Tt}}return rt("loadedKeys")&&(Le.loadedKeys=Se.loadedKeys),Le}}]),re}(Ue.Component);(0,ue.Z)(ae,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:kt,allowDrop:function(){return!0},expandAction:!1}),(0,ue.Z)(ae,"TreeNode",Ot.Z);var ne=ae,te=ne},82661:function(Bn,rn,ee){"use strict";ee.d(rn,{BT:function(){return Ue},E6:function(){return kt},L0:function(){return ue},OM:function(){return st},_5:function(){return Ie},r7:function(){return en},wA:function(){return Ee},yx:function(){return $e}});var b=ee(77654),Me=ee(43749),ce=ee(48736),et=ee(59301),Pe=ee(639),pe=ee(65065),be=ee(34061),Ve=null;function Ie(Qe,Ae){if(!Qe)return[];var tt=Qe.slice(),nt=tt.indexOf(Ae);return nt>=0&&tt.splice(nt,1),tt}function ue(Qe,Ae){var tt=(Qe||[]).slice();return tt.indexOf(Ae)===-1&&tt.push(Ae),tt}function $e(Qe){return Qe.split("-")}function Ee(Qe,Ae){var tt=[],nt=(0,pe.Z)(Ae,Qe);function zt(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ot.forEach(function(ht){var Ct=ht.key,De=ht.children;tt.push(Ct),zt(De)})}return zt(nt.children),tt}function Rt(Qe){if(Qe.parent){var Ae=$e(Qe.pos);return Number(Ae[Ae.length-1])===Qe.parent.children.length-1}return!1}function ot(Qe){var Ae=$e(Qe.pos);return Number(Ae[Ae.length-1])===0}function st(Qe,Ae,tt,nt,zt,Ot,ht,Ct,De,ke){var xe,se=Qe.clientX,It=Qe.clientY,_e=Qe.target.getBoundingClientRect(),Ye=_e.top,Ft=_e.height,Ce=(ke==="rtl"?-1:1)*(((zt==null?void 0:zt.x)||0)-se),he=(Ce-12)/nt,yt=De.filter(function(te){var ie;return(ie=Ct[te])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),Vt=(0,pe.Z)(Ct,tt.eventKey);if(It-1.5?Ot({dragNode:$t,dropNode:ae,dropPosition:1})?Gt=1:ne=!1:Ot({dragNode:$t,dropNode:ae,dropPosition:0})?Gt=0:Ot({dragNode:$t,dropNode:ae,dropPosition:1})?Gt=1:ne=!1:Ot({dragNode:$t,dropNode:ae,dropPosition:1})?Gt=1:ne=!1,{dropPosition:Gt,dropLevelOffset:Fe,dropTargetKey:Vt.key,dropTargetPos:Vt.pos,dragOverNodeKey:Xe,dropContainerKey:Gt===0?null:((xe=Vt.parent)===null||xe===void 0?void 0:xe.key)||null,dropAllowed:ne}}function Ue(Qe,Ae){if(Qe){var tt=Ae.multiple;return tt?Qe.slice():Qe.length?[Qe[0]]:Qe}}var Re=function(Ae){return Ae};function ft(Qe,Ae){if(!Qe)return[];var tt=Ae||{},nt=tt.processProps,zt=nt===void 0?Re:nt,Ot=Array.isArray(Qe)?Qe:[Qe];return Ot.map(function(ht){var Ct=ht.children,De=_objectWithoutProperties(ht,Ve),ke=ft(Ct,Ae);return React.createElement(TreeNode,_extends({key:De.key},zt(De)),ke)})}function kt(Qe){if(!Qe)return null;var Ae;if(Array.isArray(Qe))Ae={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,Me.Z)(Qe)==="object")Ae={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function en(Qe,Ae){var tt=new Set;function nt(zt){if(!tt.has(zt)){var Ot=(0,pe.Z)(Ae,zt);if(Ot){tt.add(zt);var ht=Ot.parent,Ct=Ot.node;Ct.disabled||ht&&nt(ht.key)}}}return(Qe||[]).forEach(function(zt){nt(zt)}),(0,b.Z)(tt)}},34643:function(Bn,rn,ee){"use strict";ee.d(rn,{S:function(){return be}});var b=ee(48736),Me=ee(65065);function ce(Ve,Ie){var ue=new Set;return Ve.forEach(function($e){Ie.has($e)||ue.add($e)}),ue}function et(Ve){var Ie=Ve||{},ue=Ie.disabled,$e=Ie.disableCheckbox,Ee=Ie.checkable;return!!(ue||$e)||Ee===!1}function Pe(Ve,Ie,ue,$e){for(var Ee=new Set(Ve),Rt=new Set,ot=0;ot<=ue;ot+=1){var st=Ie.get(ot)||new Set;st.forEach(function(kt){var en=kt.key,Qe=kt.node,Ae=kt.children,tt=Ae===void 0?[]:Ae;Ee.has(en)&&!$e(Qe)&&tt.filter(function(nt){return!$e(nt.node)}).forEach(function(nt){Ee.add(nt.key)})})}for(var Ue=new Set,Re=ue;Re>=0;Re-=1){var ft=Ie.get(Re)||new Set;ft.forEach(function(kt){var en=kt.parent,Qe=kt.node;if(!($e(Qe)||!kt.parent||Ue.has(kt.parent.key))){if($e(kt.parent.node)){Ue.add(en.key);return}var Ae=!0,tt=!1;(en.children||[]).filter(function(nt){return!$e(nt.node)}).forEach(function(nt){var zt=nt.key,Ot=Ee.has(zt);Ae&&!Ot&&(Ae=!1),!tt&&(Ot||Rt.has(zt))&&(tt=!0)}),Ae&&Ee.add(en.key),tt&&Rt.add(en.key),Ue.add(en.key)}})}return{checkedKeys:Array.from(Ee),halfCheckedKeys:Array.from(ce(Rt,Ee))}}function pe(Ve,Ie,ue,$e,Ee){for(var Rt=new Set(Ve),ot=new Set(Ie),st=0;st<=$e;st+=1){var Ue=ue.get(st)||new Set;Ue.forEach(function(en){var Qe=en.key,Ae=en.node,tt=en.children,nt=tt===void 0?[]:tt;!Rt.has(Qe)&&!ot.has(Qe)&&!Ee(Ae)&&nt.filter(function(zt){return!Ee(zt.node)}).forEach(function(zt){Rt.delete(zt.key)})})}ot=new Set;for(var Re=new Set,ft=$e;ft>=0;ft-=1){var kt=ue.get(ft)||new Set;kt.forEach(function(en){var Qe=en.parent,Ae=en.node;if(!(Ee(Ae)||!en.parent||Re.has(en.parent.key))){if(Ee(en.parent.node)){Re.add(Qe.key);return}var tt=!0,nt=!1;(Qe.children||[]).filter(function(zt){return!Ee(zt.node)}).forEach(function(zt){var Ot=zt.key,ht=Rt.has(Ot);tt&&!ht&&(tt=!1),!nt&&(ht||ot.has(Ot))&&(nt=!0)}),tt||Rt.delete(Qe.key),nt&&ot.add(Qe.key),Re.add(Qe.key)}})}return{checkedKeys:Array.from(Rt),halfCheckedKeys:Array.from(ce(ot,Rt))}}function be(Ve,Ie,ue,$e){var Ee=[],Rt;$e?Rt=$e:Rt=et;var ot=new Set(Ve.filter(function(ft){var kt=!!(0,Me.Z)(ue,ft);return kt||Ee.push(ft),kt})),st=new Map,Ue=0;Object.keys(ue).forEach(function(ft){var kt=ue[ft],en=kt.level,Qe=st.get(en);Qe||(Qe=new Set,st.set(en,Qe)),Qe.add(kt),Ue=Math.max(Ue,en)}),(0,b.ZP)(!Ee.length,"Tree missing follow keys: ".concat(Ee.slice(0,100).map(function(ft){return"'".concat(ft,"'")}).join(", ")));var Re;return Ie===!0?Re=Pe(ot,st,Ue,Rt):Re=pe(ot,Ie.halfCheckedKeys,st,Ue,Rt),Re}},65065:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return b}});function b(Me,ce){return Me[ce]}},34061:function(Bn,rn,ee){"use strict";ee.d(rn,{F:function(){return en},H8:function(){return kt},I8:function(){return ft},km:function(){return Ee},oH:function(){return Ue},w$:function(){return Rt},zn:function(){return st}});var b=ee(43749),Me=ee(77654),ce=ee(85899),et=ee(42244),Pe=ee(11592),pe=ee(2738),be=ee(48736),Ve=ee(65065),Ie=["children"];function ue(Qe,Ae){return"".concat(Qe,"-").concat(Ae)}function $e(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function Ee(Qe,Ae){return Qe!=null?Qe:Ae}function Rt(Qe){var Ae=Qe||{},tt=Ae.title,nt=Ae._title,zt=Ae.key,Ot=Ae.children,ht=tt||"title";return{title:ht,_title:nt||[ht],key:zt||"key",children:Ot||"children"}}function ot(Qe,Ae){var tt=new Map;function nt(zt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(zt||[]).forEach(function(ht){var Ct=ht[Ae.key],De=ht[Ae.children];warning(Ct!=null,"Tree node must have a certain key: [".concat(Ot).concat(Ct,"]"));var ke=String(Ct);warning(!tt.has(ke)||Ct===null||Ct===void 0,"Same 'key' exist in the Tree: ".concat(ke)),tt.set(ke,!0),nt(De,"".concat(Ot).concat(ke," > "))})}nt(Qe)}function st(Qe){function Ae(tt){var nt=(0,Pe.Z)(tt);return nt.map(function(zt){if(!$e(zt))return(0,be.ZP)(!zt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ot=zt.key,ht=zt.props,Ct=ht.children,De=(0,et.Z)(ht,Ie),ke=(0,ce.Z)({key:Ot},De),xe=Ae(Ct);return xe.length&&(ke.children=xe),ke}).filter(function(zt){return zt})}return Ae(Qe)}function Ue(Qe,Ae,tt){var nt=Rt(tt),zt=nt._title,Ot=nt.key,ht=nt.children,Ct=new Set(Ae===!0?[]:Ae),De=[];function ke(xe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return xe.map(function(It,_e){for(var Ye=ue(se?se.pos:"0",_e),Ft=Ee(It[Ot],Ye),Ce,he=0;he1&&arguments[1]!==void 0?arguments[1]:{},tt=Ae.initWrapper,nt=Ae.processEntity,zt=Ae.onProcessFinished,Ot=Ae.externalGetKey,ht=Ae.childrenPropName,Ct=Ae.fieldNames,De=arguments.length>2?arguments[2]:void 0,ke=Ot||De,xe={},se={},It={posEntities:xe,keyEntities:se};return tt&&(It=tt(It)||It),Re(Qe,function(_e){var Ye=_e.node,Ft=_e.index,Ce=_e.pos,he=_e.key,yt=_e.parentPos,Vt=_e.level,Lt=_e.nodes,me={node:Ye,nodes:Lt,index:Ft,key:he,pos:Ce,level:Vt},qe=Ee(he,Ce);xe[Ce]=me,se[qe]=me,me.parent=xe[yt],me.parent&&(me.parent.children=me.parent.children||[],me.parent.children.push(me)),nt&&nt(me,It)},{externalGetKey:ke,childrenPropName:ht,fieldNames:Ct}),zt&&zt(It),It}function kt(Qe,Ae){var tt=Ae.expandedKeys,nt=Ae.selectedKeys,zt=Ae.loadedKeys,Ot=Ae.loadingKeys,ht=Ae.checkedKeys,Ct=Ae.halfCheckedKeys,De=Ae.dragOverNodeKey,ke=Ae.dropPosition,xe=Ae.keyEntities,se=(0,Ve.Z)(xe,Qe),It={eventKey:Qe,expanded:tt.indexOf(Qe)!==-1,selected:nt.indexOf(Qe)!==-1,loaded:zt.indexOf(Qe)!==-1,loading:Ot.indexOf(Qe)!==-1,checked:ht.indexOf(Qe)!==-1,halfChecked:Ct.indexOf(Qe)!==-1,pos:String(se?se.pos:""),dragOver:De===Qe&&ke===0,dragOverGapTop:De===Qe&&ke===-1,dragOverGapBottom:De===Qe&&ke===1};return It}function en(Qe){var Ae=Qe.data,tt=Qe.expanded,nt=Qe.selected,zt=Qe.checked,Ot=Qe.loaded,ht=Qe.loading,Ct=Qe.halfChecked,De=Qe.dragOver,ke=Qe.dragOverGapTop,xe=Qe.dragOverGapBottom,se=Qe.pos,It=Qe.active,_e=Qe.eventKey,Ye=(0,ce.Z)((0,ce.Z)({},Ae),{},{expanded:tt,selected:nt,checked:zt,loaded:Ot,loading:ht,halfChecked:Ct,dragOver:De,dragOverGapTop:ke,dragOverGapBottom:xe,pos:se,active:It,key:_e});return"props"in Ye||Object.defineProperty(Ye,"props",{get:function(){return(0,be.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),Ye}},8224:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Me}});var b=ee(4676);function Me(ce,et,Pe,pe){var be=b.unstable_batchedUpdates?function(Ie){b.unstable_batchedUpdates(Pe,Ie)}:Pe;return ce!=null&&ce.addEventListener&&ce.addEventListener(et,be,pe),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(et,be,pe)}}}},24514:function(Bn,rn,ee){"use strict";ee.d(rn,{G:function(){return et}});var b=ee(47273),Me=function(pe){if((0,b.Z)()&&window.document.documentElement){var be=Array.isArray(pe)?pe:[pe],Ve=window.document.documentElement;return be.some(function(Ie){return Ie in Ve.style})}return!1},ce=function(pe,be){if(!Me(pe))return!1;var Ve=document.createElement("div"),Ie=Ve.style[pe];return Ve.style[pe]=be,Ve.style[pe]!==Ie};function et(Pe,pe){return!Array.isArray(Pe)&&pe!==void 0?ce(Pe,pe):Me(Pe)}},48911:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return $t}});var b=ee(60499),Me=ee(43749),ce=ee(85899),et=ee(18642),Pe=ee(72190),pe=ee(42244),be=ee(92310),Ve=ee.n(be),Ie=ee(29301),ue=ee(70425),$e=ee(34280),Ee=ee(59301),Rt=ee(4676),ot=Ee.forwardRef(function(ae,ne){var te=ae.height,ie=ae.offsetY,de=ae.offsetX,re=ae.children,le=ae.prefixCls,Se=ae.onInnerResize,Ge=ae.innerProps,He=ae.rtl,Le=ae.extra,rt={},ut={display:"flex",flexDirection:"column"};return ie!==void 0&&(rt={height:te,position:"relative",overflow:"hidden"},ut=(0,ce.Z)((0,ce.Z)({},ut),{},(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({transform:"translateY(".concat(ie,"px)")},He?"marginRight":"marginLeft",-de),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:rt},Ee.createElement(Ie.Z,{onResize:function(Ne){var Be=Ne.offsetHeight;Be&&Se&&Se()}},Ee.createElement("div",(0,b.Z)({style:ut,className:Ve()((0,et.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},Ge),re,Le)))});ot.displayName="Filler";var st=ot;function Ue(ae){var ne=ae.children,te=ae.setRef,ie=Ee.useCallback(function(de){te(de)},[]);return Ee.cloneElement(ne,{ref:ie})}function Re(ae,ne,te,ie,de,re,le,Se){var Ge=Se.getKey;return ae.slice(ne,te+1).map(function(He,Le){var rt=ne+Le,ut=le(He,rt,{style:{width:ie},offsetX:de}),At=Ge(He);return Ee.createElement(Ue,{key:At,setRef:function(Be){return re(He,Be)}},ut)})}function ft(ae,ne,te,ie){var de=te-ae,re=ne-te,le=Math.min(de,re)*2;if(ie<=le){var Se=Math.floor(ie/2);return ie%2?te+Se+1:te-Se}return de>re?te-(ie-re):te+(ie-de)}function kt(ae,ne,te){var ie=ae.length,de=ne.length,re,le;if(ie===0&&de===0)return null;ie2&&arguments[2]!==void 0?arguments[2]:!1,rt=Ge?He<0&&Se.current.left||He>0&&Se.current.right:He<0&&Se.current.top||He>0&&Se.current.bottom;return Le&&rt?(clearTimeout(re.current),de.current=!1):(!rt||de.current)&&le(),!de.current&&rt}};function zt(ae,ne,te,ie,de,re,le){var Se=(0,Ee.useRef)(0),Ge=(0,Ee.useRef)(null),He=(0,Ee.useRef)(null),Le=(0,Ee.useRef)(!1),rt=nt(ne,te,ie,de);function ut(mn,vn){if(Qe.Z.cancel(Ge.current),!rt(!1,vn)){var jt=mn;if(!jt._virtualHandled)jt._virtualHandled=!0;else return;Se.current+=vn,He.current=vn,tt||jt.preventDefault(),Ge.current=(0,Qe.Z)(function(){var Cn=Le.current?10:1;le(Se.current*Cn,!1),Se.current=0})}}function At(mn,vn){le(vn,!0),tt||mn.preventDefault()}var Ne=(0,Ee.useRef)(null),Be=(0,Ee.useRef)(null);function Ut(mn){if(ae){Qe.Z.cancel(Be.current),Be.current=(0,Qe.Z)(function(){Ne.current=null},2);var vn=mn.deltaX,jt=mn.deltaY,Cn=mn.shiftKey,on=vn,Je=jt;(Ne.current==="sx"||!Ne.current&&Cn&&jt&&!vn)&&(on=jt,Je=0,Ne.current="sx");var Tt=Math.abs(on),an=Math.abs(Je);Ne.current===null&&(Ne.current=re&&Tt>an?"x":"y"),Ne.current==="y"?ut(mn,Je):At(mn,on)}}function Zt(mn){ae&&(Le.current=mn.detail===He.current)}return[Ut,Zt]}function Ot(ae,ne,te,ie){var de=Ee.useMemo(function(){return[new Map,[]]},[ae,te.id,ie]),re=(0,Pe.Z)(de,2),le=re[0],Se=re[1],Ge=function(Le){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le,ut=le.get(Le),At=le.get(rt);if(ut===void 0||At===void 0)for(var Ne=ae.length,Be=Se.length;Be0&&arguments[0]!==void 0?arguments[0]:!1;Le();var Ne=function(){var Zt=!1;Se.current.forEach(function(mn,vn){if(mn&&mn.offsetParent){var jt=mn.offsetHeight,Cn=getComputedStyle(mn),on=Cn.marginTop,Je=Cn.marginBottom,Tt=xe(on),an=xe(Je),_t=jt+Tt+an;Ge.current.get(vn)!==_t&&(Ge.current.set(vn,_t),Zt=!0)}}),Zt&&le(function(mn){return mn+1})};if(At)Ne();else{He.current+=1;var Be=He.current;Promise.resolve().then(function(){Be===He.current&&Ne()})}}function ut(At,Ne){var Be=ae(At),Ut=Se.current.get(Be);Ne?(Se.current.set(Be,Ne),rt()):Se.current.delete(Be),!Ut!=!Ne&&(Ne?ne==null||ne(At):te==null||te(At))}return(0,Ee.useEffect)(function(){return Le},[]),[ut,rt,Ge.current,re]}var It=14/15;function _e(ae,ne,te){var ie=(0,Ee.useRef)(!1),de=(0,Ee.useRef)(0),re=(0,Ee.useRef)(0),le=(0,Ee.useRef)(null),Se=(0,Ee.useRef)(null),Ge,He=function(At){if(ie.current){var Ne=Math.ceil(At.touches[0].pageX),Be=Math.ceil(At.touches[0].pageY),Ut=de.current-Ne,Zt=re.current-Be,mn=Math.abs(Ut)>Math.abs(Zt);mn?de.current=Ne:re.current=Be;var vn=te(mn,mn?Ut:Zt,!1,At);vn&&At.preventDefault(),clearInterval(Se.current),vn&&(Se.current=setInterval(function(){mn?Ut*=It:Zt*=It;var jt=Math.floor(mn?Ut:Zt);(!te(mn,jt,!0)||Math.abs(jt)<=.1)&&clearInterval(Se.current)},16))}},Le=function(){ie.current=!1,Ge()},rt=function(At){Ge(),At.touches.length===1&&!ie.current&&(ie.current=!0,de.current=Math.ceil(At.touches[0].pageX),re.current=Math.ceil(At.touches[0].pageY),le.current=At.target,le.current.addEventListener("touchmove",He,{passive:!1}),le.current.addEventListener("touchend",Le,{passive:!0}))};Ge=function(){le.current&&(le.current.removeEventListener("touchmove",He),le.current.removeEventListener("touchend",Le))},(0,$e.Z)(function(){return ae&&ne.current.addEventListener("touchstart",rt,{passive:!0}),function(){var ut;(ut=ne.current)===null||ut===void 0||ut.removeEventListener("touchstart",rt),Ge(),clearInterval(Se.current)}},[ae])}function Ye(ae){return Math.floor(Math.pow(ae,.5))}function Ft(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Ce(ae,ne,te){Ee.useEffect(function(){var ie=ne.current;if(ae&&ie){var de=!1,re,le,Se=function(){Qe.Z.cancel(re)},Ge=function ut(){Se(),re=(0,Qe.Z)(function(){te(le),ut()})},He=function(){de=!1,Se()},Le=function(At){if(!(At.target.draggable||At.button!==0)){var Ne=At;Ne._virtualHandled||(Ne._virtualHandled=!0,de=!0)}},rt=function(At){if(de){var Ne=Ft(At,!1),Be=ie.getBoundingClientRect(),Ut=Be.top,Zt=Be.bottom;if(Ne<=Ut){var mn=Ut-Ne;le=-Ye(mn),Ge()}else if(Ne>=Zt){var vn=Ne-Zt;le=Ye(vn),Ge()}else Se()}};return ie.addEventListener("mousedown",Le),ie.ownerDocument.addEventListener("mouseup",He),ie.ownerDocument.addEventListener("mousemove",rt),ie.ownerDocument.addEventListener("dragend",He),function(){ie.removeEventListener("mousedown",Le),ie.ownerDocument.removeEventListener("mouseup",He),ie.ownerDocument.removeEventListener("mousemove",rt),ie.ownerDocument.removeEventListener("dragend",He),Se()}}},[ae])}var he=10;function yt(ae,ne,te,ie,de,re,le,Se){var Ge=Ee.useRef(),He=Ee.useState(null),Le=(0,Pe.Z)(He,2),rt=Le[0],ut=Le[1];return(0,$e.Z)(function(){if(rt&&rt.times=0;nn-=1){var On=de(ne[nn]),_n=te.get(On);if(_n===void 0){mn=!0;break}if(Kt-=_n,Kt<=0)break}switch(Cn){case"top":jt=Je-Ut;break;case"bottom":jt=Tt-Zt+Ut;break;default:{var nr=ae.current.scrollTop,ir=nr+Zt;Jeir&&(vn="bottom")}}jt!==null&&le(jt),jt!==rt.lastTop&&(mn=!0)}mn&&ut((0,ce.Z)((0,ce.Z)({},rt),{},{times:rt.times+1,targetAlign:vn,lastTop:jt}))}},[rt,ae.current]),function(At){if(At==null){Se();return}if(Qe.Z.cancel(Ge.current),typeof At=="number")le(At);else if(At&&(0,Me.Z)(At)==="object"){var Ne,Be=At.align;"index"in At?Ne=At.index:Ne=ne.findIndex(function(mn){return de(mn)===At.key});var Ut=At.offset,Zt=Ut===void 0?0:Ut;ut({times:0,index:Ne,offset:Zt,originAlign:Be})}}}var Vt=Ee.forwardRef(function(ae,ne){var te=ae.prefixCls,ie=ae.rtl,de=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,Se=ae.onStopMove,Ge=ae.onScroll,He=ae.horizontal,Le=ae.spinSize,rt=ae.containerSize,ut=ae.style,At=ae.thumbStyle,Ne=ae.showScrollBar,Be=Ee.useState(!1),Ut=(0,Pe.Z)(Be,2),Zt=Ut[0],mn=Ut[1],vn=Ee.useState(null),jt=(0,Pe.Z)(vn,2),Cn=jt[0],on=jt[1],Je=Ee.useState(null),Tt=(0,Pe.Z)(Je,2),an=Tt[0],_t=Tt[1],je=!ie,Pt=Ee.useRef(),Kt=Ee.useRef(),nn=Ee.useState(Ne),On=(0,Pe.Z)(nn,2),_n=On[0],nr=On[1],ir=Ee.useRef(),Zn=function(){Ne===!0||Ne===!1||(clearTimeout(ir.current),nr(!0),ir.current=setTimeout(function(){nr(!1)},3e3))},er=re-rt||0,kn=rt-Le||0,cn=Ee.useMemo(function(){if(de===0||er===0)return 0;var gn=de/er;return gn*kn},[de,er,kn]),bn=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},St=Ee.useRef({top:cn,dragging:Zt,pageY:Cn,startTop:an});St.current={top:cn,dragging:Zt,pageY:Cn,startTop:an};var Et=function(Nn){mn(!0),on(Ft(Nn,He)),_t(St.current.top),le(),Nn.stopPropagation(),Nn.preventDefault()};Ee.useEffect(function(){var gn=function(Qt){Qt.preventDefault()},Nn=Pt.current,An=Kt.current;return Nn.addEventListener("touchstart",gn,{passive:!1}),An.addEventListener("touchstart",Et,{passive:!1}),function(){Nn.removeEventListener("touchstart",gn),An.removeEventListener("touchstart",Et)}},[]);var sn=Ee.useRef();sn.current=er;var Pn=Ee.useRef();Pn.current=kn,Ee.useEffect(function(){if(Zt){var gn,Nn=function(Qt){var Yt=St.current,xn=Yt.dragging,Vn=Yt.pageY,jn=Yt.startTop;Qe.Z.cancel(gn);var vt=Pt.current.getBoundingClientRect(),Dt=rt/(He?vt.width:vt.height);if(xn){var Te=(Ft(Qt,He)-Vn)*Dt,gt=jn;!je&&He?gt-=Te:gt+=Te;var Ke=sn.current,wt=Pn.current,Ht=wt?gt/wt:0,Hn=Math.ceil(Ht*Ke);Hn=Math.max(Hn,0),Hn=Math.min(Hn,Ke),gn=(0,Qe.Z)(function(){Ge(Hn,He)})}},An=function(){mn(!1),Se()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",An,{passive:!0}),window.addEventListener("touchend",An,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",An),window.removeEventListener("touchend",An),Qe.Z.cancel(gn)}}},[Zt]),Ee.useEffect(function(){return Zn(),function(){clearTimeout(ir.current)}},[de]),Ee.useImperativeHandle(ne,function(){return{delayHidden:Zn}});var Tn="".concat(te,"-scrollbar"),Jt={position:"absolute",visibility:_n?null:"hidden"},wn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return He?(Object.assign(Jt,{height:8,left:0,right:0,bottom:0}),Object.assign(wn,(0,et.Z)({height:"100%",width:Le},je?"left":"right",cn))):(Object.assign(Jt,(0,et.Z)({width:8,top:0,bottom:0},je?"right":"left",0)),Object.assign(wn,{width:"100%",height:Le,top:cn})),Ee.createElement("div",{ref:Pt,className:Ve()(Tn,(0,et.Z)((0,et.Z)((0,et.Z)({},"".concat(Tn,"-horizontal"),He),"".concat(Tn,"-vertical"),!He),"".concat(Tn,"-visible"),_n)),style:(0,ce.Z)((0,ce.Z)({},Jt),ut),onMouseDown:bn,onMouseMove:Zn},Ee.createElement("div",{ref:Kt,className:Ve()("".concat(Tn,"-thumb"),(0,et.Z)({},"".concat(Tn,"-thumb-moving"),Zt)),style:(0,ce.Z)((0,ce.Z)({},wn),At),onMouseDown:Et}))}),Lt=Vt,me=20;function qe(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/ne*ae;return isNaN(te)&&(te=0),te=Math.max(te,me),Math.floor(te)}var it=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xt=[],Xe={overflowY:"auto",overflowAnchor:"none"};function Gt(ae,ne){var te=ae.prefixCls,ie=te===void 0?"rc-virtual-list":te,de=ae.className,re=ae.height,le=ae.itemHeight,Se=ae.fullHeight,Ge=Se===void 0?!0:Se,He=ae.style,Le=ae.data,rt=ae.children,ut=ae.itemKey,At=ae.virtual,Ne=ae.direction,Be=ae.scrollWidth,Ut=ae.component,Zt=Ut===void 0?"div":Ut,mn=ae.onScroll,vn=ae.onVirtualScroll,jt=ae.onVisibleChange,Cn=ae.innerProps,on=ae.extraRender,Je=ae.styles,Tt=ae.showScrollBar,an=Tt===void 0?"optional":Tt,_t=(0,pe.Z)(ae,it),je=Ee.useCallback(function(at){return typeof ut=="function"?ut(at):at==null?void 0:at[ut]},[ut]),Pt=se(je,null,null),Kt=(0,Pe.Z)(Pt,4),nn=Kt[0],On=Kt[1],_n=Kt[2],nr=Kt[3],ir=!!(At!==!1&&re&&le),Zn=Ee.useMemo(function(){return Object.values(_n.maps).reduce(function(at,Mt){return at+Mt},0)},[_n.id,_n.maps]),er=ir&&Le&&(Math.max(le*Le.length,Zn)>re||!!Be),kn=Ne==="rtl",cn=Ve()(ie,(0,et.Z)({},"".concat(ie,"-rtl"),kn),de),bn=Le||Xt,St=(0,Ee.useRef)(),Et=(0,Ee.useRef)(),sn=(0,Ee.useRef)(),Pn=(0,Ee.useState)(0),Tn=(0,Pe.Z)(Pn,2),Jt=Tn[0],wn=Tn[1],gn=(0,Ee.useState)(0),Nn=(0,Pe.Z)(gn,2),An=Nn[0],rr=Nn[1],Qt=(0,Ee.useState)(!1),Yt=(0,Pe.Z)(Qt,2),xn=Yt[0],Vn=Yt[1],jn=function(){Vn(!0)},vt=function(){Vn(!1)},Dt={getKey:je};function Te(at){wn(function(Mt){var Bt;typeof at=="function"?Bt=at(Mt):Bt=at;var Wt=br(Bt);return St.current.scrollTop=Wt,Wt})}var gt=(0,Ee.useRef)({start:0,end:bn.length}),Ke=(0,Ee.useRef)(),wt=en(bn,je),Ht=(0,Pe.Z)(wt,1),Hn=Ht[0];Ke.current=Hn;var Jn=Ee.useMemo(function(){if(!ir)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!er){var at;return{scrollHeight:((at=Et.current)===null||at===void 0?void 0:at.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var Mt=0,Bt,Wt,En,Rn=bn.length,hn=0;hn=Jt&&Bt===void 0&&(Bt=hn,Wt=Mt),sr>Jt+re&&En===void 0&&(En=hn),Mt=sr}return Bt===void 0&&(Bt=0,Wt=0,En=Math.ceil(re/le)),En===void 0&&(En=bn.length-1),En=Math.min(En+1,bn.length-1),{scrollHeight:Mt,start:Bt,end:En,offset:Wt}},[er,ir,Jt,bn,nr,re]),lt=Jn.scrollHeight,mt=Jn.start,pt=Jn.end,xt=Jn.offset;gt.current.start=mt,gt.current.end=pt,Ee.useLayoutEffect(function(){var at=_n.getRecord();if(at.size===1){var Mt=Array.from(at.keys())[0],Bt=at.get(Mt),Wt=bn[mt];if(Wt&&Bt===void 0){var En=je(Wt);if(En===Mt){var Rn=_n.get(Mt),hn=Rn-le;Te(function(Ln){return Ln+hn})}}}_n.resetRecord()},[lt]);var fn=Ee.useState({width:0,height:re}),In=(0,Pe.Z)(fn,2),pn=In[0],Sn=In[1],$n=function(Mt){Sn({width:Mt.offsetWidth,height:Mt.offsetHeight})},qn=(0,Ee.useRef)(),ur=(0,Ee.useRef)(),tr=Ee.useMemo(function(){return qe(pn.width,Be)},[pn.width,Be]),Xn=Ee.useMemo(function(){return qe(pn.height,lt)},[pn.height,lt]),or=lt-re,dr=(0,Ee.useRef)(or);dr.current=or;function br(at){var Mt=at;return Number.isNaN(dr.current)||(Mt=Math.min(Mt,dr.current)),Mt=Math.max(Mt,0),Mt}var vr=Jt<=0,Tr=Jt>=or,Br=An<=0,cr=An>=Be,Er=nt(vr,Tr,Br,cr),Wr=function(){return{x:kn?-An:An,y:Jt}},Rr=(0,Ee.useRef)(Wr()),Sr=(0,ue.zX)(function(at){if(vn){var Mt=(0,ce.Z)((0,ce.Z)({},Wr()),at);(Rr.current.x!==Mt.x||Rr.current.y!==Mt.y)&&(vn(Mt),Rr.current=Mt)}});function Fr(at,Mt){var Bt=at;Mt?((0,Rt.flushSync)(function(){rr(Bt)}),Sr()):Te(Bt)}function $r(at){var Mt=at.currentTarget.scrollTop;Mt!==Jt&&Te(Mt),mn==null||mn(at),Sr()}var wr=function(Mt){var Bt=Mt,Wt=Be?Be-pn.width:0;return Bt=Math.max(Bt,0),Bt=Math.min(Bt,Wt),Bt},gr=(0,ue.zX)(function(at,Mt){Mt?((0,Rt.flushSync)(function(){rr(function(Bt){var Wt=Bt+(kn?-at:at);return wr(Wt)})}),Sr()):Te(function(Bt){var Wt=Bt+at;return Wt})}),yr=zt(ir,vr,Tr,Br,cr,!!Be,gr),Xr=(0,Pe.Z)(yr,2),go=Xr[0],So=Xr[1];_e(ir,St,function(at,Mt,Bt,Wt){var En=Wt;return Er(at,Mt,Bt)?!1:!En||!En._virtualHandled?(En&&(En._virtualHandled=!0),go({preventDefault:function(){},deltaX:at?Mt:0,deltaY:at?0:Mt}),!0):!1}),Ce(er,St,function(at){Te(function(Mt){return Mt+at})}),(0,$e.Z)(function(){function at(Bt){var Wt=vr&&Bt.detail<0,En=Tr&&Bt.detail>0;ir&&!Wt&&!En&&Bt.preventDefault()}var Mt=St.current;return Mt.addEventListener("wheel",go,{passive:!1}),Mt.addEventListener("DOMMouseScroll",So,{passive:!0}),Mt.addEventListener("MozMousePixelScroll",at,{passive:!1}),function(){Mt.removeEventListener("wheel",go),Mt.removeEventListener("DOMMouseScroll",So),Mt.removeEventListener("MozMousePixelScroll",at)}},[ir,vr,Tr]),(0,$e.Z)(function(){if(Be){var at=wr(An);rr(at),Sr({x:at})}},[pn.width,Be]);var to=function(){var Mt,Bt;(Mt=qn.current)===null||Mt===void 0||Mt.delayHidden(),(Bt=ur.current)===null||Bt===void 0||Bt.delayHidden()},io=yt(St,bn,_n,le,je,function(){return On(!0)},Te,to);Ee.useImperativeHandle(ne,function(){return{nativeElement:sn.current,getScrollInfo:Wr,scrollTo:function(Mt){function Bt(Wt){return Wt&&(0,Me.Z)(Wt)==="object"&&("left"in Wt||"top"in Wt)}Bt(Mt)?(Mt.left!==void 0&&rr(wr(Mt.left)),io(Mt.top)):io(Mt)}}}),(0,$e.Z)(function(){if(jt){var at=bn.slice(mt,pt+1);jt(at,bn)}},[mt,pt,bn]);var Oe=Ot(bn,je,_n,le),We=on==null?void 0:on({start:mt,end:pt,virtual:er,offsetX:An,offsetY:xt,rtl:kn,getSize:Oe}),bt=Re(bn,mt,pt,Be,An,nn,rt,Dt),Ze=null;re&&(Ze=(0,ce.Z)((0,et.Z)({},Ge?"height":"maxHeight",re),Xe),ir&&(Ze.overflowY="hidden",Be&&(Ze.overflowX="hidden"),xn&&(Ze.pointerEvents="none")));var dt={};return kn&&(dt.dir="rtl"),Ee.createElement("div",(0,b.Z)({ref:sn,style:(0,ce.Z)((0,ce.Z)({},He),{},{position:"relative"}),className:cn},dt,_t),Ee.createElement(Ie.Z,{onResize:$n},Ee.createElement(Zt,{className:"".concat(ie,"-holder"),style:Ze,ref:St,onScroll:$r,onMouseEnter:to},Ee.createElement(st,{prefixCls:ie,height:lt,offsetX:An,offsetY:xt,scrollWidth:Be,onInnerResize:On,ref:Et,innerProps:Cn,rtl:kn,extra:We},bt))),er&<>re&&Ee.createElement(Lt,{ref:qn,prefixCls:ie,scrollOffset:Jt,scrollRange:lt,rtl:kn,onScroll:Fr,onStartMove:jn,onStopMove:vt,spinSize:Xn,containerSize:pn.height,style:Je==null?void 0:Je.verticalScrollBar,thumbStyle:Je==null?void 0:Je.verticalScrollBarThumb,showScrollBar:an}),er&&Be>pn.width&&Ee.createElement(Lt,{ref:ur,prefixCls:ie,scrollOffset:An,scrollRange:Be,rtl:kn,onScroll:Fr,onStartMove:jn,onStopMove:vt,spinSize:tr,containerSize:pn.width,horizontal:!0,style:Je==null?void 0:Je.horizontalScrollBar,thumbStyle:Je==null?void 0:Je.horizontalScrollBarThumb,showScrollBar:an}))}var Fe=Ee.forwardRef(Gt);Fe.displayName="List";var dn=Fe,$t=dn},4977:function(Bn){"use strict";Bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},72054:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Me}});var b=ee(68688);function Me(ce,et){var Pe=typeof Symbol!="undefined"&&ce[Symbol.iterator]||ce["@@iterator"];if(!Pe){if(Array.isArray(ce)||(Pe=(0,b.Z)(ce))||et&&ce&&typeof ce.length=="number"){Pe&&(ce=Pe);var pe=0,be=function(){};return{s:be,n:function(){return pe>=ce.length?{done:!0}:{done:!1,value:ce[pe++]}},e:function(Ee){throw Ee},f:be}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve,Ie=!0,ue=!1;return{s:function(){Pe=Pe.call(ce)},n:function(){var Ee=Pe.next();return Ie=Ee.done,Ee},e:function(Ee){ue=!0,Ve=Ee},f:function(){try{Ie||Pe.return==null||Pe.return()}finally{if(ue)throw Ve}}}}},16722:function(Bn,rn,ee){"use strict";ee.d(rn,{Z:function(){return Ve}});const b=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,Me=(Ie,ue)=>(!ue||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ce=(Ie,ue)=>{if(Ie.clientHeight{const Rt=(ot=>{if(!ot.ownerDocument||!ot.ownerDocument.defaultView)return null;try{return ot.ownerDocument.defaultView.frameElement}catch(st){return null}})(Ee);return!!Rt&&(Rt.clientHeightotue||ot>Ie&&st=ue&&Ue>=$e?ot-Ie-Ee:st>ue&&Ue<$e||ot$e?st-ue+Rt:0,Pe=Ie=>{const ue=Ie.parentElement;return ue==null?Ie.getRootNode().host||null:ue},pe=(Ie,ue)=>{var $e,Ee,Rt,ot;if(typeof document=="undefined")return[];const{scrollMode:st,block:Ue,inline:Re,boundary:ft,skipOverflowHiddenElements:kt}=ue,en=typeof ft=="function"?ft:Lt=>Lt!==ft;if(!b(Ie))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,Ae=[];let tt=Ie;for(;b(tt)&&en(tt);){if(tt=Pe(tt),tt===Qe){Ae.push(tt);break}tt!=null&&tt===document.body&&ce(tt)&&!ce(document.documentElement)||tt!=null&&ce(tt,kt)&&Ae.push(tt)}const nt=(Ee=($e=window.visualViewport)==null?void 0:$e.width)!=null?Ee:innerWidth,zt=(ot=(Rt=window.visualViewport)==null?void 0:Rt.height)!=null?ot:innerHeight,{scrollX:Ot,scrollY:ht}=window,{height:Ct,width:De,top:ke,right:xe,bottom:se,left:It}=Ie.getBoundingClientRect(),{top:_e,right:Ye,bottom:Ft,left:Ce}=(Lt=>{const me=window.getComputedStyle(Lt);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(Ie);let he=Ue==="start"||Ue==="nearest"?ke-_e:Ue==="end"?se+Ft:ke+Ct/2-_e+Ft,yt=Re==="center"?It+De/2-Ce+Ye:Re==="end"?xe+Ye:It-Ce;const Vt=[];for(let Lt=0;Lt=0&&It>=0&&se<=zt&&xe<=nt&&(me===Qe&&!ce(me)||ke>=Xt&&se<=Gt&&It>=Fe&&xe<=Xe))return Vt;const dn=getComputedStyle(me),$t=parseInt(dn.borderLeftWidth,10),ae=parseInt(dn.borderTopWidth,10),ne=parseInt(dn.borderRightWidth,10),te=parseInt(dn.borderBottomWidth,10);let ie=0,de=0;const re="offsetWidth"in me?me.offsetWidth-me.clientWidth-$t-ne:0,le="offsetHeight"in me?me.offsetHeight-me.clientHeight-ae-te:0,Se="offsetWidth"in me?me.offsetWidth===0?0:it/me.offsetWidth:0,Ge="offsetHeight"in me?me.offsetHeight===0?0:qe/me.offsetHeight:0;if(Qe===me)ie=Ue==="start"?he:Ue==="end"?he-zt:Ue==="nearest"?et(ht,ht+zt,zt,ae,te,ht+he,ht+he+Ct,Ct):he-zt/2,de=Re==="start"?yt:Re==="center"?yt-nt/2:Re==="end"?yt-nt:et(Ot,Ot+nt,nt,$t,ne,Ot+yt,Ot+yt+De,De),ie=Math.max(0,ie+ht),de=Math.max(0,de+Ot);else{ie=Ue==="start"?he-Xt-ae:Ue==="end"?he-Gt+te+le:Ue==="nearest"?et(Xt,Gt,qe,ae,te+le,he,he+Ct,Ct):he-(Xt+qe/2)+le/2,de=Re==="start"?yt-Fe-$t:Re==="center"?yt-(Fe+it/2)+re/2:Re==="end"?yt-Xe+ne+re:et(Fe,Xe,it,$t,ne+re,yt,yt+De,De);const{scrollLeft:He,scrollTop:Le}=me;ie=Ge===0?0:Math.max(0,Math.min(Le+ie/Ge,me.scrollHeight-qe/Ge+le)),de=Se===0?0:Math.max(0,Math.min(He+de/Se,me.scrollWidth-it/Se+re)),he+=Le-ie,yt+=He-de}Vt.push({el:me,top:ie,left:de})}return Vt},be=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(ue=>ue===Object(ue)&&Object.keys(ue).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Ve(Ie,ue){if(!Ie.isConnected||!(Rt=>{let ot=Rt;for(;ot&&ot.parentNode;){if(ot.parentNode===document)return!0;ot=ot.parentNode instanceof ShadowRoot?ot.parentNode.host:ot.parentNode}return!1})(Ie))return;const $e=(Rt=>{const ot=window.getComputedStyle(Rt);return{top:parseFloat(ot.scrollMarginTop)||0,right:parseFloat(ot.scrollMarginRight)||0,bottom:parseFloat(ot.scrollMarginBottom)||0,left:parseFloat(ot.scrollMarginLeft)||0}})(Ie);if((Rt=>typeof Rt=="object"&&typeof Rt.behavior=="function")(ue))return ue.behavior(pe(Ie,ue));const Ee=typeof ue=="boolean"||ue==null?void 0:ue.behavior;for(const{el:Rt,top:ot,left:st}of pe(Ie,be(ue))){const Ue=ot-$e.top+$e.bottom,Re=st-$e.left+$e.right;Rt.scroll({top:Ue,left:Re,behavior:Ee})}}}}]); }());