(self.webpackChunk=self.webpackChunk||[]).push([[5724],{89489:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},59477:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},40001:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},26227:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},49198:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},41464:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},73331:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},15277:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},52671:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},8657:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},56082:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},33853:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},15075:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},43531:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},61485:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},47472:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},87395:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(60499),Ye=Ce(59301),Me={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"},pe=Me,Oe=Ce(7657),ve=function(le,ae){return Ye.createElement(Oe.Z,(0,te.Z)({},le,{ref:ae,icon:pe}))},ue=Ye.forwardRef(ve),fe=ue},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Yn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(Yn,en){"use strict";en.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},31355:function(Yn,en){"use strict";en.Z={ChangeBut:"ChangeBut___VMCUO",DefaultDiv:"DefaultDiv___diOnG",DefaultDivItemActive:"DefaultDivItemActive___p8PnJ",DefaultDivItem:"DefaultDivItem___BkCuW",TableStyle:"TableStyle___DOsaq",ProgressStyle:"ProgressStyle___Mbw5z",ProgressStyle2:"ProgressStyle2___w9DG9",RankingDiv:"RankingDiv___RCXlB",NavBgTwo:"NavBgTwo___KU7t1",NavBgTwoActive:"NavBgTwoActive___hkC0h",NavBgItem:"NavBgItem___TBfQf",InputStyle:"InputStyle___BAYzG",TableMyHeader:"TableMyHeader___nZel6",TableMyDiv:"TableMyDiv___F4fkZ",CollapseStyle:"CollapseStyle___VkVMr",Item:"Item___pqPqX",SituationItem:"SituationItem___MzguO",waveDom:"waveDom___N1Yew",wave:"wave___UTqsO",select:"select___Yd9qe",selectWrap:"selectWrap___ddND4",masteryList:"masteryList___jQNpd",row:"row___h3q8Q",masteryHead:"masteryHead___B6Wcy",masteryBody:"masteryBody___DZSiT",dot:"dot___ZZ043"}},59435:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(he,le,ae)=>le in he?Ye(he,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):he[le]=ae,ue=(he,le)=>{for(var ae in le||(le={}))pe.call(le,ae)&&ve(he,ae,le[ae]);if(Me)for(var ae of Me(le))Oe.call(le,ae)&&ve(he,ae,le[ae]);return he};const fe=he=>React.createElement("svg",ue({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),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"}));en.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},77264:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(he,le,ae)=>le in he?Ye(he,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):he[le]=ae,ue=(he,le)=>{for(var ae in le||(le={}))pe.call(le,ae)&&ve(he,ae,le[ae]);if(Me)for(var ae of Me(le))Oe.call(le,ae)&&ve(he,ae,le[ae]);return he};const fe=he=>React.createElement("svg",ue({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),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"}));en.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 Yn={},en="5.0",Ce={},te=null,Ye=!1,Me=!1,pe=null,Oe=!1,ve=null,ue=null,fe=0;fe4?parseFloat(Qe):5};Yn.setHTML5Codebase=function(Qe,rt){ue=Qe,$e(Qe,rt)},Yn.setJavaCodebase=Yn.setJavaCodebaseVersion=Yn.isCompiledInstalled=Yn.setPreCompiledScriptPath=Yn.setPreCompiledResourcePath=function(){},Yn.setHTML5CodebaseVersion=function(Qe,rt){var pt=parseFloat(Qe);if(pt!==NaN&&pt<5){console.log("The GeoGebra HTML5 codebase version "+pt+" is deprecated. Using version latest instead.");return}ve=Qe,Re(Qe,rt)},Yn.getHTML5CodebaseVersion=function(){return E},Yn.getParameters=function(){return Ce},Yn.setFontsCSSURL=function(Qe){de=Qe},Yn.setGiacJSURL=function(Qe){},Yn.setJNLPFile=function(Qe){le=Qe},Yn.setJNLPBaseDir=function(Qe){},Yn.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",pt=Ce.id,At,gt=!1,Ft=0;Ft=5)return!0;var Qe=Yn.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},Yn.startAnimation=function(){var Qe=Yn.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},Yn.stopAnimation=function(){var Qe=Yn.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},Yn.getAppletObject=function(){var Qe=Ce.id!==void 0?Ce.id:"ggbApplet";return window[Qe]},Yn.resize=function(){};var be=function(Qe,rt,pt){var At=document.createElement("param");At.setAttribute("name",rt),At.setAttribute("value",pt),Qe.appendChild(At)},Se=function(Qe){return Qe&&Qe!=="false"},Be=function(Qe,rt,pt){x(E)<=4.2&&(pt=!0);var At=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==E||ggbHTML5LoadedCodebaseIsWebSimple&&!z)&&(At=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var gt=document.createElement("div");gt.classList.add("appletParameters","notranslate");var Ft=rt.width,Ct=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(x(E)<=4.4)Se(rt.showToolBar)&&(rt.height-=7),Se(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Se(rt.showToolBar)&&(rt.width=605,Ft=605);else{var Yt=100;(Se(rt.showToolBar)||Se(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),Yt=Se(rt.showMenuBar)?245:155),Ft=5?(rt.appletOnLoad=function(mt){var Lt=Qe.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Xe(mt)},Le||Fe.appendChild(Ze)):gt.appendChild(Ze),Fe.appendChild(gt),Le||Qe.appendChild(Fe),setTimeout(function(){Yn.resize()},1)}else{var et=document.createElement("div");et.className="applet_scaler",et.style.position="relative",et.style.display="block",et.appendChild(gt),Qe.appendChild(et),rt.appletOnLoad=function(mt){Yn.resize(),Xe(mt)}}function He(mt,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,Lt.appletOnLoad):renderGGBElement(mt),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function We(mt,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ft){He(ft.article,ft.params)}),html5AppletsToProcess=null)},x(E)<5&&(mt.className+=" geogebraweb")):He(mt,Lt)}if(At){scriptLoadStarted=!0;for(var tt=0;tt0?(zt.remove(),Fe.attr("id","fullscreencontent").show(),jQuery(Xe).append(Fe),window.dispatchEvent(new Event("resize"))):Be(zt,rt,!1),window.GGBT_wsf_view.launchFullScreen(Xe)}else me=At,Be(Qe,rt,!1);if(!window.GGBT_wsf_view)for(Ct=0;CtQe/4*3&&(zt=Qe/4*3),Xe=zt/5.8,Yt.setAttribute("src",oe),Yt.setAttribute("width",zt),Yt.setAttribute("height",Xe);var Fe=(Qe-zt)/2,Le=(rt-Xe)/2;Yt.style.left=Fe+"px",Yt.style.top=Le+"px",gt.appendChild(Yt)}}return gt.appendChild(Ct),gt},Ke=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(Qe,rt){if(E=Qe,rt){$e(E,!0);return}var pt=!Ye;if(pt){var At=x(E);!isNaN(At)&&At<4.4&&(pt=!1)}var gt,Ft;window.location.protocol.substr(0,4)==="http"?gt=window.location.protocol:gt="http:";var Ct=E.indexOf("//");Ct>0?Ft=E:Ct===0?Ft=gt+E:Ft="https://www.geogebra.org/apps/5.2.814.0/";for(var Yt in Ne)if(E.slice(Ne[Yt].length*-1)===Ne[Yt]||E.slice((Ne[Yt].length+1)*-1)===Ne[Yt]+"/"){$e(Ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&pt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Se(Ce.showToolBar)&&!Se(Ce.showMenuBar)&&!Se(Ce.showAlgebraInput)&&!Se(Ce.enableRightClick)&&(!Ce.appName||Ce.appName=="classic")?Ft+="webSimple/":Ft+="web3d/",$e(Ft,!1)},$e=function(Qe,rt){if(Qe.requirejs){ae=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),ae=Qe,rt===null&&(rt=Qe.indexOf("http")===-1),ie=rt,b="web.nocache.js",z=!1;var pt=ae.split("/");pt.length>1&&(!rt&&pt[pt.length-2]==="webSimple"?(b="webSimple.nocache.js",z=!0):Ne.indexOf(pt[pt.length-2])>=0&&(b=pt[pt.length-2]+".nocache.js")),pt=Qe.split("/"),E=pt[pt.length-3],E.substr(0,4)==="test"?E=E.substr(4,1)+"."+E.substr(5,1):(E.substr(0,3)==="war"||E.substr(0,4)==="beta")&&(E="5.0");var At=parseFloat(E);At!==NaN&&At<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+At+" is deprecated. Using version latest instead."),Re("5.0",rt))},nt=function(Qe,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(Qe)};Ce.material_id!==void 0?ge(ut):ut();function ut(){var Qe=en;ve!==null?Qe=ve:parseFloat(Qe)<5&&(Qe="5.0"),Re(Qe,!1),ue!==null&&$e(ue,ie),Oe=!0}return Yn},GGBAppletUtils=function(){"use strict";function Yn(){return window.GGBT_wsf_edit!==void 0}function en(Oe,ve){ve!=1?(Oe.style.transformOrigin="0% 0% 0px",Oe.style.webkitTransformOrigin="0% 0% 0px",Oe.style.transform="scale("+ve+","+ve+")",Oe.style.webkitTransform="scale("+ve+","+ve+")",Oe.style.maxWidth="initial",Oe.querySelector(".ggb_preview")!==null&&(Oe.querySelector(".ggb_preview").style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Oe.style.transform="none",Oe.style.webkitTransform="none")}function Ce(Oe,ve,ue,fe,he,le){var ae=null;if(le!=null&&le!="")for(var ie=Oe.parentNode;ie!=null;)if((" "+ie.className+" ").indexOf(" "+le+" ")>-1){ae=ie;break}else ie=ie.parentNode;var me=0,E=0,b=0,z=0,ne=0,oe=0,se=0;if(ae)me=ae.offsetWidth,E=Math.max(fe?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(me=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),b=me):(me=window.innerWidth,E=window.innerHeight,b=window.innerWidth),Oe){var de=Oe.getBoundingClientRect();de.left>0&&de.left<=me&&(he===void 0||!he)&&(document.dir==="rtl"?(ne=me-de.width-de.left,oe=b<=480?10:30):(oe=de.left,ne=b<=480?10:30),z=oe+ne)}if(Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var a=Oe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(z=40,se=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z=0,se=40)}}return Oe&&((ue===void 0||!ue)&&ve>0&&ve+z1&&(le=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le=!0),!(Oe.hasOwnProperty("disableAutoScale")&&Oe.disableAutoScale))he=te(Oe,ve,le,ue,Oe.scaleContainerClass);else return fe;return le&&(!Oe.hasOwnProperty("scale")||fe===1)?he:Math.min(fe,he)}function Me(Oe){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),fe=Oe.getBoundingClientRect(),he=(ve-fe.width)/2,le=(ue-fe.height)/2;le<0&&(le=0),Oe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he<40?Oe.style.left="40px":Oe.style.left=he+"px",Oe.style.top=le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le<40?Oe.style.top="40px":Oe.style.top=le+"px",Oe.style.left=he+"px")}function pe(Oe,ve){var ue=Oe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var fe=Ye(ve,Oe);Yn()&&ue.setAttribute("data-param-scale",fe);for(var he=null,le=0;le=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(Yn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Yn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Yn){var en=c[Yn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function Yn(Oe){var ve=Oe.lastIndexOf(rb);ve==-1&&(ve=Oe.length);var ue=Oe.indexOf(sb);ue==-1&&(ue=Oe.length);var fe=Oe.lastIndexOf(tb,Math.min(ue,ve));return fe>=O?Oe.substring(O,fe+P):W}function en(Oe){if(!Oe.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=Oe+vb,Oe=Yn(ve.src)}return Oe}function Ce(){var Oe=__gwt_getMetaProperty(wb);return Oe!=null?Oe:W}function te(){for(var Oe=o.getElementsByTagName(_),ve=O;veO?Oe[Oe.length-P].href:W}function Me(){var Oe=o.location;return Oe.href==Oe.protocol+zb+Oe.host+Oe.pathname+Oe.search+Oe.hash}var pe=Ce();return pe==W&&(pe=te()),pe==W&&(pe=Ye()),pe==W&&Me()&&(pe=Yn(o.location.href)),pe=en(pe),pe}function C(Yn){return Yn.match(/^\//)||Yn.match(/^[a-zA-Z]+:\/\//)?Yn:webModule.__moduleBase+Yn}function D(){var Yn=[],en=O,Ce=[],te=[];function Ye(Oe){var ve=te[Oe](),ue=Ce[Oe];if(ve in ue)return ve;var fe=[];for(var he in ue)fe[ue[he]]=he;throw r&&r(Oe,fe,ve),null}if(__gwt_isKnownPropertyValue=function(Oe,ve){return ve in Ce[Oe]},webModule.__getPropMap=function(){var Oe={};for(var ve in Ce)Ce.hasOwnProperty(ve)&&(Oe[ve]=Ye(ve));return Oe},webModule.__computePropValue=Ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var pe=Me.indexOf(Db);pe!=-1&&(en=parseInt(Me.substring(pe+P),$),Me=Me.substring(O,pe))}catch(Oe){}return webModule.__softPermutationId=en,C(Me+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})()},43065:function(Yn,en){var Ce=(te,Ye,Me)=>new Promise((pe,Oe)=>{var ve=he=>{try{fe(Me.next(he))}catch(le){Oe(le)}},ue=he=>{try{fe(Me.throw(he))}catch(le){Oe(le)}},fe=he=>he.done?pe(he.value):Promise.resolve(he.value).then(ve,ue);fe((Me=Me.apply(te,Ye)).next())});(function(te,Ye){Ye(en)})(this,function(te){"use strict";var Ye={value:()=>{}};function Me(){for(var De,ke=0,Ve=arguments.length,qe={};ke=0&&(qe=Ve.slice(it+1),Ve=Ve.slice(0,it)),Ve&&!ke.hasOwnProperty(Ve))throw new Error("unknown type: "+Ve);return{type:Ve,name:qe}})}function ve(De,ke){for(var Ve,qe=0,it=De.length;qe0)for(var Ve,qe,it=new Array(Ve),dt=0;dt=0&&(ke=De.slice(0,Ve))!=="xmlns"&&(De=De.slice(Ve+1)),he.hasOwnProperty(ke)?{space:he[ke],local:De}:De}function ae(De){return function(){var ke=this.ownerDocument,Ve=this.namespaceURI;return Ve===fe&&ke.documentElement.namespaceURI===fe?ke.createElement(De):ke.createElementNS(Ve,De)}}function ie(De){return function(){return this.ownerDocument.createElementNS(De.space,De.local)}}function me(De){var ke=le(De);return(ke.local?ie:ae)(ke)}function E(){}function b(De){return De==null?E:function(){return this.querySelector(De)}}function z(De){return De==null?[]:Array.isArray(De)?De:Array.from(De)}function ne(){return[]}function oe(De){return De==null?ne:function(){return this.querySelectorAll(De)}}function se(De){return function(){return this.matches(De)}}function de(De){return function(ke){return ke.matches(De)}}var a=Array.prototype.find;function x(){return this.firstElementChild}var re=Array.prototype.filter;function ce(){return Array.from(this.children)}function ge(De){return new Array(De.length)}function _e(De,ke){this.ownerDocument=De.ownerDocument,this.namespaceURI=De.namespaceURI,this._next=null,this._parent=De,this.__data__=ke}function ye(De){return function(){return De}}function be(De,ke,Ve,qe,it,dt){for(var bt,vt=0,Nt=ke.length,Pt=dt.length;vtke?1:De>=ke?0:NaN}function Ue(De){return function(){this.removeAttribute(De)}}function Pe(De){return function(){this.removeAttributeNS(De.space,De.local)}}function ze(De,ke){return function(){this.setAttribute(De,ke)}}function Ke(De,ke){return function(){this.setAttributeNS(De.space,De.local,ke)}}function Ne(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?this.removeAttribute(De):this.setAttribute(De,Ve)}}function Re(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?this.removeAttributeNS(De.space,De.local):this.setAttributeNS(De.space,De.local,Ve)}}function $e(De){return De.ownerDocument&&De.ownerDocument.defaultView||De.document&&De||De.defaultView}function nt(De){return function(){this.style.removeProperty(De)}}function ut(De,ke,Ve){return function(){this.style.setProperty(De,ke,Ve)}}function Qe(De,ke,Ve){return function(){var qe=ke.apply(this,arguments);qe==null?this.style.removeProperty(De):this.style.setProperty(De,qe,Ve)}}function rt(De,ke){return De.style.getPropertyValue(ke)||$e(De).getComputedStyle(De,null).getPropertyValue(ke)}function pt(De){return function(){delete this[De]}}function At(De,ke){return function(){this[De]=ke}}function gt(De,ke){return function(){var Ve=ke.apply(this,arguments);Ve==null?delete this[De]:this[De]=Ve}}function Ft(De){return De.trim().split(/^|\s+/)}function Ct(De){return De.classList||new Yt(De)}function Yt(De){this._node=De,this._names=Ft(De.getAttribute("class")||"")}function zt(De,ke){for(var Ve=Ct(De),qe=-1,it=ke.length;++qe=0&&(Ve=ke.slice(qe+1),ke=ke.slice(0,qe)),{type:ke,name:Ve}})}function on(De){return function(){var ke=this.__on;if(ke){for(var Ve,qe=0,it=-1,dt=ke.length;qe=0&&(this._names.splice(ke,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(De){return this._names.indexOf(De)>=0}};var Jt=[null];function Ut(De,ke){this._groups=De,this._parents=ke}function rn(){return new Ut([[document.documentElement]],Jt)}function _n(De){return typeof De=="string"?new Ut([[document.querySelector(De)]],[document.documentElement]):new Ut([[De]],Jt)}function Bn(De,ke){if(De=function(dt){let bt;for(;bt=dt.sourceEvent;)dt=bt;return dt}(De),ke===void 0&&(ke=De.currentTarget),ke){var Ve=ke.ownerSVGElement||ke;if(Ve.createSVGPoint){var qe=Ve.createSVGPoint();return qe.x=De.clientX,qe.y=De.clientY,[(qe=qe.matrixTransform(ke.getScreenCTM().inverse())).x,qe.y]}if(ke.getBoundingClientRect){var it=ke.getBoundingClientRect();return[De.clientX-it.left-ke.clientLeft,De.clientY-it.top-ke.clientTop]}}return[De.pageX,De.pageY]}Ut.prototype=rn.prototype={constructor:Ut,select:function(De){typeof De!="function"&&(De=b(De));for(var ke=this._groups,Ve=ke.length,qe=new Array(Ve),it=0;it=ni&&(ni=cr+1);!(sr=bn[ni])&&++ni=0;)(qe=it[dt])&&(bt&&4^qe.compareDocumentPosition(bt)&&bt.parentNode.insertBefore(qe,bt),bt=qe);return this},sort:function(De){function ke($t,hn){return $t&&hn?De($t.__data__,hn.__data__):!$t-!hn}De||(De=we);for(var Ve=this._groups,qe=Ve.length,it=new Array(qe),dt=0;dt1?this.each((ke==null?nt:typeof ke=="function"?Qe:ut)(De,ke,Ve==null?"":Ve)):rt(this.node(),De)},property:function(De,ke){return arguments.length>1?this.each((ke==null?pt:typeof ke=="function"?gt:At)(De,ke)):this.node()[De]},classed:function(De,ke){var Ve=Ft(De+"");if(arguments.length<2){for(var qe=Ct(this.node()),it=-1,dt=Ve.length;++it()=>De;function Cr(De,{sourceEvent:ke,subject:Ve,target:qe,identifier:it,active:dt,x:bt,y:vt,dx:Nt,dy:Pt,dispatch:Ht}){Object.defineProperties(this,{type:{value:De,enumerable:!0,configurable:!0},sourceEvent:{value:ke,enumerable:!0,configurable:!0},subject:{value:Ve,enumerable:!0,configurable:!0},target:{value:qe,enumerable:!0,configurable:!0},identifier:{value:it,enumerable:!0,configurable:!0},active:{value:dt,enumerable:!0,configurable:!0},x:{value:bt,enumerable:!0,configurable:!0},y:{value:vt,enumerable:!0,configurable:!0},dx:{value:Nt,enumerable:!0,configurable:!0},dy:{value:Pt,enumerable:!0,configurable:!0},_:{value:Ht}})}function nr(De){return!De.ctrlKey&&!De.button}function ur(){return this.parentNode}function Nn(De,ke){return ke==null?{x:De.x,y:De.y}:ke}function In(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wn(De,ke,Ve){De.prototype=ke.prototype=Ve,Ve.constructor=De}function Kn(De,ke){var Ve=Object.create(De.prototype);for(var qe in ke)Ve[qe]=ke[qe];return Ve}function Ln(){}Cr.prototype.on=function(){var De=this._.on.apply(this._,arguments);return De===this._?this:De};var $n=.7,ar=1/$n,dn="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",je="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Je=/^#([0-9a-f]{3,8})$/,ht=new RegExp(`^rgb\\(${dn},${dn},${dn}\\)$`),Et=new RegExp(`^rgb\\(${je},${je},${je}\\)$`),Qt=new RegExp(`^rgba\\(${dn},${dn},${dn},${Ie}\\)$`),fn=new RegExp(`^rgba\\(${je},${je},${je},${Ie}\\)$`),sn=new RegExp(`^hsl\\(${Ie},${je},${je}\\)$`),mn=new RegExp(`^hsla\\(${Ie},${je},${je},${Ie}\\)$`),Zn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function tr(){return this.rgb().formatHex()}function Vt(){return this.rgb().formatRgb()}function Gt(De){var ke,Ve;return De=(De+"").trim().toLowerCase(),(ke=Je.exec(De))?(Ve=ke[1].length,ke=parseInt(ke[1],16),Ve===6?Rt(ke):Ve===3?new yt(ke>>8&15|ke>>4&240,ke>>4&15|240&ke,(15&ke)<<4|15&ke,1):Ve===8?jt(ke>>24&255,ke>>16&255,ke>>8&255,(255&ke)/255):Ve===4?jt(ke>>12&15|ke>>8&240,ke>>8&15|ke>>4&240,ke>>4&15|240&ke,((15&ke)<<4|15&ke)/255):null):(ke=ht.exec(De))?new yt(ke[1],ke[2],ke[3],1):(ke=Et.exec(De))?new yt(255*ke[1]/100,255*ke[2]/100,255*ke[3]/100,1):(ke=Qt.exec(De))?jt(ke[1],ke[2],ke[3],ke[4]):(ke=fn.exec(De))?jt(255*ke[1]/100,255*ke[2]/100,255*ke[3]/100,ke[4]):(ke=sn.exec(De))?Bt(ke[1],ke[2]/100,ke[3]/100,1):(ke=mn.exec(De))?Bt(ke[1],ke[2]/100,ke[3]/100,ke[4]):Zn.hasOwnProperty(De)?Rt(Zn[De]):De==="transparent"?new yt(NaN,NaN,NaN,0):null}function Rt(De){return new yt(De>>16&255,De>>8&255,255&De,1)}function jt(De,ke,Ve,qe){return qe<=0&&(De=ke=Ve=NaN),new yt(De,ke,Ve,qe)}function Mt(De){return De instanceof Ln||(De=Gt(De)),De?new yt((De=De.rgb()).r,De.g,De.b,De.opacity):new yt}function Kt(De,ke,Ve,qe){return arguments.length===1?Mt(De):new yt(De,ke,Ve,qe==null?1:qe)}function yt(De,ke,Ve,qe){this.r=+De,this.g=+ke,this.b=+Ve,this.opacity=+qe}function qt(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function vn(){const De=Tt(this.opacity);return`${De===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${De===1?")":`, ${De})`}`}function Tt(De){return isNaN(De)?1:Math.max(0,Math.min(1,De))}function It(De){return Math.max(0,Math.min(255,Math.round(De)||0))}function Dt(De){return((De=It(De))<16?"0":"")+De.toString(16)}function Bt(De,ke,Ve,qe){return qe<=0?De=ke=Ve=NaN:Ve<=0||Ve>=1?De=ke=NaN:ke<=0&&(De=NaN),new tn(De,ke,Ve,qe)}function Zt(De){if(De instanceof tn)return new tn(De.h,De.s,De.l,De.opacity);if(De instanceof Ln||(De=Gt(De)),!De)return new tn;if(De instanceof tn)return De;var ke=(De=De.rgb()).r/255,Ve=De.g/255,qe=De.b/255,it=Math.min(ke,Ve,qe),dt=Math.max(ke,Ve,qe),bt=NaN,vt=dt-it,Nt=(dt+it)/2;return vt?(bt=ke===dt?(Ve-qe)/vt+6*(Ve0&&Nt<1?0:bt,new tn(bt,vt,Nt,De.opacity)}function tn(De,ke,Ve,qe){this.h=+De,this.s=+ke,this.l=+Ve,this.opacity=+qe}function Tn(De){return(De=(De||0)%360)<0?De+360:De}function Fn(De){return Math.max(0,Math.min(1,De||0))}function dr(De,ke,Ve){return 255*(De<60?ke+(Ve-ke)*De/60:De<180?Ve:De<240?ke+(Ve-ke)*(240-De)/60:ke)}Wn(Ln,Gt,{copy(De){return Object.assign(new this.constructor,this,De)},displayable(){return this.rgb().displayable()},hex:tr,formatHex:tr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zt(this).formatHsl()},formatRgb:Vt,toString:Vt}),Wn(yt,Kt,Kn(Ln,{brighter(De){return De=De==null?ar:Math.pow(ar,De),new yt(this.r*De,this.g*De,this.b*De,this.opacity)},darker(De){return De=De==null?$n:Math.pow($n,De),new yt(this.r*De,this.g*De,this.b*De,this.opacity)},rgb(){return this},clamp(){return new yt(It(this.r),It(this.g),It(this.b),Tt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qt,formatHex:qt,formatHex8:function(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vn,toString:vn})),Wn(tn,function(De,ke,Ve,qe){return arguments.length===1?Zt(De):new tn(De,ke,Ve,qe==null?1:qe)},Kn(Ln,{brighter(De){return De=De==null?ar:Math.pow(ar,De),new tn(this.h,this.s,this.l*De,this.opacity)},darker(De){return De=De==null?$n:Math.pow($n,De),new tn(this.h,this.s,this.l*De,this.opacity)},rgb(){var De=this.h%360+360*(this.h<0),ke=isNaN(De)||isNaN(this.s)?0:this.s,Ve=this.l,qe=Ve+(Ve<.5?Ve:1-Ve)*ke,it=2*Ve-qe;return new yt(dr(De>=240?De-240:De+120,it,qe),dr(De,it,qe),dr(De<120?De+240:De-120,it,qe),this.opacity)},clamp(){return new tn(Tn(this.h),Fn(this.s),Fn(this.l),Tt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const De=Tt(this.opacity);return`${De===1?"hsl(":"hsla("}${Tn(this.h)}, ${100*Fn(this.s)}%, ${100*Fn(this.l)}%${De===1?")":`, ${De})`}`}}));var _r=De=>()=>De;function Kr(De){return(De=+De)==1?Sr:function(ke,Ve){return Ve-ke?function(qe,it,dt){return qe=Math.pow(qe,dt),it=Math.pow(it,dt)-qe,dt=1/dt,function(bt){return Math.pow(qe+bt*it,dt)}}(ke,Ve,De):_r(isNaN(ke)?Ve:ke)}}function Sr(De,ke){var Ve=ke-De;return Ve?function(qe,it){return function(dt){return qe+dt*it}}(De,Ve):_r(isNaN(De)?ke:De)}var hr=function De(ke){var Ve=Kr(ke);function qe(it,dt){var bt=Ve((it=Kt(it)).r,(dt=Kt(dt)).r),vt=Ve(it.g,dt.g),Nt=Ve(it.b,dt.b),Pt=Sr(it.opacity,dt.opacity);return function(Ht){return it.r=bt(Ht),it.g=vt(Ht),it.b=Nt(Ht),it.opacity=Pt(Ht),it+""}}return qe.gamma=De,qe}(1);function Mr(De,ke){ke||(ke=[]);var Ve,qe=De?Math.min(ke.length,De.length):0,it=ke.slice();return function(dt){for(Ve=0;Vedt&&(it=ke.slice(dt,it),vt[bt]?vt[bt]+=it:vt[++bt]=it),(Ve=Ve[0])===(qe=qe[0])?vt[bt]?vt[bt]+=qe:vt[++bt]=qe:(vt[++bt]=null,Nt.push({i:bt,x:Jn(Ve,qe)})),dt=Gr.lastIndex;return dt180?Ht+=360:Ht-Pt>180&&(Pt+=360),hn.push({i:$t.push(it($t)+"rotate(",null,qe)-2,x:Jn(Pt,Ht)})):Ht&&$t.push(it($t)+"rotate("+Ht+qe)}(dt.rotate,bt.rotate,vt,Nt),function(Pt,Ht,$t,hn){Pt!==Ht?hn.push({i:$t.push(it($t)+"skewX(",null,qe)-2,x:Jn(Pt,Ht)}):Ht&&$t.push(it($t)+"skewX("+Ht+qe)}(dt.skewX,bt.skewX,vt,Nt),function(Pt,Ht,$t,hn,Pn,Dn){if(Pt!==$t||Ht!==hn){var pn=Pn.push(it(Pn)+"scale(",null,",",null,")");Dn.push({i:pn-4,x:Jn(Pt,$t)},{i:pn-2,x:Jn(Ht,hn)})}else $t===1&&hn===1||Pn.push(it(Pn)+"scale("+$t+","+hn+")")}(dt.scaleX,dt.scaleY,bt.scaleX,bt.scaleY,vt,Nt),dt=bt=null,function(Pt){for(var Ht,$t=-1,hn=Nt.length;++$t=0&&ke._call.call(void 0,De),ke=ke._next;--qi})()}finally{qi=0,function(){for(var De,ke,Ve=Ki,qe=1/0;Ve;)Ve._call?(qe>Ve._time&&(qe=Ve._time),De=Ve,Ve=Ve._next):(ke=Ve._next,Ve._next=null,Ve=De?De._next=ke:Ki=ke);ua=De,Hr(qe)}(),Ti=0}}function Ir(){var De=rr.now(),ke=De-_i;ke>1e3&&(Xr-=ke,_i=De)}function Hr(De){qi||(Qi&&(Qi=clearTimeout(Qi)),De-Ti>24?(De<1/0&&(Qi=setTimeout(wr,De-rr.now()-Xr)),ra&&(ra=clearInterval(ra))):(ra||(_i=rr.now(),ra=setInterval(Ir,1e3)),qi=1,Dr(wr)))}function ri(De,ke,Ve){var qe=new ei;return ke=ke==null?0:+ke,qe.restart(it=>{qe.stop(),De(it+ke)},ke,Ve),qe}ei.prototype=si.prototype={constructor:ei,restart:function(De,ke,Ve){if(typeof De!="function")throw new TypeError("callback is not a function");Ve=(Ve==null?Fr():+Ve)+(ke==null?0:+ke),this._next||ua===this||(ua?ua._next=this:Ki=this,ua=this),this._call=De,this._time=Ve,Hr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hr())}};var un=Me("start","end","cancel","interrupt"),Vn=[];function Sn(De,ke,Ve,qe,it,dt){var bt=De.__transition;if(bt){if(Ve in bt)return}else De.__transition={};(function(vt,Nt,Pt){var Ht,$t=vt.__transition;function hn(bn){Pt.state=1,Pt.timer.restart(Pn,Pt.delay,Pt.time),Pt.delay<=bn&&Pn(bn-Pt.delay)}function Pn(bn){var Gn,Un,sr,cr;if(Pt.state!==1)return pn();for(Gn in $t)if((cr=$t[Gn]).name===Pt.name){if(cr.state===3)return ri(Pn);cr.state===4?(cr.state=6,cr.timer.stop(),cr.on.call("interrupt",vt,vt.__data__,cr.index,cr.group),delete $t[Gn]):+Gn0)throw new Error("too late; already scheduled");return Ve}function ti(De,ke){var Ve=gn(De,ke);if(Ve.state>3)throw new Error("too late; already running");return Ve}function gn(De,ke){var Ve=De.__transition;if(!Ve||!(Ve=Ve[ke]))throw new Error("transition not found");return Ve}function mi(De,ke){var Ve,qe,it,dt=De.__transition,bt=!0;if(dt){for(it in ke=ke==null?null:ke+"",dt)(Ve=dt[it]).name===ke?(qe=Ve.state>2&&Ve.state<5,Ve.state=6,Ve.timer.stop(),Ve.on.call(qe?"interrupt":"cancel",De,De.__data__,Ve.index,Ve.group),delete dt[it]):bt=!1;bt&&delete De.__transition}}function Nr(De,ke){var Ve,qe;return function(){var it=ti(this,De),dt=it.tween;if(dt!==Ve){for(var bt=0,vt=(qe=Ve=dt).length;bt=0&&(vt=vt.slice(0,Nt)),!vt||vt==="start"})}(ke)?Rr:ti;return function(){var bt=dt(this,De),vt=bt.on;vt!==qe&&(it=(qe=vt).copy()).on(ke,Ve),bt.on=it}}var Ca=rn.prototype.constructor;function Ra(De){return function(){this.style.removeProperty(De)}}function to(De,ke,Ve){return function(qe){this.style.setProperty(De,ke.call(this,qe),Ve)}}function bi(De,ke,Ve){var qe,it;function dt(){var bt=ke.apply(this,arguments);return bt!==it&&(qe=(it=bt)&&to(De,bt,Ve)),qe}return dt._value=ke,dt}function Yi(De){return function(ke){this.textContent=De.call(this,ke)}}function Ei(De){var ke,Ve;function qe(){var it=De.apply(this,arguments);return it!==Ve&&(ke=(Ve=it)&&Yi(it)),ke}return qe._value=De,qe}var Ci=0;function kr(De,ke,Ve,qe){this._groups=De,this._parents=ke,this._name=Ve,this._id=qe}function Zi(){return++Ci}var ma=rn.prototype;kr.prototype={constructor:kr,select:function(De){var ke=this._name,Ve=this._id;typeof De!="function"&&(De=b(De));for(var qe=this._groups,it=qe.length,dt=new Array(it),bt=0;bt=(dt=(pn+Gn)/2))?pn=dt:Gn=dt,(Ht=Ve>=(bt=(bn+Un)/2))?bn=bt:Un=bt,it=Pn,!(Pn=Pn[$t=Ht<<1|Pt]))return it[$t]=Dn,De;if(vt=+De._x.call(null,Pn.data),Nt=+De._y.call(null,Pn.data),ke===vt&&Ve===Nt)return Dn.next=Pn,it?it[$t]=Dn:De._root=Dn,De;do it=it?it[$t]=new Array(4):De._root=new Array(4),(Pt=ke>=(dt=(pn+Gn)/2))?pn=dt:Gn=dt,(Ht=Ve>=(bt=(bn+Un)/2))?bn=bt:Un=bt;while(($t=Ht<<1|Pt)==(hn=(Nt>=bt)<<1|vt>=dt));return it[hn]=Pn,it[$t]=Dn,De}function oa(De,ke,Ve,qe,it){this.node=De,this.x0=ke,this.y0=Ve,this.x1=qe,this.y1=it}function Wa(De){return De[0]}function Ka(De){return De[1]}function fo(De,ke,Ve){var qe=new Eo(ke==null?Wa:ke,Ve==null?Ka:Ve,NaN,NaN,NaN,NaN);return De==null?qe:qe.addAll(De)}function Eo(De,ke,Ve,qe,it,dt){this._x=De,this._y=ke,this._x0=Ve,this._y0=qe,this._x1=it,this._y1=dt,this._root=void 0}function io(De){for(var ke={data:De.data},Ve=ke;De=De.next;)Ve=Ve.next={data:De.data};return ke}xi.prototype=pa.prototype={constructor:xi,moveTo:function(De,ke){this._+="M"+(this._x0=this._x1=+De)+","+(this._y0=this._y1=+ke)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(De,ke){this._+="L"+(this._x1=+De)+","+(this._y1=+ke)},quadraticCurveTo:function(De,ke,Ve,qe){this._+="Q"+ +De+","+ +ke+","+(this._x1=+Ve)+","+(this._y1=+qe)},bezierCurveTo:function(De,ke,Ve,qe,it,dt){this._+="C"+ +De+","+ +ke+","+ +Ve+","+ +qe+","+(this._x1=+it)+","+(this._y1=+dt)},arcTo:function(De,ke,Ve,qe,it){De=+De,ke=+ke,Ve=+Ve,qe=+qe,it=+it;var dt=this._x1,bt=this._y1,vt=Ve-De,Nt=qe-ke,Pt=dt-De,Ht=bt-ke,$t=Pt*Pt+Ht*Ht;if(it<0)throw new Error("negative radius: "+it);if(this._x1===null)this._+="M"+(this._x1=De)+","+(this._y1=ke);else if($t>no)if(Math.abs(Ht*vt-Nt*Pt)>no&&it){var hn=Ve-dt,Pn=qe-bt,Dn=vt*vt+Nt*Nt,pn=hn*hn+Pn*Pn,bn=Math.sqrt(Dn),Gn=Math.sqrt($t),Un=it*Math.tan((Ji-Math.acos((Dn+$t-pn)/(2*bn*Gn)))/2),sr=Un/Gn,cr=Un/bn;Math.abs(sr-1)>no&&(this._+="L"+(De+sr*Pt)+","+(ke+sr*Ht)),this._+="A"+it+","+it+",0,0,"+ +(Ht*hn>Pt*Pn)+","+(this._x1=De+cr*vt)+","+(this._y1=ke+cr*Nt)}else this._+="L"+(this._x1=De)+","+(this._y1=ke)},arc:function(De,ke,Ve,qe,it,dt){De=+De,ke=+ke,dt=!!dt;var bt=(Ve=+Ve)*Math.cos(qe),vt=Ve*Math.sin(qe),Nt=De+bt,Pt=ke+vt,Ht=1^dt,$t=dt?qe-it:it-qe;if(Ve<0)throw new Error("negative radius: "+Ve);this._x1===null?this._+="M"+Nt+","+Pt:(Math.abs(this._x1-Nt)>no||Math.abs(this._y1-Pt)>no)&&(this._+="L"+Nt+","+Pt),Ve&&($t<0&&($t=$t%Va+Va),$t>Ya?this._+="A"+Ve+","+Ve+",0,1,"+Ht+","+(De-bt)+","+(ke-vt)+"A"+Ve+","+Ve+",0,1,"+Ht+","+(this._x1=Nt)+","+(this._y1=Pt):$t>no&&(this._+="A"+Ve+","+Ve+",0,"+ +($t>=Ji)+","+Ht+","+(this._x1=De+Ve*Math.cos(it))+","+(this._y1=ke+Ve*Math.sin(it))))},rect:function(De,ke,Ve,qe){this._+="M"+(this._x0=this._x1=+De)+","+(this._y0=this._y1=+ke)+"h"+ +Ve+"v"+ +qe+"h"+-Ve+"Z"},toString:function(){return this._}};var ao=fo.prototype=Eo.prototype;function Ba(De){return function(){return De}}function Fa(De){return 1e-6*(De()-.5)}function Wo(De){return De.x+De.vx}function Ta(De){return De.y+De.vy}function Oo(De){return De.index}function Do(De,ke){var Ve=De.get(ke);if(!Ve)throw new Error("node not found: "+ke);return Ve}function Xi(De){var ke,Ve,qe,it,dt,bt,vt=Oo,Nt=function(pn){return 1/Math.min(it[pn.source.index],it[pn.target.index])},Pt=Ba(30),Ht=1;function $t(pn){for(var bn=0,Gn=De.length;bn[vt(cr,ni,qe),cr]));for(pn=0,it=new Array(Gn);pnHt&&(Ht=qe),it$t&&($t=it));if(Nt>Ht||Pt>$t)return this;for(this.cover(Nt,Pt).cover(Ht,$t),Ve=0;VeDe||De>=it||qe>ke||ke>=dt;)switch(vt=(kehn||(dt=Nt.y0)>Pn||(bt=Nt.x1)=Gn)<<1|De>=bn)&&(Nt=Dn[Dn.length-1],Dn[Dn.length-1]=Dn[Dn.length-1-Pt],Dn[Dn.length-1-Pt]=Nt)}else{var Un=De-+this._x.call(null,pn.data),sr=ke-+this._y.call(null,pn.data),cr=Un*Un+sr*sr;if(cr=(vt=(Dn+bn)/2))?Dn=vt:bn=vt,(Ht=bt>=(Nt=(pn+Gn)/2))?pn=Nt:Gn=Nt,ke=Pn,!(Pn=Pn[$t=Ht<<1|Pt]))return this;if(!Pn.length)break;(ke[$t+1&3]||ke[$t+2&3]||ke[$t+3&3])&&(Ve=ke,hn=$t)}for(;Pn.data!==De;)if(qe=Pn,!(Pn=Pn.next))return this;return(it=Pn.next)&&delete Pn.next,qe?(it?qe.next=it:delete qe.next,this):ke?(it?ke[$t]=it:delete ke[$t],(Pn=ke[0]||ke[1]||ke[2]||ke[3])&&Pn===(ke[3]||ke[2]||ke[1]||ke[0])&&!Pn.length&&(Ve?Ve[hn]=Pn:this._root=Pn),this):(this._root=it,this)},ao.removeAll=function(De){for(var ke=0,Ve=De.length;ke(pn=(1664525*pn+1013904223)%Pi)/Pi}();function $t(){hn(),Pt.call("tick",ke),Ve1?(bn==null?vt.delete(pn):vt.set(pn,Dn(bn)),ke):vt.get(pn)},find:function(pn,bn,Gn){var Un,sr,cr,ni,Tr,Si=0,Ui=De.length;for(Gn==null?Gn=1/0:Gn*=Gn,Si=0;Si1?(Pt.on(pn,bn),ke):Pt.on(pn)}}}function fi(De){return function(){return De}}const Sa=Math.abs,Ri=Math.atan2,hi=Math.cos,wa=Math.max,za=Math.min,ga=Math.sin,ro=Math.sqrt,ka=1e-12,Co=Math.PI,Qo=Co/2,Ro=2*Co;function Jo(De){return De>1?0:De<-1?Co:Math.acos(De)}function wo(De){return De>=1?Qo:De<=-1?-Qo:Math.asin(De)}function Ns(De){return De.innerRadius}function uo(De){return De.outerRadius}function As(De){return De.startAngle}function Ds(De){return De.endAngle}function _s(De){return De&&De.padAngle}function xs(De,ke,Ve,qe,it,dt,bt,vt){var Nt=Ve-De,Pt=qe-ke,Ht=bt-it,$t=vt-dt,hn=$t*Nt-Ht*Pt;if(!(hn*hnfr*fr+$r*$r&&(Ui=jr,Fi=Vr),{cx:Ui,cy:Fi,x01:-Ht,y01:-$t,x11:Ui*(it/ni-1),y11:Fi*(it/ni-1)}}function Ts(){var De=Ns,ke=uo,Ve=fi(0),qe=null,it=As,dt=Ds,bt=_s,vt=null;function Nt(){var Pt,Ht,$t=+De.apply(this,arguments),hn=+ke.apply(this,arguments),Pn=it.apply(this,arguments)-Qo,Dn=dt.apply(this,arguments)-Qo,pn=Sa(Dn-Pn),bn=Dn>Pn;if(vt||(vt=Pt=pa()),hn<$t&&(Ht=hn,hn=$t,$t=Ht),hn>ka)if(pn>Ro-ka)vt.moveTo(hn*hi(Pn),hn*ga(Pn)),vt.arc(0,0,hn,Pn,Dn,!bn),$t>ka&&(vt.moveTo($t*hi(Dn),$t*ga(Dn)),vt.arc(0,0,$t,Dn,Pn,bn));else{var Gn,Un,sr=Pn,cr=Dn,ni=Pn,Tr=Dn,Si=pn,Ui=pn,Fi=bt.apply(this,arguments)/2,jr=Fi>ka&&(qe?+qe.apply(this,arguments):ro($t*$t+hn*hn)),Vr=za(Sa(hn-$t)/2,+Ve.apply(this,arguments)),yi=Vr,zn=Vr;if(jr>ka){var fr=wo(jr/$t*ga(Fi)),$r=wo(jr/hn*ga(Fi));(Si-=2*fr)>ka?(ni+=fr*=bn?1:-1,Tr-=fr):(Si=0,ni=Tr=(Pn+Dn)/2),(Ui-=2*$r)>ka?(sr+=$r*=bn?1:-1,cr-=$r):(Ui=0,sr=cr=(Pn+Dn)/2)}var xr=hn*hi(sr),Yr=hn*ga(sr),Lr=$t*hi(Tr),Or=$t*ga(Tr);if(Vr>ka){var Bi,na=hn*hi(cr),Oi=hn*ga(cr),Ea=$t*hi(ni),Ma=$t*ga(ni);if(pnka?zn>ka?(Gn=To(Ea,Ma,xr,Yr,hn,zn,bn),Un=To(na,Oi,Lr,Or,hn,zn,bn),vt.moveTo(Gn.cx+Gn.x01,Gn.cy+Gn.y01),znka&&Si>ka?yi>ka?(Gn=To(Lr,Or,na,Oi,$t,-yi,bn),Un=To(xr,Yr,Ea,Ma,$t,-yi,bn),vt.lineTo(Gn.cx+Gn.x01,Gn.cy+Gn.y01),yiDe?1:ke>=De?0:NaN}function wl(De){return De}function Js(){var De=wl,ke=Qs,Ve=null,qe=fi(0),it=fi(Ro),dt=fi(0);function bt(vt){var Nt,Pt,Ht,$t,hn,Pn=(vt=ls(vt)).length,Dn=0,pn=new Array(Pn),bn=new Array(Pn),Gn=+qe.apply(this,arguments),Un=Math.min(Ro,Math.max(-Ro,it.apply(this,arguments)-Gn)),sr=Math.min(Math.abs(Un)/Pn,dt.apply(this,arguments)),cr=sr*(Un<0?-1:1);for(Nt=0;Nt0&&(Dn+=hn);for(ke!=null?pn.sort(function(ni,Tr){return ke(bn[ni],bn[Tr])}):Ve!=null&&pn.sort(function(ni,Tr){return Ve(vt[ni],vt[Tr])}),Nt=0,Ht=Dn?(Un-Pn*cr)/Dn:0;Nt0?hn*Ht:0)+cr,bn[Pt]={data:vt[Pt],index:Nt,value:hn,startAngle:Gn,endAngle:$t,padAngle:sr};return bn}return bt.value=function(vt){return arguments.length?(De=typeof vt=="function"?vt:fi(+vt),bt):De},bt.sortValues=function(vt){return arguments.length?(ke=vt,Ve=null,bt):ke},bt.sort=function(vt){return arguments.length?(Ve=vt,ke=null,bt):Ve},bt.startAngle=function(vt){return arguments.length?(qe=typeof vt=="function"?vt:fi(+vt),bt):qe},bt.endAngle=function(vt){return arguments.length?(it=typeof vt=="function"?vt:fi(+vt),bt):it},bt.padAngle=function(vt){return arguments.length?(dt=typeof vt=="function"?vt:fi(+vt),bt):dt},bt}var Es=De=>()=>De;function pl(De,{sourceEvent:ke,target:Ve,transform:qe,dispatch:it}){Object.defineProperties(this,{type:{value:De,enumerable:!0,configurable:!0},sourceEvent:{value:ke,enumerable:!0,configurable:!0},target:{value:Ve,enumerable:!0,configurable:!0},transform:{value:qe,enumerable:!0,configurable:!0},_:{value:it}})}function Cs(De,ke,Ve){this.k=De,this.x=ke,this.y=Ve}Cs.prototype={constructor:Cs,scale:function(De){return De===1?this:new Cs(this.k*De,this.x,this.y)},translate:function(De,ke){return De===0&ke===0?this:new Cs(this.k,this.x+this.k*De,this.y+this.k*ke)},apply:function(De){return[De[0]*this.k+this.x,De[1]*this.k+this.y]},applyX:function(De){return De*this.k+this.x},applyY:function(De){return De*this.k+this.y},invert:function(De){return[(De[0]-this.x)/this.k,(De[1]-this.y)/this.k]},invertX:function(De){return(De-this.x)/this.k},invertY:function(De){return(De-this.y)/this.k},rescaleX:function(De){return De.copy().domain(De.range().map(this.invertX,this).map(De.invert,De))},rescaleY:function(De){return De.copy().domain(De.range().map(this.invertY,this).map(De.invert,De))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $s=new Cs(1,0,0);function qs(De){De.stopImmediatePropagation()}function Ms(De){De.preventDefault(),De.stopImmediatePropagation()}function Vo(De){return!(De.ctrlKey&&De.type!=="wheel"||De.button)}function fs(){var De=this;return De instanceof SVGElement?(De=De.ownerSVGElement||De).hasAttribute("viewBox")?[[(De=De.viewBox.baseVal).x,De.y],[De.x+De.width,De.y+De.height]]:[[0,0],[De.width.baseVal.value,De.height.baseVal.value]]:[[0,0],[De.clientWidth,De.clientHeight]]}function ul(){return this.__zoom||$s}function Fs(De){return-De.deltaY*(De.deltaMode===1?.05:De.deltaMode?1:.002)*(De.ctrlKey?10:1)}function xa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ol(De,ke,Ve){var qe=De.invertX(ke[0][0])-Ve[0][0],it=De.invertX(ke[1][0])-Ve[1][0],dt=De.invertY(ke[0][1])-Ve[0][1],bt=De.invertY(ke[1][1])-Ve[1][1];return De.translate(it>qe?(qe+it)/2:Math.min(0,qe)||Math.max(0,it),bt>dt?(dt+bt)/2:Math.min(0,dt)||Math.max(0,bt))}function ks(){var De,ke,Ve,qe=Vo,it=fs,dt=ol,bt=Fs,vt=xa,Nt=[0,1/0],Pt=[[-1/0,-1/0],[1/0,1/0]],Ht=250,$t=kn,hn=Me("start","zoom","end"),Pn=500,Dn=0,pn=10;function bn(zn){zn.property("__zoom",ul).on("wheel.zoom",Si,{passive:!1}).on("mousedown.zoom",Ui).on("dblclick.zoom",Fi).filter(vt).on("touchstart.zoom",jr).on("touchmove.zoom",Vr).on("touchend.zoom touchcancel.zoom",yi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Gn(zn,fr){return(fr=Math.max(Nt[0],Math.min(Nt[1],fr)))===zn.k?zn:new Cs(fr,zn.x,zn.y)}function Un(zn,fr,$r){var xr=fr[0]-$r[0]*zn.k,Yr=fr[1]-$r[1]*zn.k;return xr===zn.x&&Yr===zn.y?zn:new Cs(zn.k,xr,Yr)}function sr(zn){return[(+zn[0][0]+ +zn[1][0])/2,(+zn[0][1]+ +zn[1][1])/2]}function cr(zn,fr,$r,xr){zn.on("start.zoom",function(){ni(this,arguments).event(xr).start()}).on("interrupt.zoom end.zoom",function(){ni(this,arguments).event(xr).end()}).tween("zoom",function(){var Yr=this,Lr=arguments,Or=ni(Yr,Lr).event(xr),Bi=it.apply(Yr,Lr),na=$r==null?sr(Bi):typeof $r=="function"?$r.apply(Yr,Lr):$r,Oi=Math.max(Bi[1][0]-Bi[0][0],Bi[1][1]-Bi[0][1]),Ea=Yr.__zoom,Ma=typeof fr=="function"?fr.apply(Yr,Lr):fr,Na=$t(Ea.invert(na).concat(Oi/Ea.k),Ma.invert(na).concat(Oi/Ma.k));return function(ji){if(ji===1)ji=Ma;else{var aa=Na(ji),Ua=Oi/aa[2];ji=new Cs(Ua,na[0]-aa[0]*Ua,na[1]-aa[1]*Ua)}Or.zoom(null,ji)}})}function ni(zn,fr,$r){return!$r&&zn.__zooming||new Tr(zn,fr)}function Tr(zn,fr){this.that=zn,this.args=fr,this.active=0,this.sourceEvent=null,this.extent=it.apply(zn,fr),this.taps=0}function Si(zn,...fr){if(qe.apply(this,arguments)){var $r=ni(this,fr).event(zn),xr=this.__zoom,Yr=Math.max(Nt[0],Math.min(Nt[1],xr.k*Math.pow(2,bt.apply(this,arguments)))),Lr=Bn(zn);if($r.wheel)$r.mouse[0][0]===Lr[0]&&$r.mouse[0][1]===Lr[1]||($r.mouse[1]=xr.invert($r.mouse[0]=Lr)),clearTimeout($r.wheel);else{if(xr.k===Yr)return;$r.mouse=[Lr,xr.invert(Lr)],mi(this),$r.start()}Ms(zn),$r.wheel=setTimeout(Or,150),$r.zoom("mouse",dt(Un(Gn(xr,Yr),$r.mouse[0],$r.mouse[1]),$r.extent,Pt))}function Or(){$r.wheel=null,$r.end()}}function Ui(zn,...fr){if(!Ve&&qe.apply(this,arguments)){var $r=zn.currentTarget,xr=ni(this,fr,!0).event(zn),Yr=_n(zn.view).on("mousemove.zoom",na,!0).on("mouseup.zoom",Oi,!0),Lr=Bn(zn,$r),Or=zn.clientX,Bi=zn.clientY;Qn(zn.view),qs(zn),xr.mouse=[Lr,this.__zoom.invert(Lr)],mi(this),xr.start()}function na(Ea){if(Ms(Ea),!xr.moved){var Ma=Ea.clientX-Or,Na=Ea.clientY-Bi;xr.moved=Ma*Ma+Na*Na>Dn}xr.event(Ea).zoom("mouse",dt(Un(xr.that.__zoom,xr.mouse[0]=Bn(Ea,$r),xr.mouse[1]),xr.extent,Pt))}function Oi(Ea){Yr.on("mousemove.zoom mouseup.zoom",null),mr(Ea.view,xr.moved),Ms(Ea),xr.event(Ea).end()}}function Fi(zn,...fr){if(qe.apply(this,arguments)){var $r=this.__zoom,xr=Bn(zn.changedTouches?zn.changedTouches[0]:zn,this),Yr=$r.invert(xr),Lr=$r.k*(zn.shiftKey?.5:2),Or=dt(Un(Gn($r,Lr),xr,Yr),it.apply(this,fr),Pt);Ms(zn),Ht>0?_n(this).transition().duration(Ht).call(cr,Or,xr,zn):_n(this).call(bn.transform,Or,xr,zn)}}function jr(zn,...fr){if(qe.apply(this,arguments)){var $r,xr,Yr,Lr,Or=zn.touches,Bi=Or.length,na=ni(this,fr,zn.changedTouches.length===Bi).event(zn);for(qs(zn),xr=0;xr=0;--zn){var fr=this.tryEntries[zn],$r=fr.completion;if(fr.tryLoc==="root")return yi("end");if(fr.tryLoc<=this.prev){var xr=Ve.call(fr,"catchLoc"),Yr=Ve.call(fr,"finallyLoc");if(xr&&Yr){if(this.prev=0;--yi){var zn=this.tryEntries[yi];if(zn.tryLoc<=this.prev&&Ve.call(zn,"finallyLoc")&&this.prev=0;--Vr){var yi=this.tryEntries[Vr];if(yi.finallyLoc===jr)return this.complete(yi.completion,yi.afterLoc),Tr(yi),Ht}},catch:function(jr){for(var Vr=this.tryEntries.length-1;Vr>=0;--Vr){var yi=this.tryEntries[Vr];if(yi.tryLoc===jr){var zn=yi.completion;if(zn.type==="throw"){var fr=zn.arg;Tr(yi)}return fr}}throw new Error("illegal catch attempt")},delegateYield:function(jr,Vr,yi){return this.delegate={iterator:Ui(jr),resultName:Vr,nextLoc:yi},this.method==="next"&&(this.arg=void 0),Ht}},De}function cl(De){return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},cl(De)}function Al(De,ke,Ve,qe,it,dt,bt){try{var vt=De[dt](bt),Nt=vt.value}catch(Pt){return void Ve(Pt)}vt.done?ke(Nt):Promise.resolve(Nt).then(qe,it)}function Vs(De){return function(){var ke=this,Ve=arguments;return new Promise(function(qe,it){var dt=De.apply(ke,Ve);function bt(Nt){Al(dt,qe,it,bt,vt,"next",Nt)}function vt(Nt){Al(dt,qe,it,bt,vt,"throw",Nt)}bt(void 0)})}}function Zs(De,ke){if(!(De instanceof ke))throw new TypeError("Cannot call a class as a function")}function Us(De,ke){for(var Ve=0;VeDe.length)&&(ke=De.length);for(var Ve=0,qe=new Array(ke);Ve=De.length?{done:!0}:{done:!1,value:De[qe++]}},e:function(Nt){throw Nt},f:it}}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 dt,bt=!0,vt=!1;return{s:function(){Ve=Ve.call(De)},n:function(){var Nt=Ve.next();return bt=Nt.done,Nt},e:function(Nt){vt=!0,dt=Nt},f:function(){try{bt||Ve.return==null||Ve.return()}finally{if(vt)throw dt}}}}function gl(De){var ke=32;switch(De){case 0:ke=23;break;case 1:ke=26;break;case 2:default:ke=32;break;case 3:ke=38}return ke}function zs(De){De=De.sort();for(var ke=[],Ve=0;Veke&&Ve<2*ke||Ve>ke&&Ve<3*ke)&&qe.push(De.length);var Nt=qe.length;Nt===1?it.push({text:De,x:0,y:0}):Nt===2?qe.forEach(function(Pt,Ht){Ht===0?it.push({text:De.substring(0,Pt),x:0,y:-7}):it.push({text:De.substring(qe[0],Pt),x:0,y:7})}):qe.forEach(function(Pt,Ht){Ht===0?it.push({text:De.substring(0,Pt),x:0,y:-12}):Ht===1?it.push({text:De.substring(qe[0],Pt+1),x:0,y:4}):De.length>Pt?(()=>{var $t=it.reduce((hn,Pn)=>hn+Pn.text.length,0);it.push({text:De.substring($t,$t+2)+(De.length-($t+2)>0?"...":""),x:0,y:16})})():it.push({text:De.substring(qe[1]+1,Pt),x:0,y:16})})}(),it}Cs.prototype;var Gs=["circle","rect","ellipse"],nl=["url(#radialGradient-1)","url(#radialGradient-2)","url(#radialGradient-3)"],hs=["url(#lines1)","url(#lines2)","url(#lines3)"];function yl(De,ke,Ve){return De.selectAll(".node-circle").remove(),De.selectAll(".node-circle").data(ke,function(qe){return qe.id}).enter().append(function(qe){return Gs.includes(qe.shape)?document.createElementNS("http://www.w3.org/2000/svg",qe.shape):document.createElementNS("http://www.w3.org/2000/svg","circle")}).style("display",function(qe){return qe.hide?"none":"block"}).style("opacity",function(qe){return qe.hide?"0":"1"}).attr("r",function(qe){return qe.shape=="circle"?Hs(qe.size):null}).attr("rx",function(qe){return qe.shape=="ellipse"?Hs(qe.size)+10:qe.shape=="rect"?10:null}).attr("ry",function(qe){return qe.shape=="ellipse"?Hs(qe.size)+10:qe.shape=="rect"?10:null}).attr("width",function(qe){return qe.shape=="rect"?3*(Hs(qe.size)-6):2*(Hs(qe.size)-6)}).attr("height",function(qe){return qe.shape=="rect"?1.5*(Hs(qe.size)-6):2*(Hs(qe.size)-6)}).attr("fill",function(qe){return qe.colorType?nl[qe.colorType-1]:qe.color||"url(#radialGradient-1)"}).attr("color",function(qe){return qe.color||"#2E8B57"}).attr("class",function(qe){return"node-circle node-circle-".concat(qe.id," transition-opacity duration-500")}).attr("id",function(qe){return"node-circle".concat(qe.id)}).style("cursor","pointer").on("mouseover",function(qe,it){var dt=it.activeColor||"#008FFF";qe.target.setAttribute("stroke",dt),qe.target.setAttribute("stroke-width","8")}).on("mouseout",function(qe){qe.target.setAttribute("stroke-width","0")}).append("title").text(function(qe){return qe.name}),De.selectAll(".node-circle")}function Hs(De){var ke=32;switch(De){case 0:ke=23;break;case 1:ke=26;break;case 2:default:ke=32;break;case 3:ke=38}return ke}function _l(De,ke){return De.selectAll("text").remove(),De.selectAll("text").data(ke,function(Ve){return Ve.id}).enter().append("text").attr("dy",".35em").attr("text-anchor","middle").attr("pointer-events","none").style("fill","#fff").style("font-size","10px").style("text-anchor","middle").attr("class",function(Ve){return"node-text node-circle node-circle--text-".concat(Ve.id," node-text-").concat(Ve.id," transition-opacity duration-500")}).style("cursor","pointer").append("svg:title").text(function(Ve){return Ve.name}),De.selectAll("text").style("display",function(Ve){return Ve.hide?"none":"block"}),De.selectAll("text").attr("d",function(Ve){Ve.shape=="rect"?_n(".node-circle--text-".concat(Ve.id)).append("tspan").style("cursor","pointer").append("tspan").text(function(qe){return qe.name}):tl(Ve.name,Hs(Ve.size)).forEach(function(qe,it){_n(".node-circle--text-".concat(Ve.id)).append("tspan").style("cursor","pointer").attr("class",function(dt){return"node-circle--tspan-".concat(dt.id,"-").concat(it)}).attr("x",qe.x).attr("y",qe.y).text(function(){return qe.text})})}),De.selectAll("text")}function Ss(De){var ke=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},it=qe._ops,dt=_n("body"),bt=[];if(ke&&it.isShowBatchOperation)return Ve.push(De.id),_n("".concat(it.containerName)).style("background","#5e5e5e"),Ve.forEach(function($t){bt.push(dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("color"))}),dt.selectAll("".concat(it.containerName," .node-circle")).attr("fill","#3c3b3b"),Ve.forEach(function($t,hn){dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("fill",bt[hn])}),void _n(".graph-bath").style("display","block");if(it.isShowMask){var vt=[],Nt=[];it.links.map(function($t){$t.source.id==De.id&&(vt.push($t.target.id),Nt.push($t.source.id+$t.target.id)),$t.target.id==De.id&&(vt.push($t.source.id),Nt.push($t.source.id+$t.target.id))});var Pt=zs(vt),Ht=zs(Nt);Pt.push(De.id),dt.selectAll("".concat(it.containerName," .line-item")).style("display","none"),_n("".concat(it.containerName)).style("background","#5e5e5e"),Pt.forEach(function($t){bt.push(dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("color"))}),dt.selectAll("".concat(it.containerName," .node-circle")).attr("fill","#3c3b3b"),Pt.forEach(function($t,hn){dt.select("".concat(it.containerName," .node-circle-").concat($t)).attr("fill",bt[hn])}),Ht.forEach(function($t){dt.selectAll("".concat(it.containerName," .line-item-").concat($t)).style("display",function(hn){return hn.hide?"none":"block"})})}}var vs=[],ha={addPath:function(De){De.forEach(function(ke){var Ve=vs.indexOf(ke);Ve!=-1&&vs.splice(Ve,1),vs.unshift(ke)})},getPath:function(){return vs},clearPath:function(){vs.length=0}};function ts(De,ke,Ve,qe){return Dl.apply(this,arguments)}function Dl(){return Dl=Vs(bs().mark(function De(ke,Ve,qe,it){var dt;return bs().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return dt=qe._ops,bt.delegateYield(bs().mark(function vt(){var Nt,Pt,Ht,$t,hn,Pn,Dn,pn,bn,Gn,Un,sr,cr,ni,Tr,Si,Ui,Fi,jr,Vr,yi,zn,fr,$r,xr,Yr,Lr,Or,Bi,na;return bs().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:Oi.t0=ke,Oi.next=Oi.t0==="remove"?3:Oi.t0==="hide"?19:Oi.t0==="contraction"?22:Oi.t0==="extend"?42:Oi.t0==="editSize"?62:Oi.t0==="editColor"?71:Oi.t0==="editShape"?79:Oi.t0==="extend-path"?87:Oi.t0==="contraction-path"?96:100;break;case 3:Nt=0;case 4:if(!(Nt1?Lr[1]:null)&&ns.contractionPath(Or,Lr,qe),ns.extendPath(Yr,qe),ns.previousStep.id=Yr,ns.previousStep.operate="extend",qe.update(),Oi.abrupt("break",100);case 96:return Bi=Ve[0],(na=ha.getPath()).indexOf(Bi)!=-1&&(ns.contractionPath(Bi,na,qe),ns.previousStep.operate=="extend"&&ns.previousStep.id!=Bi?(ns.extendPath(ns.previousStep.id,qe),ns.previousStep.operate="extend"):(ns.previousStep.id=Bi,ns.previousStep.operate="contraction"),qe.update()),Oi.abrupt("break",100);case 100:case"end":return Oi.stop()}},vt)})(),"t0",2);case 2:_n(dt.containerName).style("background",dt.background);case 3:case"end":return bt.stop()}},De)})),Dl.apply(this,arguments)}var xl,ns={extendPath:function(De,ke){for(var Ve=ke._ops,qe=Ve.nodes,it=Ve.links,dt=[],bt=[],vt=0;vt0)for(var Ht=0;Ht1&&arguments[1]!==void 0?arguments[1]:{};xl=De,ke._linkContainer.selectAll(".connect-item")._groups[0].length||ke._linkContainer.append("g").attr("class","connect-item").append("path").attr("stroke-width",2).attr("stroke","#5e5ef0").attr("class","connect-item-inner"),_n("".concat(ke._ops.containerName)).on("mousemove",function(Ve){yo(Ve,ke)})}function yo(De,ke){var Ve,qe,it,dt=(Ve=ke._linkContainer._groups[0][0].parentNode.attributes.transform,{translate:(it=(qe=Ve)&&/translate/.test(qe.value)&&/scale/.test(qe.value)&&qe.value.match(/translate\(([^\)]+)\)\s?scale\(([^\)]+)/))&&it[1].split(",")||[0,0],scale:it&&it[2]||1}),bt=dt.translate,vt=dt.scale;ke._linkContainer.selectAll(".connect-item-inner").attr("d",function(){return"M".concat(xl.x,", ").concat(xl.y," L").concat(De.offsetX/vt-bt[0]/vt,", ").concat(De.offsetY/vt-bt[1]/vt)})}function zo(De){return Array.isArray(De[0])?{message:"success",done:function(ke){for(var Ve=0;Ve1&&arguments[1]!==void 0?arguments[1]:"order",Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,dt=!0;return qe==1&&De.length%2==0&&(dt=!1),De.map(function(bt,vt){bt._level=qe,bt._value=qe==1?vt+1:vt+1+(Ve-1)*De.length,bt._parent=qe==2?1:it,bt._site=qe!=1||dt?ke:vt=bn/2){var ni=sr.startAngle;sr.startAngle=sr.endAngle,sr.endAngle=ni}return sr})):(bn=Pt._level==1?Pt.children.length*$t._toolbarData.length:Pt.children.length*Pt._num,pn=Js()(new Array(bn).fill(1)).map(function(sr){if(Pt._site=="left"){var cr=sr.startAngle;sr.startAngle=sr.endAngle,sr.endAngle=cr}return sr})),Ht._num=pn.length;var Un=Pt._value;return Ht._site=="left"?(Gn=pn.slice(pn.length/2,pn.length),Un=Pt._value-Pt._num/2):Gn=pn.slice(0,pn.length/2),hn=wn(Gn,Gn.length/(Pt._num/2))[Un-1],Pt._level==0&&(hn=pn),hn}(Ve,dt,qe),Nt=Li(vt[bt].startAngle,vt[bt].endAngle);return function(Pt){return ia?function(Ht,$t,hn,Pn,Dn,pn,bn,Gn){var Un=xt(hn[bn].startAngle,$t(Ht),Dn._level+1,Dn._level+2,Gn),sr=Un.centroid(hn[bn]);return Pn[bn].setAttribute("x",sr[0]-6),Pn[bn].setAttribute("y",sr[1]-6),Gn._operationContainer.selectAll("".concat(pn," .pie-icon")).transition().delay(150).styleTween("display",function(){return qr("none",ia?"block":"none")}),Un()}(Pt,Nt,vt,it,Ve,ke,bt,qe):""}})}}}]),De}();function _t(De){De.selectAll(".arc-item .pie-item").interrupt().attr("d",null),De.selectAll(".arc-item .pie-icon").interrupt().style("display","none"),De.style("display","none"),De.selectAll(".operation-item").attr("transform",function(){return"rotate(0)"}),ia=!1}var xt=function(De,ke){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,it=arguments.length>4?arguments[4]:void 0;return Ts().innerRadius(Ve*it.containerSize+2).outerRadius(qe*it.containerSize).padAngle(.02).startAngle(De).endAngle(ke)};function Xt(){return Xt=Vs(bs().mark(function De(ke,Ve,qe){var it,dt,bt;return bs().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:vt.t0=ke.type,vt.next=vt.t0==="connect"?3:vt.t0==="unlocked"?8:33;break;case 3:return Pa.length=0,La=!0,Pa.push(Ve),Zo(Ve,qe._example),vt.abrupt("break",36);case 8:dt=el(qe._example._ops.nodes),vt.prev=9,dt.s();case 11:if((bt=dt.n()).done){vt.next=19;break}if((it=bt.value).id!=Ve.id){vt.next=17;break}return it.fx=null,it.fy=null,vt.abrupt("break",19);case 17:vt.next=11;break;case 19:vt.next=24;break;case 21:vt.prev=21,vt.t1=vt.catch(9),dt.e(vt.t1);case 24:return vt.prev=24,dt.f(),vt.finish(24);case 27:return qe._example._simulation._simulation.nodes(qe._example._ops.nodes),qe._example._simulation._simulation.alphaTarget(.08).restart(),setTimeout(function(){qe._example._simulation._simulation.alphaTarget(0)},300),vt.next=32,ke.click(Ve);case 32:return vt.abrupt("break",36);case 33:return vt.next=35,ke.click({node:Ve});case 35:ts(ke.type,[Ve.id],qe._example);case 36:jn=null,_t(qe._operationContainer);case 38:case"end":return vt.stop()}},De,null,[[9,21,24,27]])})),Xt.apply(this,arguments)}function cn(){return(cn=Vs(bs().mark(function De(ke,Ve){var qe,it,dt;return bs().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return _n(".graph-container").on("mousemove",null),La=!1,Pa.push(ke),it={node:ke,connects:(qe=[]).concat.apply(qe,Pa)},bt.next=6,va.click(it);case 6:dt=bt.sent,zo(dt||[Pa.splice(0)]).done(Ve),Ss(it.connects[0],!1,[],Ve),Pa.length=0;case 11:case"end":return bt.stop()}},De)}))).apply(this,arguments)}function wn(De,ke){for(var Ve=[],qe=0;qe4&&arguments[4]!==void 0?arguments[4]:1,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7,bt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7;this.deflection=qe;var vt=function(Lr){return Lr*Lr},Nt=this.deflection*Math.PI/180,Pt={x:Math.cos(Nt)*De,y:Math.sin(Nt)*De},Ht=De/(ke+bt),$t=-Ve*Ht/(1-Ht),hn=function(Lr,Or,Bi,na){var Oi=Lr.y/(Lr.x-$t),Ea=Lr.y-Oi*Lr.x,Ma=1+vt(Oi),Na=2*(Oi*Ea-Bi),ji=vt(Ea)+vt(Bi)-vt(Or),aa={x:(-Na+na*Math.sqrt(vt(Na)-4*Ma*ji))/(2*Ma)};return aa.y=(aa.x-$t)*Oi,aa},Pn=hn(Pt,ke+bt,Ve,-1),Dn=-Pt.x/Pt.y,pn=Pt.y+vt(Pt.x)/Pt.y,bn=-(Pn.x-Ve)/Pn.y,Gn=Pn.y+(Pn.x-Ve)*Pn.x/Pn.y,Un=(pn-Gn)/(bn-Dn),sr=Dn*Un+pn,cr=Math.sqrt(vt(Un-Pt.x)+vt(sr-Pt.y)),ni=Math.atan2(Pt.x-Un,sr-Pt.y),Tr=Math.atan2(Pn.x-Un,sr-Pn.y),Si=(ni+Tr)/2;this.deflection>0&&(Si+=Math.PI);var Ui=Tr-ni;this.deflection>0&&(Ui=2*Math.PI-Ui),this.shaftLength=Ui*cr,ni>Tr&&(this.shaftLength=0),this.midShaftPoint={x:Un+cr*Math.sin(Si),y:sr-cr*Math.cos(Si)};var Fi=function(Lr){var Or=(Lr<0?1:-1)*Math.sqrt(vt(Lr)/(1+vt(Dn))),Bi=Dn*Or;return{x:Pt.x+Or,y:Pt.y+Bi}},jr=function(Lr){var Or=(Lr<0?-1:1)*Math.sqrt(vt(Lr)/(1+vt(bn))),Bi=bn*Or;return{x:Pn.x+Or,y:Pn.y+Bi}},Vr=function(Lr,Or){return{x:Un+(cr+Or)*Math.sin(Lr),y:sr-(cr+Or)*Math.cos(Lr)}},yi=function(Lr){var Or=(Lr<0?-1:1)*Math.sqrt(vt(Lr)/(1+vt(1/bn))),Bi=Or/bn;return{x:Pn.x+Or,y:Pn.y-Bi}},zn=function(Lr){return Lr.x+","+Lr.y},fr=it/2,$r=dt/2,xr=Pt.y>0?0:1,Yr=Pt.y<0?0:1;this.outline=function(){if(ni>Tr)return["M",zn(jr(-$r)),"L",zn(yi(bt)),"L",zn(jr($r)),"Z"].join(" ");var Lr=Si-0,Or=Si+0;return["M",zn(Fi(fr)),"L",zn(Fi(-fr)),"A",cr-fr,cr-fr,0,0,xr,zn(Vr(Lr,-fr)),"L",zn(Vr(Lr,fr)),"A",cr+fr,cr+fr,0,0,Yr,zn(Fi(fr)),"Z","M",zn(Vr(Or,fr)),"L",zn(Vr(Or,-fr)),"A",cr-fr,cr-fr,0,0,xr,zn(jr(-fr)),"L",zn(jr(-$r)),"L",zn(yi(bt)),"L",zn(jr($r)),"L",zn(jr(fr)),"A",cr+fr,cr+fr,0,0,Yr,zn(Vr(Or,fr))].join(" ")}}function qn(De,ke,Ve){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:8,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7,bt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7,vt=Ve*Math.PI/180,Nt=De,Pt=De+bt,Ht=De+ke,$t=Ht*Math.tan(vt/2),hn=it/2;function Pn(Un,sr){return Un+","+sr}this.shaftLength=3*$t+it;var Dn=function(Un,sr,cr){var ni=sr*Math.tan(vt/2),Tr=sr/Math.cos(vt/2);return Pn((ni+cr)*Math.sin(Un),Tr+(ni+cr)*Math.cos(Un))},pn=function(){var Un=Dn(0,Ht,hn+qe/2+2).split(",");return{x:Un[0],y:Un[1]}};this.midShaftPoint=pn();var bn=function(Un,sr){return Dn((Math.PI+vt)/2,Un,sr)},Gn=function(Un,sr){return Dn(-(Math.PI+vt)/2,Un,sr)};this.outline=function(){var Un=$t-hn,sr=$t+hn;return["M",bn(Nt,hn),"L",bn(Ht,hn),"A",sr,sr,0,1,1,Gn(Ht,hn),"L",Gn(Pt,hn),"L",Gn(Pt,-dt/2),"L",Gn(Nt,0),"L",Gn(Pt,dt/2),"L",Gn(Pt,-hn),"L",Gn(Ht,-hn),"A",Un,Un,0,1,0,bn(Ht,-hn),"L",bn(Nt,-hn),"Z"].join(" ")}}function En(De,ke,Ve){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:7,dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:7;this.length=Ve-(De+ke),this.shaftLength=this.length-dt;var bt=De,vt=bt+this.shaftLength,Nt=bt+this.length,Pt=qe/2,Ht=it/2;this.midShaftPoint={x:bt+this.shaftLength/2,y:0},this.outline=function(){var $t=0,hn=0;return["M",bt,Pt,"L",$t,Pt,"L",$t,-Pt,"L",bt,-Pt,"Z","M",hn,Pt,"L",vt,Pt,"L",vt,Ht,"L",Nt,0,"L",vt,-Ht,"L",vt,-Pt,"L",hn,-Pt,"Z"].join(" ")}}function er(){}var Xn=new er;function Pr(De,ke){this.relationships=[],De.idqe)return Ve;var it=Math.ceil((qe-ke)/12);return Ve.length-it<=0?"":Ve.substr(0,Ve.length-it)+"\u2026"}},er.prototype.distributeAnglesForLoopArrows=function(De,ke){for(var Ve,qe=0,it=Array.from(De);qe0){var hn=void 0,Pn=void 0,Dn={start:0,end:0};for(dt=0;dtDn.end-Dn.start&&(Dn.start=Pn,Dn.end=hn);for(bt=(Dn.end-Dn.start)/(Ve.relationships.length+1),dt=0;dt150?150/Pt:30,$t=0;$thn.x&&(dt=hn.x),bthn.y&&(vt=hn.y),Nt=hn)){(Un.data!==bt||Un.next)&&(Tr===0&&(Fi+=(Tr=Fa(vt))*Tr),Si===0&&(Fi+=(Si=Fa(vt))*Si),Fi<$t&&(Fi=Math.sqrt($t*Fi)));do Un.data!==bt&&(Ui=Pt[Un.data.index]*Nt/Fi,bt.vx+=Tr*Ui,bt.vy+=Si*Ui);while(Un=Un.next)}}return Dn.initialize=function(Un,sr){dt=Un,vt=sr,pn()},Dn.strength=function(Un){return arguments.length?(Ht=typeof Un=="function"?Un:Ba(+Un),pn(),Dn):Ht},Dn.distanceMin=function(Un){return arguments.length?($t=Un*Un,Dn):Math.sqrt($t)},Dn.distanceMax=function(Un){return arguments.length?(hn=Un*Un,Dn):Math.sqrt(hn)},Dn.theta=function(Un){return arguments.length?(Pn=Un*Un,Dn):Math.sqrt(Pn)},Dn}().strength(-350)).force("collide",function(dt){var bt,vt,Nt,Pt=1,Ht=1;function $t(){for(var Dn,pn,bn,Gn,Un,sr,cr,ni=bt.length,Tr=0;TrGn+$r||VrUn+$r||yibn.index){var xr=Gn-zn.x-zn.vx,Yr=Un-zn.y-zn.vy,Lr=xr*xr+Yr*Yr;Lr<$r*$r&&(xr===0&&(Lr+=(xr=Fa(Nt))*xr),Yr===0&&(Lr+=(Yr=Fa(Nt))*Yr),Lr=($r-(Lr=Math.sqrt(Lr)))/Lr*Pt,bn.vx+=(xr*=Lr)*($r=(fr*=fr)/(cr+fr)),bn.vy+=(Yr*=Lr)*$r,zn.vx-=xr*($r=1-$r),zn.vy-=Yr*$r)}}}function hn(Dn){if(Dn.data)return Dn.r=vt[Dn.data.index];for(var pn=Dn.r=0;pn<4;++pn)Dn[pn]&&Dn[pn].r>Dn.r&&(Dn.r=Dn[pn].r)}function Pn(){if(bt){var Dn,pn,bn=bt.length;for(vt=new Array(bn),Dn=0;Dn3&&arguments[3]!==void 0?arguments[3]:1,dt=qe.benchmark,bt=qe.height,vt=qe.width,Nt=qe.isResize,Pt=qe.layout,Ht=Pt.distance?Pt.distance:Math.min(bt,vt)/2-80,$t=Xi(Ve).iterations(.05).id(function(hn){return hn[dt]}).distance(function(){return Ve.length<=5&&Nt?100:Ve.length<=20&&Nt?Ht:Ve.length<=60?180:230});this._simulation.nodes(ke).force("link",$t).velocityDecay(.2).alpha(it).alphaDecay(.08),this._simulation.restart()}},{key:"addSimulationEvent",value:function(ke,Ve,qe,it){var dt=this,bt=Ll(ke,3),vt=bt[0],Nt=bt[1],Pt=bt[2];this._simulation.on("tick",function(){return Xn.layoutRelationships(it),dt._root.layout.force&&Xn.layoutNodes(dt._root),vt.attr("transform",function(Ht){return"translate("+Ht.source.x+" "+Ht.source.y+") rotate("+(Ht.naturalAngle-180)+")"}),Nt.attr("d",function(Ht){return Ht.arrow.outline(Ht)}),Pt.attr("x",function(Ht){return Ht.arrow.midShaftPoint.x}).attr("y",function(Ht){return Ht.arrow.midShaftPoint.y+13}).attr("transform",function(Ht){return Ht.naturalAngle<90||Ht.naturalAngle>270?"rotate(180 "+Ht.arrow.midShaftPoint.x+" "+Ht.arrow.midShaftPoint.y+")":null}).text(function(Ht){return Ht.shortCaption}),Ve.attr("cx",function(Ht){return Ht.x}).attr("cy",function(Ht){return Ht.y}).attr("x",function(Ht){return Ht.shape=="rect"?Ht.x-gl(Ht.size):Ht.x-Ht.size+6}).attr("y",function(Ht){return Ht.shape=="rect"?Ht.y-gl(Ht.size)/1.5:Ht.y-Ht.size+6}),void qe.attr("x",function(Ht){return tl(Ht.name,gl(Ht.size)).forEach(function($t,hn){_n(".node-circle--tspan-".concat(Ht.id,"-").concat(hn)).attr("x",Ht.x).attr("y",$t.y+Ht.y)}),Ht.x}).attr("y",function(Ht){return Ht.y})})}},{key:"drag",value:function(){var ke=this;return function(){var Ve,qe,it,dt,bt=nr,vt=ur,Nt=Nn,Pt=In,Ht={},$t=Me("start","drag","end"),hn=0,Pn=0;function Dn(Tr){Tr.on("mousedown.drag",pn).filter(Pt).on("touchstart.drag",Un).on("touchmove.drag",sr,kt).on("touchend.drag touchcancel.drag",cr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function pn(Tr,Si){if(!dt&&bt.call(this,Tr,Si)){var Ui=ni(this,vt.call(this,Tr,Si),Tr,Si,"mouse");Ui&&(_n(Tr.view).on("mousemove.drag",bn,ln).on("mouseup.drag",Gn,ln),Qn(Tr.view),Cn(Tr),it=!1,Ve=Tr.clientX,qe=Tr.clientY,Ui("start",Tr))}}function bn(Tr){if(Mn(Tr),!it){var Si=Tr.clientX-Ve,Ui=Tr.clientY-qe;it=Si*Si+Ui*Ui>Pn}Ht.mouse("drag",Tr)}function Gn(Tr){_n(Tr.view).on("mousemove.drag mouseup.drag",null),mr(Tr.view,it),Mn(Tr),Ht.mouse("end",Tr)}function Un(Tr,Si){if(bt.call(this,Tr,Si)){var Ui,Fi,jr=Tr.changedTouches,Vr=vt.call(this,Tr,Si),yi=jr.length;for(Ui=0;Ui `;te.createContainer=class{constructor(De){var ke=["style","innerHTML","body","absolute","append","defsvg","div","createElement","zIndex"],Ve=function(vt,Nt){vt=vt-0;var Pt=ke[vt];return Pt};if(!document.getElementById("defsvg")){var qe=document[Ve("0x7")](Ve("0x6"));qe.id=Ve("0x5"),qe[Ve("0x1")]=pr,qe[Ve("0x0")].position=Ve("0x3"),qe.style.top="-10000px",qe[Ve("0x0")][Ve("0x8")]=-1,document[Ve("0x2")][Ve("0x4")](qe)}rn.prototype.addElement=function(vt){for(var Nt=arguments.length,Pt=new Array(Nt>1?Nt-1:0),Ht=1;Ht2&&arguments[2]!==void 0?arguments[2]:.1,pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,bn=ks().scaleExtent([Dn,pn]).on("zoom",function(Gn){Pn.attr("transform",Gn.transform)});bt.zoom=bn,hn.call(bn),Pn.on("dblclick.zoom",null),hn.on("dblclick.zoom",null)}(Ht,$t,Pt.zoomOptions.minScale,Pt.zoomOptions.maxScale)}(it,this),this._simulation=new yr(this),this._pie=new Bo(this),this.update()}addNode(De){(function(ke,Ve){Ve._ops.nodes.push(ke),Ve.update()})(De,this)}zoomIn(){_n(this._ops.containerName).select("svg").transition().duration(750).call(this.zoom.scaleBy,1.2)}zoomOut(){_n(this._ops.containerName).select("svg").transition().duration(750).call(this.zoom.scaleBy,.8)}toggleNode(De){if(!this._ops.clickToggle)return;var ke=this._ops.nodes,Ve=this._ops.links;De.isExtendedState=!De.isExtendedState;var qe=!De.isExtendedState,it=[De.id];function dt(bt,vt,Nt){Nt.forEach(Pt=>{if(Pt.source.id===bt){Pt.hide=qe;const Ht=vt.find($t=>$t.id===Pt.target.id);Ht&&(Ht.hide=qe,it.push(Ht.id),dt(Ht.id,vt,Nt))}})}setTimeout(()=>{it.forEach(bt=>{Ve.forEach(vt=>{(vt.source.id===bt||vt.target.id===bt)&&vt.target.id!==De.id&&(vt.hide=qe)})}),this.update()},100),dt(De.id,ke,Ve)}showAllNodes(){this._ops.nodes.forEach(De=>{De.hide=!1}),this._ops.links.forEach(De=>{De.hide=!1}),this.update()}deleteNode(De){(function(ke,Ve){Ve._ops.nodes=Ve._ops.nodes.filter(function(qe){return qe.id!==ke.id}),Ve._ops.links=Ve._ops.links.filter(function(qe){return qe.source.id!==ke.id&&qe.target.id!==ke.id}),Ve.update(),_t(Ve.operationContainer)})(De,this)}scrollToNode(De){const Ve=document.querySelector(this._ops.containerName+" svg").querySelector("g.graph-box"),qe=this._ops.nodes.find(Ht=>Ht.id===De);if(!qe)return;const it=qe.x,dt=qe.y,bt=1287,vt=596,Nt=bt/2-it,Pt=vt/2-dt;Ve.setAttribute("transform",`translate(${Nt}, ${Pt})`)}selectToNode(De){const ke=document.querySelector(this._ops.containerName+" svg");document.body.querySelectorAll("circle.node-circle").forEach(Ve=>{Ve.classList.remove("highlightNode")}),De&&ke.querySelector(".node-circle-"+De).classList.add("highlightNode")}update(De=!0,ke={}){var Ve,qe;this._pie.showPie("");const it=this._ops.nodes,dt=this._ops.links,bt=this._nodeContainer.addElement(yl,it,this),vt=this._linkContainer.addElement(Rl,dt,this),Nt=this._textContainer.addElement(_l,it);bt.on("click",(hn,Pn)=>Ce(this,null,function*(){this.toggleNode(Pn);const Dn=yield this._ops.nodeClick(Pn);if(Dn){const{type:pn,id:bn}=Dn;ts(pn,bn,this)}})),this._ops.isCustomMouse&&(bt.on("mouseover",(hn,Pn)=>Ce(this,null,function*(){yield this._ops.nodeMouseover(Pn)})),bt.on("mouseout",()=>Ce(this,null,function*(){yield this._ops.nodeMouseout()}))),bt.on("contextmenu",(hn,Pn)=>{hn.preventDefault(),this._pie.showPie(Pn,hn)}),bt.call(this._simulation.drag());const Pt=(Ve=document.querySelector(this._ops.containerName))===null||Ve===void 0?void 0:Ve.clientWidth,Ht=(qe=document.querySelector(this._ops.containerName))===null||qe===void 0?void 0:qe.clientHeight,$t=document.getElementsByClassName(`${this._ops.containerName}-graph-container`)[0];$t&&Pt&&Ht&&(this._ops.width=Pt,this._ops.height=Ht,$t.setAttribute("viewBox",`0 0 ${Pt} ${Ht}`)),De?this._simulation.updateSimulation(it,dt,this._ops):this._simulation.updateSimulation(it,dt,this._ops,.1),this._simulation.addSimulationEvent(vt,bt,Nt,dt),function(hn,Pn){var Dn=["object","function","undefined"];if(cl(Pn)!=="object")return hn;for(var pn in Pn)Dn.indexOf(cl(Pn[pn]))===-1&&(hn[pn]=Pn[pn])}(this._ops,ke),Object.getOwnPropertyNames(ke).length&&this._updateBaseTheme()}_updateBaseTheme(){_n(this._ops.containerName).style("background",this._ops.background)}},te.storage=ha,Object.defineProperty(te,"__esModule",{value:!0})})},23216:function(Yn,en,Ce){"use strict";Ce.d(en,{Ax:function(){return pe},Ds:function(){return Oe},KI:function(){return ue},SI:function(){return Me},f1:function(){return Ye}});var te=Ce(14185);function Ye(fe){let he=!0;if(fe.length>0){for(let le=0;le{const he=pe.createElement("div",{className:Ye.wrap,onClick:le=>{le.preventDefault(),le.stopPropagation()}},pe.createElement("p",null,ue==="shixun"||ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",pe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),pe.createElement("div",{className:Ye.contact},pe.createElement("div",{className:Ye.img},pe.createElement("img",{src:Me,width:"124px",height:"124px"})),pe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return pe.createElement(te.Z,{content:he},pe.createElement("span",{className:Ye.text,style:fe},"\u9AD8\u6D88\u8017"))}},40254:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ae}});var te=Ce(59301),Ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(29787),ve=Ce(2859),ue=Ce(49317),fe=Ce(76406),he=(ie,me,E)=>new Promise((b,z)=>{var ne=de=>{try{se(E.next(de))}catch(a){z(a)}},oe=de=>{try{se(E.throw(de))}catch(a){z(a)}},se=de=>de.done?b(de.value):Promise.resolve(de.value).then(ne,oe);se((E=E.apply(ie,me)).next())}),ae=({data:ie,className:me,fullWidth:E,style:b={},onClose:z,onOk:ne,showFullTools:oe,noAssociationId:se})=>{const de=(0,te.useRef)(null),a=(0,te.useRef)(null),x=(0,te.useRef)(null),re=(0,te.useRef)(null),[ce,ge]=(0,te.useState)(!1),[_e,ye]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(x.current||(x.current=document.createElement("style"),document.head.appendChild(x.current)),ie!=null&&ie.visible?(document.body.setAttribute("data-custom","y-hidden"),x.current.innerHTML=" html { overflow-y: hidden; }",ie!=null&&ie.src&&be()):(document.body.removeAttribute("data-custom"),x.current&&(document.head.removeChild(x.current),x.current=null)),()=>{document.body.removeAttribute("data-custom"),x.current&&(document.head.removeChild(x.current),x.current=null)}),[ie==null?void 0:ie.visible]);const be=()=>he(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,fe.ZJ)(ie==null?void 0:ie.src);de.current.src="",de.current.src=we,de.current.onload=function(){Ae()},ge(!1),ye("")}),Se=we=>he(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ie.title,file:we.dataUrl}});Ue!=null&&Ue.id&&!se?(yield(0,ue.ZP)(`/api/attachments/${ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(we.state)}})).status===0&&ne():Ue!=null&&Ue.id&&ne(Ue),ge(!1),ye("")}),Be=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.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(Pe=>{const ze=document.querySelector(Pe.name);ze&&ze.setAttribute("title",Pe.title)})},Ae=()=>{a.current=new ve.hP(de.current),a.current.targetRoot=re.current,a.current.addEventListener("render",Se),a.current.addEventListener("beforeclose",z),oe&&(a.current.availableMarkerTypes=a.current.ALL_MARKER_TYPES,a.current.uiStyleSettings.redoButtonVisible=!0,a.current.uiStyleSettings.notesButtonVisible=!0,a.current.uiStyleSettings.zoomButtonVisible=!0,a.current.uiStyleSettings.zoomOutButtonVisible=!0,a.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=a.current.uiStyleSettings,a.current.show(),ie!=null&&ie.snapshotData&&a.current.restoreState(ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Be()},300)};return te.createElement(te.Fragment,null,(ie==null?void 0:ie.visible)&&te.createElement(Oe.Z,{spinning:ce,tip:_e,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:re,className:pe()(Ye.imageDimensions,me,E?Ye.fullWidth:""),style:b},te.createElement("img",{className:Ye.img,ref:de}))))}},9057:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(77019),Me=Ce(5269),pe=Ce(31691),Oe=Ce(7939),ve=Ce(35883),ue=Ce(74501),fe=Ce(48136),he=Ce(59301);const le=(0,te.forwardRef)(({callback:ae,showSaveButton:ie,value:me=""},E)=>{const b=(0,te.useRef)(),z=[{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 "}]}]}],ne=[{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}`}]}]}],oe=a=>{b.current.setValue(b.current.getValue()+" "+a.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:he.createElement(Ye.Z,{className:ue.Z.lists,gutter:[10,10]},z.map((a,x)=>he.createElement(Me.Z,{flex:"110px",className:ue.Z.item},he.createElement("div",null,he.createElement(ve.Z,{value:`$$${a.value}$$`}),a.name),he.createElement("div",{className:ue.Z.children},a.children.map((re,ce)=>he.createElement("div",{key:ce},he.createElement("h1",null,re.name),he.createElement(Ye.Z,{gutter:[10,10]},re.data.map((ge,_e)=>he.createElement(Me.Z,{key:_e,onClick:()=>oe(ge),className:ue.Z.diamond},he.createElement(ve.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:he.createElement(Ye.Z,{className:ue.Z.lists,gutter:[10,10]},ne.map((a,x)=>he.createElement(Me.Z,{flex:"110px",className:ue.Z.item},he.createElement("div",null,he.createElement(ve.Z,{value:"`$$"+a.value+"$$`"}),a.name),he.createElement("div",{className:ue.Z.children},a.children.map((re,ce)=>he.createElement("div",{key:ce},re.name&&he.createElement("h1",null,re.name),he.createElement(Ye.Z,{gutter:[10,10]},re.data.map((ge,_e)=>he.createElement(Me.Z,{key:_e,onClick:()=>oe(ge),className:ue.Z.diamond},he.createElement(ve.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],de=()=>{var a=document.createElement("div");a.innerHTML=b.current.getValue();var x=a.innerText;return ae&&ae(x),x};return(0,te.useImperativeHandle)(E,()=>({getData:de})),he.createElement("div",{className:ue.Z.mathWrap},he.createElement(pe.default,{defaultActiveKey:"1",items:se}),he.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:b,style:{width:800,marginTop:30,fontSize:18}},me||""),ie&&he.createElement("div",{className:ue.Z.button},he.createElement(Oe.ZP,{size:"large",onClick:de,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=le},90736:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(4977),Me=Ce(7939),pe=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,le=(E,b,z)=>b in E?pe(E,b,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[b]=z,ae=(E,b)=>{for(var z in b||(b={}))fe.call(b,z)&&le(E,z,b[z]);if(ue)for(var z of ue(b))he.call(b,z)&&le(E,z,b[z]);return E},ie=(E,b)=>Oe(E,ve(b));const me=({img:E,buttonProps:b={},styles:z={},customText:ne,ButtonText:oe,ButtonClick:se,Buttonclass:de,ButtonTwo:a,imgStyles:x,loading:re=!1,className:ce=""})=>te.createElement("section",{className:`tc animated fadeIn ${ce}`,style:ae({color:"#999",margin:"100px auto",visibility:re?"hidden":"visible"},z)},te.createElement("img",{src:E||Ye,style:ie(ae({},x),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},ne||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),oe&&te.createElement(Me.ZP,ae({className:de,onClick:se},b),oe),a&&a);en.Z=me},86974:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(59301),Ye={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Me=Ce(7939),pe=Ce(70557),Oe=Ce(34728),ve=Ce(25399),ue=Ce(76406),fe=Ce(84849),he=Ce(90736),le=Ce(14185),ae=Ce(52078),ie=Ce(59301),me=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(a,x,re)=>x in a?me(a,x,{enumerable:!0,configurable:!0,writable:!0,value:re}):a[x]=re,oe=(a,x)=>{for(var re in x||(x={}))b.call(x,re)&&ne(a,re,x[re]);if(E)for(var re of E(x))z.call(x,re)&&ne(a,re,x[re]);return a},se=(a,x,re)=>new Promise((ce,ge)=>{var _e=Se=>{try{be(re.next(Se))}catch(Be){ge(Be)}},ye=Se=>{try{be(re.throw(Se))}catch(Be){ge(Be)}},be=Se=>Se.done?ce(Se.value):Promise.resolve(Se.value).then(_e,ye);be((re=re.apply(a,x)).next())}),de=({editOffice:a="view",data:x,issaver:re,onSaver:ce,theme:ge,type:_e,filename:ye,monacoEditor:be,className:Se,style:Be,close:Ae,onClose:we,hasMask:Ue,disabledDownload:Pe,onImgDimensions:ze,showNodata:Ke,recordInfo:Ne})=>{const[Re,$e]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[nt,ut]=(0,te.useState)(""),[Qe,rt]=(0,te.useState)(),pt=window.ENV==="build"?"/react/build":"",At=location.host.startsWith("localhost")?le.Z.PROXY_SERVER:le.Z.API_SERVER,Ft=10*(1024*1024),Ct=(0,te.useRef)();x!=null&&x.startsWith("/api")&&_e!=="txt"&&(x=le.Z.API_SERVER+x);const Yt=et=>et.substring(et.lastIndexOf("/")+1).split(".").pop();ye&&be&&(be.filename=ye),(0,te.useEffect)(()=>{var et,He;const We=(He=(et=document.cookie)==null?void 0:et.replace(/\s/g,""))==null?void 0:He.split(";");We==null||We.map(tt=>{let at=tt.split("=");at[0]==="_educoder_session"&&ut(at[1])})},[]),(0,te.useEffect)(()=>{_e==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?rt({url:x,fileType:Yt(x),model:x.indexOf("model=edit")?"edit":"view"}):x.indexOf("coze")>-1?rt({url:x,fileType:"doc",model:"view"}):Xe())},[_e,x]);function zt(et){return se(this,null,function*(){et.data.type==="pdfdata"&&(ce(et.data.data),window.removeEventListener("message",zt,!1)),console.log("mess---:",et.data)})}const Xe=()=>se(void 0,null,function*(){console.log("data:",x);let et=x;x.startsWith("http")||(et=location.origin+et);let He=new URL(et).pathname.split("/").pop();const We=yield(0,fe.gJ)({attachment_id:He});We.url=At+We.url,rt(We)}),Fe=()=>{if(x.startsWith("http")||x.startsWith("blob:")){Le();return}(0,ue.Sv)(ye||"educoder",x,ye)},Le=()=>{Ne&&(0,ae.fc)({id:Ne==null?void 0:Ne.id,watch_type:1,course_id:Ne==null?void 0:Ne.course_id}),(0,ue.Nd)(ye||"educoder",decodeURIComponent(x))};(0,te.useEffect)(()=>(window.addEventListener("message",Ze),()=>{window.removeEventListener("message",Ze)}),[]);const Ze=et=>{var He;((He=et==null?void 0:et.data)==null?void 0:He.type)==="closePop"&&we()};return ie.createElement("div",{style:oe({},Be||{}),className:`${Ue&&Ye.bgBlack} ${_e?Ye.wrp:"hide"}`},!!_e&&Ae&&ie.createElement("div",{id:"closePop",className:Ye.close,ref:Ct},!!ze&&ie.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ct.current},ie.createElement("span",{onClick:()=>{we(),ze()}},ie.createElement("i",{className:"icon-yulanpizhu"}))),!Pe&&window.parent===window&&ie.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ct.current},ie.createElement("span",{onClick:Le},ie.createElement("i",{className:"icon-quxiaozhiding"}))),re&&ie.createElement(ve.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ct.current},ie.createElement("span",{className:"",onClick:()=>{const et=document.getElementById("pdfiframe");window.addEventListener("message",zt,!1),setTimeout(()=>{et.contentWindow.postMessage("getData","*")},300)}},ie.createElement("i",{className:"icon-baocun"}))),ie.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ct.current},ie.createElement("span",{className:"",onClick:()=>{we()}},ie.createElement("i",{className:"icon-guanbi1"})))),ie.createElement("div",{className:`${Ye[Se]} ${Se} ${Ye.monaco} ${_e==="txt"?"show":"hide"}`},_e==="txt"&&ie.createElement(ie.Fragment,null,ie.createElement(Oe.ZP,oe({},be)))),_e==="audio"&&ie.createElement("audio",{controls:!0,src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${x}`,autoPlay:!0}),_e==="video"&&ie.createElement(ie.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?ie.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),_e==="office"&&Qe&&ie.createElement("iframe",{src:`${pt}/office.html?key=${Qe.key}&url=${btoa(Qe.url)}&callbackUrl=${At+(Qe.callbackUrl||"")}&fileType=${Qe.fileType}&title=${Qe.title||""}&model=${a}&officeServer=${le.Z.ONLYOFFICE}&disabledDownload=${!!Pe}`}),_e==="html"&&ie.createElement("iframe",{src:x+"&disposition=inline"}),_e==="pdf"&&ie.createElement("iframe",{id:"pdfiframe",src:`${pt}/js/pdf/index.html?filename=${ye||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!Pe}&model=${a}`}),_e==="image"&&ie.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),(_e==="other"||_e==="download")&&ie.createElement(ie.Fragment,null,Ke?ie.createElement(he.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ie.createElement(Me.ZP,{icon:ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:Pe},"\u4E0B\u8F7D")}):ie.createElement(Me.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:Pe},ie.createElement(pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),_e==="flowChart"&&ie.createElement("div",{className:"embed"},ie.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${x||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},31034:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ue}});var te=Ce(36237),Ye=Ce(60840),pe={token:{colorPrimary:"#1B8565",colorInfo:"#1B8565",colorLink:"#1B8565",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},Oe=Ce(59301),ue=({children:fe,prefixCls:he="knowledgeGraph"})=>document.documentElement.style.fontSize!==""?Oe.createElement(te.StyleProvider,{transformers:[(0,te.px2remTransformer)({rootValue:1})]},Oe.createElement(Ye.ZP,{prefixCls:he,theme:pe},fe)):Oe.createElement(Oe.Fragment,null,fe)},35883:function(Yn,en,Ce){"use strict";Ce.d(en,{z:function(){return be},Z:function(){return Se}});var te=Ce(59301),Ye=Ce(46214),Me=Ce(20047),pe=Ce(64018),Oe=Ce(16471),ve=Ce(14185),ue=Ce(76406),fe=Ce(15342),he=Ce(44104),le=Ce(7939),ae=Ce(1012),ie=Ce(86974),me=Ce(59301),b=({html:Be})=>{const Ae=(0,te.useRef)(null),we=(0,te.useRef)(null),Ue=`.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,te.useEffect)(()=>{const Pe=Ae.current.attachShadow({mode:"open"});we.current=document.createElement("div"),we.current.className="markdown-body",we.current.innerHTML=Be,Pe.appendChild(we.current);const ze=document.createElement("style");return ze.textContent=Ue,Pe.appendChild(ze),()=>{Pe.innerHTML=""}},[]),(0,te.useEffect)(()=>{we.current&&(we.current.innerHTML=Be)},[Be]),me.createElement("div",{ref:Ae})};function z(Be){const Ae=["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"],we=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ue=/]*>/gi;return Be.replace(we,"").replace(Ue,"").trim()}var ne={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},oe=Object.defineProperty,se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Be,Ae,we)=>Ae in Be?oe(Be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:we}):Be[Ae]=we,re=(Be,Ae)=>{for(var we in Ae||(Ae={}))de.call(Ae,we)&&x(Be,we,Ae[we]);if(se)for(var we of se(Ae))a.call(Ae,we)&&x(Be,we,Ae[we]);return Be};const ce="@\u2581\u2581@",ge="@\u2581@",_e=/]*>/g;function ye(Be){let Ae=document.createElement("div");return Ae.innerHTML=Be,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const be=(Be,Ae)=>{Be=Be||"";const we=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(we,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/api/attachments/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Be=Be.replace(ze,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/attachments/download/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(we,(Ke,Ne,Re,$e,nt,ut,Qe)=>{const rt=Ne||$e||ut,pt=Re||nt||Qe||"?";return ve.Z.API_SERVER+"/api/attachments/"+rt+pt+"&t="+(0,ue.Jn)(rt,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(Ue,(Ke,Ne,Re,$e,nt)=>{const ut=Ne||$e,Qe=Re||nt||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+ut+Qe+ut+Qe+"&t="+(0,ue.Jn)(ut,Date.now())}).replace(Pe,(Ke,Ne,Re,$e,nt)=>{const ut=Ne||$e,Qe=Re||nt||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+ut+Qe+ut+Qe+"&t="+(0,ue.Jn)(ut,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,` `),Be)};var Se=({value:Be="",edit:Ae=!1,className:we,showTextOnly:Ue,showLines:Pe,style:ze={},stylesPrev:Ke={},highlightKeywords:Ne,showProgramFill:Re,isProgramFill:$e,disabledFill:nt=!1,programFillValue:ut,openEditor:Qe=()=>{},onFillChange:rt=gt=>{},onFillBlur:pt=()=>{},onFillFocus:At=()=>{}})=>{let gt=z(String(Be||""));const Ft=(0,te.useRef)(),Ct=(0,te.useRef)(),[Yt,zt]=(0,te.useState)(""),[Xe,Fe]=(0,te.useState)("office"),[Le,Ze]=(0,te.useState)([]),et=(0,te.useRef)("a"+(0,ae.Z)()),He={},We=an=>//i.test(an||""),tt=(an,An,Jt)=>{const Ut=document.createElement(an===ge?"input":"textarea");Ut.style.width="100%",Ut.style.height=an===ge?"40px":"151px",Ut.rows=5,Ut.spellcheck=!1,Ut.name="edu-program-fill",Ut.placeholder="\u8BF7\u8F93\u5165",Ut.dataset.id=An;const rn=Object.keys(He).length;return He[rn]=Ut,`${Ut.outerHTML}`};function at(an){return an=an.replace(/!\[.*?\]\(.*?\)/g,""),an=an.replace(/\[.*?\]\(.*?\)/g,""),an=an.replace(new RegExp("","gs"),""),an=an.replace(//g,""),an=an.replace(//g,""),an=an.replace(new RegExp(".*?<\\/video>","gs"),""),an=an.replace(new RegExp(".*?<\\/audio>","gs"),""),an=an.replace(new RegExp(".*?<\\/style>","gs"),""),an=an.replace(new RegExp(".*?<\\/script>","gs"),""),an}const ot=an=>!Ue&&We(gt)?an:an.replace(/([\s\S]+?)<\/style>/gim,function(An,Jt){let Ut=Jt.replace(/(\n|\r)/g,"").split("}"),rn=[];return Ut.map(_n=>{_n!=""&&rn.push(`.${et.current} ${_n}`)}),``}),ct=(0,te.useMemo)(()=>{(0,Me.Iy)();try{const Ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,rn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_n=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Bn=/\(\/attachments\/download\//g;gt=gt.replace(Bn,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Ut,"("+ve.Z.API_SERVER+"/api/attachments/").replace(rn,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(_n,'"'+ve.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,` `),Ft.current.style.display="none"}catch(Ut){}if(Re){let Ut=-1;return gt=gt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(rn,_n,Bn){var kt;return++Ut,tt(rn,Ut,(kt=ut==null?void 0:ut[Ut])==null?void 0:kt.value.replaceAll("<","<").replaceAll(">",">"))}),`
${ot(gt||"")}
`}let an=ot(gt);an=(0,Me.ZP)(an);const An=(0,Me.ez)();gt.match(/\[TOC\]/)&&(an=an.replace("

[TOC]

",(0,Me.Qv)()),(0,Me.Iy)()),an=an.replace(/(__special_katext_id_\d+__)/g,(Ut,rn)=>{const{type:_n,expression:Bn}=An[rn];return(0,fe.renderToString)(ye(Bn)||"",{displayMode:_n==="block",throwOnError:!1,output:"html"})}),an=an.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const Jt=document.createElement("div");if(Jt.innerHTML=an,Ue)return Jt.innerText;if(Ne){const Ut=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ft(Jt,Ut),Jt.innerHTML}return setTimeout(()=>on(),500),Jt.innerHTML},[gt,Ne]);(0,te.useEffect)(()=>{St.current&&St.current.querySelectorAll(["input","textarea"]).forEach(An=>{An.oninput=lt,An.onblur=mt,An.onfocus=Lt})},[Le]),(0,te.useEffect)(()=>{var an,An,Jt,Ut,rn;if(ut!=null&&ut.length)try{const _n=St.current.querySelectorAll(".edu-program-fill-score"),Bn=St.current.querySelectorAll('[name="edu-program-fill"]');for(const[kt,ln]of Bn.entries())ln.value=((an=ut==null?void 0:ut[kt])==null?void 0:an.value)||"",((An=ut==null?void 0:ut[kt])==null?void 0:An.type)==="warning"?ln.className="program-fill-warning":((Jt=ut==null?void 0:ut[kt])==null?void 0:Jt.type)==="success"?ln.className="program-fill-success":ln.className="";for(const[kt,ln]of _n.entries())ln.innerHTML=(Ut=ut==null?void 0:ut[kt])!=null&&Ut.score?`${(rn=ut==null?void 0:ut[kt])==null?void 0:rn.score}\u5206`:"";Ze(ut)}catch(_n){console.log(_n,"error")}},[ut]);const lt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),rt(Le,an.target.dataset.id)},mt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),pt(Le,an.target.dataset.id)},Lt=an=>{Le[an.target.dataset.id]=Le[an.target.dataset.id]||{},Le[an.target.dataset.id].value=an.target.value,Ze([...Le]),At(Le,an.target.dataset.id)};function ft(an,An){return an.childNodes.forEach(Jt=>{var Ut;if(Jt.childNodes.length>0)ft(Jt,An);else if(Jt.nodeName!=="IMG")if(Jt.innerHTML)Jt.innerHTML=(Ut=Jt.innerHTML)==null?void 0:Ut.replace(new RegExp(An,"gi"),'$&');else{const rn=document.createElement("span");rn.innerHTML=Jt.textContent.replace(new RegExp(An,"gi"),'$&'),Jt.replaceWith(rn)}})}const St=(0,te.useRef)();Me.jb.WebkitLineClamp=Pe,Pe&&(ze=re(re({},ze),Me.jb));function nn(an){let An=an.target;if(An.tagName.toUpperCase()==="A"){let Jt=An.getAttribute("href");if(Jt.indexOf("office")>-1)an.preventDefault(),zt(Jt),Fe("office");else if(Jt.indexOf("application/pdf")>-1)an.preventDefault(),zt(Jt),Fe("pdf");else if(Jt.indexOf("text/html")>-1)an.preventDefault(),zt(Jt),Fe("html");else if(Jt.startsWith("#")){an.preventDefault();let Ut=document.getElementById(Jt.replace("#",""));Ut&&Ut.scrollIntoView(!0)}}}const on=()=>{var an;const An=(an=St.current)==null?void 0:an.querySelectorAll("video");An==null||An.forEach(Jt=>{if(Jt.oncontextmenu=()=>!1,Jt.src.indexOf(".m3u8")>-1&&!Jt.canPlayType("application/vnd.apple.mpegurl")){if(Oe.ZP.isSupported()){var Ut=new Oe.ZP;Ut.loadSource(Jt.src),Ut.attachMedia(Jt)}}})};(0,te.useEffect)(()=>{if(St.current&&ct&&ct.match(_e)&&window.PR.prettyPrint(),St.current)return St.current.addEventListener("click",nn),()=>{var an;(an=St.current)==null||an.removeEventListener("click",nn),(0,Me.AL)(),(0,Me.Iy)()}},[ct,St.current,nn]);const yn=an=>{an.target.nodeName==="IMG"&&an.target.className.indexOf("draw-flowchart")>-1?(Ft.current.style.zIndex=1,Ft.current.style.display="flex",Ft.current.style.width=an.target.clientWidth+"px",Ft.current.style.height=an.target.clientHeight+"px",Ft.current.style.top=an.target.offsetTop+"px",Ft.current.style.left=an.target.offsetLeft+"px",an.target.id&&(Ct.current=an.target.id)):Ft.current.style.display="none"},xn=()=>{Ft.current.style.display="none"};return(0,te.useEffect)(()=>{var an;const An=Jt=>{Jt.preventDefault(),Jt.clipboardData.setData("text",window.getSelection().toString())};return(an=St.current)==null||an.addEventListener("copy",An),()=>{var Jt;(Jt=St.current)==null||Jt.removeEventListener("copy",An)}},[St.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:xn},Ue&&te.createElement("div",{ref:St,className:`${ne.mdBody} `},ct),!Ue&&!We(ct)&&te.createElement("div",{ref:St,style:re({},ze),onMouseOver:yn,className:`${we||""} ${nt?"disabled-fill":""} markdown-body ${ne.mdBody} ${et.current}`,dangerouslySetInnerHTML:{__html:ct}}),!Ue&&We(ct)&&te.createElement(b,{html:ct}),te.createElement("div",{ref:Ft,className:`${ne.button} ${Ae?"":ne.previewFlowChart}`},te.createElement(he.Z,null,te.createElement(le.ZP,{onClick:()=>{Ae?Qe(Ct.current):(zt(Ct.current),Fe("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(ie.Z,{close:!0,data:Yt,type:Yt!=null&&Yt.length?Xe:"",style:re({},Ke),onClose:()=>zt("")}))}},93328:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(28284),Me=Ce(77019),pe=Ce(82326),Oe=Ce(37568),ve=Ce(1560),ue=Ce(7939),fe=Ce(62673),he=Ce(25399),le=Ce(6767),ae=Ce(70858),ie=Ce(44283),me=Ce(66649),E=Ce.n(me),b=Ce(26724),z=Ce.n(b),ne=Ce(58143),oe=Ce(77996),se=Ce(70467),de=Ce(39967),a=Ce(59301),x=Object.defineProperty,re=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=(Ne,Re,$e)=>Re in Ne?x(Ne,Re,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ne[Re]=$e,Se=(Ne,Re)=>{for(var $e in Re||(Re={}))_e.call(Re,$e)&&be(Ne,$e,Re[$e]);if(ge)for(var $e of ge(Re))ye.call(Re,$e)&&be(Ne,$e,Re[$e]);return Ne},Be=(Ne,Re)=>re(Ne,ce(Re)),Ae=(Ne,Re,$e)=>new Promise((nt,ut)=>{var Qe=At=>{try{pt($e.next(At))}catch(gt){ut(gt)}},rt=At=>{try{pt($e.throw(At))}catch(gt){ut(gt)}},pt=At=>At.done?nt(At.value):Promise.resolve(At.value).then(Qe,rt);pt(($e=$e.apply(Ne,Re)).next())});const we=[];function Ue({onSearch:Ne,schools:Re}){return a.createElement(Ye.default,{colon:!1,layout:"horizontal",onFinish:Ne,initialValues:{keyword:"",school_name:"",search_type:"1"}},a.createElement(Me.Z,{style:{flexWrap:"nowrap"}},a.createElement(Ye.default.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},a.createElement(pe.default,{popupClassName:de.Z.selectdown,style:{width:106}},a.createElement(pe.default.Option,{value:"1"},"\u59D3\u540D"),a.createElement(pe.default.Option,{value:"2"},"\u624B\u673A\u53F7"),a.createElement(pe.default.Option,{value:"3"},"\u90AE\u7BB1"))),a.createElement(Ye.default.Item,{style:{marginLeft:20},label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},a.createElement(Oe.default,{allowClear:!0,style:{width:300},size:"middle"})),a.createElement(Ye.default.Item,{style:{marginLeft:20},label:"\u5355\u4F4D",name:"school_name"},a.createElement(ve.Z,{options:Re,style:{width:300},size:"middle",showSearch:!0,filterOption:($e,nt)=>nt.value.toUpperCase().indexOf($e.toUpperCase())!==-1,placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),a.createElement(ue.ZP,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",marginLeft:40,border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var Pe=(Ne=>(Ne[Ne.INITDATA=0]="INITDATA",Ne[Ne.INITSCHOOLS=1]="INITSCHOOLS",Ne[Ne.SHOWLOADING=2]="SHOWLOADING",Ne[Ne.SELECTEDIDS=3]="SELECTEDIDS",Ne[Ne.SETQUERY=4]="SETQUERY",Ne[Ne.SETPAGE=5]="SETPAGE",Ne))(Pe||{});function ze(Ne,Re){switch(Re.type){case 0:return Se(Se({},Ne),Re.payload);case 4:return Se(Se({},Ne),Re.payload);case 5:return Be(Se({},Ne),{page:Re.payload,reload:!1});case 2:return Be(Se({},Ne),{loading:Re.payload});case 1:return Be(Se({},Ne),{schools:Re.payload});case 3:return Be(Se({},Ne),{selectedIds:Re.payload});default:throw new Error}}const Ke={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};en.Z=({onSelect:Ne,onCancel:Re,container_id:$e,container_type:nt})=>{const[ut,Qe]=(0,te.useReducer)(ze,Ke),{data:rt,schools:pt,loading:At,selectedIds:gt,page:Ft,count:Ct,query:Yt,reload:zt}=ut;(0,te.useEffect)(()=>{function We(){return Ae(this,null,function*(){const{users:tt,user_count:at}=yield(0,oe.nQ)(Be(Se({},Yt),{page:Ft,container_type:nt,container_id:$e,display_aliases:!0}));Qe({type:0,payload:{data:zt?tt:[...rt,...tt],count:at}})})}Yt&&We()},[Ft,Yt,zt,$e,nt]),(0,te.useEffect)(()=>{function We(){return Ae(this,null,function*(){const{school_names:tt}=yield(0,oe.K$)({display_aliases:!0});Qe({type:1,payload:tt.map(at=>({value:at}))})})}We()},[]);const Xe=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:(We,tt)=>a.createElement(fe.default,{value:tt.numid,checked:gt.includes(tt.numid),disabled:!!We})},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:(We,tt)=>a.createElement("div",null,a.createElement(he.Z,{placement:"bottom",title:We},a.createElement(ie.Link,{style:{color:"#000000"},className:"bold c-black",to:`/users/${tt.login}`,target:"_blank"},We||"--")))},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},We||"--"))},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:We=>a.createElement("span",{style:{color:"#000000"}},We?"\u662F":"\u5426")},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:We=>a.createElement(he.Z,{placement:"bottom",title:We},a.createElement("span",{style:{color:"#000000"}},E()(We).format("YYYY-MM-DD HH:mm")))},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:We=>{if(We===1)return a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Fe(We){Qe({type:4,payload:{page:1,reload:!0,query:We}})}function Le(We){Qe({type:5,payload:We})}function Ze(We){let tt=gt.indexOf(We);tt>=0?gt.splice(tt,1):gt.push(We),Qe({type:3,payload:[...gt]})}function et(){gt.length===0?le.ZP.warning("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Ne(gt,$e),Qe({type:0,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}const He=Ct>Ft*10;return a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},a.createElement(Ue,{onSearch:Fe,schools:pt}),Yt?a.createElement(a.Fragment,null,a.createElement("div",{className:"flexd-table-header mt20"},a.createElement(se.Gi,null,a.createElement(ae.default,{pagination:!1,dataSource:we,columns:Xe}))),a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},a.createElement(z(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Le,hasMore:He,useWindow:!1},a.createElement(se.Gi,null,a.createElement(ae.default,{loading:At,showHeader:!1,pagination:!1,dataSource:rt,columns:Xe,onRow:We=>({onClick:tt=>{We.added!==1&&Ze(We.numid)}})})))),a.createElement("div",{className:"flex-container flex-end"},a.createElement(ue.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:Re},"\u53D6\u6D88"),a.createElement(ue.ZP,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:et},"\u786E\u5B9A"))):a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},a.createElement("img",{src:ne,width:"100",alt:""}),a.createElement("br",null),a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},42972:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return b}});var te=Ce(59301),Ye=Ce(6767),Me=Ce(75727),pe=Ce(72790),Oe=Ce(16471),ve=Ce(15267),ue=Ce(56102),fe=Ce(67195),he={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},le=(z,ne,oe)=>new Promise((se,de)=>{var a=ce=>{try{re(oe.next(ce))}catch(ge){de(ge)}},x=ce=>{try{re(oe.throw(ce))}catch(ge){de(ge)}},re=ce=>ce.done?se(ce.value):Promise.resolve(ce.value).then(a,x);re((oe=oe.apply(z,ne)).next())});function ae(z){if(isNaN(z))return{minutes:"00",seconds:"00"};const ne=new Date(z*1e3).toISOString().substr(11,8);return{hour:ne.substr(0,2),minutes:ne.substr(3,2),seconds:ne.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ie(z,ne){return z-ne}function me(z){z.sort(ie);let ne=0;for(let oe=0;oe{},handlePlay:ce=()=>{},handlePlayEnded:ge=()=>{},autoPlay:_e=!1,onPlayEnded:ye=()=>{},isShowWaterMark:be=!0},Se)=>{var Be;ne=ne==null?void 0:ne.replace("http://","https://");const we=((Be=ne==null?void 0:ne.split("."))==null?void 0:Be.pop())==="flv",Ue=(0,te.useRef)(),Pe=(0,te.useRef)(),ze=(0,te.useRef)(),Ke=(0,te.useRef)(),Ne=(0,te.useRef)(),Re=(0,te.useRef)(),$e=(0,te.useRef)(),nt=(0,te.useRef)(),ut=(0,te.useRef)(),Qe=(0,te.useRef)(),rt=(0,te.useRef)(),pt=(0,te.useRef)(),At=(0,te.useRef)(),gt=(0,te.useRef)(),Ft=navigator.userAgent.toLowerCase().match(E),Ct=Ft?Ft[0]:"pc",Yt=(0,te.useRef)(!1),zt=(0,ve.eY)();let Xe=0,Fe=0,Le=0,Ze=null,et=!1,He=20,We=1,tt=!1,at=!1,ot=[];(0,te.useImperativeHandle)(Se,()=>({getLastUpdatedTime:()=>Ue.current.currentTime,getDuration:()=>Ue.current.duration})),Ye.ZP.config({maxCount:1,getContainer:()=>ze.current});const ct=(0,te.useCallback)((on,yn=!1)=>{let xn={point:Ue.current.currentTime};Ze?(xn.log_id=Ze,xn.watch_duration=me(ot),xn.total_duration=Fe):(a?(xn.video_id=parseInt(se,10),xn.course_id=a):xn.video_id=se,xn.duration=Xe,xn.device=Ct),yn&&(xn.ed="1");function an(){return le(this,null,function*(){tt=!0,Ze=yield de==null?void 0:de(xn),tt=!1,on&&on()})}an()},[se,a]);(0,te.useEffect)(()=>{Ue.current&&(Ke.current.style.display="none",Ne.current.style.display="block"),Ye.ZP.destroy();let on=null;return pe.Z.isSupported&&we&&ne&&(ne==null?void 0:ne.indexOf(".m3u8"))<0?(on=pe.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ne,muted:!1}),Ue.current&&(on.attachMediaElement(Ue.current),on.load())):Ue.current.setAttribute("src",ne),mt(),()=>{on&&(on.unload(),on.pause(),on.destroy(),on=null)}},[Ue,we,ne]);function lt(){Ue.current.paused?(Ke.current.style.display="none",Ne.current.style.display="block"):(Ke.current.style.display="block",Ne.current.style.display="none")}function mt(){rt.current.style.display="none",At.current.style.display="none",pt.current.style.display="none",Ue.current.muted||Ue.current.volume===0?rt.current.style.display="block":Ue.current.volume>0&&Ue.current.volume<=.5?At.current.style.display="block":pt.current.style.display="block"}(0,te.useEffect)(()=>{const on=document.getElementById("play"),yn=document.querySelectorAll(".playback-icons use");function xn(){ce(),x&&!Yt.current&&(Ue.current.currentTime=x),Yt.current=!0,ot.push(Ue.current.currentTime),et||(et=!0,oe&&ct())}function an(){return le(this,null,function*(){lt(),ot.push(Ue.current.currentTime),oe&&ct(()=>{Ze=null,Le=0,et=!1,tt=!1,at=!1,ot=[],Fe=0,We=1},!0),ye()})}function An(){Re.current.value=Math.round(Ue.current.currentTime),$e.current.value=Math.round(Ue.current.currentTime)}function Jt(){const lr=ae(Math.round(Ue.current.currentTime));ut.current.innerText=`${lr.hour>0?lr.hour+":":""}${lr.minutes}:${lr.seconds}`,ut.current.setAttribute("datetime",`${lr.hour>0?" "+lr.hour+" ":""}${lr.minutes}m ${lr.seconds}s`)}function Ut(){var lr,Cr,nr,ur,Nn,In,Wn;const Kn=Math.round((lr=Ue.current)==null?void 0:lr.duration);(nr=(Cr=Re.current)==null?void 0:Cr.setAttribute)==null||nr.call(Cr,"max",Kn),(Nn=(ur=$e.current)==null?void 0:ur.setAttribute)==null||Nn.call(ur,"max",Kn);const Ln=ae(Kn);nt.current&&(nt.current.innerText=`${Ln.hour>0?Ln.hour+":":""}${Ln.minutes}:${Ln.seconds}`,(Wn=(In=nt.current).setAttribute)==null||Wn.call(In,"datetime",`${Ln.hour>0?" "+Ln.hour+" ":""}${Ln.minutes}m ${Ln.seconds}s`))}function rn(){try{const lr=Math.round(Ue.current.duration);Re.current.setAttribute("max",lr),$e.current.setAttribute("max",lr);const Cr=ae(lr);nt.current.innerText=`${Cr.hour>0?Cr.hour+":":""}${Cr.minutes}:${Cr.seconds}`,nt.current.setAttribute("datetime",`${Cr.hour>0?" "+Cr.hour+" ":""}${Cr.minutes}m ${Cr.seconds}s`),An(),Jt();const{width:nr,height:ur,x:Nn,y:In}=Pe.current.getBoundingClientRect();if(Nn<0||In<0,!at){let Wn=Ue.current.currentTime,Kn=Wn-Le;Math.abs(Kn)<10?(Fe+=Math.abs(Kn),Le=Wn,tt||Fe-We*He>=0&&(We++,ot.push(Le),oe&&ct())):(Le=Wn,oe&&ct())}}catch(lr){console.log("videoplaying:",lr)}}function _n(){at=!0}function Bn(){Ue.current.playing&&ot.push(Ue.current.currentTime,Le),Le=Ue.current.currentTime,at=!1}function kt(){Xe=Ue.current.duration,Xe<=20&&(He=Xe/3),Ue.current.addEventListener("play",xn)}function ln(lr){lr.preventDefault(),(0,fe.vp)()?(Ue.current.style.width="100%",Ue.current.style.height="100%"):Ue.current.style.cssText=""}function Cn(){re()}function Mn(lr){if(!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Cr=lr.target.dataset.seek?lr.target.dataset.seek:lr.target.value;Ue.current.currentTime=Cr,$e.current.value=Cr,Re.current.value=Cr}function Qn(lr){const Cr=Math.round(lr.offsetX/lr.target.clientWidth*parseInt(lr.target.getAttribute("max"),10));Re.current.setAttribute("data-seek",Cr);const nr=ae(Cr);Qe.current.textContent=`${nr.hour>0?nr.hour+":":""}${nr.minutes}:${nr.seconds}`;const ur=Ue.current.getBoundingClientRect();Qe.current.style.left=`${lr.pageX-ur.left}px`}function mr(lr){switch(lr.code){case"Space":lr.preventDefault(),St();break;case"ArrowRight":if(lr.preventDefault(),!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ue.current.currentTime>=Ue.current.duration)break;Ue.current.currentTime=parseInt(Ue.current.currentTime)+5,An();break;case"ArrowLeft":if(lr.preventDefault(),!z){Ye.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ue.current.currentTime===0)break;Ue.current.currentTime=parseInt(Ue.current.currentTime)-5,An();break;case"ArrowUp":lr.preventDefault(),Ue.current.volume<1&&(Ue.current.volume=(parseInt(Ue.current.volume*10)+1)/10);break;case"ArrowDown":lr.preventDefault(),Ue.current.volume>0&&(Ue.current.volume=(parseInt(Ue.current.volume*10)-1)/10);break}}return ze.current.addEventListener((0,fe.gH)(),ln),Ue.current.addEventListener("canplay",kt),Ue.current.addEventListener("ended",an),Ue.current.addEventListener("seeking",_n),Ue.current.addEventListener("seeked",Bn),Ue.current.addEventListener("loadedmetadata",Ut),Re.current.addEventListener("mousemove",Qn),Re.current.addEventListener("input",Mn),Ue.current.addEventListener("timeupdate",rn),Ue.current.addEventListener("pause",Cn),Ue.current.addEventListener("volumechange",mt),document.addEventListener("keydown",mr),()=>{var lr,Cr,nr,ur,Nn,In,Wn,Kn,Ln,$n,ar,dn;(lr=Ue.current)==null||lr.removeEventListener("canplay",kt),(Cr=Ue.current)==null||Cr.removeEventListener("play",xn),(nr=Ue.current)==null||nr.removeEventListener("ended",an),(ur=Ue.current)==null||ur.removeEventListener("seeking",_n),(Nn=Ue.current)==null||Nn.removeEventListener("seeked",Bn),(In=Re.current)==null||In.removeEventListener("mousemove",Qn),(Wn=Re.current)==null||Wn.removeEventListener("input",Mn),(Kn=Ue.current)==null||Kn.removeEventListener("timeupdate",rn),(Ln=Ue.current)==null||Ln.removeEventListener("pause",Cn),($n=Ue.current)==null||$n.removeEventListener("loadedmetadata",Ut),(ar=Ue.current)==null||ar.removeEventListener("volumechange",mt),document.removeEventListener("keydown",mr),(dn=Ue.current)!=null&&dn.playing&&(ot.push(Le,Ue.current.currentTime),oe&&ct())}},[Ue,ne]),(0,te.useEffect)(()=>{if(Ue.current.onended=()=>{ge(Ue)},Ue.current.oncontextmenu=()=>!1,(ne==null?void 0:ne.indexOf(".m3u8"))>-1){if(Ue.current.canPlayType("application/vnd.apple.mpegurl"))Ue.current.src=ne;else if(Oe.ZP.isSupported()){var on=new Oe.ZP;on.loadSource(ne),on.attachMedia(Ue.current)}}},[ne]);const[Lt,ft]=(0,te.useState)(1),St=()=>{Ue.current.paused||Ue.current.ended?Ue.current.play():Ue.current.pause(),lt()};function nn(){Ue.current.muted=!Ue.current.muted,Ue.current.muted?(gt.current.setAttribute("data-volume",volume.value),gt.current.value=0):gt.current.value=gt.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:ze},te.createElement("div",{ref:Pe,className:`${he.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${he.animate__loop}`},be&&zt?zt.login:" "),te.createElement("div",{className:he.container},te.createElement("div",{className:he["video-container"],id:"video-container"},te.createElement("div",{className:he["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:he["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:he.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:Ue,autoPlay:_e}),te.createElement("div",{className:`${he["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:he["bottom-controls"]},te.createElement("div",{className:he["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:St},te.createElement("svg",{className:he["playback-icons"]},te.createElement("use",{ref:Ne,href:"#play-icon"}),te.createElement("use",{ref:Ke,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:he.time},te.createElement("time",{id:"time-elapsed",ref:ut},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:nt},"00:00"))),te.createElement("div",{className:he["right-controls"]},z&&te.createElement(Me.Z,{placement:"top",overlayClassName:he.rateOverlay,getPopupContainer:on=>on.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{ft(1),Ue.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{ft(1.5),Ue.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{ft(2),Ue.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${he.controlText} mr5`},"\u500D\u901F")),te.createElement(ue.CopyToClipboard,{text:ne,onCopy:()=>Ye.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:he["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:he["volume-button"],id:"volume-button",onClick:nn},te.createElement("i",{ref:rt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:At,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:pt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:he.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:gt,style:{display:"none"},onClick:mt})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:he["fullscreen-button"],onClick:()=>{(0,fe.vp)()?(0,fe.BU)():(0,fe.Dj)(ze.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:he["video-progress"]},te.createElement("progress",{ref:$e,value:"0",min:"0"}),te.createElement("input",{className:he.seek,ref:Re,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:he["seek-tooltip"],ref:Qe,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},28267:function(Yn,en,Ce){"use strict";Ce.d(en,{h:function(){return a}});var te=Ce(59301),Ye=Ce(82326),Me=Ce(28284),pe=Ce(7939),Oe=Ce(89780),ve=Ce.n(Oe),ue=Ce(88319),fe=Ce(94896),he=Object.defineProperty,le=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(x,re,ce)=>re in x?he(x,re,{enumerable:!0,configurable:!0,writable:!0,value:ce}):x[re]=ce,z=(x,re)=>{for(var ce in re||(re={}))me.call(re,ce)&&b(x,ce,re[ce]);if(ie)for(var ce of ie(re))E.call(re,ce)&&b(x,ce,re[ce]);return x},ne=(x,re)=>le(x,ae(re));const oe=Ye.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},de={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"]};en.Z=({callback:x,onCancel:re})=>{const[ce,ge]=(0,te.useState)("python");function _e(be){ge(de[be][1])}function ye(be){x(be)}return te.createElement(Me.default,ne(z({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ye.default,{getPopupContainer:be=>be.parentNode,onChange:_e},Object.keys(de).map(be=>te.createElement(oe,{key:be,value:be},de[be][0])))),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(a,{mode:ce})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(pe.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function a({value:x,onChange:re,mode:ce,options:ge={}}){const _e=(0,te.useRef)(),[ye,be]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ye){let Se=function(Be){const Ae=Be.getValue();re&&re(Ae)};return ye.on("change",Se),()=>{ye.off("change",Se)}}},[ye,re]),(0,te.useEffect)(()=>{ye&&ye.setOption("mode",ce)},[ye,ce]),(0,te.useEffect)(()=>{ye&&(x!==ye.getValue()||x==="")&&setTimeout(()=>{ye.setValue(x||"")},300)},[ye,x]),(0,te.useEffect)(()=>{if(_e.current&&!ye){const Se=ve().fromTextArea(_e.current,z({mode:ce,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Se)}},[_e.current,ye]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:_e}))}},39116:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Kn}});var te=Ce(59301),Ye=Ce(44283),Me=Ce(89780),pe=Ce.n(Me),Oe=Ce(76374),ve=Ce(88319),ue=Ce(6313),fe=Ce(25717),he=Ce(99498),le=Ce(25419),ae=Ce(67549),ie=Ce(35883),me=({value:Ln="",className:$n,showTextOnly:ar,showLines:dn,style:Ie={}})=>{const je=(0,te.useMemo)(()=>"",[Ln]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:je}}))},E=Object.defineProperty,b=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Ln,$n,ar)=>$n in Ln?E(Ln,$n,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Ln[$n]=ar,a=(Ln,$n)=>{for(var ar in $n||($n={}))oe.call($n,ar)&&de(Ln,ar,$n[ar]);if(ne)for(var ar of ne($n))se.call($n,ar)&&de(Ln,ar,$n[ar]);return Ln},x=(Ln,$n)=>b(Ln,z($n));let re=[{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 ce({onActionCallback:Ln,title:$n,icon:ar,actionName:dn,className:Ie="",children:je}){function Je(){Ln(dn)}return te.createElement("a",{title:$n,className:Ie,onClick:Je},te.createElement("i",{className:`${ar}`}),je)}var ge=({watch:Ln,showNullButton:$n,showNullProgramButton:ar,onActionCallback:dn,fullScreen:Ie,insertTemp:je,hidetoolBar:Je,extraUse:ht})=>{const Et=[...re,{title:`${Ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Je&&Et.map((Qt,fn)=>te.createElement("li",{key:fn},Qt.actionName?te.createElement(ce,x(a({},Qt),{onActionCallback:dn})):te.createElement("span",{className:"v-line"}))),$n?te.createElement("li",null,te.createElement(ce,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ar?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,je&&te.createElement("li",null,te.createElement(ce,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${je}`,onActionCallback:dn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&te.createElement("li",null,ht),te.createElement("li",{className:"btn-full-screen"},te.createElement(ce,{icon:`${Ie?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ie?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dn})))},_e=Ce(88487),ye=Ce(28284),be=Ce(37568),Se=Ce(7939),Be=Object.defineProperty,Ae=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ke=(Ln,$n,ar)=>$n in Ln?Be(Ln,$n,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Ln[$n]=ar,Ne=(Ln,$n)=>{for(var ar in $n||($n={}))Pe.call($n,ar)&&Ke(Ln,ar,$n[ar]);if(Ue)for(var ar of Ue($n))ze.call($n,ar)&&Ke(Ln,ar,$n[ar]);return Ln},Re=(Ln,$n)=>Ae(Ln,we($n));const $e={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:Ln,onCancel:$n})=>{function ar(dn){Ln(dn)}return te.createElement(ye.default,Re(Ne({},$e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ar,style:{width:500}}),te.createElement(ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(be.default,null)),te.createElement(ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(be.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Se.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},ut=Ce(28267),Qe=Ce(53332),rt=Ce(62957),pt=Ce(77019),At=Ce(40254),gt=Ce(59301),Ft=({callback:Ln,onCancel:$n})=>{const ar=document.createElement("canvas"),dn=ar.getContext("2d");ar.width=1e3,ar.height=800,dn.fillStyle="#ffffff",dn.fillRect(0,0,ar.width,ar.height);const Ie=ar.toDataURL("image/png");return gt.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gt.createElement(pt.Z,{style:{height:"100vh"}},gt.createElement(At.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ie,visible:!0,title:String(Date.now())},onOk:je=>{Ln({src:je.url})},onClose:$n})))},Ct=Ce(36207),Yt=Ce(5269),zt=Ce(6767),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Fe=Ce(59301),Ze=(0,te.forwardRef)(({onCancel:Ln,editImgId:$n,callback:ar},dn)=>{let Ie=(0,te.useRef)(),je=(0,te.useRef)(),Je=(0,te.useRef)(),ht=(0,te.useRef)(!1);const Et=(0,te.useRef)(!1);console.log("ref:",dn);const[Qt,fn]=(0,te.useState)(0),[sn,mn]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{fn(1)},[]),(0,te.useImperativeHandle)(dn,()=>({setHeight:mn})),Fe.createElement("div",{ref:Et,className:"body-overflow-initial"},Fe.createElement(Ct.Z,{width:"100vw",height:sn,footer:null,closable:!0,placement:"bottom",open:!!Qt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Xe.drawerWrap}`,onClose:()=>{window.saveDrawData(Zn=>{ar({src:`/api/attachments/${Zn}`,id:Zn})})},title:Fe.createElement(pt.Z,{align:"middle"},Fe.createElement(Yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Fe.createElement(Yt.Z,{onClick:()=>{mn(sn==="60px"?"100vh":"60px")}},Fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Fe.createElement(Yt.Z,{onClick:()=>{window.saveDrawData(Zn=>{if(Zn===null){zt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}zt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),ar({src:`/api/attachments/${Zn}`,id:Zn,disabledClose:!0})})}},Fe.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Fe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${$n||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:je})))}),et=Ce(14185),He=Ce(47889),We=Ce(4875);const tt=He.ZP.Group,at={margin:"0 8px"};var ot=({callback:Ln,onCancel:$n})=>{function ar(dn){Ln(dn)}return te.createElement(ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ar},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:at},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:at},"\u884C\u6570"),te.createElement(ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(We.Z,null)),te.createElement("span",{style:at},"\u5217\u6570"),te.createElement(ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(We.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:at},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ye.default.Item,{name:"align"},te.createElement(tt,null,te.createElement(He.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(He.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(He.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(He.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Se.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},ct=Ce(58755),lt=Ce(84915),mt=Ce.n(lt),ft=(0,te.forwardRef)(({use3d:Ln,width:$n,height:ar,callback:dn,showSaveButton:Ie},je)=>{const Je=(0,te.useRef)(),ht=(0,te.useRef)(),[Et,Qt]=(0,te.useState)(!1),fn=(0,te.useRef)({id:Je,appName:"graphing",width:$n||1e3,height:ar||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{ht.current=new(mt())(fn.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const sn=()=>{var mn=window.ggbApplet.getPNGBase64(1,!0,72);return dn&&dn(mn),mn};return(0,te.useEffect)(()=>{fn.current.appName=Et?"3D":"graphing",ht.current.inject("applet_container")},[Et]),(0,te.useEffect)(()=>{Qt(Ln)},[Ln]),(0,te.useImperativeHandle)(je,()=>({getImgData:sn})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Je}),te.createElement(pt.Z,{align:"middle"},te.createElement(Yt.Z,{flex:1},te.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Et,onChange:mn=>Qt(mn)})),te.createElement(Yt.Z,null,te.createElement(Se.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),St=Ce(9057);const nn="link",on="upload-image",yn="add-flowchart",xn="draw-image",an="add-flowchart",An="code-block",Jt="add-table",Ut="------------",rn={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var _n=Ce(79006),Bn=Ce(76406);function kt(){}let ln=0;const Cn=1e4,Mn="\u2581",Qn="@\u2581\u2581@",mr="@\u2581@",lr=` **\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`,Cr=["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 nr(Ln){return/^\d+$/.test(Ln)?`${Ln}px`:Ln}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},Wn={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[An]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[xn]:"\u6DFB\u52A0\u753B\u56FE",[yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:Ln="",onChange:$n,width:ar="100%",height:dn=400,miniToolbar:Ie=!1,isFocus:je=!1,watch:Je,insertTemp:ht,mode:Et="markdown",id:Qt="markdown-editor-id",showResizeBar:fn=!1,noStorage:sn=!1,showNullButton:mn=!1,showNullProgramButton:Zn=!1,hidetoolBar:tr=!1,fullScreen:Vt=!1,onBlur:Gt,onCMBeforeChange:Rt,onFullScreen:jt,className:Mt="",disablePaste:Kt=!1,disabled:yt=!1,disabledFill:qt=!1,placeholder:vn="",values:Tt="",extraUse:It,onAddBlank:Dt})=>{const[Bt,Zt]=(0,te.useState)(null),[tn,Tn]=(0,te.useState)(Ln),[Fn,dr]=(0,te.useState)(Je),[_r,Kr]=(0,te.useState)(Vt),[Sr,hr]=(0,te.useState)(""),[Mr,Br]=(0,te.useState)(0),[Wr,Jn]=(0,te.useState)(dn),[ii,Ur]=(0,te.useState)(!1),[Gr,qr]=(0,te.useState)(0),[Li,wi]=(0,te.useState)(0),ui=(0,te.useRef)(),Qr=(0,te.useRef)(),Di=(0,te.useRef)(),oi=(0,te.useRef)(),di=(0,te.useRef)(),ci=(0,te.useRef)(),ki=(0,Ye.useDispatch)();(0,te.useEffect)(()=>{const wr=window.scrollY||window.pageYOffset;Tn(Tt),Bt==null||Bt.setValue(Tt),window.scrollTo(0,wr)},[Tt]),(0,te.useEffect)(()=>{jt==null||jt(_r)},[_r]),(0,te.useEffect)(()=>{if(ui.current){let wr=function(Hr,ri){var un;if(Kt){ri.preventDefault();return}const Vn=ri.clipboardData;if(Vn){const Sn=Vn.types.toString(),Rr=Vn.items;if(Sn==="Files"||Vn.types.indexOf("Files")>-1){if(ri.preventDefault(),Et=="stex")return;try{let ti=Rr[1];((un=Rr[0])==null?void 0:un.kind)==="file"&&(ti=Rr[0]);const gn=ti.getAsFile(),mi=gn.name.split(".").pop();(0,Qe.I)(gn,Nr=>{var Ar,pi,Gi;Nr.id?((Ar=gn==null?void 0:gn.type)==null?void 0:Ar.indexOf("image"))>-1?Ir.replaceSelection(``):((pi=gn==null?void 0:gn.type)==null?void 0:pi.indexOf("video"))>-1?Ir.replaceSelection(``):((Gi=gn==null?void 0:gn.type)==null?void 0:Gi.indexOf("pdf"))>-1?Ir.replaceSelection(`${gn.name}`):Cr.includes(mi)?Ir.replaceSelection(`${gn.name}`):Ir.replaceSelection(`[${gn.name}](/api/attachments/${Nr.id}?type=${Nr.content_type})`):(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(ti){zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ir=pe().fromTextArea(ui.current,{mode:Et,lineNumbers:!Ie,lineWrapping:!0,value:Ln,autoCloseTags:!0,autoCloseBrackets:!0});return Ir.on("keyup",function(Hr,ri){ri.keyCode===8&&(Hr.getValue()==""?Ir.setOption("placeholder",vn):Ir.setOption("placeholder",null))}),Ir.on("keydown",function(Hr,ri){if(ri.keyCode===8){var un=ua(Hr);un&&ri.preventDefault()}}),je&&Ir.focus(),Ir.on("paste",wr),yt&&Ir.on("beforeChange",function(Hr,ri){(ri.origin==="paste"||ri.origin==="+input")&&ri.cancel()}),Zt(Ir),()=>{Ir.off("paste",wr)}}},[]);const Ki=(0,te.useCallback)(()=>{if(Qr.current)try{}catch(wr){console.log(wr,"---- to set md editor body height")}},[Wr,Qr,_r]);(0,te.useEffect)(()=>{function wr(){let Ir=new Oe.Z(Hr=>{for(let ri of Hr)(ri.target.offsetHeight>0||ri.target.offsetWidth>0)&&(Ki(),Bt.setSize("100%","100%"),Bt.refresh())});return Ir.observe(ui.current.parentElement),Ir}if(Bt){const Ir=wr();return()=>{var Hr,ri;(Hr=ui.current)!=null&&Hr.parentElement&&Ir.unobserve((ri=ui.current)==null?void 0:ri.parentElement)}}},[Bt,Ki]),(0,te.useEffect)(()=>{if(Bt){let wr=[];for(const[Ir,Hr]of Object.entries(In)){let ri={[Ir]:()=>{kn(Hr)}};wr.push(ri),Bt.addKeyMap(ri)}return()=>{for(let Ir of wr)Bt.removeKeyMap(Ir)}}},[Bt]),(0,te.useEffect)(()=>{Vt!==_r&&Kr(Vt)},[Vt]),(0,_n.Z)(()=>{if(!sn&&Mr>0){let wr=new Date().getTime(),Ir=window.sessionStorage.getItem(Qt);wr>=Mr+Cn&&(!Ir||Ir!==tn)&&(window.sessionStorage.setItem(Qt,tn),Ur(!0))}},Cn),(0,te.useEffect)(()=>{dr(Je)},[Bt,Je]),(0,te.useEffect)(()=>{Bt&&je&&Bt.focus()},[Bt,je]),(0,te.useEffect)(()=>{if(Fn&&Bt){let wr=function(Hr){let ri=Hr.target;if(oi.current){let un=ri.scrollTop/ri.scrollHeight;oi.current.scrollTop=oi.current.scrollHeight*un}};const Ir=Bt.getScrollerElement();return Ir.addEventListener("scroll",wr),()=>{Ir.removeEventListener("scroll",wr)}}},[Bt,Fn]),(0,te.useEffect)(()=>{if(Bt&&Rt){let wr=function(Ir,Hr){Rt(Ir,Hr)};return Bt.on("beforeChange",wr),()=>{Bt.off("beforeChange",wr)}}},[Bt,Rt]),(0,te.useEffect)(()=>{if(Bt&&Gt){let wr=function(){Gt(Bt.getValue())};return Bt.on("blur",wr),()=>{Bt.off("blur",wr)}}},[Bt,Gt]);function ua(wr,Ir){var Hr=wr.getDoc(),ri=Hr.getCursor(),un=Hr.getLine(ri.line),Vn=un.charAt(ri.ch-1),Sn=un.lastIndexOf("@\u2581@",ri.ch),Rr=un.lastIndexOf("@\u2581\u2581@",ri.ch),ti=Sn>Rr?Sn:Rr,gn=Sn>Rr?3:4;if(Qn.indexOf(Vn)===-1)return null;if(console.log("change1:",Ir,wr,un,ri,ti,Sn,Rr,Vn),ti>=0&&ri.ch-ti<5){var mi=ti+gn;return Hr.replaceRange("",{line:ri.line,ch:ti},{line:ri.line,ch:mi}),{line:ri.line,ch:mi}}return null}(0,te.useEffect)(()=>{if(Bt){let wr=function(Ir,Hr){const ri=Ir.getValue();Tn(ri),Br(new Date().getTime()),Ir.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$n&&(Zn?$n(ri,Dr(ri)):$n(ri))};return Bt.on("change",wr),()=>{Bt.off("change",wr)}}},[Bt,$n]),(0,te.useEffect)(()=>{if(Bt)if(Ln==null)Bt.setValue(""),Tn("");else{const wr=window.scrollY||window.pageYOffset;Ln!==Bt.getValue()&&(Bt.setValue(Ln),Tn(Ln),Bt.setCursor(yt?1:Bt.lineCount(),0),window.scrollTo(0,wr))}},[Bt,Ln]);const kn=(0,te.useCallback)(wr=>{const Ir=Bt.getCursor(),Hr=Bt.getSelection();let ri=Hr.split(` `);switch(wr){case"bold":return Bt.replaceSelection("**"+Hr+"**"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+2),Bt.focus();case"italic":return Bt.replaceSelection("*"+Hr+"*"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+1),Bt.focus();case"code":return Bt.replaceSelection("`"+Hr+"`"),Hr===""&&Bt.setCursor(Ir.line,Ir.ch+1),Bt.focus();case"inline-latex":return(0,Bn.Ye)(ki)?void 0:(hr("inline-latex"),Bt.focus());case"latex":return Bt.replaceSelection("```latex\n"+Hr+"\n```"),Bt.setCursor(Ir.line+1,Hr.length+1),Bt.focus();case"line-break":return Bt.replaceSelection(`
`),Bt.focus();case"list-ul":return Hr===""?Bt.replaceSelection("- "+Hr):Bt.replaceSelection(ri.map(un=>un===""?"":`- ${un}`).join(` `)),Bt.focus();case"list-ol":return Hr===""?Bt.replaceSelection("1. "+Hr):Bt.replaceSelection(ri.map((un,Vn)=>un===""?"":`${Vn+1}. ${un}`).join(` `)),Bt.focus();case"add-null-ch":Dt==null||Dt();return;case"add-signal":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(mr),Bt.focus();case"add-multiple":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(Qn),Bt.focus();case"inster-template-1":return Hr===""&&Bt.setCursor(Ir.line,Ir.ch),Bt.replaceSelection(lr),Bt.focus();case"eraser":return Bt.setValue(""),Bt.focus();case"trigger-watch":return dr(!Fn),Bt.focus();case"trigger-full-screen":return Kr(!_r),Bt.focus();case nn:hr(nn);return;case An:hr(An);return;case on:hr(on);return;case xn:hr(xn);return;case"maths-latex":if((0,Bn.Ye)(ki))return;hr("maths-latex");return;case yn:di.current="",sessionStorage.removeItem("file_id"),hr(yn);return;case Jt:hr(Jt);return;default:throw new Error}},[Bt,Fn,_r]),qi=(0,te.useCallback)((wr,Ir)=>{var Hr,ri,un,Vn,Sn,Rr;wr!=null&&wr.disabledClose||hr("");const{src:ti,alt:gn,id:mi}=wr||{};switch(Sr){case nn:const{title:gi,link:Wi}=wr;return Bt.replaceSelection(`[${gi}](${Wi})`),Bt.focus();case An:const{language:Jr,content:li}=wr;return Bt.replaceSelection(["```"+Jr,li,"```"].join(` `)),Bt.focus();case"maths-latex":for(var Nr=atob(wr),Ar=new Uint8Array(Nr.length),pi=0;pi{Mi.id?Bt.replaceSelection(`![,](/api/attachments/${Mi.id}?type=${Mi.content_type})`):(Mi==null?void 0:Mi.status)===401&&(document.location.href="/user/login")}),Bt.focus();case"inline-latex":return(0,Bn.Ye)(ki)?void 0:(Bt.replaceSelection("`$$"+wr+"$$`"),Bt.focus());case an:return mi?(Bt.getValue().indexOf(ti)===-1?Bt.replaceSelection(`
${gn||
`):document.getElementById(mi).src=et.Z.API_SERVER+ti+"?t="+Date.now(),Bt.focus()):void 0;case on:case xn:const Zr=Ir,Vi=(un=(ri=(Hr=Zr==null?void 0:Zr.name)==null?void 0:Hr.split("."))==null?void 0:ri.pop)==null?void 0:un.call(ri);return((Vn=Zr==null?void 0:Zr.type)==null?void 0:Vn.indexOf("image"))>-1||!(Zr!=null&&Zr.type)?Zr!=null&&Zr.align||Zr!=null&&Zr.width?Bt.replaceSelection(`

${gn||

`):Bt.replaceSelection(`${gn||`):((Sn=Zr==null?void 0:Zr.type)==null?void 0:Sn.indexOf("video"))>-1?Bt.replaceSelection(``):((Rr=Zr==null?void 0:Zr.type)==null?void 0:Rr.indexOf("pdf"))>-1?Bt.replaceSelection(`${Zr.name}`):Cr.includes(Vi)?Bt.replaceSelection(`${Zr.name}`):Bt.replaceSelection(`[${Zr.name}](${ti})`),Bt.focus();case Jt:const{row:sa,col:vi,align:Ni}=wr;let Ii=` `;for(let Mi=0;Mi{switch(Sr){case nn:return te.createElement(nt,{callback:qi,onCancel:ra});case An:return te.createElement(ut.Z,{callback:qi,onCancel:ra});case on:return te.createElement(Qe.Z,{callback:qi,onCancel:ra});case yn:return te.createElement(Ze,{editImgId:di.current,callback:qi,onCancel:ra});case Jt:return te.createElement(ot,{callback:qi,onCancel:ra});case"maths-latex":return te.createElement(ft,{showSaveButton:!0,callback:qi});case"inline-latex":return te.createElement(St.Z,{showSaveButton:!0,callback:qi});default:return null}},[Sr]);function ra(){hr("")}(0,te.useEffect)(()=>{if(Di.current){let wr=function(Sn){un=!0,Vn=Sn.pageY},Ir=function(){un=!1},Hr=function(Sn){if(un){let Rr=Sn.pageY-Vn;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let ti=dn+Rr+"px";Jn(ti)}},ri=Di.current,un=!1,Vn=0;return ri.addEventListener("mousedown",wr),document.addEventListener("mousemove",Hr),document.addEventListener("mouseup",Ir),()=>{ri.removeEventListener("mousedown",wr),document.removeEventListener("mousemove",Hr),document.removeEventListener("mouseup",Ir)}}},[Bt,Di]),(0,te.useEffect)(()=>{Jn(dn)},[dn]);const _i=nr(ar),Ti=nr(Wr),Xr={width:_i,height:Ti},rr=(0,te.useMemo)(()=>{if(Mr){let wr=new Date(Mr),Ir=wr.getHours(),Hr=wr.getMinutes(),ri=wr.getSeconds();return Ir=Ir<10?"0"+Ir:Ir,Hr=Hr<10?"0"+Hr:Hr,ri=ri<10?"0"+ri:ri,`${Ir}:${Hr}:${ri}`}return 0},[Mr]),Dr=wr=>{const Ir=[];if(Zn){let Hr=-1;wr=wr.replace(/(@▁▁@|@▁@)/g,function(ri,un,Vn){Ir.push({multiLine:ri!==mr})})}return Ir};function Fr(){window.sessionStorage.removeItem(Qt),Ur(!1),Br(0)}function or(){Ur(!1),Br(0),Bt.setValue(window.sessionStorage.getItem(Qt))}(0,te.useEffect)(()=>{Wn[Sr]&&Sr!==xn&&Sr!==yn&&setTimeout(()=>{const wr=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth/2-wr.offsetWidth/2,Hr=window.innerHeight/2-wr.offsetHeight/2;qr(Ir),wi(Hr)},0)},[Sr]);const ei=wr=>{wr.preventDefault();const Ir=wr.clientX-Gr,Hr=wr.clientY-Li;document.body.onmousemove=ri=>{let un=ri.clientX-Ir,Vn=ri.clientY-Hr;const Sn=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Sn.offsetWidth,ti=window.innerHeight-Sn.offsetHeight;un=Math.max(0,Math.min(un,Rr)),Vn=Math.max(0,Math.min(Vn,ti)),si(ri.clientX,ri.clientY,Ir,Hr)&&(qr(un),wi(Vn))},document.body.onmouseup=function(){document.body.onmousemove=null}},si=(wr,Ir,Hr,ri)=>{const un=document.body.clientHeight,Vn=document.body.clientWidth;return wr<20&&Hr>wr||wr>Vn-20&&HrIr||Ir>un-20&&ri{var Ir;di.current=wr,(Ir=ci.current)==null||Ir.setHeight("100vh"),setTimeout(()=>{hr("add-flowchart")},150)}})):null))),fn?te.createElement("a",{ref:Di,className:"editor-resize"}):null,Sr===xn&&te.createElement(Ft,{callback:qi,onCancel:ra}),Sr===yn&&te.createElement(Ze,{ref:ci,editImgId:di.current,callback:qi,onCancel:ra}),te.createElement(_e.Z,null,Wn[Sr]&&Sr!==xn&&Sr!==yn?te.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Gr,top:Li},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ei},Wn[Sr]),open:!0,onCancel:ra,footer:null,destroyOnClose:!0,width:Sr===yn?"1200px":null,height:Sr===yn?"80vh":null,className:"markdown-popup-form"},Qi):null))}},53332:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return re},I:function(){return ge}});var te=Ce(28284),Ye=Ce(6767),Me=Ce(37568),pe=Ce(44104),Oe=Ce(4875),ve=Ce(47889),ue=Ce(7939),fe=Ce(23216),he=Ce(59301),le=Ce(59301),ae=Object.defineProperty,ie=Object.defineProperties,me=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(_e,ye,be)=>ye in _e?ae(_e,ye,{enumerable:!0,configurable:!0,writable:!0,value:be}):_e[ye]=be,oe=(_e,ye)=>{for(var be in ye||(ye={}))b.call(ye,be)&&ne(_e,be,ye[be]);if(E)for(var be of E(ye))z.call(ye,be)&&ne(_e,be,ye[be]);return _e},se=(_e,ye)=>ie(_e,me(ye));const{useForm:de}=te.default,a={width:280,marginRight:10},x={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:_e,onCancel:ye})=>{const[be]=de();let Se=(0,he.useRef)();function Be(Ue){Se.current.width=be.getFieldValue("width"),Se.current.align=be.getFieldValue("align"),_e(Ue,Se.current)}function Ae(Ue,Pe){if(Ue.status===-1){Ye.ZP.error(Ue.message);return}be.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:Pe.type})}function we(Ue){let Pe=Ue.target.files[0];Se.current=Pe,ge(Pe,Ae)}return le.createElement(te.default,se(oe({form:be},x),{className:"upload-image-panel",onFinish:Be,style:{width:470,overflow:"hidden"}}),le.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},le.createElement("div",{className:"flex-container"},le.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},le.createElement(Me.default,{style:a})),le.createElement(ce,{onFileChange:we}))),le.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},le.createElement(Me.default,{style:{width:264}})),le.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},le.createElement(pe.Z,null,le.createElement(te.default.Item,{name:"width",style:{margin:0}},le.createElement(Oe.Z,{style:{width:264}})),le.createElement("span",{className:"ml8"},"%"))),le.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},le.createElement(ve.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"}]})),le.createElement("aside",null,le.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},le.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ue.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function ce({onFileChange:_e}){return le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",le.createElement("input",{type:"file",onChange:_e}))}function ge(_e,ye){if(!_e)throw new String("\u6CA1\u6709\u6587\u4EF6");let be=new FormData;be.append("editormd-image-file",_e),be.append("file_param_name","editormd-image-file"),be.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(Be){ye(JSON.parse(Be.target.responseText),_e)},!1),Se.addEventListener("error",function(Be){console.error(Be)},!1),Se.open("POST",`${fe.KI}/api/attachments.json`),Se.send(be)}},88487:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Me}});var te=Ce(59301),Ye=Ce(4676);class Me extends te.Component{constructor(Oe){super(Oe);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:Oe}=this.props;return(0,Ye.createPortal)(Oe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Yn,en,Ce){"use strict";Ce.d(en,{SV:function(){return Ft},ZP:function(){return gt}});var te=Ce(59301),Ye=Ce(76374);const Me={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"]},pe={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"]},Oe={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(` `)}]},ve={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(` `)}]},ue={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 fe=Ce(53184),he=Ce.n(fe),le=(Ct,Yt,zt)=>new Promise((Xe,Fe)=>{var Le=He=>{try{et(zt.next(He))}catch(We){Fe(We)}},Ze=He=>{try{et(zt.throw(He))}catch(We){Fe(We)}},et=He=>He.done?Xe(He.value):Promise.resolve(He.value).then(Le,Ze);et((zt=zt.apply(Ct,Yt)).next())});const ae={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"]}},ie=(Ct,Yt,zt,Xe)=>{const Fe=Yt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:zt.lineNumber,endColumn:zt.column});return Array.from(new Set(Fe.match(/\b\w{2,}\b/g)||[])).map(Ze=>({label:Ze,kind:Ct.languages.CompletionItemKind.Text,insertText:Ze,range:Xe}))},me=(Ct,Yt,zt,Xe)=>{Ct.languages.registerCompletionItemProvider(Yt,{provideCompletionItems(Fe,Le){const Ze=Fe.getWordUntilPosition(Le),et={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},He=Fe.getLineContent(Le.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...ie(Ct,Fe,Le,et),...zt.map(tt=>({label:tt,kind:Ct.languages.CompletionItemKind.Keyword,documentation:tt,insertText:tt,insertTextRules:Ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...Xe.map(tt=>({label:tt.label,kind:Ct.languages.CompletionItemKind.Snippet,documentation:tt.content,insertText:He.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}})};var E=Ct=>{ae.languages.forEach(Yt=>{Ct.languages.registerDocumentFormattingEditProvider(Yt,{provideDocumentFormattingEdits(zt){return le(this,null,function*(){const Xe=he()(zt.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:zt.getFullModelRange(),text:Xe}]})}})}),me(Ct,"java",pe.keywords,pe.quickKey),me(Ct,"cpp",Oe.keywords,Oe.quickKey),me(Ct,"c",Me.keywords,[]),me(Ct,"python",ve.keywords,ve.quickKey),me(Ct,"scala",ue.keywords,ue.quickKey)};const b="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var z=Object.defineProperty,ne=(Ct,Yt,zt)=>Yt in Ct?z(Ct,Yt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ct[Yt]=zt,oe=(Ct,Yt,zt)=>ne(Ct,typeof Yt!="symbol"?Yt+"":Yt,zt);const se=class zu{constructor(Yt,zt,Xe){this.placeholder=Yt,this.editor=zt,this.monaco=Xe,zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zu.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)}};oe(se,"ID","editor.widget.placeholderHint");var a=se,x=Ce(96236),re=Ce(6767),ce=Ce(25399),ge=Ce(78267),_e=Ce(33156),ye=Ce(56102),be=Object.defineProperty,Se=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Pe=(Ct,Yt,zt)=>Yt in Ct?be(Ct,Yt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ct[Yt]=zt,ze=(Ct,Yt)=>{for(var zt in Yt||(Yt={}))we.call(Yt,zt)&&Pe(Ct,zt,Yt[zt]);if(Ae)for(var zt of Ae(Yt))Ue.call(Yt,zt)&&Pe(Ct,zt,Yt[zt]);return Ct},Ke=(Ct,Yt)=>Se(Ct,Be(Yt)),Ne=(Ct,Yt)=>{var zt={};for(var Xe in Ct)we.call(Ct,Xe)&&Yt.indexOf(Xe)<0&&(zt[Xe]=Ct[Xe]);if(Ct!=null&&Ae)for(var Xe of Ae(Ct))Yt.indexOf(Xe)<0&&Ue.call(Ct,Xe)&&(zt[Xe]=Ct[Xe]);return zt},Re=(Ct,Yt,zt)=>new Promise((Xe,Fe)=>{var Le=He=>{try{et(zt.next(He))}catch(We){Fe(We)}},Ze=He=>{try{et(zt.throw(He))}catch(We){Fe(We)}},et=He=>He.done?Xe(He.value):Promise.resolve(He.value).then(Le,Ze);et((zt=zt.apply(Ct,Yt)).next())});function $e(Ct){return/^\d+$/.test(Ct)?`${Ct}px`:Ct}function nt(){}let ut=!1;const Qe={"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 rt(Ct=[]){let Yt=Ct;if(Array.isArray(Ct)){for(let zt=0;ztRe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ct){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ct)}});var gt=Ct=>{var Yt=Ct,{width:zt="100%",height:Xe="100%",value:Fe,language:Le="javascript",style:Ze={},options:et={},overrideServices:He={},theme:We="vs-dark",onEditBlur:tt,isCopy:at=!1,onSave:ot,autoHeight:ct=!1,forbidCopy:lt=!1,forbidCopyTips:mt,onChange:Lt=nt,editorDidMount:ft=nt,onFocus:St=nt,onBreakPoint:nn=nt,breakPointValue:on=[],filename:yn="educoder.txt",errorLine:xn,errorContent:an="",highlightLine:An,openBreakPoint:Jt=!1,placeholder:Ut="",showMiniMap:rn=!0}=Yt,_n=Ne(Yt,["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 Bn=(0,te.useRef)(),kt=(0,te.useRef)({}),ln=(0,te.useRef)(),Cn=(0,te.useRef)(),Mn=(0,te.useRef)([]),Qn=(0,te.useRef)(!1),mr=(0,te.useRef)(),lr=(0,te.useRef)(),Cr=(0,te.useRef)(!1),[nr,ur]=(0,te.useState)(!1);function Nn(){let sn;return Bn.current&&(sn=new Ye.Z(mn=>{for(let Zn of mn)(Zn.target.offsetHeight>0||Zn.target.offsetWidth>0)&&kt.current.instance.layout()}),sn.observe(Bn.current)),sn}function In(){re.ZP.warning({content:decodeURIComponent(mt||b),key:"monaco-editor-tip"})}const Wn=()=>{let sn=kt.current.instance;if(Fe!=null&&sn&&nr){const mn=sn.getModel();mn&&Fe!==mn.getValue()&&(ut=!0,mn.setValue(Fe),sn.layout(),ut=!1)}};(0,te.useEffect)(()=>{const sn=_e.Z.subscribe("formatDocument",mn=>{var Zn;let tr=kt.current.instance;(Zn=tr==null?void 0:tr.getAction)==null||Zn.call(tr,"editor.action.formatDocument").run()});return window.updateMonacoValue=mn=>{Lt(mn)},sn},[]),(0,te.useEffect)(()=>{var sn;let mn=kt.current.instance;Cn.current&&clearTimeout(Cn.current),Cn.current=setTimeout(()=>{Wn()},500),Fe&&(Fe!=null&&Fe.length)&&((sn=mn==null?void 0:mn.updateOptions)==null||sn.call(mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,nr,kt.current]),(0,te.useEffect)(()=>{if(xn&&kt.current&&kt.current.instance){let mn=kt.current.instance;mn.changeViewZones(function(Zn){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=an,Zn.addZone({afterLineNumber:xn||11,heightInLines:3,domNode:tr})});var sn={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}};mn.addOverlayWidget(sn),mn.revealPositionInCenter({lineNumber:20,column:1})}},[xn,kt.current,nr]);const Kn=(sn="",mn)=>{if(!sn||sn.trim()==="")return!0;const tr=kt.current.instance.getModel().getLineTokens(mn);let Vt=!1;for(let Gt=0;Gt<2;Gt++)tr.getStandardTokenType(Gt)===1&&(Vt=!0);return Vt};(0,te.useEffect)(()=>{var sn;const mn=(sn=kt.current)==null?void 0:sn.instance;if(mn&&nr&<){const Zn=mn.onDidBlurEditorWidget(()=>{Cr.current=!1}),tr=mn.onDidFocusEditorText(()=>{Cr.current=!0});return()=>{Zn.dispose(),tr.dispose()}}},[kt.current,nr,lt]),(0,te.useEffect)(()=>{var sn;if((sn=kt.current)!=null&&sn.instance&&nr&&Jt){let mn=kt.current.instance,Zn=mn.getModel();if(!Zn)return;(()=>{var It;let Dt=[],Bt=[];const Zt=Zn.getAllDecorations();for(let Tn of Zt)Tn.options.className==="highlighted-line"&&(Dt.push((It=Tn==null?void 0:Tn.range)==null?void 0:It.startLineNumber),Bt.push(Tn==null?void 0:Tn.id));if(An===Dt[0])return;Zn.deltaDecorations(Bt,[]);const tn=Zn.getLineCount();An&&An<=tn&&(mn.deltaDecorations([],[{range:new pt.Range(An,1,An,Zn.getLineMaxColumn(An)),options:{isWholeLine:!0,className:"highlighted-line"}}]),mn.revealLineInCenter(An))})();const Vt=(It=!1)=>{var Dt;let Bt=[],Zt=[];const tn=Zn.getAllDecorations();for(let Tn of tn)Tn.options.linesDecorationsClassName==="breakpoints-select"&&(Bt.push((Dt=Tn==null?void 0:Tn.range)==null?void 0:Dt.startLineNumber),Zt.push(Tn==null?void 0:Tn.id));if(It)return{lines:Bt,ids:Zt};nn(Bt)},Gt=It=>Re(void 0,null,function*(){let Dt={range:new pt.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Zn.deltaDecorations([],[Dt]),Vt()}),Rt=It=>Re(void 0,null,function*(){let Dt=[];const Bt=mn.getLineDecorations(It);for(let Zt of Bt)Zt.options.linesDecorationsClassName==="breakpoints-select"&&Dt.push(Zt.id);yield Zn.deltaDecorations(Dt,[]),Vt()}),jt=It=>{let Dt=mn.getLineDecorations(It);for(let Bt of Dt)if(Bt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ge.isEqual)(on,Vt(!0).lines)){Zn.deltaDecorations(Vt(!0).ids,[]);const It=on.map(Dt=>({range:new pt.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Zn.deltaDecorations([],It)}const Mt=mn.onDidChangeModelContent(It=>{let Dt=mn.getPosition();if(Dt){let Bt=Dt.lineNumber;clearTimeout(lr.current),lr.current=setTimeout(()=>{Kn(Zn.getLineContent(Bt),Bt)?Rt(Bt):jt(Bt)?(Rt(Bt),Gt(Bt)):Vt()},100)}}),Kt=mn.onMouseDown(It=>{var Dt,Bt,Zt;if(It.target.detail&&((Zt=(Bt=(Dt=It.target)==null?void 0:Dt.element)==null?void 0:Bt.className)!=null&&Zt.includes("line-numbers"))){let tn=It.target.position.lineNumber;if(Kn(Zn.getLineContent(tn),tn))return;jt(tn)?Rt(tn):Gt(tn)}}),yt=It=>{let Dt={range:new pt.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mn.current=mn.deltaDecorations(Mn.current,[Dt])},qt=()=>{Mn.current=mn.deltaDecorations(Mn.current,[])},vn=mn.onMouseMove(It=>{var Dt,Bt,Zt;if(qt(),It.target.detail&&((Zt=(Bt=(Dt=It.target)==null?void 0:Dt.element)==null?void 0:Bt.className)!=null&&Zt.includes("line-numbers"))){let tn=It.target.position.lineNumber;if(Kn(Zn.getLineContent(tn),tn))return;yt(tn)}}),Tt=mn.onMouseLeave(()=>{qt()});return()=>{Mt.dispose(),Kt.dispose(),vn.dispose(),Tt.dispose()}}},[kt.current,nr,on,An,Jt,Le]),(0,te.useEffect)(()=>{var sn;(sn=kt.current)!=null&&sn.instance&&Jt&&kt.current.instance.setPosition({lineNumber:0,column:0})},[An]);function Ln(){let sn=kt.current.instance;if(sn){const mn=sn.getSelection(),Zn=kt.current.pastePos||{},tr=new pt.Range(Zn.startLineNumber||mn.endLineNumber,Zn.startColumn||mn.endColumn,Zn.endLineNumber||mn.endLineNumber,Zn.endColumn||mn.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:tr,text:""}])},300)}}function $n(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),ot())}const ar=()=>{if(ct&&kt.current.instance){const sn=kt.current.instance.getContentHeight();Qt(sn{if(!Cr.current)return;const{keyCode:mn,ctrlKey:Zn,metaKey:tr,target:Vt,type:Gt}=sn;return(Gt==="paste"||(mn===67||mn===86)&&(tr||Zn))&&Vt.nodeName==="TEXTAREA"&&(In(),sn.preventDefault()),!1};function je(sn,mn){var Zn=window.URL||window.webkitURL||window,tr=new Blob([mn]),Vt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vt.href=Zn.createObjectURL(tr),Vt.download=sn,dn(Vt)}(0,te.useEffect)(()=>{ar()},[ar]),(0,te.useEffect)(()=>{Bn.current&&!nr&&Promise.all([Ce.e(8909),Ce.e(5977)]).then(Ce.bind(Ce,71448)).then(sn=>{try{pt=sn,kt.current.instance=pt.editor.create(Bn.current,{value:Fe,language:rt(Le),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:rn||!1}},He);const mn=kt.current.instance;let Vt=[...x.BH._menuItems].find(Mt=>Mt[0]._debugName=="EditorContext")[1],Gt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rt=(Mt,Kt)=>{var yt,qt;let vn=Mt._first;do Kt.includes((qt=(yt=vn.element)==null?void 0:yt.command)==null?void 0:qt.id)&&Mt._remove(vn);while(vn=vn.next)};if(ft(mn,pt),setTimeout(()=>{ar(),kt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{je(yn||"educoder.txt",mn.getValue())}})},500),kt.current.subscription=mn.onDidChangeModelContent(Mt=>{Qn.current?clearTimeout(mr.current):(ar(),Lt(mn.getValue(),Mt)),mr.current=setTimeout(()=>{Qn.current=!1},500)}),window.Monaco||E(pt,rt(Le)),lt&&(Rt(Vt,Gt),Bn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ie),window.removeEventListener("paste",Ie),window.addEventListener("keydown",Ie),window.addEventListener("paste",Ie)),window.Monaco=pt,tt&&mn.onDidBlurEditorWidget(()=>{tt(mn.getValue())}),St&&mn.onDidFocusEditorText(()=>{lt&&At(),St(mn.getValue())}),lt){At();try{mn.onDidPaste(Mt=>{const Kt=mn.getSelection(),yt=kt.current.pastePos||{},qt=new pt.Range(yt.startLineNumber||Kt.endLineNumber,yt.startColumn||Kt.endColumn,yt.endLineNumber||Kt.endLineNumber,yt.endColumn||Kt.endColumn);mn.executeEdits("",[{range:Mt.range,text:""}])})}catch(Mt){}}let jt=Nn();return Ut&&typeof Ut=="string"&&new a(Ut,mn,pt),ur(!0),()=>{const Mt=kt.current.instance;Mt.dispose();const Kt=Mt.getModel();Kt&&Kt.dispose(),kt.current.subscription&&kt.current.subscription.dispose(),jt.unobserve(Bn.current)}}catch(mn){}})},[]),(0,te.useEffect)(()=>{if(kt.current.instance&&nr)return document.addEventListener("keydown",$n,!1),()=>{document.removeEventListener("keydown",$n)}},[ot,nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;if(sn&&nr){let mn=rt(Le);pt.editor.setModelLanguage(sn.getModel(),mn)}},[Le,nr]),(0,te.useEffect)(()=>{kt.current.instance&&nr&&pt.editor.setTheme(We)},[We,nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;ln.current=et,sn&&nr&&(sn.updateOptions(ze({},et)),setTimeout(()=>{sn.getModel().updateOptions(ze({},et))},200))},[JSON.stringify(et),nr]),(0,te.useEffect)(()=>{let sn=kt.current.instance;sn&&nr&&sn.layout()},[zt,Xe,nr]);const[Je,ht]=(0,te.useState)($e(zt)),[Et,Qt]=(0,te.useState)($e(Xe)),fn=Ke(ze({},Ze),{width:Je,height:Et,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:Bn,style:fn,onFocus:()=>{lt&&At()}},at&&te.createElement(ye.CopyToClipboard,{text:Fe,onCopy:()=>re.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(ce.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ft({width:Ct="100%",height:Yt="100%",original:zt,modified:Xe,language:Fe,options:Le={}}){const Ze=(0,te.useRef)(),[et,He]=(0,te.useState)(null);function We(ct){let lt;return Ze.current&&(lt=new Ye.Z(mt=>{for(let Lt of mt)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&ct.layout()}),lt.observe(Ze.current)),lt}(0,te.useEffect)(()=>(Ze.current&&Promise.all([Ce.e(8909),Ce.e(9404)]).then(Ce.bind(Ce,2550)).then(ct=>{pt=ct;const lt=pt.editor.createDiffEditor(Ze.current,Ke(ze({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},Le),{wordWrap:!0}));He(lt);let mt=We(lt);return()=>{lt.dispose();const Lt=lt.getModel();Lt&&Lt.dispose(),mt.unobserve(Ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{et&&et.setModel({original:pt.editor.createModel(zt,Fe),modified:pt.editor.createModel(Xe,Fe)})},[zt,Xe,Fe,et]);const tt=$e(Ct),at=$e(Yt),ot={width:tt,height:at};return te.createElement("div",{className:"my-diff-editor",ref:Ze,style:ot})}},54077:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ae}});var te={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"},Ye=Ce(29787),Me=Ce(25399),pe=Ce(89787),Oe=Ce(92310),ve=Ce.n(Oe),ue=Ce(76406),fe=Ce(90736),he=Ce(59301),ae=({className:ie,dataSource:me=[],col:E=4,right:b,bottom:z=23,precision:ne=0,wrapWidth:oe=1200,trackEventItems:se,loading:de,onRemove:a=()=>{},isCurrent:x=!0,showProgress:re=!1,showAlias:ce=!1,category:ge="notDisplay",hiddenClick:_e=()=>{}})=>{const ye=Math.floor((oe-(E-1)*b)/E),be=[{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 he.createElement(Ye.Z,{spinning:de},he.createElement("div",{className:ve()(te.list,ie)},!!(me!=null&&me.length)&&(me==null?void 0:me.map((Se,Be)=>{var Ae,we,Ue,Pe,ze,Ke,Ne;const{name:Re,id:$e,identifier:nt,featured:ut,school_name:Qe,image_url:rt,excellent:pt,is_plan:At}=Se;return he.createElement("div",{key:$e,className:x&&re?te.wrapisCurrent:te.wrap,style:{width:ye,marginRight:(1+Be)%E===0?0:b+ne,marginBottom:z}},he.createElement("a",{className:te.li,onClick:gt=>{gt.preventDefault(),gt.stopPropagation(),se&&(0,ue.L9)([se]),(0,ue.xg)(`/paths/${nt}`)}},he.createElement("div",{className:te.img},he.createElement("img",{className:te.cover,src:`${rt}`}),(Ae=Se==null?void 0:Se.subject_tags)==null?void 0:Ae.map((gt,Ft)=>{var Ct,Yt;if(Ft===0){const Xe=(Ct=be.find(Fe=>Fe.name==gt))==null?void 0:Ct.swclass;return he.createElement("span",{className:`sprite ${Xe} ${te.sign}`,style:{left:"-4px"}})}const zt=(Yt=be.find(Xe=>Xe.name==gt))==null?void 0:Yt.ptclass;return he.createElement("span",{className:`sprite ${zt} ${te.sign}`,style:{left:`${48+52*(Ft-1)+2*Ft}px`}})}),he.createElement("div",{className:te.tagsDom},he.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Se==null?void 0:Se.excellent)&&he.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((we=Se==null?void 0:Se.custom_tags)==null?void 0:we.length)>0&&(Se==null?void 0:Se.custom_tags.map((gt,Ft)=>{var Ct;return he.createElement(Me.Z,{title:gt==null?void 0:gt.tag_name,key:Ft},he.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Ct=Se==null?void 0:Se.custom_tags)==null?void 0:Ct.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},he.createElement("span",{className:"multi-llipsis1e"},gt==null?void 0:gt.tag_name)))})))),ge=="hide"&&(Se==null?void 0:Se.studying)&&x&&he.createElement("div",{className:`${te.movebq} user-path-items`,onClick:gt=>{gt.stopPropagation(),a(Se)}},he.createElement("i",{className:"iconfont icon-yichu1 font12"}),he.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ge)&&x&&he.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:gt=>{gt.stopPropagation(),_e(Se)}},he.createElement("i",{className:`iconfont ${ge=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),he.createElement("span",null,ge=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),he.createElement("div",{className:te.name},he.createElement(Me.Z,{title:ce&&(Se!=null&&Se.excellent_alias_name)?he.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Re}`,he.createElement("br",null),he.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):Re},he.createElement("span",{className:te.e},ce&&(Se==null?void 0:Se.excellent_alias_name)||Re))),x&&re&&((Ue=Se==null?void 0:Se.progress)==null?void 0:Ue.all_score)!=0&&he.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},he.createElement(pe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Pe=Se==null?void 0:Se.progress)==null?void 0:Pe.my_score)/((ze=Se==null?void 0:Se.progress)==null?void 0:ze.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Se==null?void 0:Se.progress)==null?void 0:Ke.my_score,"/",(Ne=Se==null?void 0:Se.progress)==null?void 0:Ne.all_score),(!x||!re)&&he.createElement(Me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Qe}`},he.createElement("div",{className:te.unit},he.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Qe)),(!x||!re)&&he.createElement("div",{className:te.tags},he.createElement("div",null,he.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),he.createElement("span",null,Se.stages_count))),he.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),he.createElement("span",null,Se.members_count)))))))})),!me.length&&he.createElement(fe.Z,null)))}},70467:function(Yn,en,Ce){"use strict";Ce.d(en,{jL:function(){return pe},w9:function(){return Re},QD:function(){return on},cQ:function(){return Be.Z},op:function(){return lt},O5:function(){return Nn},_b:function(){return Ut},t7:function(){return ne},Gi:function(){return pt},YG:function(){return Qe},qp:function(){return le},vr:function(){return an},qE:function(){return ft},Je:function(){return de},wb:function(){return Se},cq:function(){return zt},tp:function(){return me}});var te=Ce(59301),Ye={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"},pe=({dataSource:In=[],img:Wn,imgWidth:Kn=346,title:Ln,sunTitle:$n,bannerExtraContent:ar})=>te.createElement("div",{className:Ye.banner},te.createElement("div",{className:Ye.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Ln),te.createElement("span",null,$n)),In.length>0&&te.createElement("div",{className:Ye.btns},In.map((dn,Ie)=>te.createElement("div",{key:Ie,onClick:dn.click},dn.name,dn.sign?te.createElement("span",{className:"sprite sprite-33"}):null))),ar),Wn&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:Wn,width:Kn}))),Oe={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"},ve=Ce(92310),ue=Ce.n(ve),fe=Ce(78267),le=({dataSource:In=[],value:Wn,onChange:Kn,onTitleChange:Ln,className:$n,title:ar,titleWidth:dn=41,style:Ie={},fontColor:je="#6A7283",showCount:Je})=>{const[ht,Et]=(0,te.useState)(1),[Qt,fn]=(0,te.useState)(!1),sn=(0,te.useRef)(null),mn=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Zn;In.length!==0&&(((Zn=sn==null?void 0:sn.current)==null?void 0:Zn.clientHeight)>97?Et(1):Et(0)),In.length===0&&Et(0),fn(!1)},[In]),te.createElement("div",{className:ue()(Oe.row,$n,"fadeIn","animated"),style:Ie},te.createElement("div",{onClick:(0,fe.throttle)(()=>Ln==null?void 0:Ln(),2e3),style:{width:dn,marginTop:Qt?12:4},className:`${Oe.title} ${Ln?"current":""}`},ar),te.createElement("div",{className:Qt?`${Oe.tagsWrap} ${Oe.tagsBorderWrap}`:Oe.tagsWrap},te.createElement("div",{className:Oe.bar,ref:mn,style:ht>0?{height:ht===1?97:"auto",overflow:ht===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:Oe.tag,ref:sn},In==null?void 0:In.map(Zn=>te.createElement("span",{onClick:()=>Kn(Zn.id),key:Zn.id,style:{color:je},className:Wn===Zn.id?Oe.active:""},te.createElement("span",{title:Zn.name,className:Oe.name},Zn.name),!!Je&&te.createElement("span",{className:Oe.num},Zn.count))))),!!ht&&te.createElement(te.Fragment,null,ht===1?te.createElement("div",{onClick:()=>{var Zn;Et(2),((Zn=sn==null?void 0:sn.current)==null?void 0:Zn.clientHeight)>245?fn(!0):fn(!1)},className:Oe.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{mn.current.scrollTop=0,Et(1),fn(!1)},className:Oe.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ae={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"},me=({dataSource:In=[],value:Wn,onChange:Kn,className:Ln,style:$n={}})=>te.createElement("div",{style:$n,className:ue()(ae.tabs,Ln)},In.map(ar=>te.createElement("span",{onClick:()=>Kn(ar.id),className:Wn===ar.id?ae.active:"",key:ar.id},ar.name))),E={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"},b=Ce(37568),ne=({dataSource:In=[],value:Wn="",onChange:Kn,onInputChange:Ln=()=>{},className:$n,style:ar={},placeholder:dn,allowClear:Ie=!1})=>{var je;const[Je,ht]=(0,te.useState)(""),[Et,Qt]=(0,te.useState)("");(0,te.useEffect)(()=>{var mn;let Zn=Wn;(mn=JSON.stringify(Wn))!=null&&mn.includes("{")&&(ht(Wn.id),Zn=Wn.value||"");try{Qt(decodeURIComponent(Zn||""))}catch(tr){Qt(decodeURIComponent(Zn||""))}},[Wn]);const fn=()=>{Kn(encodeURIComponent(Et),Je||null)},sn=mn=>{mn!==Je&&(ht(mn),Kn(encodeURIComponent(Et),mn))};return te.createElement("div",{className:ue()(E.input,$n),style:ar},!!In.length&&te.createElement("div",{className:E.dropdown},te.createElement("div",{className:E.text},(je=In.find(mn=>mn.id===Je))==null?void 0:je.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:E.b1}),te.createElement("b",{className:E.b2})),te.createElement("div",{className:E.menu},In.map((mn,Zn)=>te.createElement("div",{key:Zn,onClick:()=>sn(mn.id)},mn.name)))),te.createElement(b.default,{onPressEnter:fn,value:Et,onChange:mn=>{Qt(mn.target.value),Ln(encodeURIComponent(mn.target.value),Je||null)},placeholder:dn,variant:"borderless",allowClear:Ie,onClear:()=>Kn("",Je||null)}),te.createElement("i",{onClick:fn,className:"iconfont icon-sousuo9 font14 current"}))},oe={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"},de=({value:In,onChange:Wn,className:Kn,total:Ln,pageSize:$n,style:ar={}})=>{const dn=In<2,Ie=In>=Math.ceil(Ln/$n);return Ln<=$n?te.createElement(te.Fragment,null):te.createElement("div",{className:ue()(oe.quickPager,Kn),style:ar},te.createElement("div",{onClick:()=>{dn||Wn(In-1,"prev")},className:dn?oe.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Ie||Wn(In+1,"next")},className:Ie?oe.disabled:""},"\u4E0B\u4E00\u9875"))},a={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"},x=Ce(29787),re=Ce(25399),ce=Ce(63139),ge=Ce(14185),_e=Ce(76406),ye=Ce(90736),Se=({className:In,dataSource:Wn=[],col:Kn=4,right:Ln,bottom:$n=23,precision:ar=0,wrapWidth:dn=1200,trackEventItems:Ie,loading:je})=>{const Je=Math.floor((dn-(Kn-1)*Ln)/Kn);return te.createElement(x.Z,{spinning:je},te.createElement("div",{className:ue()(a.list,In)},!!Wn.length&&Wn.map((ht,Et)=>{const{name:Qt,id:fn,identifier:sn,power:mn,cover_image_id:Zn,pic:tr}=ht;return te.createElement("div",{className:a.wrap,key:fn,style:{width:Je,marginRight:(1+Et)%Kn===0?0:Ln+ar,marginBottom:$n}},te.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:a.li,onClick:Vt=>{Vt.preventDefault(),Ie&&(0,_e.L9)([Ie]),mn&&(0,_e.xg)(`/shixuns/${sn}/challenges`)}},te.createElement("div",{className:a.img},te.createElement("img",{className:a.cover,src:`${tr}`}),ht.is_jupyter&&te.createElement("span",{className:`sprite sprite-43 ${a.sign}`}),ht.is_jupyter_lab&&te.createElement("span",{className:`sprite sprite-42 ${a.sign}`}),ht.is_unity_3d&&te.createElement("span",{className:`sprite sprite-44 ${a.sign}`})),te.createElement("div",{className:a.name},te.createElement(re.Z,{title:Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:a.e},Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:a.tags},te.createElement(re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,ht.challenges_count))),!!ht.myshixuns_count&&te.createElement(re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,ht.myshixuns_count))),te.createElement(re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,ht.level))),te.createElement("div",{className:a.rate},te.createElement(ce.Z,{allowHalf:!0,disabled:!0,defaultValue:ht.score_info}),te.createElement("span",null,"\xA0",ht.score_info?`${ht.score_info}\u5206`:"5\u5206")))),!mn&&te.createElement("div",{className:a.lockWrap},te.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wn.length&&te.createElement(ye.Z,null)))},Be=Ce(54077),Ae={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"},we=Ce(62957),Ue=Ce(96599),Pe="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+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQ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bOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ze=Ce(59301),Ke=(In,Wn,Kn)=>new Promise((Ln,$n)=>{var ar=je=>{try{Ie(Kn.next(je))}catch(Je){$n(Je)}},dn=je=>{try{Ie(Kn.throw(je))}catch(Je){$n(Je)}},Ie=je=>je.done?Ln(je.value):Promise.resolve(je.value).then(ar,dn);Ie((Kn=Kn.apply(In,Wn)).next())}),Re=({className:In,dataSource:Wn=[],col:Kn=4,right:Ln,bottom:$n=23,precision:ar=0,wrapWidth:dn=1200,trackEventItems:Ie,loading:je,category:Je,hiddenClick:ht,handleVery:Et=()=>!0,isCurrent:Qt})=>{const[fn,sn]=we.default.useModal(),mn=Math.floor((dn-(Kn-1)*Ln)/Kn),Zn=tr=>Ke(void 0,null,function*(){fn.confirm({title:"\u7F6E\u9876",width:500,content:ze.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ze.createElement("span",{className:"c-blue"},"\u201C",tr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return ze.createElement(x.Z,{spinning:je},sn,ze.createElement("div",{className:ue()(Ae.list,In)},!!Wn.length&&Wn.map((tr,Vt)=>{const{subject_identifier:Gt,id:Rt,identifier:jt,power:Mt}=tr,Kt=tr.is_public!=0&&tr.is_public;return ze.createElement("div",{className:Ae.wrap,key:Rt,style:{width:mn,marginRight:(1+Vt)%Kn===0?0:Ln+ar,marginBottom:$n}},tr.homepage_show&&ze.createElement("div",{className:Ae.btnsTop},ze.createElement(Ue.default,{color:"red"},"\u7F6E\u9876")),ze.createElement("a",{className:Ae.li,onClick:yt=>{yt.preventDefault(),Et(tr==null?void 0:tr.first_category_url)&&(Ie&&(0,_e.L9)([Ie]),(0,_e.xg)(tr.first_category_url))}},ze.createElement("div",{className:Ae.top},ze.createElement(re.Z,{title:tr.name},ze.createElement("div",{className:Ae.name},tr.name)),ze.createElement("img",{className:Ae.img,src:ge.Z.IMG_SERVER+"/images/"+tr.avatar_url}),ze.createElement("div",{className:Ae.text,title:tr.creator},tr.creator),Gt&&ze.createElement("div",{className:Ae.btns},ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Kt&&ze.createElement("div",{className:Ae.sign},"\u516C\u5F00"),Qt&&ze.createElement("div",{className:Ae.hidden,onClick:yt=>{yt.stopPropagation(),ht(tr)}},ze.createElement("i",{className:`iconfont ${Je=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Je=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ze.createElement("div",{className:Ae.bottom},tr.visits>0&&ze.createElement(re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-liulanyan"}),ze.createElement("span",null,tr.visits))),tr.course_members_count>0&&ze.createElement(re.Z,{title:"\u6210\u5458",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan"}),tr.course_members_count)),tr.tasks_count>0&&ze.createElement(re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-zuoye"}),tr.tasks_count)),tr.is_end?ze.createElement("div",{style:{color:"#6B758B"}}):ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!tr.is_accessible&&ze.createElement("div",{className:Ae.lockWrap},ze.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wn.length&&ze.createElement(ye.Z,null)))},$e={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"},nt=Ce(44283),Qe=({dataSource:In=[],value:Wn,onChange:Kn,className:Ln,style:$n={},tabBarExtraContent:ar})=>te.createElement("div",{className:ue()($e.tabs,Ln),style:$n},te.createElement("div",{className:$e.tabsWrap},In.map((dn,Ie)=>!(dn!=null&&dn.hide)&&te.createElement("aside",{className:$e.tab,onClick:()=>{Kn(dn.id),dn.link&&nt.history.push(dn.link)},key:Ie},te.createElement("div",{className:Wn===dn.id?$e.active:""},dn.name),(dn==null?void 0:dn.resetCount)==null&&(dn==null?void 0:dn.total)!==void 0&&te.createElement("span",null,"\uFF08",dn==null?void 0:dn.total,"\uFF09"),(dn==null?void 0:dn.resetCount)!==void 0&&(dn==null?void 0:dn.total)!==void 0&&te.createElement(re.Z,{title:(dn==null?void 0:dn.tip)!=null?dn==null?void 0:dn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},dn==null?void 0:dn.resetCount),"/",te.createElement("span",null,dn==null?void 0:dn.total),"\uFF09"))))),te.createElement("div",{className:$e.tabBar},ar)),pt=({className:In,style:Wn={},children:Kn})=>te.createElement("div",{className:ue()(In),style:Wn},Kn),At={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"},gt=Ce(75727),Ft=Ce(93041);const Ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var zt=({sortValue:In,dropValue:Wn,className:Kn,onSort:Ln,onDrop:$n,dataSource:ar=Ct})=>{var dn;return te.createElement("div",{className:ue()(At.orderWrap,Kn)},te.createElement(gt.Z,{dropdownRender:()=>te.createElement(Ft.default,null,ar.map((Ie,je)=>te.createElement(Ft.default.Item,{key:je,onClick:()=>$n(Ie.id)},Ie.name)))},te.createElement("span",{className:At.orderTextWrap},(dn=ar.find(Ie=>Wn===Ie.id))==null?void 0:dn.name)),te.createElement("span",{className:At.orderIconWrap},te.createElement("span",{className:At.orderAsc},te.createElement("i",{className:In==="asc"?`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer}`,onClick:()=>Ln(In==="asc"?"desc":"asc")})),te.createElement("span",{className:At.orderDesc},te.createElement("i",{className:In==="desc"?`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer}`,onClick:()=>Ln(In==="asc"?"desc":"asc")}))))},Xe={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"},Fe=Ce(7939),Le=Object.defineProperty,Ze=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(In,Wn,Kn)=>Wn in In?Le(In,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):In[Wn]=Kn,tt=(In,Wn)=>{for(var Kn in Wn||(Wn={}))et.call(Wn,Kn)&&We(In,Kn,Wn[Kn]);if(Ze)for(var Kn of Ze(Wn))He.call(Wn,Kn)&&We(In,Kn,Wn[Kn]);return In},at=(In,Wn)=>{var Kn={};for(var Ln in In)et.call(In,Ln)&&Wn.indexOf(Ln)<0&&(Kn[Ln]=In[Ln]);if(In!=null&&Ze)for(var Ln of Ze(In))Wn.indexOf(Ln)<0&&He.call(In,Ln)&&(Kn[Ln]=In[Ln]);return Kn},ot=(In,Wn,Kn)=>new Promise((Ln,$n)=>{var ar=je=>{try{Ie(Kn.next(je))}catch(Je){$n(Je)}},dn=je=>{try{Ie(Kn.throw(je))}catch(Je){$n(Je)}},Ie=je=>je.done?Ln(je.value):Promise.resolve(je.value).then(ar,dn);Ie((Kn=Kn.apply(In,Wn)).next())}),lt=In=>{var Wn=In,{className:Kn,style:Ln,children:$n,loading:ar=!1,openLoading:dn,onClick:Ie=()=>{},size:je="middle",shape:Je="round"}=Wn,ht=at(Wn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Et,Qt]=(0,te.useState)(!1);return te.createElement(Fe.ZP,tt({onClick:(0,fe.throttle)(fn=>ot(void 0,null,function*(){dn&&Qt(!0);try{yield Ie(fn)}catch(sn){console.log("error",sn)}dn&&Qt(!1)}),2e3,{leading:!0,trailing:!1}),className:ue()(Xe.btn,Xe[`${je}-${Je}`],Kn),style:Ln,size:je,shape:Je,loading:Et||ar},ht),$n)},mt={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"},ft=({className:In,style:Wn,children:Kn=null,onClick:Ln,title:$n})=>te.createElement("div",{className:ue()(mt.head,In),style:Wn},te.createElement("span",{className:"primary-hover",onClick:Ln},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:$n},$n),te.createElement("div",{className:mt.node},Kn)),St={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"},on=({confirmShow:In=!0,confirmTitle:Wn,confirmClick:Kn,cancelShow:Ln=!0,cancelTitle:$n,cancelClick:ar,className:dn,style:Ie,confirmLoading:je=!1})=>te.createElement("div",{className:ue()(St.btns,dn),style:Ie},In&&te.createElement(Fe.ZP,{loading:je,onClick:Kn,type:"primary",className:St.confirm},Wn),Ln&&te.createElement(Fe.ZP,{onClick:ar,className:St.cancel},$n)),yn={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"},an=({className:In,style:Wn={},LeftContent:Kn,children:Ln,RightContent:$n})=>te.createElement("div",{className:ue()(yn.fixedBottom,In),style:Wn},te.createElement("div",{className:yn.wrap},te.createElement("div",{className:yn.left},Kn),te.createElement("div",{className:yn.center},Ln),te.createElement("div",{className:yn.right},$n))),An={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"},Ut=({className:In,style:Wn={},dataSource:Kn=[]})=>te.createElement("div",{className:ue()(An.crumbs,In),style:Wn},Kn.map((Ln,$n)=>$nnt.history.push(Ln.path)},Ln.name):te.createElement("span",null,Ln.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:$n,style:{color:"#5F6368"}},Ln.name))),rn=Ce(11938),_n=Object.defineProperty,Bn=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Qn=(In,Wn,Kn)=>Wn in In?_n(In,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):In[Wn]=Kn,mr=(In,Wn)=>{for(var Kn in Wn||(Wn={}))Cn.call(Wn,Kn)&&Qn(In,Kn,Wn[Kn]);if(ln)for(var Kn of ln(Wn))Mn.call(Wn,Kn)&&Qn(In,Kn,Wn[Kn]);return In},lr=(In,Wn)=>Bn(In,kt(Wn)),Cr=(In,Wn)=>{var Kn={};for(var Ln in In)Cn.call(In,Ln)&&Wn.indexOf(Ln)<0&&(Kn[Ln]=In[Ln]);if(In!=null&&ln)for(var Ln of ln(In))Wn.indexOf(Ln)<0&&Mn.call(In,Ln)&&(Kn[Ln]=In[Ln]);return Kn};const{Countdown:nr}=rn.default;var Nn=In=>{var Wn=In,{onChange:Kn}=Wn,Ln=Cr(Wn,["onChange"]);const[$n,ar]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof $n=="number"&&$n>=0&&Kn($n)},[$n]);const dn=Ie=>{const je=Math.floor(Ie/1e3);ar(je)};return te.createElement(nr,lr(mr({},Ln),{onChange:dn}))}},79006:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(59301);function Ye(Me,pe){const Oe=(0,te.useRef)();(0,te.useEffect)(()=>{Oe.current=Me}),(0,te.useEffect)(()=>{function ve(){Oe.current()}if(pe!==null){let ue=setInterval(ve,pe);return()=>clearInterval(ue)}},[pe])}},52148:function(Yn,en,Ce){"use strict";Ce.r(en),Ce.d(en,{NoData:function(){return Xe},default:function(){return He}});var te=Ce(59301),Ye=Ce(7939),Me=Ce(62957),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAIwCAYAAABawRXrAADVaUlEQVR42uydCXhcdbn/RRAEURGvC4LgAsJFUVQUQWRRQdkLBUoXREVRLgh6BUG40KJA7ZK0EAiZ2z+VpWy9rbGltHSBdCHJNG1o2iQ0bdIsTRqStplmn+2c5/d/v+ecX3JycmbmzMyZJZP3+zzvM13TmXOm8/vkXb7vhz7EYrFYrLjl2SqOmVMefCivXLlm7nviFL4iLBaLxWKxWEkqryz8k7nekAeRV6HewVeExWKxWCwWKymJw+aWB/8uAWtehTibrwmLxWKxWCxWEprlFScNZa82h/IAXHxVWCwWi8VisZLQnPLA1RKwKJM1la8Ii8VisVgsVhKaXiKOnbs59CcDsJ7Orwh+na8Ki8VisVgsVhKaV+7/0tzycL5WHvQGH35is/g0XxUWi8VisVisJJRXHrjGXB68cbE4nK8Ki8VisVgsVoL6w0pxVL43PFMCVn6F4PIgi8VisVgsVjKaVx6+eCh7VRacydODLBaLxWKxWEkIze1zNgdnaHC1OfTs7PLQd/iqsFgsFovFYiWhOaWD55HnVYFsbufeKxaLxWKxWKwk9FS9OIrA6r/yvKEiZK+wJoevCovFYrFYLFYSgtcVPK/0/qvwo7MrxOf5qrBYLBaLxWIlKEwOku/V/8jm9jllweuE4OZ2FovFYrFYrIQ1t1y5XCsNAq68oXn5ZeJoviosFovFYrFYCWreVnEC7Bi0xvbyUOHsMv9FfFVYLBaLxWKxEtT06eLDc73KDTQ5WKhnsMJ/9mwVx/CVYbFYLBaLxUpQeRWDX8yvCM83slcFc8pD5/JVYbFYLBaLxUpQc7Z3fGyu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BAKBSEj5OkaumOByysnEt2WPCl8u+z15N9o9shTJKyfGy3vTIAwg0J16b8vnCpfu7iVukTvj+Dl1hnyO8XPtRPncQz8UAoFAIBC6rBhPXl0p10/8QmbEHpXNxa/Iex3flqWeSbJBP1Nesj1DTnblIlsW86xSrvxazJBfm0z5tZosp+7elqU67nf6g5TtwfJr/iP5HMBeKAQCgUAgoiRhx8pmYy5PXkxcITMZ18tS0ADZnMxZjgdkqegxWbJ8VpYtX5Fj9e9IScuQEjAbYnaEKM3WCdIk+ZiNk4/hGPmYPiUf4+HyMb9XTqoOkF+T6+XX6Er5NTtbfg1xGTECgUAgEAkoY0dLITtelo64hHSqnAg7U0raOXJKjC/LvUius+gne3Zu8JG2/5VZlofk/ZHcJP20zK6NlsLxqhznHy95VzZXT5EZnGxZ8tKTZ1B2pvthqu7vf1f3cV+Xn8sYWVobJT/X38mM4FB5WfA98t82QK4d4H/z/8jH4DvyMblAPkbn/P9Bw0wIGoa8aNNyoLBmGk15o2AUjCwAAJpj3XJMmgW8AAAAAElFTkSuQmCC",Oe=Ce(49317);function ve(){return(0,Oe.U2)("teach_groups.json")}function ue(We){return(0,Oe.v_)("teach_groups.json",We)}function fe(We,tt){return(0,Oe.gz)(`teach_groups/${We}.json`,tt)}function he(We){return(0,Oe.v_)("teach_group_members.json",We)}function le(We){return(0,Oe.IV)(`teach_group_members/${We}.json`)}function ae(We,tt){return(0,Oe.gz)(`teach_groups/${We}/change_admin.json`,{member_id:tt})}function ie(We,tt){return(0,Oe.IV)(`teach_groups/${We}/del_member.json`,{member_id:tt})}function me(We){return(0,Oe.IV)(`teach_groups/${We}.json`)}function E(We){return(0,Oe.U2)(`teach_groups/${We}/show_permission.json`)}function b(We){return(0,Oe.gz)(`teach_groups/${We==null?void 0:We.id}/update_permission.json`,We)}var z=Ce(28284),ne=Ce(37568),oe=Ce(39967),se=({callback:We,visible:tt,onCancel:at,id:ot,name:ct})=>{function lt(Lt){We(Lt)}const[mt]=z.default.useForm();return(0,te.useEffect)(()=>{mt.setFieldsValue({name:ct})},[ct]),te.createElement(Me.default,{centered:!0,title:ot?"\u4FEE\u6539\u540D\u79F0":"\u65B0\u5EFA",open:tt,onCancel:at,onOk:()=>{mt.submit()},wrapClassName:oe.Z.CustomCss},te.createElement(z.default,{form:mt,initialValues:{name:ct},onFinish:lt},te.createElement(z.default.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},te.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20}))))},de=Ce(62673),a=Ce(75727),x=Ce(93041),re=Ce(70858),ce=Ce(6767),ge=Ce(47889),_e=Object.defineProperty,ye=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Be=(We,tt,at)=>tt in We?_e(We,tt,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[tt]=at,Ae=(We,tt)=>{for(var at in tt||(tt={}))be.call(tt,at)&&Be(We,at,tt[at]);if(ye)for(var at of ye(tt))Se.call(tt,at)&&Be(We,at,tt[at]);return We};const we=We=>React.createElement("svg",Ae({className:"cjz_svg__icon",viewBox:"0 0 3194 1024",xmlns:"http://www.w3.org/2000/svg",width:623.828,height:200},We),React.createElement("path",{d:"M512 0h2170.88c282.624 0 512 229.376 512 512s-229.376 512-512 512H512C229.376 1024 0 794.624 0 512S229.376 0 512 0z",fill:"#EBEEFD"}),React.createElement("path",{d:"M1638.4 741.376c28.672 0 40.96-16.384 40.96-45.056V294.912h-36.864v393.216c0 16.384-8.192 20.48-20.48 20.48-24.576 0-45.056 0-73.728-4.096l8.192 32.768h81.92zm-372.736-258.048c49.152-45.056 90.112-94.208 126.976-147.456 32.768 32.768 69.632 77.824 110.592 135.168l24.576-24.576c-40.96-49.152-81.92-98.304-122.88-143.36h-24.576c-40.96 57.344-81.92 110.592-131.072 155.648l16.384 24.576zm323.584 159.744V339.968h-32.768v307.2h32.768zm-131.072 94.208c24.576 0 36.864-4.096 45.056-12.288s16.384-36.864 20.48-77.824l-32.768-12.288c0 28.672-4.096 45.056-8.192 53.248s-16.384 12.288-32.768 12.288h-98.304c-12.288 0-20.48-4.096-20.48-16.384v-204.8h106.496v94.208c0 12.288-8.192 20.48-20.48 20.48-16.384 0-32.768 0-49.152-4.096l8.192 32.768h53.248c28.672 0 40.96-16.384 40.96-40.96V450.56h-176.128v245.76c0 24.576 12.288 36.864 40.96 36.864h122.88zm585.728-53.248V634.88h131.072v-28.672h-131.072v-40.96h114.688v-28.672h-114.688v-40.96H2150.4v-69.632h32.768v-28.672H2150.4V327.68h-106.496v-32.768h-32.768v32.768h-86.016v28.672h86.016v36.864h-110.592v28.672h110.592v40.96h-86.016v28.672h86.016v40.96h-98.304v28.672h98.304v40.96h-110.592v28.672h110.592v49.152h32.768zm-270.336 57.344c24.576-16.384 40.96-36.864 57.344-61.44 4.096 4.096 12.288 8.192 16.384 12.288 36.864 24.576 102.4 36.864 188.416 36.864h147.456l4.096-32.768c-57.344 0-110.592 4.096-167.936 4.096-65.536 0-118.784-12.288-151.552-28.672-8.192-4.096-16.384-12.288-24.576-20.48 24.576-45.056 36.864-98.304 36.864-163.84v-20.48h-77.824c24.576-32.768 49.152-73.728 73.728-118.784v-28.672H1761.28v32.768h81.92c-24.576 40.96-49.152 81.92-77.824 118.784v28.672h90.112c-4.096 45.056-12.288 86.016-28.672 122.88-12.288-20.48-24.576-49.152-32.768-86.016l-32.768 12.288c12.288 40.96 28.672 77.824 45.056 106.496-16.384 24.576-36.864 40.96-57.344 57.344l24.576 28.672zm339.968-344.064h-69.632v-36.864h69.632v36.864zm0 69.632h-69.632v-40.96h69.632v40.96zm253.952 278.528v-20.48h212.992v20.48h36.864V524.288h-184.32c28.672-12.288 53.248-24.576 77.824-40.96l20.48-12.288h151.552v-32.768h-106.496c32.768-24.576 65.536-57.344 94.208-90.112l-32.768-20.48c-36.864 40.96-73.728 77.824-122.88 110.592h-61.44v-61.44h114.688v-32.768h-114.688v-49.152h-36.864v53.248h-135.168v32.768h135.168v57.344h-180.224v32.768h225.28c-69.632 40.96-147.456 69.632-229.376 90.112l16.384 32.768c28.672-8.192 57.344-20.48 81.92-28.672v180.224h36.864zm212.992-139.264h-212.992v-49.152h212.992v49.152zm0 86.016h-212.992v-53.248h212.992v53.248z",fill:"#165DFF"}),React.createElement("path",{d:"M573.44 204.8h327.68c90.112 0 163.84 73.728 163.84 163.84v327.68c0 90.112-73.728 163.84-163.84 163.84H573.44c-90.112 0-163.84-73.728-163.84-163.84V368.64c0-90.112 73.728-163.84 163.84-163.84z",fill:"#C2D0FF"}),React.createElement("path",{d:"M868.352 581.632c4.096 24.576 12.288 49.152 16.384 69.632 0 8.192 4.096 16.384 4.096 24.576s4.096 16.384 4.096 24.576 4.096 12.288 4.096 16.384v8.192c0 8.192 0 12.288-4.096 12.288-4.096 4.096-8.192 4.096-12.288 4.096h-8.192c-4.096 0-4.096 0-8.192-4.096L737.28 667.648c-24.576 12.288-45.056 24.576-61.44 36.864L651.264 716.8c-8.192 4.096-16.384 8.192-20.48 12.288-8.192 4.096-16.384 8.192-20.48 12.288s-8.192 4.096-8.192 4.096c-4.096 0-8.192 4.096-8.192 0-4.096 0-8.192 0-8.192-4.096-4.096 0-4.096-4.096-4.096-8.192v-8.192s0-4.096 4.096-8.192c0-4.096 4.096-12.288 4.096-16.384 0-8.192 4.096-16.384 4.096-24.576s4.096-16.384 8.192-24.576c4.096-20.48 12.288-45.056 16.384-69.632-24.576-16.384-45.056-28.672-57.344-45.056-8.192-4.096-16.384-8.192-20.48-16.384s-12.288-8.192-16.384-12.288S512 499.712 512 495.616c-4.096-4.096-8.192-4.096-8.192-4.096-4.096-4.096-4.096-8.192-8.192-12.288s-4.096-8.192-4.096-12.288 4.096-8.192 4.096-12.288c4.096 0 8.192-4.096 12.288-4.096l151.552-12.288L716.8 307.2c0-4.096 4.096-8.192 8.192-12.288 0-8.192 8.192-8.192 12.288-8.192s4.096 0 8.192 4.096c4.096 0 4.096 4.096 4.096 4.096l4.096 4.096s0 4.096 4.096 4.096l53.248 131.072 155.648 16.384c8.192 0 12.288 4.096 12.288 4.096 4.096 4.096 4.096 8.192 4.096 12.288s0 8.192-4.096 12.288l-12.288 12.288-98.304 90.112z",fill:"#2E5BEC"}));var Ue="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDMxOTQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNjIzLjgyOCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik01MTIgMGgyMTcwLjg4YzI4Mi42MjQgMCA1MTIgMjI5LjM3NiA1MTIgNTEycy0yMjkuMzc2IDUxMi01MTIgNTEySDUxMkMyMjkuMzc2IDEwMjQgMCA3OTQuNjI0IDAgNTEyUzIyOS4zNzYgMCA1MTIgMHoiIGZpbGw9IiNFQkVFRkQiLz48cGF0aCBkPSJNMTYzOC40IDc0MS4zNzZjMjguNjcyIDAgNDAuOTYtMTYuMzg0IDQwLjk2LTQ1LjA1NlYyOTQuOTEyaC0zNi44NjR2MzkzLjIxNmMwIDE2LjM4NC04LjE5MiAyMC40OC0yMC40OCAyMC40OC0yNC41NzYgMC00NS4wNTYgMC03My43MjgtNC4wOTZsOC4xOTIgMzIuNzY4aDgxLjkyem0tMzcyLjczNi0yNTguMDQ4YzQ5LjE1Mi00NS4wNTYgOTAuMTEyLTk0LjIwOCAxMjYuOTc2LTE0Ny40NTYgMzIuNzY4IDMyLjc2OCA2OS42MzIgNzcuODI0IDExMC41OTIgMTM1LjE2OGwyNC41NzYtMjQuNTc2Yy00MC45Ni00OS4xNTItODEuOTItOTguMzA0LTEyMi44OC0xNDMuMzZoLTI0LjU3NmMtNDAuOTYgNTcuMzQ0LTgxLjkyIDExMC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A5Ni04LjE5Mi00LjA5Ni00LjA5Ni00LjA5Ni00LjA5Ni04LjE5Mi04LjE5Mi0xMi4yODhzLTQuMDk2LTguMTkyLTQuMDk2LTEyLjI4OCA0LjA5Ni04LjE5MiA0LjA5Ni0xMi4yODhjNC4wOTYgMCA4LjE5Mi00LjA5NiAxMi4yODgtNC4wOTZsMTUxLjU1Mi0xMi4yODhMNzE2LjggMzA3LjJjMC00LjA5NiA0LjA5Ni04LjE5MiA4LjE5Mi0xMi4yODggMC04LjE5MiA4LjE5Mi04LjE5MiAxMi4yODgtOC4xOTJzNC4wOTYgMCA4LjE5MiA0LjA5NmM0LjA5NiAwIDQuMDk2IDQuMDk2IDQuMDk2IDQuMDk2bDQuMDk2IDQuMDk2czAgNC4wOTYgNC4wOTYgNC4wOTZsNTMuMjQ4IDEzMS4wNzIgMTU1LjY0OCAxNi4zODRjOC4xOTIgMCAxMi4yODggNC4wOTYgMTIuMjg4IDQuMDk2IDQuMDk2IDQuMDk2IDQuMDk2IDguMTkyIDQuMDk2IDEyLjI4OHMwIDguMTkyLTQuMDk2IDEyLjI4OGwtMTIuMjg4IDEyLjI4OC05OC4zMDQgOTAuMTEyeiIgZmlsbD0iIzJFNUJFQyIvPjwvc3ZnPg==",Pe=Ce(70467),ze=(We,tt,at)=>new Promise((ot,ct)=>{var lt=ft=>{try{Lt(at.next(ft))}catch(St){ct(St)}},mt=ft=>{try{Lt(at.throw(ft))}catch(St){ct(St)}},Lt=ft=>ft.done?ot(ft.value):Promise.resolve(ft.value).then(lt,mt);Lt((at=at.apply(We,tt)).next())});const Ke=50;var Ne=({data:We,isAdminOrTeacher:tt,onDelGroup:at,onChangeGroupName:ot,onPlusMember:ct,onDelMember:lt,onExitGroup:mt,Transferteams:Lt})=>{var ft,St;const[nn,on]=(0,te.useState)(0),[yn,xn]=(0,te.useState)(0);let[an,An]=(0,te.useState)(),[Jt,Ut]=(0,te.useState)(),[rn,_n]=(0,te.useState)(!1),[Bn,kt]=(0,te.useState)(),[ln,Cn]=(0,te.useState)(),[Mn,Qn]=(0,te.useState)(!1),[mr,lr]=(0,te.useState)(!1),[Cr,nr]=(0,te.useState)("");function ur(dn){let Ie=parseInt(dn.key,10);nr(Ie),lr(!0)}function Nn(dn){let Ie=parseInt(dn.key,10);Me.default.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:()=>{mt(Ie)}})}function In(dn){let Ie=parseInt(dn,10);Me.default.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",icon:!1,className:oe.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:()=>{mt(Ie)}})}function Wn(dn,Ie){Me.default.confirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",icon:!1,className:oe.Z.CustomTipsModalCss,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>{lt(dn,Ie)}})}const Kn={display:"block",height:"30px",lineHeight:"30px"};function Ln(dn){Cn(dn),kt(dn==null?void 0:dn.id),Qn(!0)}const $n=[{title:"\u6210\u5458\u540D\u79F0",dataIndex:"name",width:150},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u9898",dataIndex:"item_bank",align:"center",width:150,render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"item_bank",enable:Je.target.checked})}})},{title:"\u7F16\u8F91\u5171\u4EAB\u8BD5\u9898",dataIndex:"edit_item_bank",align:"center",width:150,render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"edit_item_bank",enable:Je.target.checked})}})},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u5377",dataIndex:"exercise",align:"center",render:(dn,Ie,je)=>te.createElement(de.default,{disabled:Ie==null?void 0:Ie.is_creator,defaultChecked:dn,onChange:Je=>{b({id:Bn,member_id:Ie.id,clazz:"exercise",enable:Je.target.checked})}})}];function ar(dn){return ze(this,null,function*(){const Ie=yield E(dn==null?void 0:dn.id);kt(dn==null?void 0:dn.id),Ut(Ie),_n(!0)})}return te.createElement("ul",{className:"teaching-lists"},We.map((dn,Ie)=>te.createElement("li",{key:dn.id,style:{marginTop:Ie===0?30:16},onClick:()=>on(Ie)},te.createElement("div",{className:"item-group"},te.createElement("span",{style:{color:"#000000",fontSize:16,fontWeight:600}},dn.name,"\u7684\u6559\u7814\u56E2\u961F"),te.createElement("div",{className:"action-group"})),te.createElement("div",{style:{display:"flex"}},te.createElement("span",{style:{marginTop:29,marginLeft:24,color:"#5F6367"}},"\u56E2\u961F\u6210\u5458\uFF1A"),te.createElement("ul",{className:"info",style:{flex:1}},dn.memers.map(je=>{var Je;return te.createElement("li",{key:je.id||je.name,onClick:()=>{xn(je.id)},className:"directionItemWrap"},te.createElement("div",{className:"hovename",style:{display:"flex",alignItems:"center",justifyContent:"center",fontWeight:400,fontSize:14,color:je!=null&&je.is_creater?"#000000":"#5F6367"}},((Je=je.name)==null?void 0:Je.length)>6?je.name.substr(0,6)+"....":je.name,te.createElement("img",{src:Ue,style:{marginLeft:5,display:!(je!=null&&je.is_creater)&&"none",height:25,width:78}})),dn.is_creat?te.createElement("div",{className:"groupActionWrap",style:{display:!(je!=null&&je.id)&&"none"}},te.createElement("a",{className:"btn-del",onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),Wn(dn.id,je.id)}},"x")):null)})),dn.is_creat||tt?te.createElement(a.Z,{overlayClassName:"dropdowns",dropdownRender:()=>te.createElement(x.default,null,te.createElement(x.default.Item,{onClick:()=>{ot(dn)}},"\u4FEE\u6539\u540D\u79F0"),te.createElement(x.default.Item,{disabled:dn.memers.length>=50,onClick:()=>{ct(dn)}},"\u6DFB\u52A0\u6210\u5458"),dn.is_creat&&te.createElement(x.default.Item,{onClick:()=>ar(dn)},"\u6743\u9650\u914D\u7F6E"),dn.is_creat&&te.createElement(x.default.Item,{onClick:()=>Ln(dn)},"\u8F6C\u8BA9\u56E2\u961F"),te.createElement(x.default.Item,{key:dn.id+"",onClick:dn.is_creat?ur:Nn},dn.is_creat?"\u89E3\u6563":"\u9000\u51FA"))},te.createElement("span",{style:{marginTop:30,marginRight:24,color:"#165DFF",fontSize:14,height:20}},"\u8BBE\u7F6E",te.createElement("i",{style:{marginLeft:5,color:"#979797"},className:"iconfont icon-a-bianzu11"}))):te.createElement("span",{key:dn.id+"",style:{marginTop:30,marginRight:24,color:"#165DFF",fontSize:14,height:20},className:"c-grey-c",onClick:()=>In(dn.id)},"\u9000\u51FA")))),te.createElement(Me.default,{width:700,wrapClassName:oe.Z.CustomCss,title:"\u6743\u9650\u914D\u7F6E",footer:null,open:rn,onCancel:()=>_n(!1)},te.createElement(Pe.Gi,null,te.createElement(re.default,{dataSource:Jt==null?void 0:Jt.members,columns:$n,pagination:!1,scroll:{y:240}})),te.createElement("p",{style:{color:"#FF9D18",marginTop:5}},"*\u9009\u4E2D\u4EE3\u8868\u8BE5\u6210\u5458\u53EF\u4EE5\u4F7F\u7528\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u5171\u4EAB\u7684\u8D44\u6E90\uFF0C\u5426\u5219\u4E0D\u53EF\u4EE5")),te.createElement(Me.default,{title:"\u89E3\u6563\u63D0\u793A",wrapClassName:oe.Z.CustomCss,onOk:()=>{at(Cr),lr(!1)},open:mr,onCancel:()=>lr(!1)},te.createElement("p",null,"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002"),te.createElement("p",null,"\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F")),te.createElement(Me.default,{wrapClassName:oe.Z.CustomCss,title:"\u8F6C\u8BA9\u56E2\u961F",onOk:()=>{if(!an){ce.ZP.info("\u521B\u5EFA\u4EBA\u4E0D\u80FD\u4E3A\u7A7A");return}Lt(Bn,an),Qn(!1),an=""},open:Mn,onCancel:()=>{Qn(!1),an=""}},te.createElement("p",{style:{textAlign:"left"}},"\u9009\u4E2D\u7684\u6210\u5458\u5C06\u4F1A\u4EE5\u65B0\u7684\u521B\u5EFA\u4EBA\u8EAB\u4EFD\u63A5\u7BA1\u56E2\u4F53 ",te.createElement("br",null)," \u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u521B\u5EFA\u4EBA\u7684\u8EAB\u4EFD\u548C\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u56E2\u961F\u4E2D\u7684\u4E00\u5458"),te.createElement("div",null,te.createElement(ge.ZP.Group,{defaultValue:[],onChange:dn=>{an=dn.target.value,An(dn.target.value)}},(St=(ft=ln==null?void 0:ln.memers)==null?void 0:ft.filter(dn=>dn.is_teacher))==null?void 0:St.map((dn,Ie)=>te.createElement(ge.ZP,{style:Kn,value:dn==null?void 0:dn.id},dn==null?void 0:dn.name))))))},Re=Ce(76406),$e=Ce(44283),nt=Ce(93328),ut=Object.defineProperty,Qe=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Ft=(We,tt,at)=>tt in We?ut(We,tt,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[tt]=at,Ct=(We,tt)=>{for(var at in tt||(tt={}))At.call(tt,at)&&Ft(We,at,tt[at]);if(pt)for(var at of pt(tt))gt.call(tt,at)&&Ft(We,at,tt[at]);return We},Yt=(We,tt)=>Qe(We,rt(tt)),zt=(We,tt,at)=>new Promise((ot,ct)=>{var lt=ft=>{try{Lt(at.next(ft))}catch(St){ct(St)}},mt=ft=>{try{Lt(at.throw(ft))}catch(St){ct(St)}},Lt=ft=>ft.done?ot(ft.value):Promise.resolve(ft.value).then(lt,mt);Lt((at=at.apply(We,tt)).next())});function Xe({children:We}){return te.createElement("div",{className:"no-data"},te.createElement("img",{src:pe,alt:"no-data",width:300}),We)}const Fe={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0};var Le=(We=>(We[We.INITDATA=0]="INITDATA",We[We.SHOWLOADING=1]="SHOWLOADING",We[We.SHOWFORMPANEL=2]="SHOWFORMPANEL",We[We.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",We[We.SELECTGROUP=4]="SELECTGROUP",We[We.SETINDEX=5]="SETINDEX",We))(Le||{});function Ze(We,tt){switch(tt.type){case 0:return Ct(Ct({},We),tt.payload);case 1:return Yt(Ct({},We),{loading:tt.payload});case 5:return Yt(Ct({},We),{index:tt.payload});case 2:return Ct(Ct({},We),tt.payload);case 3:return Ct(Ct({},We),tt.payload);case 4:return Yt(Ct({},We),{selectedGroup:tt.payload,showFormPanel:!0});default:throw new Error}}function et({user:We}){var tt;const at=(0,$e.useLocation)(),[ot]=(0,$e.useSearchParams)(),[ct,lt]=(0,te.useReducer)(Ze,Fe),{data:mt,index:Lt,loading:ft,showFormPanel:St,selectedGroup:nn,showMemberPanel:on}=ct,yn=(tt=We.userInfo)==null?void 0:tt.role,[xn,an]=(0,te.useState)(ot.get("category")||"0"),An=(0,te.useMemo)(()=>{let ur=[],Nn=[];if(mt){for(let In of mt)In.is_creat?ur.push(In):Nn.push(In);return[ur,Nn]}},[mt]);(0,te.useEffect)(()=>{yn===15&<({type:5,payload:1})},[yn]);function Jt(){return zt(this,null,function*(){const ur=yield ve();(ur==null?void 0:ur.status)!==401&<({type:0,payload:{loading:!1,showFormPanel:!1,data:ur.groups,index:ot.get("category")||0}})})}(0,te.useEffect)(()=>{Jt()},[]);function Ut(ur){return zt(this,null,function*(){nn.id?yield fe(nn.id,ur):yield ue(ur),Jt()})}function rn(){lt({type:2,payload:{showFormPanel:!0,selectedGroup:{}}})}function _n(ur){lt({type:4,payload:ur})}function Bn(){lt({type:2,payload:{showFormPanel:!1}})}function kt(){lt({type:3,payload:{showMemberPanel:!1,selectedGroup:{}}})}function ln(ur){lt({type:3,payload:{showMemberPanel:!0,selectedGroup:ur}})}function Cn(ur,Nn){return zt(this,null,function*(){yield ie(ur,Nn),Jt()})}function Mn(ur){return zt(this,null,function*(){yield me(ur),Jt()})}function Qn(ur){return zt(this,null,function*(){yield le(ur),Jt()})}function mr(ur,Nn){return zt(this,null,function*(){yield ae(ur,Nn),Jt()})}function lr(ur){lt({type:5,payload:parseInt(ur.target.id,10)})}function Cr(ur,Nn){return zt(this,null,function*(){kt(),yield he({user_ids:ur,group_id:Nn}),Jt()})}const nr=[{id:"0",name:"\u6211\u521B\u5EFA\u7684"},{id:"1",name:"\u6211\u52A0\u5165\u7684"}];return te.createElement(te.Fragment,null,te.createElement("div",{className:"teaching-circling-container",style:{paddingLeft:45,paddingTop:22}},te.createElement("div",{className:"teaching-circling-body"},yn===15?null:te.createElement(Pe.YG,{value:xn,onChange:ur=>{var Nn;(Nn=window.location.href.toString())!=null&&Nn.includes("category")?(0,Re.jz)("category",ur):window.history.replaceState(null,"",window.location.href.indexOf("?")>-1?window.location.href+`&category=${ur}`:`?category=${ur}`),an(ur),lt({type:5,payload:parseInt(ur,10)})},tabBarExtraContent:te.createElement(Ye.ZP,{type:"primary",disabled:mt.length>=50,style:{width:60,height:32,borderRadius:16,border:"1px solid #BACFFE",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",color:"#3061D0"},title:mt.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:rn},"\u65B0\u5EFA"),className:"mb25",dataSource:nr}),te.createElement("div",{className:An[Lt].length===0?"nodata-content":"main-content"},An[Lt].length===0?te.createElement(Xe,null,yn<=12?te.createElement(te.Fragment,null," ",te.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",te.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):te.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):te.createElement(Ne,{onExitGroup:Qn,Transferteams:mr,onPlusMember:ln,onDelMember:Cn,onDelGroup:Mn,isAdminOrTeacher:yn<=12,onChangeGroupName:_n,data:An[Lt]})))),te.createElement(se,{callback:Ut,visible:St,onCancel:Bn,id:nn.id,name:nn.name}),te.createElement(Me.default,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",open:on,onCancel:kt,footer:null,width:1150,bodyStyle:{minHeight:200},wrapClassName:oe.Z.CustomCss},te.createElement(nt.Z,{container_id:nn.id,container_type:4,onSelect:Cr,onCancel:kt})))}var He=(0,$e.connect)(({user:We})=>({user:We}))(et)},20813:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(76411),Me=Ce.n(Ye),pe=Ce(48961),Oe=Ce.n(pe),ve=Ce(59301),ue=Object.defineProperty,fe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ae=(E,b,z)=>b in E?ue(E,b,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[b]=z,ie=(E,b)=>{for(var z in b||(b={}))he.call(b,z)&&ae(E,z,b[z]);if(fe)for(var z of fe(b))le.call(b,z)&&ae(E,z,b[z]);return E};const me=({dataSource:E,height:b,labelTextColor:z,legend:ne={}})=>{console.log("dataSource:",E);const oe=(0,te.useRef)(null),se=(0,te.useRef)(null),[de,a]=(0,te.useState)({}),[x,re]=(0,te.useState)(""),[ce,ge]=(0,te.useState)(""),_e=E||[{name:"\u638C\u63E1\u738780%~100%",value:1,itemStyle:{color:"rgb(223,209,38)"}},{name:"\u638C\u63D0\u738760%~79%",value:2,itemStyle:{color:"rgb(6,234,230)"}},{name:"\u638C\u63A8\u738759%\u4EE5\u4E0B",value:3,itemStyle:{color:"rgb(6,110,247)"}}];(0,te.useEffect)(()=>(be(),window.addEventListener("resize",ye),()=>{window.removeEventListener("resize",ye)}),[]),(0,te.useEffect)(()=>{E!=null&&E.length&&ye()},[E]);const ye=()=>{var Pe,ze;const Ke=Se(_e,.8);(Pe=se.current)==null||Pe.setOption(Ke),(ze=se.current)==null||ze.resize()},be=()=>{const Pe=oe.current;se.current=Ye.init(Pe);const ze=Se(_e,.8);a(ze),se.current.setOption(ze),se.current.getZr().off("mousewheel"),ze.series.push({name:"\u638C\u63E1\u7387",type:"pie",labelLine:{length:10,length2:10},startAngle:-20,clockwise:!1,radius:["20%","50%"],center:["50%","50%"],data:_e,itemStyle:{opacity:0}}),se.current.setOption(ze),Ue(se.current)},Se=(Pe,ze)=>{let Ke,Ne=[],Re=0,$e=0,nt=0,ut=[],Qe=[],rt=1-ze;Pe.sort((At,gt)=>gt.value-At.value);for(let At=0;AtCt.name===At)[0],Ft=we(gt.value*100,2)+"%";return`${gt.name} ${Ft}`}},ne),labelLine:{show:!0,lineStyle:{color:"#7BC0CB"}},label:{show:!0,position:"outside",rich:{b:{color:z||"#FFF",fontSize:12,lineHeight:20},c:{fontSize:16,lineHeight:24,color:z||"#FFF"}},formatter:`{b|{b} }{c|{c}}{b|}`},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:pt,viewControl:{alpha:40,distance:300,rotateSensitivity:0,zoomSensitivity:0,panSensitivity:0,autoRotate:!1}},series:Ne}},Be=(Pe,ze)=>(Pe.sort((Ke,Ne)=>Ne.pieData.value-Ke.pieData.value),ze*25/Pe[0].pieData.value),Ae=(Pe,ze,Ke,Ne,Re,$e)=>{let nt=(Pe+ze)/2,ut=Pe*Math.PI*2,Qe=ze*Math.PI*2,rt=nt*Math.PI*2;Pe===0&&ze===1&&(Ke=!1),Re=typeof Re!="undefined"?Re:1/3;let pt=Ke?Math.cos(rt)*.1:0,At=Ke?Math.sin(rt)*.1:0,gt=Ne?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x:function(Ft,Ct){return FtQe?pt+Math.cos(Qe)*(1+Math.cos(Ct)*Re)*gt:pt+Math.cos(Ft)*(1+Math.cos(Ct)*Re)*gt},y:function(Ft,Ct){return FtQe?At+Math.sin(Qe)*(1+Math.cos(Ct)*Re)*gt:At+Math.sin(Ft)*(1+Math.cos(Ct)*Re)*gt},z:function(Ft,Ct){return Ft<-Math.PI*.5?Math.sin(Ft):Ft>Math.PI*2.5?Math.sin(Ft)*$e*.1:Math.sin(Ct)>0?1*$e*.1:-1}}},we=(Pe,ze)=>{let Ke=parseFloat(Pe);if(isNaN(Ke))return!1;Ke=Math.round(Pe*Math.pow(10,ze))/Math.pow(10,ze);let Ne=Ke.toString();(Ne==null?void 0:Ne.indexOf("."))<0&&(Ne+=".");for(let $e=Ne.length-(Ne==null?void 0:Ne.indexOf("."));$e<=ze;$e++)Ne+="0";return Ne},Ue=()=>{se.current.on("click",function(Pe){if(Pe.seriesName==="pie2d"){re(Pe.dataIndex);let ze=se.current.getWidth()/2,Ke=se.current.getHeight()/2;se.current.dispatchAction({type:"pieSelect",seriesIndex:0,dataIndex:Pe.dataIndex})}}),se.current.on("mousemove",function(Pe){}),se.current.on("mouseout",function(){se.current.dispatchAction({type:"pieUnSelect",seriesIndex:0,dataIndex:ce}),ge("")})};return ve.createElement("div",{ref:oe,style:{width:"100%",height:b||"500rem"}})};en.Z=me},855:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ri}});var te=Ce(59301),Ye=Ce(44283),Me=Ce(28284),pe=Ce(6767),Oe=Ce(94968),ve=Ce(36207),ue=Ce(7939),fe=Ce(62957),he=Ce(37568),le=Ce(37285),ae=Ce(25399),ie=Ce(31691),me=Ce(29787),E=Ce(47889),b=Ce(18287),z={flex_box_center:"flex_box_center___bAhU8",flex_space_between:"flex_space_between___fGcUL",flex_box_vertical_center:"flex_box_vertical_center___hqbFm",flex_box_center_end:"flex_box_center_end___h8cjt",flex_box_column:"flex_box_column___jkfSL",detailmodal:"detailmodal___KEy8k",title:"title___M0Bdn",button:"button___oEMiZ",drawer:"drawer___Pwq6m",tabstyle:"tabstyle___hGelr",items:"items___RrF7L",itemsactivite:"itemsactivite____kVzF",nodetitle:"nodetitle___UgLxl",nodeboyd:"nodeboyd___R1M87",listitem:"listitem___CjR4j",Tabs:"Tabs___gAkar",addmodal:"addmodal___KHvV4",gxcoent:"gxcoent___B8UeJ",gxtitle:"gxtitle___Ezw1C",Colortitle:"Colortitle___kChPm",gxbody:"gxbody___HmZPk",tag:"tag___b2Gak",form:"form___wY8YH",radioform:"radioform___RW7Fy",settingmodal:"settingmodal___LgbSA",body:"body___KaaXx",left:"left___BbRKH",header:"header___E8vej",treenode:"treenode___XViAn",hudong:"hudong___MzZbW",colortitle:"colortitle___PgqHg",right:"right___jzXCF",multiple:"multiple___GQEEM",settingtag:"settingtag___XVMCI",tree:"tree___zz_WU",select:"select___HL7_r",input:"input___reuVt",DetailStatistics:"DetailStatistics___v31Uq",xxrs:"xxrs___Q156g",xxrscount:"xxrscount___OdU60",righttop:"righttop___dnIBD",rightbottom:"rightbottom___B0s8j",gllist:"gllist___JZ9mz",gltag:"gltag___RF_cu"},ne=Ce(99267),oe=Ce(43531),se=Ce(15075),de=Ce(84105),a=Ce(87395),x={tag:"tag___aXy_L",active:"active___kZOMC",tagsModal:"tagsModal___wsl_M",btn:"btn___S2nL4",modal:"modal___r3iAS",mHead:"mHead___imW9A",body:"body___fZUhx",add:"add___QHMDJ",error:"error___aJzBo"},re=Ce(92310),ce=Ce.n(re),ge=Ce(49317),_e=Ce(59301),ye=Object.defineProperty,be=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ae=(un,Vn,Sn)=>Vn in un?ye(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,we=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Se.call(Vn,Sn)&&Ae(un,Sn,Vn[Sn]);if(be)for(var Sn of be(Vn))Be.call(Vn,Sn)&&Ae(un,Sn,Vn[Sn]);return un},Ue=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let Pe=[{name:"\u4F5C\u4E1A",id:"zy",item_type:2},{name:"\u5B9E\u8BAD",id:"sx",item_type:2},{name:"\u6559\u6750",id:"jc",item_type:2},{name:"\u89C6\u9891",id:"sp",item_type:2},{name:"\u8BFE\u4EF6",id:"kj",item_type:2},{name:"\u8BD5\u5377",id:"sj",item_type:2},{name:"\u9898\u96C6",id:"tj",item_type:2},{name:"\u8BD5\u9898",id:"st",item_type:2}],ze=[{name:"\u7AE0\u8282",id:"zj",item_type:1},{name:"\u77E5\u8BC6\u70B9",id:"zsd",item_type:1}];var Ne=({value:un=[],onChange:Vn,type:Sn,dataSources:Rr=[],pathsDetail:ti={},showmodal:gn,containerRef:mi})=>{const Nr=(0,Ye.useParams)(),[Ar,pi]=(0,te.useState)(!1),[Gi,gi]=(0,te.useState)([]),[Wi,Jr]=(0,te.useState)(),[li,Zr]=(0,te.useState)(""),[Vi,sa]=(0,te.useState)(""),[vi,Ni]=(0,te.useState)(""),[Ii,Mi]=(0,te.useState)(!1),[fa,ca]=(0,te.useState)(!1),[la,zi]=(0,te.useState)([]),[Da,Ca]=(0,te.useState)("");(0,te.useEffect)(()=>{Ar&&Ra()},[Ar]);function Ra(){return Ue(this,null,function*(){let kr=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:Sn,subject_id:Nr==null?void 0:Nr.pathId}});(kr==null?void 0:kr.status)===0&&(Sn===3?gi(kr==null?void 0:kr.data):(gi([...ze,...kr==null?void 0:kr.data]),zi([...Pe,...kr==null?void 0:kr.data2])))})}const to=[{background:"#6236FF",borderColor:"#9D82FF"},{background:"#6DB9FF",borderColor:"#6DB9FF"},{background:"rgba(27,175,234,0.8)",borderColor:"#68D5FF"},{background:"#C1AC15",borderColor:"#DCC51C"},{background:"#E07E37",borderColor:"#F79046"},{background:"rgba(29,94,255,0.8)",borderColor:"#6D97FE"},{background:"#E75454",borderColor:"#FE8383"},{background:"#A557D8",borderColor:"#C57AF6"},{background:"#2CA768",borderColor:"#43CC86"},{background:"#1F9269",borderColor:"#38B588"},{background:"#CA7720",borderColor:"#E99338"},{background:"rgba(224,32,32,0.8)",borderColor:"#E02020"},{background:"rgba(255,126,15,0.8)",borderColor:"#FF7E0F"},{background:"rgba(29,94,255,0.8)",borderColor:"#1D5EFF"},{background:"#2BAC8E",borderColor:"#30CB9D"},{background:"#EE5D5D",borderColor:"#FF8181"},{background:"#7E5AFE",borderColor:"#9173FA"},{background:"#3ABCEF",borderColor:"#6FD6FF"},{background:"#B132C2",borderColor:"#C57AF6"},{background:"#46A4FB",borderColor:"#72BBFF"},{background:"#C1AC15",borderColor:"#DCC51C"},{background:"#E07E37",borderColor:"#F79046"},{background:"#1D5EFF",borderColor:"#6D97FE"},{background:"#2CA768",borderColor:"#43CC86"},{background:"#A557D8",borderColor:"#C57AF6"},{background:"#1F9269",borderColor:"#38B588"},{background:"#CA7720",borderColor:"#E99338"}],bi="\u6807\u7B7E";(0,te.useEffect)(()=>{gi(Rr)},[]),(0,te.useEffect)(()=>{Ar&&Jr(un)},[Ar]);const Yi=({title:kr="",style:Zi={},values:ma="",showDelete:ba=!0,modal:ir=!1,active:Ji=!1})=>{const no=(pa=>pa.split("").reduce((_a,oa)=>_a+oa.charCodeAt(0),0))(kr)%to.length,{background:Ya,borderColor:xi}=to[no];return _e.createElement("div",{className:ce()(x.tag,Ji?x.active:""),onClick:()=>{var pa;if(ir){if(Ar===1){let _a=[...Gi,...la];Jr([..._a.filter(oa=>(oa==null?void 0:oa.id)===ma)])}Ar===2&&((pa=Wi==null?void 0:Wi.map(_a=>_a.id))!=null&&pa.includes(ma)?Jr(Wi.filter(_a=>_a.id!==ma)):Jr([...Wi,...Gi.filter(_a=>(_a==null?void 0:_a.id)===ma)]))}},style:we({background:Ya,borderColor:xi},Zi)},_e.createElement("span",null,kr),ba&&_e.createElement("i",{onClick:pa=>Ue(void 0,null,function*(){var _a;if(pa.stopPropagation(),ir){gi(Gi.filter(Wa=>Wa.name!==kr)),gi(Gi.filter(Wa=>Wa.name!==kr));let oa=yield(0,ge.ZP)(`/api/knowledge_items/${ma}.json`,{method:"delete",body:{id:ma,subject_id:(_a=ti==null?void 0:ti.detail)==null?void 0:_a.id}});(oa==null?void 0:oa.status)===0&&Ra()}else Vn(un.filter(oa=>oa.id!==ma))}),className:"iconfont icon-shanchu5"}))},Ei=()=>{Vn(Wi),pi(!1)},Ci=kr=>Ue(void 0,null,function*(){if(!li.replace(/\s+/g,"")&&kr===1){Ni(`${bi}\u4E0D\u80FD\u4E3A\u7A7A`);return}if(!Vi.replace(/\s+/g,"")&&kr===2){Ca("\u8D44\u6E90\u4E0D\u80FD\u4E3A\u7A7A");return}if((Gi.map(ma=>ma.name).includes(li)||la.map(ma=>ma.name).includes(li))&&kr===1){Ni(`\u8BE5${bi}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u91CD\u590D\u6DFB\u52A0\uFF01`);return}if((la.map(ma=>ma.name).includes(Vi)||Gi.map(ma=>ma.name).includes(Vi))&&kr===2){Ca("\u8BE5\u8D44\u6E90\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u91CD\u590D\u6DFB\u52A0\uFF01");return}let Zi=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"post",body:{item_type:Sn===3?3:kr,name:Sn===3||kr===1?li:Vi,subject_id:Nr==null?void 0:Nr.pathId}});(Zi==null?void 0:Zi.status)===0&&Ra(),kr===1&&Mi(!1),kr===2&&ca(!1)});return _e.createElement("div",{className:x.tagsModal},Sn===5&&_e.createElement(_e.Fragment,null,un==null?void 0:un.map((kr,Zi)=>_e.createElement(Yi,{values:kr.id,key:Zi,title:kr.name,showDelete:!1,style:{marginRight:"20rem",marginBottom:0}})),gn&&_e.createElement("div",{onClick:()=>pi(1),style:{marginBottom:"0rem"},className:x.btn},_e.createElement("i",{className:"iconfont icon-genghuanguanliyuan1"}),un!=null&&un.length?"\u66F4\u6362":"\u9009\u62E9","\u7C7B\u578B")),Sn===3&&_e.createElement(_e.Fragment,null,un==null?void 0:un.map((kr,Zi)=>_e.createElement(Yi,{values:kr.id,key:Zi,title:kr.name})),gn&&_e.createElement("div",{onClick:()=>pi(2),className:x.btn,style:{marginBottom:"10rem"}},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),un!=null&&un.length?"\u66F4\u6362":"\u9009\u62E9","\u6807\u7B7E")),_e.createElement(fe.default,{open:!!Ar,centered:!0,width:"1000rem",okText:"\u4FDD\u5B58",getContainer:()=>mi.current,onCancel:()=>pi(!1),cancelText:"\u53D6\u6D88",afterClose:()=>{Mi(!1),ca(!1),Ni(""),Zr("")},onOk:Ei,title:`\u9009\u62E9${bi}`},_e.createElement("div",{className:x.modal},_e.createElement("div",{className:x.mHead},_e.createElement("b",null),_e.createElement("span",null,`${bi}`,"\uFF08",Gi.length,"\uFF09"),_e.createElement("div",{onClick:()=>{Mi(!0),Ni(""),Zr("")},className:x.btn},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),"\u6DFB\u52A0")),_e.createElement("div",{className:x.body},Gi==null?void 0:Gi.map((kr,Zi)=>{var ma,ba,ir;return _e.createElement(Yi,{showDelete:Sn===3?!((ma=Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id))!=null&&ma.includes(kr==null?void 0:kr.id)):!((ba=Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id))!=null&&ba.includes(kr==null?void 0:kr.id))&&!((ir=ze.map(Ji=>Ji.name))!=null&&ir.includes(kr.name)),modal:!0,style:{cursor:"pointer"},active:Wi==null?void 0:Wi.map(Ji=>Ji==null?void 0:Ji.id).includes(kr==null?void 0:kr.id),key:kr==null?void 0:kr.id,values:kr==null?void 0:kr.id,title:kr==null?void 0:kr.name})}),Ii&&_e.createElement("div",{className:x.add},_e.createElement(he.default,{style:{width:"rem"},size:"large",value:li,onChange:kr=>{Ni(""),Zr(kr.target.value)}}),_e.createElement("i",{onClick:()=>Ci(1),className:"iconfont icon-dui",style:{color:"#1B8565"}}),_e.createElement("i",{onClick:()=>Mi(!1),className:"iconfont icon-shanchu10",style:{color:"#9096A3"}}),!!vi&&_e.createElement("div",{className:x.error},vi)))),Sn===5&&_e.createElement("div",{className:x.modal},_e.createElement("div",{className:x.mHead},_e.createElement("b",null),_e.createElement("span",null,"\u8D44\u6E90","\uFF08",la.length,"\uFF09"),_e.createElement("div",{onClick:()=>{ca(!0),Ca(""),sa("")},className:x.btn},_e.createElement("i",{className:"iconfont icon-tianjiatixing"}),"\u6DFB\u52A0")),_e.createElement("div",{className:x.body},la==null?void 0:la.map((kr,Zi)=>{var ma,ba;return _e.createElement(Yi,{showDelete:!((ma=Wi==null?void 0:Wi.map(ir=>ir==null?void 0:ir.id))!=null&&ma.includes(kr==null?void 0:kr.id))&&!((ba=Pe.map(ir=>ir.name))!=null&&ba.includes(kr.name)),modal:!0,style:{cursor:"pointer"},active:Wi==null?void 0:Wi.map(ir=>ir==null?void 0:ir.id).includes(kr==null?void 0:kr.id),key:kr==null?void 0:kr.id,values:kr==null?void 0:kr.id,title:kr==null?void 0:kr.name})}),fa&&_e.createElement("div",{className:x.add},_e.createElement(he.default,{style:{width:"rem"},size:"large",value:Vi,onChange:kr=>{Ca(""),sa(kr.target.value)}}),_e.createElement("i",{onClick:()=>Ci(2),className:"iconfont icon-dui",style:{color:"#1B8565"}}),_e.createElement("i",{onClick:()=>ca(!1),className:"iconfont icon-shanchu10",style:{color:"#9096A3"}}),!!Da&&_e.createElement("div",{className:x.error},Da))))))},Re=Ce(14185),$e=Ce(82326),nt=Ce(70858),ut=Ce(31709),Qe=Ce(42972),rt=Ce(59301),pt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Ft=(un,Vn)=>{var Sn={};for(var Rr in un)At.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&pt)for(var Rr of pt(un))Vn.indexOf(Rr)<0&>.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Ct=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let Yt=[{label:"\u5B9E\u8BAD",key:"1"},{label:"\u89C6\u9891",key:"2"},{label:"\u8BFE\u4EF6",key:"3"},{label:"\u8BD5\u5377",key:"4"}];const zt=un=>{var Vn=un,{types:Sn,globalSetting:Rr,loading:ti,dispatch:gn,pathsDetail:mi,onChange:Nr,ktzykey:Ar,getother:pi}=Vn,Gi=Ft(Vn,["types","globalSetting","loading","dispatch","pathsDetail","onChange","ktzykey","getother"]),gi,Wi,Jr,li;let[Zr,Vi]=(0,te.useState)({page:1,limit:10,type:Sn,keyword:"",select_type:1,subject_id:"",course_id:""});const[sa,vi]=(0,te.useState)([]);(0,te.useEffect)(()=>{Ni()},[Sn]);function Ni(){return Ct(this,null,function*(){Zr.select_type===3&&(Zr.subject_id="",Zr.course_id=""),Zr.select_type===2&&(Zr.subject_id=""),Zr.select_type===1&&(Zr.course_id="");let Ii=yield(0,ge.ZP)("/api/paths/search_all.json",{method:"get",params:Zr});(Ii==null?void 0:Ii.status)===0&&vi(Ii)})}return rt.createElement("div",{style:{padding:"10rem 20rem"}},rt.createElement("div",{style:{display:"flex"}},rt.createElement("div",null,Sn==="1"&&rt.createElement(he.default,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",style:{width:"992rem",marginRight:"10rem",height:"40rem"},onChange:Ii=>{Zr.keyword=Ii.target.value,Zr.page=1,Zr.limit=10,Vi(Zr)}}),Sn!=="1"&&rt.createElement("div",{style:{display:"flex"}},rt.createElement("div",{style:{width:"223rem",alignItems:"center",display:"flex",height:"40rem"}},rt.createElement("span",{style:{width:"92rem",border:"1rem solid #DCDCDC",borderRightStyle:"none",background:"#F6F7F9",height:"40rem",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"40rem",fontSize:"16rem",color:"#666666"}},"\u6240\u5728\u4F4D\u7F6E"),rt.createElement($e.default,{value:Zr.select_type,onChange:Ii=>{Zr.select_type=Ii,Zr.page=1,Zr.limit=10,Vi(Zr),Ni()},className:z.select,style:{width:"131rem",height:"40rem"}},rt.createElement($e.default.Option,{value:1},"\u5B9E\u8DF5\u8BFE\u7A0B"),rt.createElement($e.default.Option,{value:2},"\u6559\u5B66\u8BFE\u5802"),rt.createElement($e.default.Option,{value:3},"\u4E2A\u4EBA\u4E2D\u5FC3"))),Zr.select_type!==3&&rt.createElement($e.default,{value:Zr.subject_id||Zr.course_id,onChange:Ii=>{Zr.course_id=Ii,Zr.subject_id=Ii,Zr.page=1,Zr.limit=10,Vi(Zr),Ni()},className:z.select,style:{width:"270rem",marginLeft:"8rem"}},Zr.select_type===1&&((gi=sa==null?void 0:sa.subjects)==null?void 0:gi.map(Ii=>rt.createElement($e.default.Option,{value:Ii.id},Ii.name))),Zr.select_type===2&&((Wi=sa==null?void 0:sa.courses)==null?void 0:Wi.map(Ii=>rt.createElement($e.default.Option,{value:Ii.id},Ii.name)))),rt.createElement(he.default,{onChange:Ii=>{Zr.keyword=Ii.target.value,Zr.page=1,Zr.limit=10,Vi(Zr)},addonBefore:((Jr=Yt==null?void 0:Yt.find(Ii=>Ii.key===Sn))==null?void 0:Jr.label)+"\u540D\u79F0",className:z.input,style:{marginLeft:"10rem",width:"486rem",height:"40rem"}}))),rt.createElement(ue.ZP,{type:"primary",style:{height:"40rem",fontSize:"14rem",boxShadow:"none",lineHeight:"40rem",width:"108rem",padding:"0",marginLeft:"10rem"},onClick:()=>{Ni()}},"\u67E5\u8BE2")),rt.createElement(nt.default,{style:{marginTop:"10rem"},dataSource:sa==null?void 0:sa.data,pagination:!1,rowKey:Ii=>Ii.id,scroll:{y:"400rem"},columns:[{title:((li=Yt==null?void 0:Yt.find(Ii=>Ii.key===Sn))==null?void 0:li.label)+"\u540D\u79F0",dataIndex:"name",ellipsis:!0,key:"name"},{title:Sn==="1"?"\u5408\u4F5C\u8005":"\u6240\u5C5E\u6A21\u5757",dataIndex:"name",key:"name",ellipsis:!0,render:(Ii,Mi)=>rt.createElement("span",null,Sn==="1"?Mi==null?void 0:Mi.user_names:Mi==null?void 0:Mi.model)},{title:Sn==="1"?"\u6700\u8FD1\u4FEE\u6539\u65F6\u95F4":"\u6240\u5728\u4F4D\u7F6E",dataIndex:"updated_at",ellipsis:!0,render:(Ii,Mi)=>rt.createElement("span",null,Sn==="1"?Mi==null?void 0:Mi.updated_at:Mi==null?void 0:Mi.stage_name)},{title:"\u64CD\u4F5C",dataIndex:"url",width:"100rem",render:(Ii,Mi)=>rt.createElement("a",{onClick:()=>{(Mi==null?void 0:Mi.container_type)==="Video"?fe.default.confirm({icon:null,title:"\u89C6\u9891\u64AD\u653E",centered:!0,closable:!0,footer:!1,width:600,content:rt.createElement(Qe.Z,{allow_skip:!0,src:Ii})}):Sn==="3"?pi(Ii):window.open(Ii)}},"\u67E5\u770B")}],rowSelection:{type:"radio",onChange(Ii,Mi){Nr(Mi)}}}),rt.createElement(ut.Z,{hideOnSinglePage:!0,style:{marginTop:"20rem"},total:sa==null?void 0:sa.total_count,current:Zr==null?void 0:Zr.page,pageSize:Zr==null?void 0:Zr.limit,onChange:(Ii,Mi)=>{Zr.page=Ii,Zr.limit=Mi,Vi(Zr),Ni()}}))};var Xe=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(zt),Fe=Ce(76406),Le=Ce(59301),Ze=Object.defineProperty,et=Object.defineProperties,He=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ot=(un,Vn,Sn)=>Vn in un?Ze(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,ct=(un,Vn)=>{for(var Sn in Vn||(Vn={}))tt.call(Vn,Sn)&&ot(un,Sn,Vn[Sn]);if(We)for(var Sn of We(Vn))at.call(Vn,Sn)&&ot(un,Sn,Vn[Sn]);return un},lt=(un,Vn)=>et(un,He(Vn)),mt=(un,Vn)=>{var Sn={};for(var Rr in un)tt.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&We)for(var Rr of We(un))Vn.indexOf(Rr)<0&&at.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Lt=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const ft=un=>{var Vn=un,{typesdata:Sn,globalSetting:Rr,loading:ti,dispatch:gn,pathsDetail:mi,onChange:Nr,uuid:Ar,itemsuuid:pi}=Vn,Gi=mt(Vn,["typesdata","globalSetting","loading","dispatch","pathsDetail","onChange","uuid","itemsuuid"]),gi,Wi,Jr,li,Zr,Vi,sa,vi,Ni,Ii,Mi,fa;const ca=(0,Ye.useParams)();let[la,zi]=(0,te.useState)([]),[Da,Ca]=(0,te.useState)(!1);const[Ra,to]=(0,te.useState)([]),[bi,Yi]=(0,te.useState)(""),[Ei,Ci]=(0,te.useState)(""),[kr,Zi]=(0,te.useState)([]),[ma,ba]=(0,te.useState)(!1);let[ir,Ji]=(0,te.useState)({bh:[],qx:[],hx:[],gl:[]});(0,te.useEffect)(()=>{Va()},[Ar]),(0,te.useEffect)(()=>{if(Sn){let xi=JSON.parse(sessionStorage.getItem("typesdatajsoncopy"));Ji(xi)}return()=>{}},[Sn]);function Va(){return Lt(this,null,function*(){var xi,pa,_a,oa,Wa;Ca(!0);let Ka=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{nodeUuid:Ar,subject_id:ca==null?void 0:ca.pathId,depth:-1,relationshipFilter:"\u5305\u542B>"}});if(Ca(!1),(Ka==null?void 0:Ka.status)===0){to(Ka==null?void 0:Ka.data);const Eo=[...(0,Fe.fX)((pa=(xi=Ka==null?void 0:Ka.data)==null?void 0:xi.nodes)==null?void 0:pa.map((io,ao)=>{var Ba,Fa;return lt(ct({},io),{key:(Ba=io==null?void 0:io.properties)==null?void 0:Ba.uuid,title:(Fa=io==null?void 0:io.properties)==null?void 0:Fa.name})}),(Wa=(oa=(_a=Ka==null?void 0:Ka.data)==null?void 0:_a.relationships)==null?void 0:oa.filter(io=>io.type==="\u5305\u542B"||io.type==="\u524D\u5E8F"))==null?void 0:Wa.filter((io,ao,Ba)=>ao===Ba.findIndex(Fa=>Fa.endNodeUuid===io.endNodeUuid))).children||[]];la=Eo,Ci(JSON.stringify(Eo)),zi(Eo)}})}(0,te.useEffect)(()=>{Nr(ir)},[ir]);function no(xi,pa,_a){for(let oa of xi)oa!=null&&oa.title.includes(pa)&&_a.push(oa),oa.children&&oa.children.length>0&&(no(oa.children,pa,_a),Ya(oa.children,pa,_a)&&_a.push(oa))}function Ya(xi,pa,_a){for(let oa of xi)if(oa!=null&&oa.title.includes(pa))return!0}return Le.createElement(me.Z,{spinning:Da},Le.createElement("div",{className:z.body},Le.createElement("div",{className:z.left},Le.createElement("div",{className:z.header},Le.createElement("div",null,"\u5171",Le.createElement("span",{style:{color:"#1B8565"}},((Wi=(gi=Ra==null?void 0:Ra.metricCounters)==null?void 0:gi[0])==null?void 0:Wi.count)||0),"\u4E2A\u6807\u7B7E\u8282\u70B9\uFF0C",Le.createElement("span",{style:{color:"#1B8565"}},((li=(Jr=Ra==null?void 0:Ra.metricCounters)==null?void 0:Jr[1])==null?void 0:li.count)||0),"\u4E2A\u77E5\u8BC6\u8282\u70B9"),Le.createElement(he.default.Search,{style:{width:"350rem",borderRadius:"50%"},onChange:xi=>{var pa,_a,oa,Wa;const{value:Ka}=xi.target;Yi(Ka);let fo=[];no(JSON.parse(Ei),Ka,fo),fo.push((pa=Ra==null?void 0:Ra.nodes)==null?void 0:pa[0]);const Eo=(_a=Ra==null?void 0:Ra.nodes)==null?void 0:_a.filter(Ba=>{var Fa,Wo;return((Wo=(Fa=Ba==null?void 0:Ba.properties)==null?void 0:Fa.name)==null?void 0:Wo.indexOf(Ka))>-1}).map(Ba=>{var Fa;return(Fa=Ba==null?void 0:Ba.properties)==null?void 0:Fa.uuid});Zi(Eo);const ao=[...(0,Fe.fX)(fo,(Wa=(oa=Ra==null?void 0:Ra.relationships)==null?void 0:oa.filter(Ba=>Ba.type==="\u5305\u542B"||Ba.type==="\u524D\u5E8F"))==null?void 0:Wa.filter((Ba,Fa,Wo)=>Fa===Wo.findIndex(Ta=>Ta.endNodeUuid===Ba.endNodeUuid)).filter(Ba=>(fo==null?void 0:fo.map(Fa=>Fa==null?void 0:Fa.key).includes(Ba.endNodeUuid))||(fo==null?void 0:fo.map(Fa=>Fa==null?void 0:Fa.key).includes(Ba.startNodeUuid)))).children||[]];la=ao,zi(ao),ba(!0)},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"})),Le.createElement(b.default,{style:{marginTop:"30rem",maxHeight:"320rem",overflow:"auto"},showLine:!0,treeData:la,className:z.tree,expandedKeys:kr,onExpand:xi=>{Zi(xi),ba(!1)},autoExpandParent:ma,blockNode:!0,switcherIcon:Le.createElement(de.Z,null),titleRender:xi=>{var pa,_a,oa,Wa,Ka,fo,Eo,io,ao,Ba,Fa,Wo,Ta,Oo,Do;return Le.createElement("div",{className:z.treenode,key:(pa=xi==null?void 0:xi.properties)==null?void 0:pa.uuid},Le.createElement("div",{style:{width:"50%",display:"flex",alignItems:"center"}},((_a=ir==null?void 0:ir.bh)==null?void 0:_a.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#6236ff"}},"\u5305\u542B"),((oa=ir==null?void 0:ir.qx)==null?void 0:oa.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#24A881"}},"\u524D\u7F6E"),((Wa=ir==null?void 0:ir.hx)==null?void 0:Wa.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#EC8657"}},"\u540E\u7F6E"),((Ka=ir==null?void 0:ir.gl)==null?void 0:Ka.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&Le.createElement("span",{className:z.settingtag,style:{background:"#497DFF"}},"\u5173\u8054"),Le.createElement("div",{className:z.multiple,title:xi==null?void 0:xi.title,dangerouslySetInnerHTML:{__html:(fo=xi==null?void 0:xi.title)==null?void 0:fo.replaceAll(bi,`${bi}`)},style:{width:"100%",fontSize:"14rem",color:"#000",fontWeight:400}})),Le.createElement("div",{className:z.hudong},!((Eo=ir==null?void 0:ir.qx)!=null&&Eo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(io=ir==null?void 0:ir.bh)!=null&&io.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(ao=ir==null?void 0:ir.hx)!=null&&ao.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)})||(Ba=ir==null?void 0:ir.gl)!=null&&Ba.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&pi!==((Fa=xi==null?void 0:xi.properties)==null?void 0:Fa.uuid)&&Le.createElement("div",null,Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.bh)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({bh:[...Ja,...ir==null?void 0:ir.bh],qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,gl:ir==null?void 0:ir.gl})}},className:z.colortitle,style:{marginRight:"20rem"}},"\u8BBE\u4E3A\u5305\u542B"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.qx)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:[...Ja,...ir==null?void 0:ir.qx],hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},className:z.colortitle},"\u8BBE\u4E3A\u524D\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.hx)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:ir==null?void 0:ir.qx,hx:[...Ja,...ir==null?void 0:ir.hx],bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},style:{margin:"0rem 20rem"},className:z.colortitle},"\u8BBE\u4E3A\u540E\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi,Pi,lo,Qa;if(!(((Pi=(Xi=ir==null?void 0:ir.gl)==null?void 0:Xi.filter(Ja=>{var zr;return(Ja==null?void 0:Ja.uuid)===((zr=xi==null?void 0:xi.properties)==null?void 0:zr.uuid)}))==null?void 0:Pi.length)>0)){let Ja=[];Ja.push({name:(lo=xi==null?void 0:xi.properties)==null?void 0:lo.name,uuid:(Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid}),Ji({qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,gl:[...Ja,...ir==null?void 0:ir.gl],bh:ir==null?void 0:ir.bh})}},className:z.colortitle},"\u8BBE\u4E3A\u5173\u8054")),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.bh)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({bh:Pi,hx:ir==null?void 0:ir.hx,qx:ir==null?void 0:ir.qx,gl:ir==null?void 0:ir.gl})}},((Wo=ir==null?void 0:ir.bh)==null?void 0:Wo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u5305\u542B"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.qx)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:Pi,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},((Ta=ir==null?void 0:ir.qx)==null?void 0:Ta.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u524D\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.hx)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:ir==null?void 0:ir.qx,hx:Pi,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}},((Oo=ir==null?void 0:ir.hx)==null?void 0:Oo.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u540E\u7F6E"),Le.createElement("span",{onClick:()=>{var Xi;let Pi=(Xi=ir==null?void 0:ir.gl)==null?void 0:Xi.filter(lo=>{var Qa;return lo.uuid!==((Qa=xi==null?void 0:xi.properties)==null?void 0:Qa.uuid)});Ji({qx:ir==null?void 0:ir.qx,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:Pi})}},((Do=ir==null?void 0:ir.gl)==null?void 0:Do.find(Xi=>{var Pi;return(Xi==null?void 0:Xi.uuid)===((Pi=xi==null?void 0:xi.properties)==null?void 0:Pi.uuid)}))&&"\u53D6\u6D88\u5173\u8054")))}})),Le.createElement("div",{className:z.right},Le.createElement("div",{className:z.title},"\u5DF2\u5173\u8054\u5173\u7CFB"),Le.createElement("div",{style:{padding:"20rem 25rem"}},Le.createElement("div",{className:z.gxtitle},Le.createElement("div",{className:z.Colortitle,style:{background:"#6236ff"}}),Le.createElement("div",null,"\u88AB\u5305\u542B\uFF08",(Zr=ir.bh)==null?void 0:Zr.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(Vi=ir==null?void 0:ir.bh)==null?void 0:Vi.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#6236ff"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.bh)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({bh:_a,hx:ir==null?void 0:ir.hx,qx:ir==null?void 0:ir.qx,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#24A881"}}),Le.createElement("div",null,"\u524D\u5E8F\uFF08",(sa=ir.qx)==null?void 0:sa.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(vi=ir==null?void 0:ir.qx)==null?void 0:vi.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#24A881"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.qx)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:_a,hx:ir==null?void 0:ir.hx,bh:ir==null?void 0:ir.bh,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#EC8657"}}),Le.createElement("div",null,"\u540E\u5E8F\uFF08",(Ni=ir.hx)==null?void 0:Ni.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(Ii=ir==null?void 0:ir.hx)==null?void 0:Ii.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#EC8657"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.hx)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:ir==null?void 0:ir.qx,bh:ir==null?void 0:ir.bh,hx:_a,gl:ir==null?void 0:ir.gl})}})))),Le.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},Le.createElement("div",{className:z.Colortitle,style:{background:"#497DFF"}}),Le.createElement("div",null,"\u5173\u8054\uFF08",(Mi=ir.gl)==null?void 0:Mi.length,"\uFF09")),Le.createElement("div",{className:z.gxbody},(fa=ir==null?void 0:ir.gl)==null?void 0:fa.map(xi=>Le.createElement("div",{className:z.tag,style:{background:"#497DFF"}},Le.createElement("span",{style:{marginRight:"10rem"}},xi==null?void 0:xi.name)," ",Le.createElement(ne.Z,{onClick:()=>{var pa;let _a=(pa=ir==null?void 0:ir.gl)==null?void 0:pa.filter(oa=>oa.uuid!==xi.uuid);Ji({qx:ir==null?void 0:ir.qx,bh:ir==null?void 0:ir.bh,hx:ir==null?void 0:ir.hx,gl:_a})}}))))))))};var St=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(ft),nn=Ce(78267),on=Ce(15267),yn=Ce(43065),xn=Ce(59301),an=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Ut=(un,Vn)=>{var Sn={};for(var Rr in un)An.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&an)for(var Rr of an(un))Vn.indexOf(Rr)<0&&Jt.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},rn=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const _n=[3,2,1];let Bn=null;const kt=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,datas:Nr,items:Ar}=Vn,pi=Ut(Vn,["pathsDetail","user","globalSetting","loading","dispatch","datas","items"]);const Gi=(0,te.useRef)(),gi=(0,te.useRef)(),Wi=(0,te.useRef)(null);(0,te.useEffect)(()=>{li()},[Nr]),(0,te.useEffect)(()=>(window.addEventListener("resize",Jr),()=>{window.removeEventListener("resize",Jr)}),[]);function Jr(){var Zr,Vi;(Vi=(Zr=Gi.current)==null?void 0:Zr.update)==null||Vi.call(Zr)}function li(){return rn(this,null,function*(){var Zr,Vi,sa,vi,Ni,Ii,Mi,fa;if(((Zr=Nr==null?void 0:Nr.nodes)==null?void 0:Zr.length)>0){let ca=(Vi=Nr==null?void 0:Nr.nodes)==null?void 0:Vi.filter(zi=>{var Da;return Ar==null?void 0:Ar.includes((Da=zi==null?void 0:zi.properties)==null?void 0:Da.uuid)}).map(zi=>{var Da,Ca,Ra,to,bi,Yi,Ei,Ci,kr,Zi,ma,ba;return{rootNodeUuid:(Da=zi==null?void 0:zi.properties)==null?void 0:Da.rootNodeUuid,id:((Ca=zi==null?void 0:zi.properties)==null?void 0:Ca.uuid)+"_",name:(Ra=zi==null?void 0:zi.properties)==null?void 0:Ra.name,description:(to=zi==null?void 0:zi.properties)==null?void 0:to.description,nodeType:(bi=zi==null?void 0:zi.properties)==null?void 0:bi.nodeType,tags:((Yi=zi==null?void 0:zi.properties)==null?void 0:Yi.tags)&&((kr=(Ci=(Ei=zi==null?void 0:zi.properties)==null?void 0:Ei.tags)==null?void 0:Ci.split("\uFF0C"))==null?void 0:kr.map(ir=>({name:ir}))),colorType:parseInt((Zi=zi==null?void 0:zi.properties)==null?void 0:Zi.color)>3?"3":(ma=zi==null?void 0:zi.properties)==null?void 0:ma.color,activeColor:"#FA6400",size:_n[((ba=zi==null?void 0:zi.properties)==null?void 0:ba.color)-1]||1,shape:"circle",hide:!1,isExtendedState:!0}}),la=(Ii=(Ni=(vi=(sa=Nr==null?void 0:Nr.relationships)==null?void 0:sa.filter(zi=>{var Da,Ca,Ra,to,bi,Yi;return zi.endNodeUuid!==((Ra=(Ca=(Da=Nr==null?void 0:Nr.nodes)==null?void 0:Da[0])==null?void 0:Ca.properties)==null?void 0:Ra.rootNodeUuid)&&zi.startNodeUuid!==((Yi=(bi=(to=Nr==null?void 0:Nr.nodes)==null?void 0:to[0])==null?void 0:bi.properties)==null?void 0:Yi.rootNodeUuid)}))==null?void 0:vi.filter(zi=>(Ar==null?void 0:Ar.includes(zi.startNodeUuid))&&(Ar==null?void 0:Ar.includes(zi.endNodeUuid))))==null?void 0:Ni.filter(zi=>zi.type==="\u5305\u542B"||zi.type==="\u524D\u5E8F"||zi.type==="\u5173\u8054"))==null?void 0:Ii.map(zi=>({hide:!1,id:(zi==null?void 0:zi.endNodeUuid)+"_",label:zi==null?void 0:zi.type,props:[],colorType:1,sourceRadius:32,targetRadius:32,source:(zi==null?void 0:zi.startNodeUuid)+"_",target:(zi==null?void 0:zi.endNodeUuid)+"_",value:10}));Gi.current=null,gi.current.innerHTML="",Gi.current=new yn.createContainer({containerName:"#graphRefs",width:((Mi=gi==null?void 0:gi.current)==null?void 0:Mi.clientWidth)||0,height:((fa=gi==null?void 0:gi.current)==null?void 0:fa.clientHeight)||0,toolbarData:[],clickToggle:!1,background:"#fff",isShowMask:!1,nodes:ca,links:la,zoomOptions:{minScale:.2,maxScale:5},nodeMouseover:function(zi){return zi},nodeClick:function(zi){var Da;return(Da=Gi==null?void 0:Gi.current)==null||Da.selectToNode(zi.id),zi},layout:{force:!1,x:20,y:60}}),Gi.current.zoomOut()}})}return xn.createElement("div",{ref:Wi,style:{background:"#fff",height:"455rem"}},xn.createElement("div",{style:{width:"100%",height:"455rem"},ref:gi,id:"graphRefs"}))};var ln=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(kt),Cn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADICAYAAADvG90JAAAAAXNSR0IArs4c6QAAIABJREFUeF7snQecXlWZ/7/n3vvW6SUzk0kPCZAYQpUOoggIiK4lKqIsritrdy27a1fWVRdl7a6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aqiANBDqnAk2zhGzchziKuKyzYySeDDAVI88G9C4+TzUEhGAX66FsCXfL7CI9R1N69dM1PTxU83E+bQT8jnmZwt/NwDT3nalabS/lI6Mv/3EDxZFx3x5PT0lPLa2lpXQ+e492NTIw9XVC7bfYKtB19G6lgXJ4m9Xyq3nzj6IKW7CmhA6MHT3hjtS7hud0GK+gswh1dID3IWATM4JwKuZfOyntaemzu/Ph/hmcvB4Yn7npreUa+vmfuKtx08BUEBu4nBbdX3zl76aw7XqWreY6nfLAtHhjyMz/KmZAk7UVqy9LLXtAINKuX5cbfuPyd5m2XDt02jHvuaFKecSskKov/XYDzdRvL63F1xUJsPfpPl+6gOglo7Vra8vIpSYsGMPRMAI9mQv/60BrDKTXu+OKbiW9lOxXbxu0JeSXYHu7gz0IVGkNuo1vop3kFz0mehWkow109b4epMHxVGfvw3v+ov6Bl6g3AVBMp/gnhovgnhDOZ9fixh/TozD3p4/MHTK4mFfq1Wa2rZ1DZ8NFgbOCvI0f2BGX69QMX3DjyWe7xPyKs1GfgpVEuAAAAAElFTkSuQmCC",lr=Ce(42441),Cr=Ce(20813);const nr=un=>({tooltip:{trigger:"item"},legend:{top:"0%",left:"center"},series:[{name:"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}},labelLine:{show:!1},data:un}]});var ur=Ce(52148),Nn=Ce(59301),In=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,$n=(un,Vn,Sn)=>Vn in un?In(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,ar=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Kn.call(Vn,Sn)&&$n(un,Sn,Vn[Sn]);if(Wn)for(var Sn of Wn(Vn))Ln.call(Vn,Sn)&&$n(un,Sn,Vn[Sn]);return un},dn=(un,Vn)=>{var Sn={};for(var Rr in un)Kn.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&Wn)for(var Rr of Wn(un))Vn.indexOf(Rr)<0&&Ln.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Ie=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const je=[{name:"",value:0,itemStyle:{color:"rgb(223,209,38)"}},{name:"",value:0,itemStyle:{color:"rgb(6,234,230)"}},{name:"",value:0,itemStyle:{color:"rgb(6,110,247)"}}],Je=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,uuid:Nr}=Vn,Ar=dn(Vn,["pathsDetail","user","globalSetting","loading","dispatch","uuid"]),pi,Gi,gi,Wi;const Jr=(0,Ye.useParams)();let[li,Zr]=(0,te.useState)({subject_id:Jr==null?void 0:Jr.pathId,course_id:"",parentNodeUuid:Nr,type:1});const[Vi,sa]=(0,te.useState)(),[vi,Ni]=(0,te.useState)([]),[Ii,Mi]=(0,te.useState)([]),[fa]=(0,Ye.useSearchParams)();(0,te.useEffect)(()=>{ca()},[Nr]);function ca(){return Ie(this,null,function*(){var la,zi,Da;let Ca=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_statistics.json",{method:"get",params:li});sa(Ca);let Ra=Object.entries((la=Ca==null?void 0:Ca.data)==null?void 0:la.study_grasp_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi,itemStyle:je[Ei].itemStyle})),to=Object.entries((zi=Ca==null?void 0:Ca.data)==null?void 0:zi.study_complete_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi}));Mi(to),((Da=Ra==null?void 0:Ra.filter(bi=>(bi==null?void 0:bi.value)>0))==null?void 0:Da.length)===0?Ni([]):Ni(Ra)})}return Nn.createElement("div",{className:z.DetailStatistics},fa.get("type")!=="classrooms"&&Nn.createElement("div",{className:z.header},Nn.createElement("span",{className:z.title},"\u7EDF\u8BA1\u8303\u56F4"),Nn.createElement(E.ZP.Group,{onChange:la=>{li.type=la.target.value,Zr(ar({},li)),ca()},value:li.type},Nn.createElement(E.ZP,{value:1},"\u5168\u90E8"),Nn.createElement(E.ZP,{value:2},"\u81EA\u4E3B\u5B66\u4E60"),Nn.createElement(E.ZP,{value:3},"\u8BFE\u5802\u5B66\u4E60")),(li==null?void 0:li.type)===3&&Nn.createElement($e.default,{onChange:la=>{li.course_id=la,Zr(ar({},li)),ca()},style:{marginLeft:"-15rem",width:"148rem",height:"36rem"}},(pi=Vi==null?void 0:Vi.courses)==null?void 0:pi.map(la=>Nn.createElement($e.default.Option,{value:la==null?void 0:la.id},la==null?void 0:la.name)))),Nn.createElement("div",{style:{marginTop:"16rem",display:"flex"}},Nn.createElement("div",{className:z.left,style:{backgroundImage:`url(${Cn}),linear-gradient(180deg, rgba(221, 233, 241, 0.4) 0%, rgba(255, 255, 255, 0.49) 100%)`}},Nn.createElement("img",{src:Mn}),Nn.createElement("div",{style:{marginTop:"20rem"}},Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u4EBA\u6570"),Nn.createElement("div",{className:z.xxrscount},(Gi=Vi==null?void 0:Vi.data)==null?void 0:Gi.study_count))),Nn.createElement("div",{className:z.right},Nn.createElement("div",{className:z.righttop},Nn.createElement("img",{src:Qn}),Nn.createElement("div",null,Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u5B8C\u6210\u7387"),Nn.createElement("div",{className:z.xxrscount},(gi=Vi==null?void 0:Vi.data)==null?void 0:gi.study_complete_rate,"%"))),Nn.createElement("div",{className:z.rightbottom},Nn.createElement("img",{src:mr}),Nn.createElement("div",null,Nn.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u638C\u63E1\u7387"),Nn.createElement("div",{className:z.xxrscount},(Wi=Vi==null?void 0:Vi.data)==null?void 0:Wi.study_grasp_rate,"%"))))),Nn.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5"),Nn.createElement(lr.Z,{option:nr(Ii),style:{height:300,width:400},opts:{renderer:"svg"}}),Nn.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u638C\u63A7\u7387"),(vi==null?void 0:vi.length)>0?Nn.createElement(Cr.Z,{labelTextColor:"#333",dataSource:vi}):Nn.createElement(ur.NoData,{children:Nn.createElement("div",{style:{textAlign:"center",fontSize:"14rem"}},"\u6682\u65E0\u638C\u63A7\u7387\u6570\u636E")}))};var ht=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Je),Et=Ce(90736),Qt=Ce(59301),fn=Object.defineProperty,sn=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,tr=(un,Vn,Sn)=>Vn in un?fn(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Vt=(un,Vn)=>{for(var Sn in Vn||(Vn={}))mn.call(Vn,Sn)&&tr(un,Sn,Vn[Sn]);if(sn)for(var Sn of sn(Vn))Zn.call(Vn,Sn)&&tr(un,Sn,Vn[Sn]);return un},Gt=(un,Vn)=>{var Sn={};for(var Rr in un)mn.call(un,Rr)&&Vn.indexOf(Rr)<0&&(Sn[Rr]=un[Rr]);if(un!=null&&sn)for(var Rr of sn(un))Vn.indexOf(Rr)<0&&Zn.call(un,Rr)&&(Sn[Rr]=un[Rr]);return Sn},Rt=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const jt=[{name:"",value:0,itemStyle:{color:"rgb(223,209,38)"}},{name:"",value:0,itemStyle:{color:"rgb(6,234,230)"}},{name:"",value:0,itemStyle:{color:"rgb(6,110,247)"}}],Mt=un=>{var Vn=un,{pathsDetail:Sn,user:Rr,globalSetting:ti,loading:gn,dispatch:mi,uuid:Nr}=Vn,Ar=Gt(Vn,["pathsDetail","user","globalSetting","loading","dispatch","uuid"]),pi,Gi,gi,Wi;const Jr=(0,Ye.useParams)();let[li,Zr]=(0,te.useState)({subject_id:Jr==null?void 0:Jr.pathId,course_id:"",parentNodeUuid:Nr,type:1});const[Vi,sa]=(0,te.useState)(),[vi,Ni]=(0,te.useState)([]),[Ii]=(0,Ye.useSearchParams)(),[Mi,fa]=(0,te.useState)([]);(0,te.useEffect)(()=>{ca()},[Nr]);function ca(){return Rt(this,null,function*(){var la,zi,Da;let Ca=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_statistics.json",{method:"get",params:li});sa(Ca);let Ra=Object.entries((la=Ca==null?void 0:Ca.data)==null?void 0:la.study_grasp_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi,itemStyle:jt[Ei].itemStyle})),to=Object.entries((zi=Ca==null?void 0:Ca.data)==null?void 0:zi.study_complete_hash).map(([bi,Yi],Ei)=>({name:bi,value:Yi}));fa(to),((Da=Ra==null?void 0:Ra.filter(bi=>(bi==null?void 0:bi.value)>0))==null?void 0:Da.length)===0?Ni([]):Ni(Ra)})}return Qt.createElement("div",{className:z.DetailStatistics},Ii.get("type")!=="classrooms"&&Qt.createElement("div",{className:z.header},Qt.createElement("span",{className:z.title},"\u7EDF\u8BA1\u8303\u56F4"),Qt.createElement(E.ZP.Group,{onChange:la=>{li.type=la.target.value,Zr(Vt({},li)),ca()},value:li.type},Qt.createElement(E.ZP,{value:1},"\u5168\u90E8"),Qt.createElement(E.ZP,{value:2},"\u81EA\u4E3B\u5B66\u4E60"),Qt.createElement(E.ZP,{value:3},"\u8BFE\u5802\u5B66\u4E60")),(li==null?void 0:li.type)===3&&Qt.createElement($e.default,{onChange:la=>{li.course_id=la,Zr(Vt({},li)),ca()},style:{marginLeft:"-15rem",width:"148rem",height:"36rem"}},(pi=Vi==null?void 0:Vi.courses)==null?void 0:pi.map(la=>Qt.createElement($e.default.Option,{value:la==null?void 0:la.id},la==null?void 0:la.name)))),Qt.createElement("div",{style:{marginTop:"16rem",display:"flex"}},Qt.createElement("div",{className:z.left,style:{backgroundImage:`url(${Cn}),linear-gradient(180deg, rgba(221, 233, 241, 0.4) 0%, rgba(255, 255, 255, 0.49) 100%)`}},Qt.createElement("img",{src:Mn}),Qt.createElement("div",{style:{marginTop:"20rem"}},Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u4EBA\u6570"),Qt.createElement("div",{className:z.xxrscount},(Gi=Vi==null?void 0:Vi.data)==null?void 0:Gi.study_count))),Qt.createElement("div",{className:z.right},Qt.createElement("div",{className:z.righttop},Qt.createElement("img",{src:Qn}),Qt.createElement("div",null,Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u5B8C\u6210\u7387"),Qt.createElement("div",{className:z.xxrscount},(gi=Vi==null?void 0:Vi.data)==null?void 0:gi.study_complete_rate,"%"))),Qt.createElement("div",{className:z.rightbottom},Qt.createElement("img",{src:mr}),Qt.createElement("div",null,Qt.createElement("div",{className:z.xxrs},"\u5B66\u4E60\u638C\u63E1\u7387"),Qt.createElement("div",{className:z.xxrscount},(Wi=Vi==null?void 0:Vi.data)==null?void 0:Wi.study_grasp_rate,"%"))))),Qt.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u5B8C\u6210\u5360\u6BD4\u60C5\u51B5"),Qt.createElement(lr.Z,{option:nr(Mi),style:{height:300,width:400},opts:{renderer:"svg"}}),Qt.createElement(le.Z,{variant:"dashed",style:{borderColor:"#333333"},dashed:!0},"\u638C\u63A7\u7387"),(vi==null?void 0:vi.length)>0?Qt.createElement(Cr.Z,{labelTextColor:"#333",dataSource:vi}):Qt.createElement(Et.Z,{children:Qt.createElement("div",{style:{textAlign:"center",fontSize:"14rem"}},"\u6682\u65E0\u638C\u63A7\u7387\u6570\u636E")}))};var Kt=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Mt),yt=Ce(86974),qt=Ce(31034),vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAXlJREFUOE/VlD1Lw1AUhp+YmkGQSnFR8AcUoSJ+LiKCqINQqIODbk51ETpaVHTyD6h/QQddXMRNRal1qLaDOhSFQicdiiKUNrkSmzQxH6WCg2a6Iec+7z3ve24kIYTMLz7SPwSmozPI2h6InroTkqQvywjOQNlm4PDczyV3yxfDT4AFa97fAmhxN/C0u9o8w6wUtYUkFdzAk1CVyC4E+x3cr7YBY7NTtZSB7DLewKF9Xa4xwAnUfU7P+wBHjjy6dgqY77a2r2MG8GV9CaQdhAhYJI8NnuYqEBgFqQ1SswawmEiCttnQIxfMdmKlD5QIXE0ZwMJKGPUjV0uqyYzNbPR6OQTBRbgct3mYX7hDiN46zr7BHq6fYGccUlEb8GFuDaFuuKbCNwtDURgFHdOQTdqA97Ewlfec75xZ99DbE6ULno8dY5MZs9r2mV/fbPQPr3kH8GZwFVXd+lE4doXyW/H7TbmdaKf0eIBWmQRamszbLNOQWxN//wf7CYUnn95U81GtAAAAAElFTkSuQmCC",Tt=Ce(84849),It=Ce(79939),Dt=Ce(53420),Bt={flex_box_center:"flex_box_center___wU4bP",flex_space_between:"flex_space_between___ryVxe",flex_box_vertical_center:"flex_box_vertical_center___J64e0",flex_box_center_end:"flex_box_center_end___ZQTrR",flex_box_column:"flex_box_column___qYlzG",scoremodal:"scoremodal___g_fYu",selectWrapper:"selectWrapper___wbF8t",selectWrappers:"selectWrappers___bAt3m",allqingchu:"allqingchu___IczWP",title:"title___cJxdu",score:"score___W6O3r",close:"close___rZaaH",content:"content___I6bh1",items:"items___NS5if",bottom:"bottom___zStfh",yes:"yes___dvYz0",no:"no___BqowM",titlecount:"titlecount___cx4fQ",add:"add___Vazpd",search:"search___kg8ng",searchIcon:"searchIcon___CaGo3",tabWrap:"tabWrap___CAndG",previewModal:"previewModal___Ms_9O",q_title:"q_title___WfJKh"},Zt=Ce(44192),tn={flex_box_center:"flex_box_center___nswYj",flex_space_between:"flex_space_between___fOVoM",flex_box_vertical_center:"flex_box_vertical_center___Q25Hr",flex_box_center_end:"flex_box_center_end___e8x5w",flex_box_column:"flex_box_column___TkKrN",warp:"warp___CyVTN",shixunbutton:"shixunbutton___5A5Bl",redio:"redio____F59s",redioitem:"redioitem___lpnfs",redioitemyes:"redioitemyes___LJh0a",title:"title___pmJ_X",titleyes:"titleyes___xpcjY",yestag:"yestag___DZcUj",qcount:"qcount___N4pNO",score:"score___aNTPQ",qtitle:"qtitle___E_ClM",checkbox:"checkbox___T6Xdo",checkboxitem:"checkboxitem___dfyKW",checkboxitemyes:"checkboxitemyes___Uh2au",bottom:"bottom___uZhfZ",bottomitem:"bottomitem___NElKx",left:"left___CG1Ne",right:"right___iBXmO",completion:"completion___xvAyY",content:"content___Tf9bM",items:"items___zogcz",simple:"simple___zY1bm",shixun:"shixun___AAIlJ",combination:"combination___c7Ghw",program:"program___sXFp_"},Tn=Ce(35883),Fn=Ce(24334);const dr=["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 Kr=({qitem:un})=>{var Vn,Sn,Rr,ti,gn,mi,Nr,Ar,pi,Gi;return te.createElement("div",{className:tn.warp},te.createElement("div",{className:tn.mainPart},te.createElement("div",{className:tn.qcount},(un==null?void 0:un.question_type)===8&&te.createElement(Tn.Z,{className:tn.content,showProgramFill:!0,value:(Vn=un==null?void 0:un.program_attr)==null?void 0:Vn.description}),(un==null?void 0:un.question_type)!=8&&te.createElement(Tn.Z,{className:tn.qtitle,value:(un==null?void 0:un.name)||(un==null?void 0:un.title)})),((un==null?void 0:un.question_type)===0||(un==null?void 0:un.question_type)===2)&&te.createElement("div",null,(Sn=un==null?void 0:un.choices)==null?void 0:Sn.map((gi,Wi)=>te.createElement("div",{className:tn.redio},!(gi!=null&&gi.is_answer)&&te.createElement("span",{className:tn.redioitem}),(gi==null?void 0:gi.is_answer)&&te.createElement("i",{className:`${tn.redioitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:gi!=null&&gi.is_answer?tn.titleyes:tn.title,value:dr[Wi]+(gi==null?void 0:gi.choice_text)}),(gi==null?void 0:gi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(un==null?void 0:un.question_type)===1&&te.createElement("div",null,(Rr=un==null?void 0:un.choices)==null?void 0:Rr.map((gi,Wi)=>te.createElement("div",{className:tn.checkbox},!(gi!=null&&gi.is_answer)&&te.createElement("span",{className:tn.checkboxitem}),(gi==null?void 0:gi.is_answer)&&te.createElement("i",{className:`${tn.checkboxitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:gi!=null&&gi.is_answer?tn.titleyes:tn.title,value:dr[Wi]+(gi==null?void 0:gi.choice_text)}),(gi==null?void 0:gi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(un==null?void 0:un.question_type)===3&&te.createElement("div",{className:tn.completion},(ti=un==null?void 0:un.standard_answer)==null?void 0:ti.map((gi,Wi)=>{var Jr;return te.createElement("div",{style:{display:"flex"}},te.createElement("span",{className:tn.title},"\u586B\u7A7A\u9879",Wi+1),te.createElement("div",{className:tn.content},(Jr=gi==null?void 0:gi.answer_text)==null?void 0:Jr.map((li,Zr)=>te.createElement("div",{className:tn.items},li))))})),(un==null?void 0:un.question_type)===4&&te.createElement("div",{className:tn.simple},te.createElement("div",{className:tn.title},"\u53C2\u8003\u7B54\u6848"),te.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(gn=un==null?void 0:un.answer_texts)!=null&&gn[0]?te.createElement(Tn.Z,{className:tn.content,value:(mi=un==null?void 0:un.answer_texts)==null?void 0:mi[0]}):te.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(un==null?void 0:un.question_type)===5&&((Nr=un==null?void 0:un.challenge_names)==null?void 0:Nr.map((gi,Wi)=>te.createElement("div",{className:tn.shixun},te.createElement("span",{className:tn.qtitle},te.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,Fe.EM)(Wi+1),"\u9898"),gi)))),(un==null?void 0:un.question_type)===6&&te.createElement("div",{className:tn.program},te.createElement(Tn.Z,{className:tn.content,value:((Ar=un==null?void 0:un.program_attr)==null?void 0:Ar.description)||"- -"})),(un==null?void 0:un.question_type)===7&&((pi=un==null?void 0:un.sub_item_banks)==null?void 0:pi.map((gi,Wi)=>{var Jr,li,Zr,Vi,sa;return te.createElement("div",null,te.createElement("div",{className:tn.combination},te.createElement("span",{className:tn.qtitle},gi==null?void 0:gi.name)),te.createElement("div",{className:tn.warp,style:{padding:"0px",paddingTop:20}},te.createElement("div",null,((gi==null?void 0:gi.item_type)=="SINGLE"||(gi==null?void 0:gi.item_type)=="JUDGMENT")&&((Jr=gi==null?void 0:gi.choices)==null?void 0:Jr.map((vi,Ni)=>te.createElement("div",{className:tn.redio},!(vi!=null&&vi.is_answer)&&te.createElement("span",{className:tn.redioitem}),(vi==null?void 0:vi.is_answer)&&te.createElement("i",{className:`${tn.redioitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:vi!=null&&vi.is_answer?tn.titleyes:tn.title,value:dr[Ni]+(vi==null?void 0:vi.choice_text)}),(vi==null?void 0:vi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(gi==null?void 0:gi.item_type)=="MULTIPLE"&&((li=gi==null?void 0:gi.choices)==null?void 0:li.map((vi,Ni)=>te.createElement("div",{className:tn.checkbox},!(vi!=null&&vi.is_answer)&&te.createElement("span",{className:tn.checkboxitem}),(vi==null?void 0:vi.is_answer)&&te.createElement("i",{className:`${tn.checkboxitemyes} icon-duigou1`}),te.createElement(Tn.Z,{className:vi!=null&&vi.is_answer?tn.titleyes:tn.title,value:dr[Ni]+(vi==null?void 0:vi.choice_text)}),(vi==null?void 0:vi.is_answer)&&te.createElement("div",{className:tn.yestag},"\u6B63\u786E\u7B54\u6848")))),(gi==null?void 0:gi.item_type)=="COMPLETION"&&te.createElement("div",{className:tn.completion},(Zr=gi==null?void 0:gi.standard_answer)==null?void 0:Zr.map((vi,Ni)=>{var Ii;return te.createElement("div",{style:{display:"flex"}},te.createElement("span",{className:tn.title},"\u586B\u7A7A\u9879",Ni+1),te.createElement("div",{className:tn.content},(Ii=vi==null?void 0:vi.answer_text)==null?void 0:Ii.map((Mi,fa)=>te.createElement("div",{className:tn.items},Mi))))})),(gi==null?void 0:gi.item_type)=="SUBJECTIVE"&&te.createElement("div",{className:tn.simple},te.createElement("div",{className:tn.title},"\u53C2\u8003\u7B54\u6848"),te.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vi=gi==null?void 0:gi.answer_texts)!=null&&Vi[0]?te.createElement(Tn.Z,{className:tn.content,value:(sa=gi==null?void 0:gi.answer_texts)==null?void 0:sa[0]}):te.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(un==null?void 0:un.question_type)===8&&te.createElement("div",null,te.createElement(Tn.Z,{disabledFill:!0,className:tn.content,showProgramFill:!0,value:Fn.Base64.decode(((Gi=un==null?void 0:un.program_attr)==null?void 0:Gi.code)||"")})),(un==null?void 0:un.question_type)===5&&te.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},te.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.author_name)||"- -")),te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.author_school_name)||"- -")),te.createElement("div",{style:{marginRight:30}},te.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),te.createElement("span",{style:{color:"#000000"}},(un==null?void 0:un.study_count)||"0"))),te.createElement("a",{className:tn.shixunbutton,href:`/shixuns/${un==null?void 0:un.identifier}/challenges?exercise=true`,target:"_blank"},te.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((un==null?void 0:un.question_type)<=4||[6,8].includes(un==null?void 0:un.question_type))&&te.createElement("div",{className:tn.bottom},te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u89E3\u6790"),te.createElement("span",{className:tn.right},un!=null&&un.analysis?te.createElement(Tn.Z,{value:un==null?void 0:un.analysis}):te.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u96BE\u5EA6"),te.createElement("span",{className:tn.right},(un==null?void 0:un.difficulty)===1?"\u7B80\u5355":(un==null?void 0:un.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),te.createElement("div",{className:tn.bottomitem},te.createElement("span",{className:tn.left},"\u77E5\u8BC6\u70B9"),te.createElement("span",{className:tn.right},un!=null&&un.tag_discipline?un==null?void 0:un.tag_discipline:te.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Sr=Ce(77264),hr=Ce(59435),Mr=Ce(61485),Br=Ce(44240),Wr=Ce(46861),Jn=Ce(59301),ii=Object.defineProperty,Ur=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,ui=(un,Vn,Sn)=>Vn in un?ii(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Qr=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Li.call(Vn,Sn)&&ui(un,Sn,Vn[Sn]);if(qr)for(var Sn of qr(Vn))wi.call(Vn,Sn)&&ui(un,Sn,Vn[Sn]);return un},Di=(un,Vn)=>Ur(un,Gr(Vn)),oi=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});const di=({setScoreShow:un,ScoreShow:Vn,listitem:Sn,onOk:Rr,isshixuns:ti,isloadings:gn,dispatch:mi,isIntelligentAssistant:Nr=!1,ispptModal:Ar=!1,isChangeQuestion:pi=!1,newExercisePaper:Gi,shixunsDetail:gi})=>{var Wi;let[Jr,li]=(0,te.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:Nr,is_smart_plan:Ar,group_id:[]}),[Zr,Vi]=(0,te.useState)([]),[sa,vi]=(0,te.useState)([]),[Ni,Ii]=(0,te.useState)([]),[Mi,fa]=(0,te.useState)([]);const[ca,la]=(0,te.useState)(!1),[zi]=Me.default.useForm(),[Da,Ca]=(0,te.useState)(),[Ra,to]=(0,te.useState)(!1);let[bi,Yi]=(0,te.useState)(ti);const[Ei,Ci]=(0,te.useState)([]),[kr,Zi]=(0,te.useState)(0),[ma,ba]=(0,te.useState)(!0),[ir,Ji]=(0,te.useState)([]),[Va,no]=(0,te.useState)([]),Ya=[{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}],xi=[{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:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[pa,_a]=(0,te.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const oa=(0,te.useRef)(new Set),Wa=(0,te.useRef)(new Set),Ka=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],fo=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Eo=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[io,ao]=(0,te.useState)(!1),Ba=()=>{zi.resetFields(),bi=!1,Yi(!1),ao(!1),zi.submit()};(0,te.useEffect)(()=>{var zr,fi;(((zr=Sn==null?void 0:Sn.questionIdArr)==null?void 0:zr.length)>0||((fi=Sn==null?void 0:Sn.shixun_ids)==null?void 0:fi.length)>0)&&(vi([...Sn==null?void 0:Sn.questionIdArr,...Sn==null?void 0:Sn.shixun_ids]),Ii([...Sn==null?void 0:Sn.questionIdArr,...Sn==null?void 0:Sn.shixun_ids]),Ci([...Sn==null?void 0:Sn.shixun_ids]),Wa.current=new Set([...Sn==null?void 0:Sn.questionIdArr]),oa.current=new Set([...Sn==null?void 0:Sn.shixun_ids]))},[Sn]),(0,te.useEffect)(()=>{Vn&&(zi.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),ma&&bi&&(zi.setFieldsValue({item_type:"SHIXUN"}),Jr.item_type="SHIXUN",li(Qr({},Jr)),ba(!1)),Fa(Jr),Wo(),Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Vn]),(0,te.useEffect)(()=>{kr>0&&setTimeout(()=>{Zi(0)},2e3)},[kr]);function Fa(zr){return oi(this,null,function*(){var fi,Sa,Ri;if(la(!0),li(Qr({},zr)),(Ni==null?void 0:Ni.length)<=0&&zr.type==="5"){fa([]),la(!1);return}let hi=zr.type==="5"?Ni==null?void 0:Ni.filter(ga=>!Ei.includes(ga)):null,wa=zr.type==="5"?Ni==null?void 0:Ni.filter(ga=>Ei.includes(ga)):null,za=yield(0,ge.ZP)("/api/item_banks.json",{method:"get",params:Di(Qr({},zr),{discipline_id:((fi=zr==null?void 0:zr.courseid)==null?void 0:fi[0])||null,sub_discipline_id:((Sa=zr==null?void 0:zr.courseid)==null?void 0:Sa[1])||null,ids:hi,shixun_ids:wa,include_shixuns:!Nr,group_id:((Ri=zr.group_id)==null?void 0:Ri.map(ga=>ga==null?void 0:ga.value))||null,keyword:zr.keyword?encodeURIComponent(zr.keyword):zr.keyword,type:zr.type==="5"?null:zr.type,clazz:zr.type==="3"?"ItemBanksGroup":null,bigmodel:Nr,is_smart_plan:Ar})});fa(za),la(!1)})}function Wo(){return oi(this,null,function*(){let zr=yield(0,ge.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Jr.type==="5"?null:Jr.type,clazz:"ItemBanksGroup"}});Vi((0,Zt.L)(zr==null?void 0:zr.disciplines))})}function Ta(zr){return oi(this,null,function*(){var fi;let Sa=yield(0,ge.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:zr}),Ri=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(fi=Sa==null?void 0:Sa.data)==null?void 0:fi.map(hi=>({title:hi.name,id:hi.id,pid:hi.id,value:hi.id,key:hi.id,isLeaf:!hi.have_child}))}];Ji(Ri)})}function Oo(zr){return oi(this,null,function*(){var fi,Sa,Ri,hi;la(!0);let wa=(fi=zr.list)==null?void 0:fi.filter(ro=>!Ei.includes(ro)),za=(Sa=zr.list)==null?void 0:Sa.filter(ro=>Ei.includes(ro));if(wa.length===0&&za.length===0){la(!1),fa([]);return}let ga=yield(0,ge.ZP)("/api/item_banks.json",{method:"get",params:Di(Qr({},zr),{discipline_id:((Ri=zr==null?void 0:zr.courseid)==null?void 0:Ri[0])||null,sub_discipline_id:((hi=zr==null?void 0:zr.courseid)==null?void 0:hi[1])||null,ids:wa,shixun_ids:za,type:zr.type==="5"?null:zr.type,clazz:zr.type==="3"?"ItemBanksGroup":null})});la(!1),fa(ga)})}const Do=zr=>oi(void 0,null,function*(){const fi=yield mi({type:"shixunsDetail/release",payload:{id:zr}});let Sa=fi==null?void 0:fi.tag_position,Ri=(fi==null?void 0:fi.evaluation_set_position)||[],hi=fi.status;return hi===0?(pe.ZP.success("\u53D1\u5E03\u6210\u529F"),Fa(Jr),!0):(hi===2?pe.ZP.error(`\u7B2C${Ri.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):hi===3?pe.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Sa.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):pe.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Xi=zr=>(zr==null?void 0:zr.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Pi=(zr,fi,Sa)=>zr.map(Ri=>Ri.key===fi?Qr(Qr({},Ri),Sa):Ri.children?Di(Qr({},Ri),{children:Pi(Ri.children,fi,Sa)}):Ri),lo=zr=>oi(void 0,null,function*(){const{key:fi}=zr;let Sa=Jr.type;const Ri=yield(0,Wr.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(fi),type:Sa}),{data:hi,total_count:wa}=Ri||{};wa>0&&Ji(za=>Pi(za,fi,{children:hi.map(ga=>({title:ga.name,id:ga.id,pid:ga.id,value:ga.id,key:ga.id,isLeaf:!ga.have_child}))}))});function Qa(zr){console.log("----",Jr),zr==="1"&&(pa.gg=Qr({},Jr)),zr==="2"&&(pa.scj=Qr({},Jr)),zr==="3"&&(pa.ttgx=Qr({},Jr)),zr==="0"&&(pa.wcjd=Qr({},Jr)),zr==="5"&&(pa.yx=Qr({},Jr)),_a(Qr({},pa))}function Ja(){Jr.type==="1"&&(Jr=pa.gg),Jr.type==="2"&&(Jr=pa.scj),Jr.type==="3"&&(Jr=pa.ttgx),Jr.type==="0"&&(Jr=pa.wcjd),Jr.type==="5"&&(Jr=pa.yx),(Jr==null?void 0:Jr.item_type)==="SHIXUN"?(bi=!0,Yi(!0)):(bi=!1,Yi(!1)),zi.setFieldsValue(Qr({},Jr)),li(Qr({},Jr)),Fa(Qr({},Jr))}return Jn.createElement("div",null,Jn.createElement(fe.default,{title:!1,footer:!1,open:Vn,width:1200,centered:!0,className:Bt.scoremodal,onCancel:()=>{un(!1)}},Jn.createElement("div",{style:{display:"flex",alignItems:"center"}},Jn.createElement("div",{className:Bt.title},Nr?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),Nr&&Jn.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Jn.createElement(ie.default,{className:Bt.tabWrap,activeKey:Jr.type,onChange:zr=>{zr==="3"?(Jr.show_all_share=!0,Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Jr.show_all_share=null,zr==="0"&&Ta({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Qa(Jr.type),Jr.type=zr,(Jr==null?void 0:Jr.item_type)==="SHIXUN"&&Jr.type!=="5"&&(bi=!0,Yi(!0)),ao(!1),Jr.type==="5"&&(bi=!1,Yi(!1)),Ja(),Wo()},items:[{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Jn.createElement("div",null,"\u5DF2\u9009",Ni.length>0&&Jn.createElement("span",{className:Bt.titlecount},Ni.length),kr>0&&Jn.createElement("span",{className:Bt.add},"+",kr)),key:"5"}]}),Jn.createElement(Me.default,{layout:"inline",form:zi,onValuesChange:(zr,fi)=>{const Sa=Object.values(fi).some(hi=>hi!==null&&hi!==""&&hi!==void 0),Ri=fi.keyword==="";if(ao(Sa||!Ri),Jr.page=1,(fi==null?void 0:fi.item_type)==="SHIXUN"){if(Jr.type==="5"?Yi(!1):Yi(!0),zr.keyword||zr.keyword==="")return;zi.submit()}else{if(zr!=null&&zr.courseid&&zi.setFieldsValue({tag_discipline_id:""}),Yi(!1),zr.keyword||zr.keyword==="")return;zi.submit()}},onFinish:zr=>{var fi;Jr.type==="3"&&(!zr.group_id||((fi=zr==null?void 0:zr.group_id)==null?void 0:fi.length)===0)?Jr.show_all_share=!0:Jr.show_all_share=null,li(Qr(Qr({},Jr),zr)),Fa(Qr(Qr({},Jr),zr))}},Jn.createElement(Me.default.Item,{name:"item_type"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(Ar?xi:Nr?Ya==null?void 0:Ya.filter(zr=>zr.question_type!==5):Ya).map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),Jn.createElement(Me.default.Item,{name:"courseid"},Jn.createElement(It.Z,{className:Bt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Zr})),!bi&&Jn.createElement(Me.default.Item,{name:"tag_discipline_id"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Wi=Mi==null?void 0:Mi.tag_disciplines)==null?void 0:Wi.map(zr=>Jn.createElement($e.default.Option,{key:zr.id},zr.name)))),Jn.createElement(Me.default.Item,{name:bi?"diff":"difficulty"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},Ka.map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),bi&&Jn.createElement(Me.default.Item,{name:"shixun_publish_status"},Jn.createElement($e.default,{className:Bt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Eo.map(zr=>Jn.createElement($e.default.Option,{key:zr.value},zr.name)))),(Jr.type==="3"||Jr.type==="0")&&!bi&&Jn.createElement(Me.default.Item,{name:"group_id"},Jn.createElement(Dt.default,{treeDataSimpleMode:!0,style:{width:118},className:Bt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(zr,fi)=>fi.title.toUpperCase().indexOf(zr.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:lo,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:ir})),io&&Jn.createElement("span",{className:Bt.allqingchu,onClick:Ba},Jn.createElement("i",{className:"iconfont icon-guanbi4"}),Jn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Jn.createElement(Me.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Jn.createElement(he.default.Search,{className:Bt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Jn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Bt.searchIcon}`,onClick:()=>zi.submit()}),onSearch:zr=>{zi.submit()}}))),Jn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Jn.createElement("div",{onClick:()=>{Jr.updated_at==="asc"?Jr.updated_at="desc":Jr.updated_at="asc",li(Di(Qr({},Jr),{page:1})),Fa(Di(Qr({},Jr),{page:1}))}}," ",Jr.updated_at?Jn.createElement("img",{src:Jr.updated_at==="asc"?Sr.Z:hr.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Jn.createElement("div",{onClick:()=>{Jr.quotes==="asc"?Jr.quotes="desc":Jr.quotes="asc",li(Di(Qr({},Jr),{page:1})),Fa(Di(Qr({},Jr),{page:1}))},style:{marginLeft:20}}," ",Jr.quotes?Jn.createElement("img",{src:Jr.quotes==="asc"?Sr.Z:hr.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Jn.createElement(nt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Mi==null?void 0:Mi.items)||(Mi==null?void 0:Mi.shixun_list),pagination:!1,loading:ca,rowKey:zr=>zr.id,rowSelection:{type:Nr||pi?"radio":"checkbox",selectedRowKeys:sa,getCheckboxProps:zr=>({disabled:zr.shixun_tag_num===1||(Va==null?void 0:Va.find(fi=>zr.id===fi))}),onSelect(zr,fi,Sa){if(Nr||pi){vi([zr.id]),Wa.current=new Set([zr.id]),Zi(1),Ii([zr.id]);return}if(fi)(bi||zr!=null&&zr.challenge_names)&&Ci([...Ei,zr.id]),vi([...sa,zr.id]),zr.identifier?oa.current.add(zr.id):Wa.current.add(zr.id),Zi(1),Ii([...Ni,zr.id]);else{zr.identifier?oa.current.delete(zr.id):Wa.current.delete(zr.id);let Ri=Ni.filter(hi=>hi!==zr.id);if(vi(Ri),Ii(Ri),bi||zr!=null&&zr.challenge_names){let hi=Ei.filter(wa=>wa!==zr.id);Ci([...hi])}if(Jr.type==="5"){Oo(Di(Qr({},Jr),{list:[...Ri]}));return}}},onSelectAll(zr,fi,Sa){var Ri,hi;if(zr){const wa=Sa.map(ga=>ga.id),za=(hi=Sa==null?void 0:Sa.filter(ga=>ga==null?void 0:ga.challenge_names))==null?void 0:hi.map(ga=>ga.id);Ci([...Ei,...za]),vi([...sa,...wa]),Ii([...Ni,...wa]);for(const ga of Sa)ga.identifier?oa.current.add(ga.id):Wa.current.add(ga.id)}else{const wa=Sa.map(ka=>ka.id),za=sa.filter(ka=>!wa.some(Co=>Co===ka)),ga=(Ri=Sa==null?void 0:Sa.filter(ka=>ka==null?void 0:ka.challenge_names))==null?void 0:Ri.map(ka=>ka.id);vi([...za]),Ii([...za]);let ro=Ei.filter(ka=>!ga.some(Co=>Co===ka.id));Ci([...ro]),Jr.type==="5"&&Oo(Di(Qr({},Jr),{list:[...za]}));for(const ka of wa)ka.identifier?oa.current.delete(ka):Wa.current.delete(ka)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(zr,fi,Sa)=>{var Ri,hi;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?"\u5B9E\u8BAD\u9898":(hi=(Ri=Ya==null?void 0:Ya.filter(wa=>wa.value===zr))==null?void 0:Ri[0])==null?void 0:hi.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:bi?"30%":"60%",key:"name",render:(zr,fi,Sa)=>{var Ri;return Jn.createElement("div",{style:{display:"flex",alignItems:"center"}},Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",{className:fi!=null&&fi.high_resources_consume?Bt.q_title:""},Jn.createElement(Tn.Z,{key:1,showLines:1,showTextOnly:!0,value:bi||fi!=null&&fi.challenge_names?fi!=null&&fi.title||zr===null?"--":zr:(fi==null?void 0:fi.item_type)=="BPROGRAM"?(Ri=fi==null?void 0:fi.program_attr)==null?void 0:Ri.description:zr}))),(fi==null?void 0:fi.high_resources_consume)&&Jn.createElement(Br.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!bi,render:(zr,fi,Sa)=>{var Ri;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("span",null,zr?(Ri=zr==null?void 0:zr.split("\u3001"))==null?void 0:Ri[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("span",null,zr||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(zr,fi,Sa)=>{var Ri,hi,wa,za;return Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?(fi==null?void 0:fi.level)||((hi=(Ri=Ka==null?void 0:Ka.filter(ga=>ga.value===zr))==null?void 0:Ri[0])==null?void 0:hi.name):(za=(wa=Ka==null?void 0:Ka.filter(ga=>ga.value===zr))==null?void 0:wa[0])==null?void 0:za.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,zr||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,bi||fi!=null&&fi.challenge_names?(fi==null?void 0:fi.study_count)||(fi==null?void 0:fi.stu_num):zr))},{title:Jn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Jn.createElement(ae.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Jn.createElement(Mr.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!bi,render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",null,zr||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(zr,fi,Sa)=>Jn.createElement(ae.Z,{title:Xi(fi)},Jn.createElement("div",{style:{flex:1,textAlign:"start"}},Jn.createElement("a",{onClick:()=>{var Ri,hi;Ca(Di(Qr({},fi),{question_type:bi||fi!=null&&fi.challenge_names?5:(hi=(Ri=Ya==null?void 0:Ya.filter(wa=>wa.value===(fi==null?void 0:fi.item_type)))==null?void 0:Ri[0])==null?void 0:hi.question_type})),to(!0)}},"\u67E5\u770B"),(fi==null?void 0:fi.shixun_tag_num)===1&&Jn.createElement("a",{style:{marginLeft:10},onClick:()=>{fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Jn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Jn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${fi==null?void 0:fi.identifier}/challenges`)}},(fi==null?void 0:fi.shixun_name)||"--"),"\uFF1F"),onOk:()=>oi(void 0,null,function*(){if(!Do(fi==null?void 0:fi.identifier))return new Promise((Ri,hi)=>{hi()})})})}},"\u53D1\u5E03")))}].filter(zr=>!zr.hidden)}),Jn.createElement(ut.Z,{current:Jr.page,total:(Mi==null?void 0:Mi.items_count)||(Mi==null?void 0:Mi.shixuns_count),style:{marginBottom:20},defaultPageSize:Jr.per_page,showTotal:zr=>Jn.createElement("span",null,"\u5171\xA0",Jn.createElement("span",{style:{color:"#165DFF"}},zr),"\xA0\u6761\u6570\u636E"),pageSize:Jr.per_page,onChange:(zr,fi)=>{Jr.page=zr,Jr.per_page=fi,li(Qr({},Jr)),Fa(Qr({},Jr))}}),Jn.createElement("div",{className:Bt.bottom},Jn.createElement(ue.ZP,{className:Bt.no,onClick:()=>{un(!1)}},"\u53D6\u6D88"),Jn.createElement(ue.ZP,{loading:gn,style:{width:gn&&75},className:Bt.yes,onClick:()=>oi(void 0,null,function*(){if((Ni==null?void 0:Ni.length)<=0){pe.ZP.info(Nr||pi?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}console.log("----",Wa.current,oa.current),Rr([...Wa.current],[...oa.current],!0,Ni==null?void 0:Ni.length)})},Nr?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Jn.createElement(fe.default,{open:Ra,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Bt.previewModal,width:1e3,centered:!0,onCancel:()=>{to(!1)},onOk:()=>{to(!1)}},Jn.createElement(Kr,{qitem:Da})))};var ci=(0,Ye.connect)(({shixunsDetail:un,newExercisePaper:Vn})=>({shixunsDetail:un,newExercisePaper:Vn}))(di),ki=Ce(77722),Ki=Ce(33156),ua=Ce(39116),kn=Ce(59301),qi=Object.defineProperty,Qi=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,rr=(un,Vn,Sn)=>Vn in un?qi(un,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):un[Vn]=Sn,Dr=(un,Vn)=>{for(var Sn in Vn||(Vn={}))Ti.call(Vn,Sn)&&rr(un,Sn,Vn[Sn]);if(_i)for(var Sn of _i(Vn))Xr.call(Vn,Sn)&&rr(un,Sn,Vn[Sn]);return un},Fr=(un,Vn)=>Qi(un,ra(Vn)),or=(un,Vn,Sn)=>new Promise((Rr,ti)=>{var gn=Ar=>{try{Nr(Sn.next(Ar))}catch(pi){ti(pi)}},mi=Ar=>{try{Nr(Sn.throw(Ar))}catch(pi){ti(pi)}},Nr=Ar=>Ar.done?Rr(Ar.value):Promise.resolve(Ar.value).then(gn,mi);Nr((Sn=Sn.apply(un,Vn)).next())});let ei=[{name:"\u6839\u8282\u70B9",src:"/images/one.svg",color:"#CC7CF5",bordercolor:"#A150CB",img:"/images/gjd.svg"},{name:"\u8BFE\u7A0B",src:"/images/kc.svg",color:"#3241F7",bordercolor:"#3437D9",img:"/images/kcjd.svg"},{name:"\u7AE0\u8282",src:"/images/zj.svg",color:"#5e54e7",bordercolor:"#7f77f9",img:"/images/zjjd.svg"},{name:"\u77E5\u8BC6\u70B9",src:"/images/zsd.svg",color:"#FFDF55",bordercolor:"#FFD60F",img:"/images/zsdjd.svg"},{name:"\u5B9E\u8BAD",src:"/images/sx.svg",color:"#4E9DFF",bordercolor:"#0882FB",img:"/images/sxjd.svg"},{name:"\u4F5C\u4E1A",src:"/images/zy.svg",color:"#445DF3",bordercolor:"#3149D5",img:"/images/zyjd.svg"},{name:"\u89C6\u9891",src:"/images/sp.svg",color:"#6BC4DE",bordercolor:"#339DC4",img:"/images/spjd.svg"},{name:"\u8BFE\u4EF6",src:"/images/fj.svg",color:"#6BDE73",bordercolor:"#33C448",img:"/images/kjjd.svg"},{name:"\u8BD5\u5377",src:"/images/sj.svg",color:"#2D9534",bordercolor:"#077A04",img:"/images/sjjd.svg"},{name:"\u5176\u4ED6",src:"/images/qt.svg",color:"#2D947C",bordercolor:"#157660",img:"/images/qtjd.svg"}];const si=[{name:"\u57FA\u672C\u4FE1\u606F",key:1},{name:"\u5173\u8054\u8D44\u6E90",key:4},{name:"\u5B66\u4E60\u7EDF\u8BA1",key:3}];let wr=[{name:"\u4F5C\u4E1A",id:"zy",item_type:2},{name:"\u5B9E\u8BAD",id:"sx",item_type:2},{name:"\u6559\u6750",id:"jc",item_type:2},{name:"\u89C6\u9891",id:"sp",item_type:2},{name:"\u8BFE\u4EF6",id:"kj",item_type:2},{name:"\u8BD5\u5377",id:"sj",item_type:2},{name:"\u9898\u96C6",id:"tj",item_type:2},{name:"\u8BD5\u9898",id:"st",item_type:2}],Ir=[{name:"\u7AE0\u8282",id:"zj",item_type:1},{name:"\u77E5\u8BC6\u70B9",id:"zsd",item_type:1}];const Hr=({pathsDetail:un,user:Vn,globalSetting:Sn,loading:Rr,dispatch:ti,items:gn,showdetail:mi,setshowdetail:Nr,containerRef:Ar,getData:pi,setshow:Gi,Tabsdatas:gi,uuid:Wi,tpacti:Jr,initdata:li,routeData:Zr={}})=>{var Vi,sa,vi,Ni,Ii,Mi,fa,ca,la,zi,Da,Ca,Ra,to,bi,Yi,Ei,Ci,kr,Zi,ma,ba,ir,Ji,Va,no,Ya,xi,pa,_a,oa,Wa,Ka,fo,Eo,io,ao,Ba,Fa,Wo;const Ta=(0,Ye.useParams)(),[Oo,Do]=(0,te.useState)(0),[Xi]=Me.default.useForm(),[Pi,lo]=(0,te.useState)({});let[Qa,Ja]=(0,te.useState)(!1);const[zr,fi]=(0,te.useState)(!1),[Sa,Ri]=(0,te.useState)("1"),[hi,wa]=(0,te.useState)([]),[za,ga]=(0,te.useState)(1),[ro,ka]=(0,te.useState)(2),[Co,Qo]=(0,te.useState)(2),[Ro,Jo]=(0,te.useState)(),[wo,Ns]=(0,te.useState)();let[uo,As]=(0,te.useState)([]);const[Ds,_s]=(0,te.useState)({}),[xs,To]=(0,te.useState)(!1),[Ts,ls]=(0,te.useState)(""),[Qs,wl]=(0,te.useState)([]),[Js]=(0,Ye.useSearchParams)(),[Es,pl]=(0,te.useState)(!1),[Cs,$s]=(0,te.useState)([]),[qs,Ms]=(0,te.useState)([]),[Vo,fs]=(0,te.useState)([]),[ul,Fs]=(0,te.useState)(!1),[xa,ol]=(0,te.useState)(!1),[ks,bs]=(0,te.useState)(!1),[cl,Al]=(0,te.useState)(!1),Vs=(0,te.useRef)(),[Zs,Us]=(0,te.useState)(!0),[Ws,Ll]=(0,te.useState)([]);let[$o,dl]=(0,te.useState)({tags:[],tagszy:[],tagslx:[]});const[el,gl]=(0,te.useState)([{label:"\u5B9E\u8BAD",children:kn.createElement(Xe,{getother:yo,types:"1",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"1"},{label:"\u89C6\u9891",children:kn.createElement(Xe,{getother:yo,types:"2",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"2"},{label:"\u8BFE\u4EF6",children:kn.createElement(Xe,{getother:yo,types:"3",ktzykey:Sa,onChange:jn=>{wa(jn)}}),key:"3"},{label:"\u8BD5\u5377",children:kn.createElement(Xe,{getother:yo,types:"4",ktzykey:Sa,onChange:jn=>{console.log("----",jn),wa(jn)}}),key:"4"}].filter(jn=>!!jn));let[zs,tl]=(0,te.useState)([]),[Gs,nl]=(0,te.useState)([]);const[hs,yl]=(0,te.useState)(0),[Hs,_l]=(0,te.useState)(0),[Ss,vs]=(0,te.useState)([]),[ha,ts]=(0,te.useState)({bh:[],qx:[],hx:[],gl:[]}),Dl=jn=>{var $i,va;return(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:(($i=jn==null?void 0:jn.items)==null?void 0:$i.uuid)||((va=jn==null?void 0:jn.items)==null?void 0:va.id)}}),ti({type:"userDetail/logWatchHistory",payload:Dr({},jn)})},xl=jn=>((0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:Wi}}),ti({type:"userDetail/logWatchHistory",payload:Dr({},jn)}));function ns(){return or(this,null,function*(){Al(!0);let jn=yield(0,ge.ZP)("/api/knowledge/v2/knowledge_resources.json",{method:"get",params:Dr({subject_id:Ta==null?void 0:Ta.pathId,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)},Zr)});Al(!1),(jn==null?void 0:jn.status)===0&&Ll(jn==null?void 0:jn.data)})}const Rl={maxCount:1,fileList:uo,accept:((sa=(Vi=Pi==null?void 0:Pi.label)==null?void 0:Vi[0])==null?void 0:sa.name)==="\u89C6\u9891"?".mp4":"",withCredentials:!0,beforeUpload:jn=>{var $i,va;if(!(jn.type==="video/mp4")&&((va=($i=Pi==null?void 0:Pi.label)==null?void 0:$i[0])==null?void 0:va.name)==="\u89C6\u9891")return pe.ZP.error("\u53EA\u80FD\u4E0A\u4F20\u89C6\u9891"),Oe.default.LIST_IGNORE},action:`${Re.Z.API_SERVER}/api/attachments.json`,onChange:jn=>{As(jn==null?void 0:jn.fileList)}};function Bl(){return or(this,null,function*(){var jn,$i,va,ia,$a;let La=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{depth:1,subject_id:Ta==null?void 0:Ta.pathId}});if((La==null?void 0:La.status)===0){yl(Wi);const Pa=[...($a=(ia=(jn=La==null?void 0:La.data)==null?void 0:jn.nodes)==null?void 0:ia.splice(1,(va=($i=La==null?void 0:La.data)==null?void 0:$i.nodes)==null?void 0:va.length))==null?void 0:$a.map(co=>{var Bo,_t,xt;return Dr({label:(Bo=co==null?void 0:co.properties)==null?void 0:Bo.name,children:kn.createElement(St,{onChange:Xt=>{sessionStorage.setItem("typesdatajsoncopy",JSON.stringify(Xt))},itemsuuid:gn==null?void 0:gn.uuid,uuid:(_t=co==null?void 0:co.properties)==null?void 0:_t.uuid,typesdata:ha}),key:(xt=co==null?void 0:co.properties)==null?void 0:xt.uuid},co)})];zs=Pa,tl(Pa),sessionStorage.setItem("typesdatajson",JSON.stringify(ha)),sessionStorage.setItem("typesdatajsoncopy",JSON.stringify(ha)),Ja(!0)}})}function Zo(){return or(this,null,function*(){var jn;let $i=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:3,subject_id:Ta==null?void 0:Ta.pathId}});($i==null?void 0:$i.status)===0&&($o.tags=$i==null?void 0:$i.data,dl(Dr({},$o)));let va=yield(0,ge.ZP)("/api/knowledge_items.json",{method:"get",params:{item_type:5,subject_id:Ta==null?void 0:Ta.pathId}});(va==null?void 0:va.status)===0&&($o.tagszy=[...wr,...va==null?void 0:va.data2],$o.tagslx=[...Ir,...va==null?void 0:va.data],dl(Dr({},$o)));let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:gn==null?void 0:gn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});if(ls(""),fs([]),localStorage.setItem("container_type_tupu",ia==null?void 0:ia.container_type),(gn==null?void 0:gn.nodeType)==="\u89C6\u9891"&&(((jn=ia==null?void 0:ia.attachment)==null?void 0:jn.file_type)==="video"||(ia==null?void 0:ia.container_type)==="video")&&ls(ia==null?void 0:ia.id),(gn==null?void 0:gn.resourceOrigin)===1&&(gn==null?void 0:gn.nodeType)!=="\u9898\u96C6"){let $a={url:gn==null?void 0:gn.resourceUrl,name:ia==null?void 0:ia.name,id:ia==null?void 0:ia.examination_bank_id,questionIdArr:ia==null?void 0:ia.item_bank_ids,shixun_ids:ia==null?void 0:ia.shixun_ids};wa([$a])}(gn==null?void 0:gn.resourceOrigin)===1&&(gn==null?void 0:gn.nodeType)==="\u9898\u96C6"&&fs(ia==null?void 0:ia.item_banks_groups),(gn==null?void 0:gn.resourceOrigin)===2&&As([{uid:"123",name:ia==null?void 0:ia.name,response:{id:"123",url:gn==null?void 0:gn.resourceUrl}}])})}function yo(jn){return or(this,null,function*(){var $i,va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn}});(ia==null?void 0:ia.status)===0&&((ia==null?void 0:ia.container_type)==="att"?_s({url:Re.Z.API_SERVER+(($i=ia==null?void 0:ia.attachment)==null?void 0:$i.url),file_type:(va=ia==null?void 0:ia.attachment)==null?void 0:va.file_type}):window.open(jn))})}function zo(){return or(this,null,function*(){let jn=yield(0,ge.ZP)("/api/knowledge/v2/item_bank_groups.json",{method:"get",params:{subject_id:Ta==null?void 0:Ta.pathId}});(jn==null?void 0:jn.status)===0&&$s(jn==null?void 0:jn.data)})}function Mo(){return or(this,null,function*(){var jn,$i,va,ia,$a,La;ga(1);let Pa=yield(0,ge.ZP)("/api/knowledge/v2/get_node_detail.json",{method:"get",params:{nodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),parentNodeUuids:gi==null?void 0:gi.map(co=>co==null?void 0:co.uuid).join(),depth:1,relationshipFilter:">",subgraphDepth:"-1",subgraphRelationshipFilter:"\u5305\u542B>",subject_id:Ta==null?void 0:Ta.pathId}});if((Pa==null?void 0:Pa.status)===0){vs((jn=Pa==null?void 0:Pa.data)==null?void 0:jn.nodes),Jo((va=($i=Pa==null?void 0:Pa.data)==null?void 0:$i.nodes)==null?void 0:va.filter(Bo=>{var _t;return((_t=Bo==null?void 0:Bo.properties)==null?void 0:_t.uuid)===(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)})),Ns((ia=Pa==null?void 0:Pa.data)==null?void 0:ia.relationships);const co=[...(La=($a=Pa==null?void 0:Pa.data)==null?void 0:$a.graphNodeMappings)==null?void 0:La.map((Bo,_t)=>{var xt;return{label:`${Bo==null?void 0:Bo.parentNodeName}\uFF08${(xt=Bo==null?void 0:Bo.childNodeUuids)==null?void 0:xt.length}\uFF09`,children:kn.createElement(ln,{datas:Pa==null?void 0:Pa.data,items:Bo==null?void 0:Bo.childNodeUuids}),key:_t}})];_l(0),Gs=co,nl(co)}})}(0,te.useEffect)(()=>{mi&&(Mo(),Zo())},[mi,gn]);const Xs=(...jn)=>or(void 0,[...jn],function*($i={}){return yield ti({type:"pathsDetail/getKnowledgeGraphs",payload:Dr({graphable_type:Js.get("type")==="classrooms"?"course":"subject",graphable_id:Ta==null?void 0:Ta.pathId},$i)})});return kn.createElement(qt.Z,null,kn.createElement("div",null,mi&&kn.createElement(ve.Z,{open:mi,width:"700rem",maskStyle:{background:"#000",opacity:"0.1"},keyboard:!0,maskClosable:!0,closable:!1,rootClassName:z.drawer,getContainer:()=>Ar.current,onClose:()=>{Us(!0),Nr(!1),ls("")}},kn.createElement("div",{className:z.detailmodal},kn.createElement("div",null,kn.createElement("span",{className:z.title},"\u8282\u70B9\u8BE6\u60C5"),((vi=un==null?void 0:un.detail)==null?void 0:vi.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement("i",{className:"iconfont icon-bianji-moren",onClick:()=>or(void 0,null,function*(){var jn,$i,va,ia,$a,La,Pa,co,Bo,_t;let xt=(jn=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u88AB\u5305\u542B"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:jn.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),Xt=($i=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u5305\u542B"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:$i.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}});wl(Xt);let cn=(va=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u524D\u5E8F"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:va.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),wn=(ia=wo==null?void 0:wo.filter(En=>(En==null?void 0:En.type)==="\u540E\u5E8F"&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:ia.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}}),Rn=($a=wo==null?void 0:wo.filter(En=>((En==null?void 0:En.type)==="\u5173\u8054"||(En==null?void 0:En.type)==="\u88AB\u5173\u8054")&&(En==null?void 0:En.startNodeUuid)===((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))))==null?void 0:$a.map(En=>{var er,Xn;return{uuid:En==null?void 0:En.endNodeUuid,name:(Xn=(er=Ss==null?void 0:Ss.find(Pr=>{var yr;return((yr=Pr==null?void 0:Pr.properties)==null?void 0:yr.uuid)===(En==null?void 0:En.endNodeUuid)}))==null?void 0:er.properties)==null?void 0:Xn.name}});if(ts({bh:xt,qx:cn,hx:wn,gl:Rn}),(gn==null?void 0:gn.colorType)=="1"){Ki.Z.publish("update_a_knowledge_map",{name:gn.name,description:gn.description,nodeType:gn==null?void 0:gn.nodeType,settingbh:Xt,typesdata:{bh:xt,qx:cn,hx:wn,gl:Rn},items:gn});return}Do(3),Nr(!1);let qn={name:gn.name,description:gn.description,label:((Pa=(La=Ro==null?void 0:Ro[0])==null?void 0:La.labels)==null?void 0:Pa[1])==="\u8D44\u6E90"?(co=$o==null?void 0:$o.tagszy)==null?void 0:co.filter(En=>(En==null?void 0:En.name)===(gn==null?void 0:gn.nodeType)):(Bo=$o==null?void 0:$o.tagslx)==null?void 0:Bo.filter(En=>(En==null?void 0:En.name)===(gn==null?void 0:gn.nodeType)),tag:(_t=$o==null?void 0:$o.tags)==null?void 0:_t.filter(En=>{var er,Xn;return(Xn=(er=gn==null?void 0:gn.tags)==null?void 0:er.map(Pr=>Pr==null?void 0:Pr.name))==null?void 0:Xn.includes(En==null?void 0:En.name)}),resourceOrigin:gn.resourceOrigin,url:(gn==null?void 0:gn.resourceOrigin)===3?gn==null?void 0:gn.resourceUrl:""};Xi.setFieldsValue(qn),lo(qn)}),style:{color:"#1B8565",marginLeft:10,cursor:"pointer"}})),kn.createElement("div",{style:{display:"flex",alignItems:"center"}},(gn==null?void 0:gn.colorType)!=="1"&&((Ni=un==null?void 0:un.detail)==null?void 0:Ni.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:(0,nn.debounce)(()=>or(void 0,null,function*(){var jn,$i;let va=yield(0,ge.ZP)("/api/knowledge/v2/get_node.json",{method:"get",params:{nodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),subject_id:Ta==null?void 0:Ta.pathId,depth:1,relationshipFilter:"\u88AB\u5305\u542B>"}});if((va==null?void 0:va.status)===0){let ia=($i=(jn=va==null?void 0:va.data)==null?void 0:jn.nodes)==null?void 0:$i.filter(La=>{var Pa;return((Pa=La==null?void 0:La.properties)==null?void 0:Pa.uuid)!==((gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id))}),$a=ia==null?void 0:ia.map(La=>{var Pa,co;return{name:(Pa=La==null?void 0:La.properties)==null?void 0:Pa.name,uuid:(co=La==null?void 0:La.properties)==null?void 0:co.uuid}});ha.bh=$a,ts(ha),Do(1),Nr(!1),wa([]),fs([]),As([])}}),500)},"\u589E\u52A0\u540C\u7EA7\u8282\u70B9"),((Ii=un==null?void 0:un.detail)==null?void 0:Ii.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:()=>{var jn,$i;(($i=(jn=ha==null?void 0:ha.bh)==null?void 0:jn.filter(va=>(va==null?void 0:va.uuid)===(gn==null?void 0:gn.id)))==null?void 0:$i.length)>0||ha.bh.push({name:gn==null?void 0:gn.name,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}),Do(2),Nr(!1),wa([]),fs([]),As([])}},"\u589E\u52A0\u5B50\u7EA7\u8282\u70B9"),((Mi=un==null?void 0:un.detail)==null?void 0:Mi.can_managed)&&Wi!=="\u5B66\u4E60\u8DEF\u5F84"&&kn.createElement(ue.ZP,{className:z.button,onClick:()=>{let jn="";fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:Ar.current,content:kn.createElement("div",null,kn.createElement("p",null,"\u5220\u9664\u8282\u70B9\u4F1A\u540C\u6B65\u5220\u9664\u5F53\u524D\u8282\u70B9\u7684\u5B50\u7EA7\u8282\u70B9\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8F93\u5165\u6846\u8F93\u5165",kn.createElement("span",{style:{color:"red"}},"\u201C\u786E\u8BA4\u5220\u9664\u201D")),kn.createElement(he.default,{onChange:$i=>{jn=$i.target.value}})),onOk:()=>or(void 0,null,function*(){if(jn!=="\u786E\u8BA4\u5220\u9664")return pe.ZP.info("\u8BF7\u8F93\u5165\u786E\u8BA4\u5220\u9664"),Promise.reject();if(jn==="\u786E\u8BA4\u5220\u9664"){let $i=yield(0,ge.ZP)("/api/knowledge/v2/del_node.json",{method:"post",body:{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),subject_id:Ta==null?void 0:Ta.pathId}});($i==null?void 0:$i.status)===0&&(pe.ZP.info("\u5220\u9664\u6210\u529F"),Xs({graphable_id:Ta==null?void 0:Ta.pathId}),(gn==null?void 0:gn.colorType)!=="1"?(Gi(!1),pi()):li(),Nr(!1))}})})}},"\u5220\u9664\u8282\u70B9"),((fa=un==null?void 0:un.detail)==null?void 0:fa.can_managed)&&Wi==="\u5B66\u4E60\u8DEF\u5F84"&&Js.get("type")==="classrooms"&&kn.createElement(ue.ZP,{type:"primary",className:z.button,onClick:()=>{fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:Ar.current,okText:"\u786E\u8BA4\u540C\u6B65",content:kn.createElement("div",null,"\u8BE5\u8282\u70B9\u4E0B\u5171",kn.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.currentResourceTotal),"\u4E2A\u8D44\u6E90\uFF0C\u786E\u8BA4\u540C\u6B65\u540E\uFF0C\u8FD9\u4E9B\u8D44\u6E90\u5C06\u6309\u7167\u7C7B\u578B\u5206\u522B\u53D1\u9001\u5230\u8BFE\u5802\u5B9E\u9A8C\u3001\u56FE\u6587\u4F5C\u4E1A\u3001\u5728\u7EBF\u8003\u8BD5\u3001\u89C6\u9891\u76F4\u64AD\u3001\u6559\u5B66\u8D44\u6599\u6A21\u5757\u4E2D\uFF0C\u53EF\u524D\u5F80\u5BF9\u5E94\u6A21\u5757\u8FDB\u884C\u8D44\u6E90\u53D1\u5E03\u7B49\u64CD\u4F5C\u3002"),onOk:()=>or(void 0,null,function*(){const jn=yield(0,ge.ZP)("/api/subject_knowledge/send_to_course",{method:"post",body:{id:gn==null?void 0:gn.resourceid,subject_id:Ta==null?void 0:Ta.pathId}});(jn==null?void 0:jn.status)===0&&pe.ZP.success("\u64CD\u4F5C\u6210\u529F")})})}},"\u540C\u6B65\u8D44\u6E90\u5230\u8BFE\u5802"),kn.createElement(ne.Z,{onClick:()=>{Nr(!1)},style:{marginLeft:"10rem",fontSize:"16rem",color:"#979797"}}))),kn.createElement("div",{className:z.tabstyle},si==null?void 0:si.map(jn=>kn.createElement("div",{onClick:()=>{ga(jn.key),jn.key===4&&ns()},className:za===(jn==null?void 0:jn.key)?z.itemsactivite:z.items},jn==null?void 0:jn.name))),za===1&&kn.createElement("div",null,kn.createElement("div",{className:z.nodetitle},ro===1&&kn.createElement(oe.Z,{onClick:()=>ka(2)}),ro===2&&kn.createElement(se.Z,{onClick:()=>ka(1)}),kn.createElement("span",{style:{marginLeft:"10rem",fontSize:"16rem",color:"#1B8565"}},"\u8282\u70B9\u5C5E\u6027")),ro===2&&kn.createElement("div",{className:z.nodeboyd},kn.createElement("div",{className:z.listitem,style:{marginTop:"0rem"}},kn.createElement("label",null,"\u8282\u70B9\u540D\u79F0"),kn.createElement("span",null,gn==null?void 0:gn.name)),kn.createElement("div",{className:z.listitem,style:{alignItems:"start"}},kn.createElement("label",null,"\u8282\u70B9\u7B80\u4ECB"),kn.createElement("div",{ref:Vs,style:{maxHeight:Zs?150:282,overflow:Zs?"hidden":"auto"}},kn.createElement(Tn.Z,{value:(gn==null?void 0:gn.description)||"\u6682\u65E0"}))),((ca=Vs==null?void 0:Vs.current)==null?void 0:ca.scrollHeight)>152&&kn.createElement("div",{className:z.tips,onClick:()=>Us(!Zs)},kn.createElement(le.Z,{dashed:!0,style:{borderColor:"#3061D0",paddingLeft:99}},kn.createElement("span",{style:{color:"#3061D0",cursor:"pointer"}},Zs?"\u5C55\u5F00":"\u6536\u8D77",Zs?kn.createElement(de.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):kn.createElement(a.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))),kn.createElement("div",{className:z.listitem},kn.createElement("label",null,"\u8282\u70B9\u7C7B\u578B"),kn.createElement("div",null,(gn==null?void 0:gn.nodeType)&&kn.createElement(Ne,{containerRef:Ar,type:5,value:[{name:gn==null?void 0:gn.nodeType}],pathsDetail:un,showmodal:!1,dataSources:[]})," ")),kn.createElement("div",{className:z.listitem},kn.createElement("label",null,"\u8282\u70B9\u6807\u7B7E"),kn.createElement("span",null,((la=gn==null?void 0:gn.tags)==null?void 0:la.length)>0&&kn.createElement(Ne,{containerRef:Ar,type:5,pathsDetail:un,value:gn==null?void 0:gn.tags,showmodal:!1,dataSources:[]}))),(gn==null?void 0:gn.nodeType)==="\u89C6\u9891"&&(gn==null?void 0:gn.resourceOrigin)!==3&&Ts&&kn.createElement("div",{style:{height:"300rem",marginTop:"20rem"}},kn.createElement(Qe.Z,{allow_skip:!0,videoId:Ts,toLog:!0,src:gn==null?void 0:gn.resourceUrl,logWatchHistory:jn=>Dl(Fr(Dr({},jn),{container_type:localStorage.getItem("container_type_tupu"),items:gn}))})),(gn==null?void 0:gn.resourceOrigin)===3&&kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement("span",{style:{color:"#1B8565",fontSize:"16rem"}},gn==null?void 0:gn.resourceUrl),kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){let jn=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:gn==null?void 0:gn.uuid}});window.open(gn==null?void 0:gn.resourceUrl)}),type:"primary"},"\u524D\u5F80\u67E5\u770B")),(gn==null?void 0:gn.nodeType)==="\u9898\u96C6"&&(Vo==null?void 0:Vo.map(jn=>kn.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"10rem"}},kn.createElement(ae.Z,{title:jn==null?void 0:jn.name},kn.createElement("span",{className:z.multiple,style:{color:"#1B8565",fontSize:"16rem",maxWidth:"80%"}},jn==null?void 0:jn.name)),kn.createElement("div",{style:{marginLeft:"10rem",padding:"0rem 10rem",fontSize:"12rem",background:"#F6F7F9",color:"#909D99",borderRadius:"20rem"}},"\u8BD5\u9898\u6570 ",jn==null?void 0:jn.count)))),(gn==null?void 0:gn.nodeType)!="\u89C6\u9891"&&(gn==null?void 0:gn.nodeType)!="\u9898\u96C6"&&(gn!=null&&gn.resourceOrigin)&&[1,2].includes(gn==null?void 0:gn.resourceOrigin)?kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement("span",{style:{color:"#1B8565",fontSize:"16rem"}},(gn==null?void 0:gn.resourceOrigin)===1?(zi=hi==null?void 0:hi[0])==null?void 0:zi.name:(Da=uo==null?void 0:uo[0])==null?void 0:Da.name),(0,on.JA)()&&((gn==null?void 0:gn.nodeType)==="\u8BD5\u5377"||(gn==null?void 0:gn.nodeType)==="\u8BD5\u9898")?"":kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){yo(gn==null?void 0:gn.resourceUrl);let jn=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:gn==null?void 0:gn.uuid}})}),type:"primary"},"\u524D\u5F80\u67E5\u770B"),((gn==null?void 0:gn.nodeType)==="\u8BD5\u5377"||(gn==null?void 0:gn.nodeType)==="\u8BD5\u9898")&&(gn==null?void 0:gn.resourceOrigin)===1&&kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){var jn,$i;const va=yield(0,Tt.Mb)({categoryId:(jn=hi==null?void 0:hi[0])==null?void 0:jn.id});va!=null&&va.exercise_id&&(0,Fe.xg)(`/classrooms/coursesId/exercise/${va.exercise_id}/${($i=Vn.userInfo)==null?void 0:$i.login}/initate_answer`)}),type:"primary"},"\u6A21\u62DF\u8003\u8BD5")):""),kn.createElement("div",{className:z.nodetitle},Co===1&&kn.createElement(oe.Z,{onClick:()=>Qo(2)}),Co===2&&kn.createElement(se.Z,{onClick:()=>Qo(1)}),kn.createElement("span",{style:{marginLeft:"10rem",fontSize:"16rem",color:"#1B8565"}},"\u8282\u70B9\u5173\u7CFB")),Co===2&&kn.createElement("div",{className:z.nodeboyd,style:{padding:0,minHeight:"530rem"}},kn.createElement(ie.default,{className:z.Tabs,activeKey:Hs,destroyInactiveTabPane:!0,onChange:jn=>{_l(parseInt(jn))},type:"card",items:Gs}))),za===4&&kn.createElement(me.Z,{spinning:cl},kn.createElement("div",null,(Ws==null?void 0:Ws.length)===0&&kn.createElement(ki.Z,{text:"\u5F53\u524D\u8282\u70B9\u4E0B\u6682\u65E0\u8D44\u6E90"}),Ws==null?void 0:Ws.map(jn=>{var $i;return kn.createElement("div",{className:z.gllist},kn.createElement("div",{style:{display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.gltag,style:{background:(($i=ei==null?void 0:ei.find(va=>(va==null?void 0:va.name)==(jn==null?void 0:jn.nodeType)))==null?void 0:$i.color)||"#2D947C"}},jn==null?void 0:jn.nodeType),kn.createElement("div",{className:z.multiple,style:{flex:1}},jn==null?void 0:jn.name)),kn.createElement("div",{style:{marginTop:20,color:"#5F6368",display:"flex",alignItems:"center",justifyContent:"space-between"}},kn.createElement("div",{style:{flex:1}}),kn.createElement("div",null,(jn==null?void 0:jn.nodeType)==="\u89C6\u9891"&&(jn==null?void 0:jn.resourceOrigin)!==3&&kn.createElement(ue.ZP,{type:"primary",onClick:()=>or(void 0,null,function*(){var va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn==null?void 0:jn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});(((va=ia==null?void 0:ia.attachment)==null?void 0:va.file_type)==="video"||(ia==null?void 0:ia.container_type)==="video")&&fe.default.confirm({title:"\u64AD\u653E\u89C6\u9891",icon:null,closable:!0,footer:null,centered:!0,width:500,content:kn.createElement(Qe.Z,{allow_skip:!0,videoId:ia==null?void 0:ia.id,toLog:!0,src:jn==null?void 0:jn.resourceUrl,logWatchHistory:$a=>xl(Fr(Dr({},$a),{uuid:jn==null?void 0:jn.uuid,container_type:ia==null?void 0:ia.container_type,item:jn}))})})})},"\u64AD\u653E\u89C6\u9891"),(jn==null?void 0:jn.resourceOrigin)===3&&kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){let va=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:jn==null?void 0:jn.uuid}});window.open(jn==null?void 0:jn.resourceUrl)}),type:"primary"},"\u524D\u5F80\u67E5\u770B")),(jn==null?void 0:jn.nodeType)!="\u89C6\u9891"&&(jn==null?void 0:jn.nodeType)!="\u9898\u96C6"&&(jn!=null&&jn.resourceOrigin)&&[1,2].includes(jn==null?void 0:jn.resourceOrigin)?kn.createElement("div",{style:{display:"flex",marginTop:"20rem",alignItems:"center"}},(0,on.JA)()&&((jn==null?void 0:jn.nodeType)==="\u8BD5\u5377"||(jn==null?void 0:jn.nodeType)==="\u8BD5\u9898")?"":kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){yo(jn==null?void 0:jn.resourceUrl);let va=yield(0,ge.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Ta==null?void 0:Ta.pathId,uuid:jn==null?void 0:jn.uuid}})}),type:"primary"},"\u524D\u5F80\u67E5\u770B"),((jn==null?void 0:jn.nodeType)==="\u8BD5\u5377"||(jn==null?void 0:jn.nodeType)==="\u8BD5\u9898")&&(jn==null?void 0:jn.resourceOrigin)===1&&kn.createElement(ue.ZP,{style:{height:"40rem",padding:"0rem 10rem",fontSize:"14rem",marginLeft:"10rem"},onClick:()=>or(void 0,null,function*(){var va;let ia=yield(0,ge.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:jn==null?void 0:jn.resourceUrl,item_banks_group_ids:gn==null?void 0:gn.itemBanksGroupIds}});if((jn==null?void 0:jn.resourceOrigin)===1&&(jn==null?void 0:jn.nodeType)!=="\u9898\u96C6"&&(ia==null?void 0:ia.status)===0){const $a=yield(0,Tt.Mb)({categoryId:ia==null?void 0:ia.examination_bank_id});$a!=null&&$a.exercise_id&&(0,Fe.xg)(`/classrooms/coursesId/exercise/${$a.exercise_id}/${(va=Vn.userInfo)==null?void 0:va.login}/initate_answer`)}}),type:"primary"},"\u6A21\u62DF\u8003\u8BD5")):"")))}))),za===3&&kn.createElement("div",null,(0,on.JA)()?kn.createElement(Kt,{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}):kn.createElement(ht,{uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id)}))),kn.createElement(fe.default,{title:kn.createElement("span",{style:{fontSize:"18rem",color:"#000"}},Oo===3?"\u7F16\u8F91":"\u521B\u5EFA","\u8282\u70B9"),centered:!0,destroyOnClose:!0,width:"1200rem",open:Oo>0,getContainer:()=>Ar.current,onCancel:()=>{Do(0),Xi.resetFields(),ts({qx:[],bh:[],hx:[],gl:[]}),As([]),lo({}),wa([]),fs([])},okButtonProps:{loading:xs},onOk:()=>{Xi.submit()}},kn.createElement("div",{className:z.addmodal},kn.createElement("div",{className:z.title},"\u8282\u70B9\u5C5E\u6027"),kn.createElement(Me.default,{className:z.form,labelCol:{flex:"92rem"},layout:"horizontal",form:Xi,colon:!1,onValuesChange:(jn,$i)=>{var va,ia,$a,La;lo(Dr({},$i)),($i==null?void 0:$i.resourceOrigin)!==1&&wa([]),((ia=(va=$i==null?void 0:$i.label)==null?void 0:va[0])==null?void 0:ia.name)!=="\u9898\u96C6"&&fs([]),((La=($a=$i==null?void 0:$i.label)==null?void 0:$a[0])==null?void 0:La.item_type)!==2&&(wa([]),As([]),fs([]),Xi.setFieldsValue({resourceOrigin:0,url:""}))},onFinish:(0,nn.debounce)(jn=>or(void 0,null,function*(){var $i,va,ia,$a,La,Pa,co,Bo,_t,xt,Xt,cn,wn,Rn,qn,En,er,Xn,Pr,yr,br,gr,pr,De,ke,Ve,qe,it,dt,bt,vt,Nt,Pt,Ht,$t,hn,Pn,Dn,pn,bn,Gn,Un,sr,cr,ni,Tr,Si,Ui,Fi,jr;if((($i=ha==null?void 0:ha.bh)==null?void 0:$i.length)===0){pe.ZP.warning("\u8282\u70B9\u5305\u542B\u5173\u7CFB\u4E0D\u80FD\u4E3A\u7A7A");return}if((jn==null?void 0:jn.resourceOrigin)===0){pe.ZP.warning("\u8BF7\u9009\u62E9\u8D44\u6E90\u7C7B\u578B");return}if((jn==null?void 0:jn.resourceOrigin)===1&&(hi==null?void 0:hi.length)<=0&&((va=jn==null?void 0:jn.label[0])==null?void 0:va.name)!=="\u9898\u96C6"){pe.ZP.warning("\u8BF7\u9009\u62E9\u5BF9\u5E94\u8D44\u6E90");return}if((jn==null?void 0:jn.resourceOrigin)===1&&(Vo==null?void 0:Vo.length)<=0&&((ia=jn==null?void 0:jn.label[0])==null?void 0:ia.name)==="\u9898\u96C6"){pe.ZP.warning("\u8BF7\u9009\u62E9\u5BF9\u5E94\u8D44\u6E90");return}if((jn==null?void 0:jn.resourceOrigin)===2&&(uo==null?void 0:uo.length)===0){pe.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}To(!0);let Vr=Oo===3?"/api/knowledge/v2/mod_node.json":"/api/knowledge/v2/add_node.json",yi=Oo===3?{subject_id:Ta==null?void 0:Ta.pathId,properties:{description:jn.description,rootNodeUuid:gn==null?void 0:gn.rootNodeUuid,name:jn.name,uuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),nodeType:($a=jn==null?void 0:jn.label[0])==null?void 0:$a.name,tags:((Pa=(La=jn.tag)==null?void 0:La.map(fr=>fr==null?void 0:fr.name))==null?void 0:Pa.join("\uFF0C"))||"",color:gn==null?void 0:gn.color,resourceOrigin:jn.resourceOrigin,resourceUrl:jn.resourceOrigin===3?jn.url:jn.resourceOrigin===2?((_t=(Bo=(co=uo==null?void 0:uo[0])==null?void 0:co.response)==null?void 0:Bo.url)==null?void 0:_t.indexOf("educoder.net"))>-1?(Xt=(xt=uo==null?void 0:uo[0])==null?void 0:xt.response)==null?void 0:Xt.url:((cn=Sn==null?void 0:Sn.setting)==null?void 0:cn.public_bucket_host)+((Rn=(wn=uo==null?void 0:uo[0])==null?void 0:wn.response)==null?void 0:Rn.url):(qn=hi==null?void 0:hi[0])==null?void 0:qn.url,container_type:((En=jn==null?void 0:jn.label[0])==null?void 0:En.name)==="\u9898\u96C6"?"ItemBanksGroup":(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((er=hi==null?void 0:hi[0])==null?void 0:er.container_type)||((Pr=(Xn=uo==null?void 0:uo[0])==null?void 0:Xn.response)==null?void 0:Pr.container_type),container_id:(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((yr=hi==null?void 0:hi[0])==null?void 0:yr.container_id)||((gr=(br=uo==null?void 0:uo[0])==null?void 0:br.response)==null?void 0:gr.container_id),itemBanksGroupIds:Vo==null?void 0:Vo.map(fr=>fr==null?void 0:fr.group_id).toString()},subgraphNodeUuid:Jr,relationships:[...(pr=ha.bh)==null?void 0:pr.map(fr=>({startNodeUuid:fr.uuid,endNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5305\u542B"})),...Qs==null?void 0:Qs.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5305\u542B"})),...(De=ha.qx)==null?void 0:De.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u524D\u5E8F"})),...(ke=ha.hx)==null?void 0:ke.map(fr=>({endNodeUuid:fr.uuid,startNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u540E\u5E8F"})),...(Ve=ha.gl)==null?void 0:Ve.map(fr=>({startNodeUuid:fr.uuid,endNodeUuid:(gn==null?void 0:gn.keys)||(gn==null?void 0:gn.id),type:"\u5173\u8054"}))]}:{label:((qe=jn==null?void 0:jn.label[0])==null?void 0:qe.item_type)===1?"\u6807\u7B7E":"\u8D44\u6E90",subject_id:Ta==null?void 0:Ta.pathId,properties:{description:jn.description,rootNodeUuid:gn==null?void 0:gn.rootNodeUuid,name:jn.name,nodeType:(it=jn==null?void 0:jn.label[0])==null?void 0:it.name,tags:((bt=(dt=jn.tag)==null?void 0:dt.map(fr=>fr==null?void 0:fr.name))==null?void 0:bt.join("\uFF0C"))||"",color:Oo===1?"2":parseInt(gn==null?void 0:gn.colorType)+1+"",resourceOrigin:jn.resourceOrigin,resourceUrl:jn.resourceOrigin===3?jn.url:jn.resourceOrigin===2?((Pt=(Nt=(vt=uo==null?void 0:uo[0])==null?void 0:vt.response)==null?void 0:Nt.url)==null?void 0:Pt.indexOf("educoder.net"))>-1?($t=(Ht=uo==null?void 0:uo[0])==null?void 0:Ht.response)==null?void 0:$t.url:((hn=Sn==null?void 0:Sn.setting)==null?void 0:hn.public_bucket_host)+((Dn=(Pn=uo==null?void 0:uo[0])==null?void 0:Pn.response)==null?void 0:Dn.url):(pn=hi==null?void 0:hi[0])==null?void 0:pn.url,container_type:((bn=jn==null?void 0:jn.label[0])==null?void 0:bn.name)==="\u9898\u96C6"?"ItemBanksGroup":(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((Gn=hi==null?void 0:hi[0])==null?void 0:Gn.container_type)||((sr=(Un=uo==null?void 0:uo[0])==null?void 0:Un.response)==null?void 0:sr.container_type),container_id:(jn.resourceOrigin===1||jn.resourceOrigin===2)&&((cr=hi==null?void 0:hi[0])==null?void 0:cr.container_id)||((Tr=(ni=uo==null?void 0:uo[0])==null?void 0:ni.response)==null?void 0:Tr.container_id),itemBanksGroupIds:Vo==null?void 0:Vo.map(fr=>fr==null?void 0:fr.group_id).toString()},subgraphNodeUuid:Jr,relationships:[...(Si=ha.bh)==null?void 0:Si.map(fr=>({startNodeUuid:fr.uuid,type:"\u5305\u542B"})),...(Ui=ha.qx)==null?void 0:Ui.map(fr=>({startNodeUuid:fr.uuid,type:"\u524D\u5E8F"})),...(Fi=ha.hx)==null?void 0:Fi.map(fr=>({endNodeUuid:fr.uuid,type:"\u540E\u5E8F"})),...(jr=ha.gl)==null?void 0:jr.map(fr=>({startNodeUuid:fr.uuid,type:"\u5173\u8054"}))]};const zn=yield(0,ge.ZP)(Vr,{method:"POST",body:yi});To(!1),(zn==null?void 0:zn.status)===0&&(Xs({graphable_id:Ta==null?void 0:Ta.pathId}),pe.ZP.info(Oo===3?"\u7F16\u8F91\u6210\u529F":"\u521B\u5EFA\u6210\u529F"),Do(0),Gi(!1),pi(),Xi.resetFields(),As([]),lo({}),wa([]),fs([]),ts({qx:[],hx:[],bh:[],gl:[]}))}),500),size:"large"},kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8282\u70B9\u540D\u79F0"},{type:"string",max:200,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},kn.createElement(he.default,{maxLength:200,showCount:!0,placeholder:"\u8BF7\u8F93\u5165"})),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u7B80\u4ECB",name:"description",rules:[{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},kn.createElement(ua.Z,{defaultValue:Oo===3?gn==null?void 0:gn.description:"",watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5E16\u5B50\u8BE6\u60C5\uFF0C\u6700\u5927\u9650\u5236\u4E3A5000\u4E2A\u5B57\u7B26"})),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u7C7B\u578B",name:"label",style:{marginBottom:"0rem"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8282\u70B9\u7C7B\u578B"}]},kn.createElement(Ne,{containerRef:Ar,type:5,pathsDetail:un,showmodal:Oo!==3,dataSources:[]})),((Ra=(Ca=Pi==null?void 0:Pi.label)==null?void 0:Ca[0])==null?void 0:Ra.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"resourceOrigin",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D44\u6E90\u7C7B\u578B"}]},kn.createElement(E.ZP.Group,{className:z.radioform},kn.createElement(E.ZP,{value:1},"\u9009\u62E9\u5E73\u53F0\u8D44\u6E90"),((bi=(to=Pi==null?void 0:Pi.label)==null?void 0:to[0])==null?void 0:bi.name)!=="\u9898\u96C6"&&kn.createElement(E.ZP,{value:2},"\u4E0A\u4F20\u6587\u4EF6"),((Ei=(Yi=Pi==null?void 0:Pi.label)==null?void 0:Yi[0])==null?void 0:Ei.name)!=="\u9898\u96C6"&&kn.createElement(E.ZP,{value:3},"\u5916\u94FE"))),(Pi==null?void 0:Pi.resourceOrigin)===1&&((kr=(Ci=Pi==null?void 0:Pi.label)==null?void 0:Ci[0])==null?void 0:kr.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:""},kn.createElement(ue.ZP,{onClick:()=>{var jn,$i,va,ia,$a,La,Pa,co;(($i=(jn=Pi==null?void 0:Pi.label)==null?void 0:jn[0])==null?void 0:$i.name)==="\u9898\u96C6"?(pl(!0),Ms(Vo),zo()):((ia=(va=Pi==null?void 0:Pi.label)==null?void 0:va[0])==null?void 0:ia.name)==="\u8BD5\u9898"?Fs(!0):(fi(!0),Ri(((La=($a=Pi==null?void 0:Pi.label)==null?void 0:$a[0])==null?void 0:La.name)==="\u89C6\u9891"?"2":((co=(Pa=Pi==null?void 0:Pi.label)==null?void 0:Pa[0])==null?void 0:co.name)==="\u8BD5\u5377"?"4":"1"))},type:"primary",style:{height:"40rem",lineHeight:"40rem",padding:"0rem 32rem",boxShadow:"none"}},((ma=(Zi=Pi==null?void 0:Pi.label)==null?void 0:Zi[0])==null?void 0:ma.name)==="\u9898\u96C6"?"\u9009\u62E9\u9898\u96C6":"\u9009\u62E9\u8D44\u6E90"),(hi==null?void 0:hi.length)>0&&kn.createElement("div",{style:{color:"#1B8565",marginTop:"5rem",fontSize:"16rem",display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.multiple,title:(ba=hi==null?void 0:hi[0])==null?void 0:ba.name},((ir=hi==null?void 0:hi[0])==null?void 0:ir.name)||Xi.getFieldValue("name")+"\uFF08"+((Ji=hi==null?void 0:hi[0])==null?void 0:Ji.question_count)+"\uFF09"),kn.createElement("i",{style:{fontSize:"16rem",cursor:"pointer",marginLeft:"10rem"},onClick:()=>{wa([])},className:"iconfont icon-shanchu12"})," "),(Vo==null?void 0:Vo.length)>0&&(Vo==null?void 0:Vo.map(jn=>kn.createElement("div",{style:{color:"#1B8565",marginTop:"5rem",fontSize:"16rem",display:"flex",alignItems:"center"}},kn.createElement("div",{className:z.multiple,title:jn==null?void 0:jn.name},jn==null?void 0:jn.name),kn.createElement("i",{style:{fontSize:"16rem",cursor:"pointer",marginLeft:"10rem"},onClick:()=>{fs(Vo==null?void 0:Vo.filter($i=>($i==null?void 0:$i.group_id)!==(jn==null?void 0:jn.group_id)))},className:"iconfont icon-shanchu12"})," ")))),(Pi==null?void 0:Pi.resourceOrigin)===2&&((no=(Va=Pi==null?void 0:Pi.label)==null?void 0:Va[0])==null?void 0:no.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"file",shouldUpdate:!0},kn.createElement(Oe.default,Dr({},Rl),kn.createElement(ue.ZP,{type:"primary",style:{height:"40rem",lineHeight:"40rem",padding:"0rem 32rem",boxShadow:"none"}},"\u4E0A\u4F20\u6587\u4EF6"))),(Pi==null?void 0:Pi.resourceOrigin)===3&&((xi=(Ya=Pi==null?void 0:Pi.label)==null?void 0:Ya[0])==null?void 0:xi.item_type)===2&&kn.createElement(Me.default.Item,{label:" ",name:"url"},kn.createElement(Me.default.Item,{label:"\u5916\u94FE\u94FE\u63A5",name:"url",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5916\u94FE"}]},kn.createElement(he.default,{style:{height:"40rem"}}))),kn.createElement(Me.default.Item,{label:"\u8282\u70B9\u6807\u7B7E",name:"tag"},kn.createElement(Ne,{containerRef:Ar,type:3,pathsDetail:un,showmodal:!0,dataSources:[]})))),kn.createElement("div",{className:z.addmodal,style:{marginTop:"20rem"}},kn.createElement("div",{className:z.title},kn.createElement("span",null,"\u8282\u70B9\u5173\u7CFB"),kn.createElement("span",{style:{cursor:"pointer"},onClick:()=>{Bl()}},"\u5173\u7CFB\u8BBE\u7F6E")),kn.createElement("div",{className:z.gxcoent,style:{padding:"20rem 25rem"}},kn.createElement("div",{className:z.gxtitle},kn.createElement("div",{className:z.Colortitle,style:{background:"#6236ff"}}),kn.createElement("div",null,"\u88AB\u5305\u542B\uFF08",(pa=ha.bh)==null?void 0:pa.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(_a=ha==null?void 0:ha.bh)==null?void 0:_a.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#6236ff"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.bh)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({bh:va,hx:ha==null?void 0:ha.hx,qx:ha==null?void 0:ha.qx,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#24A881"}}),kn.createElement("div",null,"\u524D\u5E8F\uFF08",(oa=ha.qx)==null?void 0:oa.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(Wa=ha==null?void 0:ha.qx)==null?void 0:Wa.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#24A881"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.qx)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:va,bh:ha==null?void 0:ha.bh,hx:ha==null?void 0:ha.hx,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#EC8657"}}),kn.createElement("div",null,"\u540E\u5E8F\uFF08",(Ka=ha.hx)==null?void 0:Ka.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(fo=ha==null?void 0:ha.hx)==null?void 0:fo.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#EC8657"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.hx)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:ha==null?void 0:ha.qx,bh:ha==null?void 0:ha.bh,hx:va,gl:ha==null?void 0:ha.gl})}})))),kn.createElement("div",{className:z.gxtitle,style:{marginTop:"30rem"}},kn.createElement("div",{className:z.Colortitle,style:{background:"#497DFF"}}),kn.createElement("div",null,"\u5173\u8054\uFF08",(Eo=ha.gl)==null?void 0:Eo.length,"\uFF09")),kn.createElement("div",{className:z.gxbody},(io=ha==null?void 0:ha.gl)==null?void 0:io.map(jn=>kn.createElement("div",{className:z.tag,style:{background:"#497DFF"}},kn.createElement("span",{style:{marginRight:"10rem"}},jn==null?void 0:jn.name)," ",kn.createElement(ne.Z,{onClick:()=>{var $i;let va=($i=ha==null?void 0:ha.gl)==null?void 0:$i.filter(ia=>ia.uuid!==jn.uuid);ts({qx:ha==null?void 0:ha.qx,hx:ha==null?void 0:ha.hx,bh:ha==null?void 0:ha.bh,gl:va})}}))))))),kn.createElement(fe.default,{title:"\u9009\u62E9\u9898\u96C6",open:Es,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onOk:()=>{if((qs==null?void 0:qs.length)<=0){pe.ZP.info("\u8BF7\u9009\u62E9\u9898\u96C6");return}fs(qs),pl(!1)},onCancel:()=>{Ms([]),pl(!1)}},kn.createElement(b.default,{checkable:!0,style:{margin:20,maxHeight:400,overflow:"auto"},blockNode:!0,checkStrictly:!0,checkedKeys:qs==null?void 0:qs.map(jn=>jn==null?void 0:jn.group_id),onCheck:(jn,$i)=>{Ms($i==null?void 0:$i.checkedNodes)},treeData:Cs,fieldNames:{key:"group_id",title:"name"},titleRender:jn=>kn.createElement("div",{style:{display:"flex",alignItems:"center",paddingRight:"14px"}},kn.createElement(ae.Z,{title:jn==null?void 0:jn.name},kn.createElement("div",{className:z.multiple,style:{display:"flex",alignItems:"center",maxWidth:"80%"}},kn.createElement("img",{src:vn,style:{marginRight:10}}),kn.createElement("span",null,jn==null?void 0:jn.name))),kn.createElement("div",{style:{padding:"0rem 10rem",fontSize:"12rem",background:"#F6F7F9",color:"#909D99",borderRadius:"20rem"}},"\u8BD5\u9898\u6570 ",jn==null?void 0:jn.count))})),kn.createElement(fe.default,{title:"\u9009\u62E9\u5E73\u53F0\u8D44\u6E90",open:zr,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onOk:()=>{fi(!1)},onCancel:()=>{fi(!1),Oo!==3&&wa([]),Ri("1")}},kn.createElement("div",{className:z.settingmodal},kn.createElement(ie.default,{className:z.Tabs,activeKey:Sa,destroyInactiveTabPane:!0,onChange:jn=>{Ri(jn)},type:"card",items:((Ba=(ao=Pi==null?void 0:Pi.label)==null?void 0:ao[0])==null?void 0:Ba.name)==="\u89C6\u9891"?el.filter(jn=>(jn==null?void 0:jn.label)==="\u89C6\u9891"):((Wo=(Fa=Pi==null?void 0:Pi.label)==null?void 0:Fa[0])==null?void 0:Wo.name)==="\u8BD5\u5377"?el.filter(jn=>(jn==null?void 0:jn.label)==="\u8BD5\u5377"):el.filter(jn=>(jn==null?void 0:jn.label)!=="\u89C6\u9891")}))),ul&&kn.createElement(ci,{setScoreShow:Fs,isshixuns:xa,ScoreShow:ul,listitem:hi==null?void 0:hi[0],isloadings:ks,onOk:(jn,$i,va,ia)=>or(void 0,null,function*(){bs(!0);let $a={item_bank_ids:jn,shixun_ids:$i,name:Xi.getFieldValue("name")+"\uFF08"+(parseInt(jn.length)+parseInt($i.length))+"\u9053\uFF09",subject_id:Ta==null?void 0:Ta.pathId};bs(!1);let La=yield(0,ge.ZP)("/api/knowledge/v2/create_by_knowledge.json",{method:"post",body:$a});if((La==null?void 0:La.status)===0){Fs(!1);let Pa={container_id:La==null?void 0:La.container_id,container_type:La==null?void 0:La.container_type,url:La==null?void 0:La.resourceUrl,question_count:La==null?void 0:La.question_count,questionIdArr:jn,shixun_ids:$i};wa([Pa])}})}),kn.createElement(yt.Z,{close:!0,style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:Ds==null?void 0:Ds.url,type:Ds==null?void 0:Ds.file_type,disabledDownload:!0,onClose:()=>_s({})}),kn.createElement(fe.default,{title:"\u5173\u7CFB\u8BBE\u7F6E",open:Qa,destroyOnClose:!0,centered:!0,getContainer:()=>Ar.current,width:"1200rem",onCancel:()=>{Ja(!1);let jn=JSON.parse(sessionStorage.getItem("typesdatajson"));ts(jn)},onOk:()=>{let jn=JSON.parse(sessionStorage.getItem("typesdatajsoncopy"));ts(jn),Ja(!1)}},kn.createElement("div",{className:z.settingmodal},kn.createElement(ie.default,{className:z.Tabs,activeKey:hs,destroyInactiveTabPane:!0,onChange:jn=>{yl(jn)},type:"card",items:zs})))))};var ri=(0,Ye.connect)(({pathsDetail:un,user:Vn,loading:Sn,globalSetting:Rr})=>({pathsDetail:un,user:Vn,globalSetting:Rr,loading:Sn.models.index}))(Hr)},77722:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return he}});var te={noData:"noData___Luxe1"},Ye=Ce(14006),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(25399),ve=Ce(61485),ue=Ce(59301),he=({style:le={},className:ae,text:ie="\u6682\u65E0\u6570\u636E",textColor:me="#666",buttonText:E,buttonTexttow:b,ontwoClick:z,onClick:ne})=>ue.createElement("div",{className:pe()(te.noData,ae),style:le},ue.createElement("img",{src:Ye}),!!ie&&ue.createElement("span",{style:{color:me}},ie),ue.createElement("span",{style:{display:"flex"}},!!E&&ue.createElement("div",{onClick:ne},E),!!b&&ue.createElement("div",{style:{marginLeft:"20rem",display:"flex",alignItems:"center",justifyContent:"center"},onClick:z},b," ",ue.createElement(Oe.Z,{title:"\u6839\u636E\u65E7\u7248\u77E5\u8BC6\u56FE\u8C31\u5185\u5BB9\u6216\u8BFE\u7A0B\u7AE0\u8282\u53CA\u8D44\u6E90\u5185\u5BB9\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u56FE\u8C31"},ue.createElement(ve.Z,{style:{color:"#fff",marginLeft:5,marginTop:0}})))))},67195:function(Yn,en,Ce){"use strict";Ce.d(en,{BU:function(){return Ye},Dj:function(){return te},gH:function(){return Me},vp:function(){return pe}});function te(Oe){try{Oe.mozRequestFullScreen?Oe.mozRequestFullScreen():Oe.webkitRequestFullScreen&&Oe.webkitRequestFullScreen()}catch(ve){console.log(ve,":e")}}function Ye(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Me=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function pe(){var Oe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ve=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Oe),window.isFullScreen?window.isFullScreen:Oe!=null}},63392:function(Yn,en,Ce){"use strict";Ce.d(en,{U:function(){return he}});var te=Ce(59301),Ye=Object.defineProperty,Me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ve=(le,ae,ie)=>ae in le?Ye(le,ae,{enumerable:!0,configurable:!0,writable:!0,value:ie}):le[ae]=ie,ue=(le,ae)=>{for(var ie in ae||(ae={}))pe.call(ae,ie)&&ve(le,ie,ae[ie]);if(Me)for(var ie of Me(ae))Oe.call(ae,ie)&&ve(le,ie,ae[ie]);return le},fe=(le,ae,ie)=>new Promise((me,E)=>{var b=oe=>{try{ne(ie.next(oe))}catch(se){E(se)}},z=oe=>{try{ne(ie.throw(oe))}catch(se){E(se)}},ne=oe=>oe.done?me(oe.value):Promise.resolve(oe.value).then(b,z);ne((ie=ie.apply(le,ae)).next())});function he(le,ae){const[ie,me]=(0,te.useState)(ae),[E,b]=(0,te.useState)(!1),[z,ne]=(0,te.useState)();return[ie,E,(se,de=!1)=>fe(this,null,function*(){const a=de?ae:ue(ue({},ie),se);b(!0),me(a);const x=yield le(a);return b(!1),ne(x),x}),z,ne]}},20047:function(Yn,en,Ce){"use strict";Ce.d(en,{AL:function(){return a},Iy:function(){return ae},Qv:function(){return E},ez:function(){return de},jb:function(){return ie}});var te=Ce(32834),Ye=Ce.n(te),Me=Ce(11690),pe=Ce.n(Me);let Oe=1;function ve(_e,ye){const be=_e.match(/^(\s+)(?:```)/);if(be===null)return ye;const Se=be[1];return ye.split(` `).map(Be=>{const Ae=Be.match(/^\s+/);if(Ae===null)return Be;const[we]=Ae;return we.length>=Se.length?Be.slice(Se.length):Be}).join(` `)}let ue=[],fe=["
    "];const he=new(Ye()).Renderer,le=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ae(){ue.length=0,fe=["
      "]}const ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function me(_e,ye,be,Se){if(ye>=_e.length||_e[ye].level<=be)return ye;var Be=_e[ye];Se.push("
    • "+Be.text+""),ye++;var Ae=[];return ye=me(_e,ye,Be.level,Ae),Ae.length>0&&(Se.push("
        "),Ae.forEach(function(we){Se.push(we)}),Se.push("
      ")),Se.push("
    • "),ye=me(_e,ye,be,Se),ye}function E(){return me(ue,0,0,fe),fe.push("
    "),fe.join("")}const b={heading(_e){const ye=le.exec(_e);if(Oe+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(_e){const ye=this.rules.block.fences.exec(_e);if(ye){const be=ye[0];let Se=ve(be,ye[3]||"");const Be=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(Be)>=0){const Ae=oe(),we=Se;Se=Ae,se[Ae]={type:"block",expression:we}}return{type:"code",raw:be,lang:Be,text:Se}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ne=0;const oe=()=>`__special_katext_id_${ne++}__`;let se={};function de(){return se}function a(){ne=0,se={}}function x(_e){return _e=_e.replace(z,(ye,be)=>{const Se=oe();return se[Se]={type:"inline",expression:be},Se}),_e}const re=he.listitem;he.listitem=function(_e){return re(x(_e))};const ce=he.paragraph;he.paragraph=function(_e){return ce(x(_e))};const ge=he.tablecell;he.tablecell=function(_e,ye){return ge(x(_e),ye)},he.code=function(_e,ye,be){const Se=(ye||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`

    ${_e}

    `:`
    ${be?_e:(0,Me.escape)(_e,!0)}
    `:'
    '+(be?_e:(0,Me.escape)(_e,!0))+"
    "},he.heading=function(_e,ye,be){let Se=this.options.headerPrefix+be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ue.push({anchor:Se,level:ye,text:_e}),"'+_e+""},Ye().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ye().use({tokenizer:b,renderer:he}),en.ZP=Ye()},72790:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ar}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(Ie,je){return Ie.__proto__=je,Ie},Object.assign=Object.assign||function(Ie){if(Ie==null)throw new TypeError("Cannot convert undefined or null to object");let je=Object(Ie);for(let Je=1;Je ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","error",Je),Oe.ENABLE_ERROR&&(console.error?console.error(Je):console.warn?console.warn(Je):console.log(Je))}static i(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","info",Je),Oe.ENABLE_INFO&&(console.info?console.info(Je):console.log(Je))}static w(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","warn",Je),Oe.ENABLE_WARN&&(console.warn?console.warn(Je):console.log(Je))}static d(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","debug",Je),Oe.ENABLE_DEBUG&&(console.debug?console.debug(Je):console.log(Je))}static v(Ie,je){(!Ie||Oe.FORCE_GLOBAL_TAG)&&(Ie=Oe.GLOBAL_TAG);let Je=`[${Ie}] > ${je}`;Oe.ENABLE_CALLBACK&&Oe.emitter.emit("log","verbose",Je),Oe.ENABLE_VERBOSE&&console.log(Je)}}Oe.GLOBAL_TAG="flv.js",Oe.FORCE_GLOBAL_TAG=!1,Oe.ENABLE_ERROR=!0,Oe.ENABLE_INFO=!0,Oe.ENABLE_WARN=!0,Oe.ENABLE_DEBUG=!0,Oe.ENABLE_VERBOSE=!0,Oe.ENABLE_CALLBACK=!1,Oe.emitter=new(pe());var ve=Oe;class ue{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(Ie){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Ie,this._totalBytes+=Ie):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Ie,this._totalBytes+=Ie):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Ie,this._totalBytes+=Ie,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let Ie=(this._now()-this._lastCheckpoint)/1e3;return Ie==0&&(Ie=1),this._intervalBytes/Ie/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let Ie=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Ie/1024}}var fe=ue;class he{constructor(Ie){this._message=Ie}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class le extends he{constructor(Ie){super(Ie)}get name(){return"IllegalStateException"}}class ae extends he{constructor(Ie){super(Ie)}get name(){return"InvalidArgumentException"}}class ie extends he{constructor(Ie){super(Ie)}get name(){return"NotImplementedException"}}const me={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},E={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class b{constructor(Ie){this._type=Ie||"undefined",this._status=me.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=me.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===me.kConnecting||this._status===me.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(Ie){this._onContentLengthKnown=Ie}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(Ie){this._onURLRedirect=Ie}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ie){this._onDataArrival=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onComplete(){return this._onComplete}set onComplete(Ie){this._onComplete=Ie}open(Ie,je){throw new ie("Unimplemented abstract function!")}abort(){throw new ie("Unimplemented abstract function!")}}let z={};function ne(){let dn=self.navigator.userAgent.toLowerCase(),Ie=/(edge)\/([\w.]+)/.exec(dn)||/(opr)[\/]([\w.]+)/.exec(dn)||/(chrome)[ \/]([\w.]+)/.exec(dn)||/(iemobile)[\/]([\w.]+)/.exec(dn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(dn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(dn)||/(webkit)[ \/]([\w.]+)/.exec(dn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(dn)||/(msie) ([\w.]+)/.exec(dn)||dn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(dn)||dn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(dn)||[],je=/(ipad)/.exec(dn)||/(ipod)/.exec(dn)||/(windows phone)/.exec(dn)||/(iphone)/.exec(dn)||/(kindle)/.exec(dn)||/(android)/.exec(dn)||/(windows)/.exec(dn)||/(mac)/.exec(dn)||/(linux)/.exec(dn)||/(cros)/.exec(dn)||[],Je={browser:Ie[5]||Ie[3]||Ie[1]||"",version:Ie[2]||Ie[4]||"0",majorVersion:Ie[4]||Ie[2]||"0",platform:je[0]||""},ht={};if(Je.browser){ht[Je.browser]=!0;let Et=Je.majorVersion.split(".");ht.version={major:parseInt(Je.majorVersion,10),string:Je.version},Et.length>1&&(ht.version.minor=parseInt(Et[1],10)),Et.length>2&&(ht.version.build=parseInt(Et[2],10))}if(Je.platform&&(ht[Je.platform]=!0),(ht.chrome||ht.opr||ht.safari)&&(ht.webkit=!0),ht.rv||ht.iemobile){ht.rv&&delete ht.rv;let Et="msie";Je.browser=Et,ht[Et]=!0}if(ht.edge){delete ht.edge;let Et="msedge";Je.browser=Et,ht[Et]=!0}if(ht.opr){let Et="opera";Je.browser=Et,ht[Et]=!0}if(ht.safari&&ht.android){let Et="android";Je.browser=Et,ht[Et]=!0}ht.name=Je.browser,ht.platform=Je.platform;for(let Et in z)z.hasOwnProperty(Et)&&delete z[Et];Object.assign(z,ht)}ne();var oe=z;class se extends b{static isSupported(){try{let Ie=oe.msedge&&oe.version.minor>=15048,je=oe.msedge?Ie:!0;return self.fetch&&self.ReadableStream&&je}catch(Ie){return!1}}constructor(Ie,je){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=Ie,this._config=je,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(Ie,je){this._dataSource=Ie,this._range=je;let Je=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(Je=Ie.redirectedURL);let ht=this._seekHandler.getConfig(Je,je),Et=new self.Headers;if(typeof ht.headers=="object"){let fn=ht.headers;for(let sn in fn)fn.hasOwnProperty(sn)&&Et.append(sn,fn[sn])}let Qt={method:"GET",headers:Et,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let fn in this._config.headers)Et.append(fn,this._config.headers[fn]);Ie.cors===!1&&(Qt.mode="same-origin"),Ie.withCredentials&&(Qt.credentials="include"),Ie.referrerPolicy&&(Qt.referrerPolicy=Ie.referrerPolicy),this._status=me.kConnecting,self.fetch(ht.url,Qt).then(fn=>{if(this._requestAbort){this._requestAbort=!1,this._status=me.kIdle;return}if(fn.ok&&fn.status>=200&&fn.status<=299){if(fn.url!==ht.url&&this._onURLRedirect){let mn=this._seekHandler.removeURLParameters(fn.url);this._onURLRedirect(mn)}let sn=fn.headers.get("Content-Length");return sn!=null&&(this._contentLength=parseInt(sn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,fn.body.getReader())}else if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:fn.status,msg:fn.statusText});else throw new he("FetchStreamLoader: Http code invalid, "+fn.status+" "+fn.statusText)}).catch(fn=>{if(this._status=me.kError,this._onError)this._onError(E.EXCEPTION,{code:-1,msg:fn.message});else throw fn})}abort(){this._requestAbort=!0}_pump(Ie){return Ie.read().then(je=>{if(je.done)if(this._contentLength!==null&&this._receivedLength{if(je.code===11&&oe.msedge)return;this._status=me.kError;let Je=0,ht=null;if((je.code===19||je.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new he("MozChunkedLoader: Http code invalid, "+je.status+" "+je.statusText);else this._status=me.kBuffering}}_onProgress(Ie){if(this._status===me.kError)return;this._contentLength===null&&Ie.total!==null&&Ie.total!==0&&(this._contentLength=Ie.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let je=Ie.target.response,Je=this._range.from+this._receivedLength;this._receivedLength+=je.byteLength,this._onDataArrival&&this._onDataArrival(je,Je,this._receivedLength)}_onLoadEnd(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===me.kError)return;this._status=me.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(Ie){this._status=me.kError;let je=0,Je=null;if(this._contentLength&&Ie.loaded=200&&je.status<=299){if(this._status=LoaderStatus.kBuffering,je.responseURL!=null){let ht=this._seekHandler.removeURLParameters(je.responseURL);je.responseURL!==this._currentRequestURL&&ht!==this._currentRedirectedURL&&(this._currentRedirectedURL=ht,this._onURLRedirect&&this._onURLRedirect(ht))}let Je=je.getResponseHeader("Content-Length");if(Je!=null&&this._contentLength==null){let ht=parseInt(Je);ht>0&&(this._contentLength=ht,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+je.status+" "+je.statusText);else if(je.readyState===3&&je.status>=200&&je.status<=299){this._status=LoaderStatus.kBuffering;let Je=je.response;this._reader.readAsArrayBuffer(Je)}}_xhrOnError(Ie){this._status=LoaderStatus.kError;let je=LoaderErrors.EXCEPTION,Je={code:-1,msg:Ie.constructor.name+" "+Ie.type};if(this._onError)this._onError(je,Je);else throw new RuntimeException(Je.msg)}_msrOnProgress(Ie){let Je=Ie.target.result;if(Je==null){this._doReconnectIfNeeded();return}let ht=Je.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Je.byteLength;let Et=this._totalRange.from+this._receivedLength;this._receivedLength+=ht.byteLength,this._onDataArrival&&this._onDataArrival(ht,Et,this._receivedLength),Je.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Et+ht.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Je=this._range.from+this._contentLength-1),this._currentRequestRange={from:je,to:Je},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(Ie,je){this._lastTimeLoaded=0;let Je=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Je=this._currentRedirectedURL:Ie.redirectedURL!=null&&(Je=Ie.redirectedURL));let ht=this._seekHandler.getConfig(Je,je);this._currentRequestURL=ht.url;let Et=this._xhr=new XMLHttpRequest;if(Et.open("GET",ht.url,!0),Et.responseType="arraybuffer",Et.onreadystatechange=this._onReadyStateChange.bind(this),Et.onprogress=this._onProgress.bind(this),Et.onload=this._onLoad.bind(this),Et.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(Et.withCredentials=!0),typeof ht.headers=="object"){let Qt=ht.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}if(typeof this._config.headers=="object"){let Qt=this._config.headers;for(let fn in Qt)Qt.hasOwnProperty(fn)&&Et.setRequestHeader(fn,Qt[fn])}Et.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=me.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(Ie){let je=Ie.target;if(je.readyState===2){if(je.responseURL!=null){let Je=this._seekHandler.removeURLParameters(je.responseURL);je.responseURL!==this._currentRequestURL&&Je!==this._currentRedirectedURL&&(this._currentRedirectedURL=Je,this._onURLRedirect&&this._onURLRedirect(Je))}if(je.status>=200&&je.status<=299){if(this._waitForTotalLength)return;this._status=me.kBuffering}else if(this._status=me.kError,this._onError)this._onError(E.HTTP_STATUS_CODE_INVALID,{code:je.status,msg:je.statusText});else throw new he("RangeLoader: Http code invalid, "+je.status+" "+je.statusText)}}_onProgress(Ie){if(this._status===me.kError)return;if(this._contentLength===null){let Je=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Je=!0;let ht=Ie.total;this._internalAbort(),ht!=null&ht!==0&&(this._totalLength=ht)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Je){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let je=Ie.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ie.loaded,this._speedSampler.addBytes(je)}_normalizeSpeed(Ie){let je=this._chunkSizeKBList,Je=je.length-1,ht=0,Et=0,Qt=Je;if(Ie=je[ht]&&Ie=3&&(je=this._speedSampler.currentKBps)),je!==0){let Qt=this._normalizeSpeed(je);this._currentSpeedNormalized!==Qt&&(this._currentSpeedNormalized=Qt,this._currentChunkSizeKB=Qt)}let Je=Ie.target.response,ht=this._range.from+this._receivedLength;this._receivedLength+=Je.byteLength;let Et=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(je.result)},je.readAsArrayBuffer(Ie.data)}else{this._status=me.kError;let je={code:-1,msg:"Unsupported WebSocket message type: "+Ie.data.constructor.name};if(this._onError)this._onError(E.EXCEPTION,je);else throw new he(je.msg)}}_dispatchArrayBuffer(Ie){let je=Ie,Je=this._receivedLength;this._receivedLength+=je.byteLength,this._onDataArrival&&this._onDataArrival(je,Je,this._receivedLength)}_onWebSocketError(Ie){this._status=me.kError;let je={code:Ie.code,msg:Ie.message};if(this._onError)this._onError(E.EXCEPTION,je);else throw new he(je.msg)}}var be=ye;class Se{constructor(Ie){this._zeroStart=Ie||!1}getConfig(Ie,je){let Je={};if(je.from!==0||je.to!==-1){let ht;je.to!==-1?ht=`bytes=${je.from.toString()}-${je.to.toString()}`:ht=`bytes=${je.from.toString()}-`,Je.Range=ht}else this._zeroStart&&(Je.Range="bytes=0-");return{url:Ie,headers:Je}}removeURLParameters(Ie){return Ie}}var Be=Se;class Ae{constructor(Ie,je){this._startName=Ie,this._endName=je}getConfig(Ie,je){let Je=Ie;if(je.from!==0||je.to!==-1){let ht=!0;Je.indexOf("?")===-1&&(Je+="?",ht=!1),ht&&(Je+="&"),Je+=`${this._startName}=${je.from.toString()}`,je.to!==-1&&(Je+=`&${this._endName}=${je.to.toString()}`)}return{url:Je,headers:{}}}removeURLParameters(Ie){let je=Ie.split("?")[0],Je,ht=Ie.indexOf("?");ht!==-1&&(Je=Ie.substring(ht+1));let Et="";if(Je!=null&&Je.length>0){let Qt=Je.split("&");for(let fn=0;fn0;sn[0]!==this._startName&&sn[0]!==this._endName&&(mn&&(Et+="&"),Et+=Qt[fn])}}return Et.length===0?je:je+"?"+Et}}var we=Ae;class Ue{constructor(Ie,je,Je){this.TAG="IOController",this._config=je,this._extraData=Je,this._stashInitialSize=1024*384,je.stashInitialSize!=null&&je.stashInitialSize>0&&(this._stashInitialSize=je.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,je.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Ie,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Ie.url),this._refTotalLength=Ie.filesize?Ie.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new fe,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(Ie){this._extraData=Ie}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ie){this._onDataArrival=Ie}get onSeeked(){return this._onSeeked}set onSeeked(Ie){this._onSeeked=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onComplete(){return this._onComplete}set onComplete(Ie){this._onComplete=Ie}get onRedirect(){return this._onRedirect}set onRedirect(Ie){this._onRedirect=Ie}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(Ie){this._onRecoveredEarlyEof=Ie}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===_e?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let Ie=this._config;if(Ie.seekType==="range")this._seekHandler=new Be(this._config.rangeLoadZeroStart);else if(Ie.seekType==="param"){let je=Ie.seekParamStart||"bstart",Je=Ie.seekParamEnd||"bend";this._seekHandler=new we(je,Je)}else if(Ie.seekType==="custom"){if(typeof Ie.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Ie.customSeekHandler}else throw new ae(`Invalid seekType in config: ${Ie.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=be;else if(de.isSupported())this._loaderClass=de;else if(x.isSupported())this._loaderClass=x;else if(_e.isSupported())this._loaderClass=_e;else throw new he("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(Ie){this._currentRange={from:0,to:-1},Ie&&(this._currentRange.from=Ie),this._speedSampler.reset(),Ie||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let Ie=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Ie,!0)}}seek(Ie){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Ie,!0)}_internalSeek(Ie,je){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(je),this._loader.destroy(),this._loader=null;let Je={from:Ie,to:-1};this._currentRange={from:Je.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Je),this._onSeeked&&this._onSeeked()}updateUrl(Ie){if(!Ie||typeof Ie!="string"||Ie.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=Ie}_expandBuffer(Ie){let je=this._stashSize;for(;je+1024*1024*10){let ht=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Je,0,je).set(ht,0)}this._stashBuffer=Je,this._bufferSize=je}_normalizeSpeed(Ie){let je=this._speedNormalizeList,Je=je.length-1,ht=0,Et=0,Qt=Je;if(Ie=je[ht]&&Ie=512&&Ie<=1024?je=Math.floor(Ie*1.5):je=Ie*2,je>8192&&(je=8192);let Je=je*1024+1024*1024*1;this._bufferSize0){let Qt=this._stashBuffer.slice(0,this._stashUsed),fn=this._dispatchChunks(Qt,this._stashByteStart);if(fn0){let sn=new Uint8Array(Qt,fn);Et.set(sn,0),this._stashUsed=sn.byteLength,this._stashByteStart+=fn}}else this._stashUsed=0,this._stashByteStart+=fn;this._stashUsed+Ie.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Ie.byteLength),Et=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Et.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength}else{let Qt=this._dispatchChunks(Ie,je);if(Qtthis._bufferSize&&(this._expandBuffer(fn),Et=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Et.set(new Uint8Array(Ie,Qt),0),this._stashUsed+=fn,this._stashByteStart=je+Qt}}}else if(this._stashUsed===0){let Et=this._dispatchChunks(Ie,je);if(Etthis._bufferSize&&this._expandBuffer(Qt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(Ie,Et),0),this._stashUsed+=Qt,this._stashByteStart=je+Et}}else{this._stashUsed+Ie.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Ie.byteLength);let Et=new Uint8Array(this._stashBuffer,0,this._bufferSize);Et.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength;let Qt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Qt0){let fn=new Uint8Array(this._stashBuffer,Qt);Et.set(fn,0)}this._stashUsed-=Qt,this._stashByteStart+=Qt}}_flushStashBuffer(Ie){if(this._stashUsed>0){let je=this._stashBuffer.slice(0,this._stashUsed),Je=this._dispatchChunks(je,this._stashByteStart),ht=je.byteLength-Je;if(Je0){let Et=new Uint8Array(this._stashBuffer,0,this._bufferSize),Qt=new Uint8Array(je,Je);Et.set(Qt,0),this._stashUsed=Qt.byteLength,this._stashByteStart+=Je}return 0}return this._stashUsed=0,this._stashByteStart=0,ht}return 0}_onLoaderComplete(Ie,je){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(Ie,je){switch(ve.e(this.TAG,`Loader error, code = ${je.code}, msg = ${je.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Ie=E.UNRECOVERABLE_EARLY_EOF),Ie){case E.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Je=this._currentRange.to+1;Je0){let je=ut.getConfig();Ie.emit("change",je)}}static registerListener(Ie){ut.emitter.addListener("change",Ie)}static removeListener(Ie){ut.emitter.removeListener("change",Ie)}static addLogListener(Ie){ve.emitter.addListener("log",Ie),ve.emitter.listenerCount("log")>0&&(ve.ENABLE_CALLBACK=!0,ut._notifyChange())}static removeLogListener(Ie){ve.emitter.removeListener("log",Ie),ve.emitter.listenerCount("log")===0&&(ve.ENABLE_CALLBACK=!1,ut._notifyChange())}}ut.emitter=new(pe());var Qe=ut;class rt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let Ie=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,je=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Ie&&je}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(Ie){if(this.keyframesIndex==null)return null;let je=this.keyframesIndex,Je=this._search(je.times,Ie);return{index:Je,milliseconds:je.times[Je],fileposition:je.filepositions[Je]}}_search(Ie,je){let Je=0,ht=Ie.length-1,Et=0,Qt=0,fn=ht;for(je=Ie[Et]&&je=128){Ie.push(String.fromCharCode(Et&65535)),Je+=2;continue}}}else if(je[Je]<240){if(At(je,Je,2)){let Et=(je[Je]&15)<<12|(je[Je+1]&63)<<6|je[Je+2]&63;if(Et>=2048&&(Et&63488)!==55296){Ie.push(String.fromCharCode(Et&65535)),Je+=3;continue}}}else if(je[Je]<248&&At(je,Je,3)){let Et=(je[Je]&7)<<18|(je[Je+1]&63)<<12|(je[Je+2]&63)<<6|je[Je+3]&63;if(Et>65536&&Et<1114112){Et-=65536,Ie.push(String.fromCharCode(Et>>>10|55296)),Ie.push(String.fromCharCode(Et&1023|56320)),Je+=4;continue}}}Ie.push("\uFFFD"),++Je}return Ie.join("")}var Ft=gt;let Ct=function(){let dn=new ArrayBuffer(2);return new DataView(dn).setInt16(0,256,!0),new Int16Array(dn)[0]===256}();class Yt{static parseScriptData(Ie,je,Je){let ht={};try{let Et=Yt.parseValue(Ie,je,Je),Qt=Yt.parseValue(Ie,je+Et.size,Je-Et.size);ht[Et.data]=Qt.data}catch(Et){ve.e("AMF",Et.toString())}return ht}static parseObject(Ie,je,Je){if(Je<3)throw new le("Data not enough when parse ScriptDataObject");let ht=Yt.parseString(Ie,je,Je),Et=Yt.parseValue(Ie,je+ht.size,Je-ht.size),Qt=Et.objectEnd;return{data:{name:ht.data,value:Et.data},size:ht.size+Et.size,objectEnd:Qt}}static parseVariable(Ie,je,Je){return Yt.parseObject(Ie,je,Je)}static parseString(Ie,je,Je){if(Je<2)throw new le("Data not enough when parse String");let Et=new DataView(Ie,je,Je).getUint16(0,!Ct),Qt;return Et>0?Qt=Ft(new Uint8Array(Ie,je+2,Et)):Qt="",{data:Qt,size:2+Et}}static parseLongString(Ie,je,Je){if(Je<4)throw new le("Data not enough when parse LongString");let Et=new DataView(Ie,je,Je).getUint32(0,!Ct),Qt;return Et>0?Qt=Ft(new Uint8Array(Ie,je+4,Et)):Qt="",{data:Qt,size:4+Et}}static parseDate(Ie,je,Je){if(Je<10)throw new le("Data size invalid when parse Date");let ht=new DataView(Ie,je,Je),Et=ht.getFloat64(0,!Ct),Qt=ht.getInt16(8,!Ct);return Et+=Qt*60*1e3,{data:new Date(Et),size:10}}static parseValue(Ie,je,Je){if(Je<1)throw new le("Data not enough when parse Value");let ht=new DataView(Ie,je,Je),Et=1,Qt=ht.getUint8(0),fn,sn=!1;try{switch(Qt){case 0:fn=ht.getFloat64(1,!Ct),Et+=8;break;case 1:{fn=!!ht.getUint8(1),Et+=1;break}case 2:{let mn=Yt.parseString(Ie,je+1,Je-1);fn=mn.data,Et+=mn.size;break}case 3:{fn={};let mn=0;for((ht.getUint32(Je-4,!Ct)&16777215)===9&&(mn=3);Et32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(Ie<=this._current_word_bits_left){let Qt=this._current_word>>>32-Ie;return this._current_word<<=Ie,this._current_word_bits_left-=Ie,Qt}let je=this._current_word_bits_left?this._current_word:0;je=je>>>32-this._current_word_bits_left;let Je=Ie-this._current_word_bits_left;this._fillCurrentWord();let ht=Math.min(Je,this._current_word_bits_left),Et=this._current_word>>>32-ht;return this._current_word<<=ht,this._current_word_bits_left-=ht,je=je<>>Ie)return this._current_word<<=Ie,this._current_word_bits_left-=Ie,Ie;return this._fillCurrentWord(),Ie+this._skipLeadingZero()}readUEG(){let Ie=this._skipLeadingZero();return this.readBits(Ie+1)-1}readSEG(){let Ie=this.readUEG();return Ie&1?Ie+1>>>1:-1*(Ie>>>1)}}var Fe=Xe;class Le{static _ebsp2rbsp(Ie){let je=Ie,Je=je.byteLength,ht=new Uint8Array(Je),Et=0;for(let Qt=0;Qt=2&&je[Qt]===3&&je[Qt-1]===0&&je[Qt-2]===0||(ht[Et]=je[Qt],Et++);return new Uint8Array(ht.buffer,0,Et)}static parseSPS(Ie){let je=Le._ebsp2rbsp(Ie),Je=new Fe(je);Je.readByte();let ht=Je.readByte();Je.readByte();let Et=Je.readByte();Je.readUEG();let Qt=Le.getProfileString(ht),fn=Le.getLevelString(Et),sn=1,mn=420,Zn=[0,420,422,444],tr=8;if((ht===100||ht===110||ht===122||ht===244||ht===44||ht===83||ht===86||ht===118||ht===128||ht===138||ht===144)&&(sn=Je.readUEG(),sn===3&&Je.readBits(1),sn<=3&&(mn=Zn[sn]),tr=Je.readUEG()+8,Je.readUEG(),Je.readBits(1),Je.readBool())){let Br=sn!==3?8:12;for(let Wr=0;Wr0&&Br<16?(It=Wr[Br-1],Dt=Jn[Br-1]):Br===255&&(It=Je.readByte()<<8|Je.readByte(),Dt=Je.readByte()<<8|Je.readByte())}if(Je.readBool()&&Je.readBool(),Je.readBool()&&(Je.readBits(4),Je.readBool()&&Je.readBits(24)),Je.readBool()&&(Je.readUEG(),Je.readUEG()),Je.readBool()){let Br=Je.readBits(32),Wr=Je.readBits(32);Zt=Je.readBool(),tn=Wr,Tn=Br*2,Bt=tn/Tn}}let dr=1;(It!==1||Dt!==1)&&(dr=It/Dt);let _r=0,Kr=0;if(sn===0)_r=1,Kr=2-Mt;else{let Br=sn===3?1:2,Wr=sn===1?2:1;_r=Br,Kr=Wr*(2-Mt)}let Sr=(Rt+1)*16,hr=(2-Mt)*((jt+1)*16);Sr-=(Kt+yt)*_r,hr-=(qt+vn)*Kr;let Mr=Math.ceil(Sr*dr);return Je.destroy(),Je=null,{profile_string:Qt,level_string:fn,bit_depth:tr,ref_frames:Gt,chroma_format:mn,chroma_format_string:Le.getChromaFormatString(mn),frame_rate:{fixed:Zt,fps:Bt,fps_den:Tn,fps_num:tn},sar_ratio:{width:It,height:Dt},codec_size:{width:Sr,height:hr},present_size:{width:Mr,height:hr}}}static _skipScalingList(Ie,je){let Je=8,ht=8,Et=0;for(let Qt=0;Qt>>8&255|(dn&255)<<8}function tt(dn){return(dn&4278190080)>>>24|(dn&16711680)>>>8|(dn&65280)<<8|(dn&255)<<24}function at(dn,Ie){return dn[Ie]<<24|dn[Ie+1]<<16|dn[Ie+2]<<8|dn[Ie+3]}class ot{constructor(Ie,je){this.TAG="FLVDemuxer",this._config=je,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Ie.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Ie.hasAudioTrack,this._hasVideo=Ie.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new pt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Je=new ArrayBuffer(2);return new DataView(Je).setInt16(0,256,!0),new Int16Array(Je)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(Ie){let je=new Uint8Array(Ie),Je={match:!1};if(je[0]!==70||je[1]!==76||je[2]!==86||je[3]!==1)return Je;let ht=(je[4]&4)>>>2!==0,Et=(je[4]&1)!==0,Qt=at(je,5);return Qt<9?Je:{match:!0,consumed:Qt,dataOffset:Qt,hasAudioTrack:ht,hasVideoTrack:Et}}bindDataSource(Ie){return Ie.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(Ie){this._onTrackMetadata=Ie}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(Ie){this._onMediaInfo=Ie}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(Ie){this._onMetaDataArrived=Ie}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(Ie){this._onScriptDataArrived=Ie}get onError(){return this._onError}set onError(Ie){this._onError=Ie}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(Ie){this._onDataAvailable=Ie}get timestampBase(){return this._timestampBase}set timestampBase(Ie){this._timestampBase=Ie}get overridedDuration(){return this._duration}set overridedDuration(Ie){this._durationOverrided=!0,this._duration=Ie,this._mediaInfo.duration=Ie}set overridedHasAudio(Ie){this._hasAudioFlagOverrided=!0,this._hasAudio=Ie,this._mediaInfo.hasAudio=Ie}set overridedHasVideo(Ie){this._hasVideoFlagOverrided=!0,this._hasVideo=Ie,this._mediaInfo.hasVideo=Ie}resetMediaInfo(){this._mediaInfo=new pt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(Ie,je){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new le("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Je=0,ht=this._littleEndian;if(je===0)if(Ie.byteLength>13)Je=ot.probe(Ie).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,je+Je!==this._dataOffset&&ve.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(Ie,Je).getUint32(0,!ht)!==0&&ve.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Je+=4);JeIe.byteLength)break;let Qt=Et.getUint8(0),fn=Et.getUint32(0,!ht)&16777215;if(Je+11+fn+4>Ie.byteLength)break;if(Qt!==8&&Qt!==9&&Qt!==18){ve.w(this.TAG,`Unsupported tag type ${Qt}, skipped`),Je+=11+fn+4;continue}let sn=Et.getUint8(4),mn=Et.getUint8(5),Zn=Et.getUint8(6),tr=Et.getUint8(7),Vt=Zn|mn<<8|sn<<16|tr<<24;(Et.getUint32(7,!ht)&16777215)!==0&&ve.w(this.TAG,"Meet tag which has StreamID != 0!");let Rt=Je+11;switch(Qt){case 8:this._parseAudioData(Ie,Rt,fn,Vt);break;case 9:this._parseVideoData(Ie,Rt,fn,Vt,je+Je);break;case 18:this._parseScriptData(Ie,Rt,fn);break}let jt=Et.getUint32(11+fn,!ht);jt!==11+fn&&ve.w(this.TAG,`Invalid PrevTagSize ${jt}`),Je+=11+fn+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Je}_parseScriptData(Ie,je,Je){let ht=zt.parseScriptData(Ie,je,Je);if(ht.hasOwnProperty("onMetaData")){if(ht.onMetaData==null||typeof ht.onMetaData!="object"){ve.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&ve.w(this.TAG,"Found another onMetaData tag!"),this._metadata=ht;let Et=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Et)),typeof Et.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Et.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Et.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Et.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Et.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Et.audiodatarate),typeof Et.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Et.videodatarate),typeof Et.width=="number"&&(this._mediaInfo.width=Et.width),typeof Et.height=="number"&&(this._mediaInfo.height=Et.height),typeof Et.duration=="number"){if(!this._durationOverrided){let Qt=Math.floor(Et.duration*this._timescale);this._duration=Qt,this._mediaInfo.duration=Qt}}else this._mediaInfo.duration=0;if(typeof Et.framerate=="number"){let Qt=Math.floor(Et.framerate*1e3);if(Qt>0){let fn=Qt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=fn,this._referenceFrameRate.fps_num=Qt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=fn}}if(typeof Et.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let Qt=Et.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Qt),Et.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Et,ve.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(ht).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},ht))}_parseKeyframesIndex(Ie){let je=[],Je=[];for(let ht=1;ht>>4;if(sn!==2&&sn!==10){this._onError(He.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+sn);return}let mn=0,Zn=(fn&12)>>>2;if(Zn>=0&&Zn<=4)mn=this._flvSoundRateTable[Zn];else{this._onError(He.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Zn);return}let tr=(fn&2)>>>1,Vt=fn&1,Gt=this._audioMetadata,Rt=this._audioTrack;if(Gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Gt=this._audioMetadata={},Gt.type="audio",Gt.id=Rt.id,Gt.timescale=this._timescale,Gt.duration=this._duration,Gt.audioSampleRate=mn,Gt.channelCount=Vt===0?1:2),sn===10){let jt=this._parseAACAudioData(Ie,je+1,Je-1);if(jt==null)return;if(jt.packetType===0){Gt.config&&ve.w(this.TAG,"Found another AudioSpecificConfig!");let Mt=jt.data;Gt.audioSampleRate=Mt.samplingRate,Gt.channelCount=Mt.channelCount,Gt.codec=Mt.codec,Gt.originalCodec=Mt.originalCodec,Gt.config=Mt.config,Gt.refSampleDuration=1024/Gt.audioSampleRate*Gt.timescale,ve.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Gt);let Kt=this._mediaInfo;Kt.audioCodec=Gt.originalCodec,Kt.audioSampleRate=Gt.audioSampleRate,Kt.audioChannelCount=Gt.channelCount,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)}else if(jt.packetType===1){let Mt=this._timestampBase+ht,Kt={unit:jt.data,length:jt.data.byteLength,dts:Mt,pts:Mt};Rt.samples.push(Kt),Rt.length+=jt.data.length}else ve.e(this.TAG,`Flv: Unsupported AAC data type ${jt.packetType}`)}else if(sn===2){if(!Gt.codec){let yt=this._parseMP3AudioData(Ie,je+1,Je-1,!0);if(yt==null)return;Gt.audioSampleRate=yt.samplingRate,Gt.channelCount=yt.channelCount,Gt.codec=yt.codec,Gt.originalCodec=yt.originalCodec,Gt.refSampleDuration=1152/Gt.audioSampleRate*Gt.timescale,ve.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Gt);let qt=this._mediaInfo;qt.audioCodec=Gt.codec,qt.audioSampleRate=Gt.audioSampleRate,qt.audioChannelCount=Gt.channelCount,qt.audioDataRate=yt.bitRate,qt.hasVideo?qt.videoCodec!=null&&(qt.mimeType='video/x-flv; codecs="'+qt.videoCodec+","+qt.audioCodec+'"'):qt.mimeType='video/x-flv; codecs="'+qt.audioCodec+'"',qt.isComplete()&&this._onMediaInfo(qt)}let jt=this._parseMP3AudioData(Ie,je+1,Je-1,!1);if(jt==null)return;let Mt=this._timestampBase+ht,Kt={unit:jt,length:jt.byteLength,dts:Mt,pts:Mt};Rt.samples.push(Kt),Rt.length+=jt.length}}_parseAACAudioData(Ie,je,Je){if(Je<=1){ve.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let ht={},Et=new Uint8Array(Ie,je,Je);return ht.packetType=Et[0],Et[0]===0?ht.data=this._parseAACAudioSpecificConfig(Ie,je+1,Je-1):ht.data=Et.subarray(1),ht}_parseAACAudioSpecificConfig(Ie,je,Je){let ht=new Uint8Array(Ie,je,Je),Et=null,Qt=0,fn=0,sn=null,mn=0,Zn=null;if(Qt=fn=ht[0]>>>3,mn=(ht[0]&7)<<1|ht[1]>>>7,mn<0||mn>=this._mpegSamplingRates.length){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let tr=this._mpegSamplingRates[mn],Vt=(ht[1]&120)>>>3;if(Vt<0||Vt>=8){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Qt===5&&(Zn=(ht[1]&7)<<1|ht[2]>>>7,sn=(ht[2]&124)>>>2);let Gt=self.navigator.userAgent.toLowerCase();return Gt.indexOf("firefox")!==-1?mn>=6?(Qt=5,Et=new Array(4),Zn=mn-3):(Qt=2,Et=new Array(2),Zn=mn):Gt.indexOf("android")!==-1?(Qt=2,Et=new Array(2),Zn=mn):(Qt=5,Zn=mn,Et=new Array(4),mn>=6?Zn=mn-3:Vt===1&&(Qt=2,Et=new Array(2),Zn=mn)),Et[0]=Qt<<3,Et[0]|=(mn&15)>>>1,Et[1]=(mn&15)<<7,Et[1]|=(Vt&15)<<3,Qt===5&&(Et[1]|=(Zn&15)>>>1,Et[2]=(Zn&1)<<7,Et[2]|=8,Et[3]=0),{config:Et,samplingRate:tr,channelCount:Vt,codec:"mp4a.40."+Qt,originalCodec:"mp4a.40."+fn}}_parseMP3AudioData(Ie,je,Je,ht){if(Je<4){ve.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Et=this._littleEndian,Qt=new Uint8Array(Ie,je,Je),fn=null;if(ht){if(Qt[0]!==255)return;let sn=Qt[1]>>>3&3,mn=(Qt[1]&6)>>1,Zn=(Qt[2]&240)>>>4,tr=(Qt[2]&12)>>>2,Gt=(Qt[3]>>>6&3)!==3?2:1,Rt=0,jt=0,Mt=34,Kt="mp3";switch(sn){case 0:Rt=this._mpegAudioV25SampleRateTable[tr];break;case 2:Rt=this._mpegAudioV20SampleRateTable[tr];break;case 3:Rt=this._mpegAudioV10SampleRateTable[tr];break}switch(mn){case 1:Mt=34,Zn>>4,sn=Qt&15;if(sn!==7){this._onError(He.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${sn}`);return}this._parseAVCVideoPacket(Ie,je+1,Je-1,ht,Et,fn)}_parseAVCVideoPacket(Ie,je,Je,ht,Et,Qt){if(Je<4){ve.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let fn=this._littleEndian,sn=new DataView(Ie,je,Je),mn=sn.getUint8(0),tr=(sn.getUint32(0,!fn)&16777215)<<8>>8;if(mn===0)this._parseAVCDecoderConfigurationRecord(Ie,je+4,Je-4);else if(mn===1)this._parseAVCVideoData(Ie,je+4,Je-4,ht,Et,Qt,tr);else if(mn!==2){this._onError(He.FORMAT_ERROR,`Flv: Invalid video packet type ${mn}`);return}}_parseAVCDecoderConfigurationRecord(Ie,je,Je){if(Je<7){ve.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let ht=this._videoMetadata,Et=this._videoTrack,Qt=this._littleEndian,fn=new DataView(Ie,je,Je);ht?typeof ht.avcc!="undefined"&&ve.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),ht=this._videoMetadata={},ht.type="video",ht.id=Et.id,ht.timescale=this._timescale,ht.duration=this._duration);let sn=fn.getUint8(0),mn=fn.getUint8(1),Zn=fn.getUint8(2),tr=fn.getUint8(3);if(sn!==1||mn===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(fn.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(He.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Vt=fn.getUint8(5)&31;if(Vt===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Vt>1&&ve.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Vt}`);let Gt=6;for(let jt=0;jt1&&ve.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Rt}`);Gt++;for(let jt=0;jt=Je){ve.w(this.TAG,`Malformed Nalu near timestamp ${Rt}, offset = ${Vt}, dataSize = ${Je}`);break}let Mt=mn.getUint32(Vt,!sn);if(Gt===3&&(Mt>>>=8),Mt>Je-Gt){ve.w(this.TAG,`Malformed Nalus near timestamp ${Rt}, NaluSize > DataSize!`);return}let Kt=mn.getUint8(Vt+Gt)&31;Kt===5&&(jt=!0);let yt=new Uint8Array(Ie,je+Vt,Gt+Mt),qt={type:Kt,data:yt};Zn.push(qt),tr+=yt.byteLength,Vt+=Gt+Mt}if(Zn.length){let Mt=this._videoTrack,Kt={units:Zn,length:tr,isKeyframe:jt,dts:Rt,cts:fn,pts:Rt+fn};jt&&(Kt.fileposition=Et),Mt.samples.push(Kt),Mt.length+=tr}}}var ct=ot;class lt{static init(){lt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let je in lt.types)lt.types.hasOwnProperty(je)&&(lt.types[je]=[je.charCodeAt(0),je.charCodeAt(1),je.charCodeAt(2),je.charCodeAt(3)]);let Ie=lt.constants={};Ie.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ie.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ie.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ie.STSC=Ie.STCO=Ie.STTS,Ie.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ie.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ie.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ie.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ie.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ie.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(Ie){let je=8,Je=null,ht=Array.prototype.slice.call(arguments,1),Et=ht.length;for(let fn=0;fn>>24&255,Je[1]=je>>>16&255,Je[2]=je>>>8&255,Je[3]=je&255,Je.set(Ie,4);let Qt=8;for(let fn=0;fn>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(Ie){return lt.box(lt.types.trak,lt.tkhd(Ie),lt.mdia(Ie))}static tkhd(Ie){let je=Ie.id,Je=Ie.duration,ht=Ie.presentWidth,Et=Ie.presentHeight;return lt.box(lt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,ht>>>8&255,ht&255,0,0,Et>>>8&255,Et&255,0,0]))}static mdia(Ie){return lt.box(lt.types.mdia,lt.mdhd(Ie),lt.hdlr(Ie),lt.minf(Ie))}static mdhd(Ie){let je=Ie.timescale,Je=Ie.duration;return lt.box(lt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,85,196,0,0]))}static hdlr(Ie){let je=null;return Ie.type==="audio"?je=lt.constants.HDLR_AUDIO:je=lt.constants.HDLR_VIDEO,lt.box(lt.types.hdlr,je)}static minf(Ie){let je=null;return Ie.type==="audio"?je=lt.box(lt.types.smhd,lt.constants.SMHD):je=lt.box(lt.types.vmhd,lt.constants.VMHD),lt.box(lt.types.minf,je,lt.dinf(),lt.stbl(Ie))}static dinf(){return lt.box(lt.types.dinf,lt.box(lt.types.dref,lt.constants.DREF))}static stbl(Ie){return lt.box(lt.types.stbl,lt.stsd(Ie),lt.box(lt.types.stts,lt.constants.STTS),lt.box(lt.types.stsc,lt.constants.STSC),lt.box(lt.types.stsz,lt.constants.STSZ),lt.box(lt.types.stco,lt.constants.STCO))}static stsd(Ie){return Ie.type==="audio"?Ie.codec==="mp3"?lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.mp3(Ie)):lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.mp4a(Ie)):lt.box(lt.types.stsd,lt.constants.STSD_PREFIX,lt.avc1(Ie))}static mp3(Ie){let je=Ie.channelCount,Je=Ie.audioSampleRate,ht=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,je,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return lt.box(lt.types[".mp3"],ht)}static mp4a(Ie){let je=Ie.channelCount,Je=Ie.audioSampleRate,ht=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,je,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return lt.box(lt.types.mp4a,ht,lt.esds(Ie))}static esds(Ie){let je=Ie.config||[],Je=je.length,ht=new Uint8Array([0,0,0,0,3,23+Je,0,1,0,4,15+Je,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Je]).concat(je).concat([6,1,2]));return lt.box(lt.types.esds,ht)}static avc1(Ie){let je=Ie.avcc,Je=Ie.codecWidth,ht=Ie.codecHeight,Et=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Je>>>8&255,Je&255,ht>>>8&255,ht&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return lt.box(lt.types.avc1,Et,lt.box(lt.types.avcC,je))}static mvex(Ie){return lt.box(lt.types.mvex,lt.trex(Ie))}static trex(Ie){let je=Ie.id,Je=new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return lt.box(lt.types.trex,Je)}static moof(Ie,je){return lt.box(lt.types.moof,lt.mfhd(Ie.sequenceNumber),lt.traf(Ie,je))}static mfhd(Ie){let je=new Uint8Array([0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255]);return lt.box(lt.types.mfhd,je)}static traf(Ie,je){let Je=Ie.id,ht=lt.box(lt.types.tfhd,new Uint8Array([0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255])),Et=lt.box(lt.types.tfdt,new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255])),Qt=lt.sdtp(Ie),fn=lt.trun(Ie,Qt.byteLength+16+16+8+16+8+8);return lt.box(lt.types.traf,ht,Et,fn,Qt)}static sdtp(Ie){let je=Ie.samples||[],Je=je.length,ht=new Uint8Array(4+Je);for(let Et=0;Et>>24&255,ht>>>16&255,ht>>>8&255,ht&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255],0);for(let fn=0;fn>>24&255,sn>>>16&255,sn>>>8&255,sn&255,mn>>>24&255,mn>>>16&255,mn>>>8&255,mn&255,Zn.isLeading<<2|Zn.dependsOn,Zn.isDependedOn<<6|Zn.hasRedundancy<<4|Zn.isNonSync,0,0,tr>>>24&255,tr>>>16&255,tr>>>8&255,tr&255],12+16*fn)}return lt.box(lt.types.trun,Qt)}static mdat(Ie){return lt.box(lt.types.mdat,Ie)}}lt.init();var mt=lt;class Lt{static getSilentFrame(Ie,je){if(Ie==="mp4a.40.2"){if(je===1)return new Uint8Array([0,200,0,128,35,128]);if(je===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(je===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(je===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(je===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(je===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(je===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(je===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(je===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var ft=Lt;class St{constructor(Ie,je,Je,ht,Et){this.dts=Ie,this.pts=je,this.duration=Je,this.originalDts=ht,this.isSyncPoint=Et,this.fileposition=null}}class nn{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(Ie){Ie.isSyncPoint=!0,this.syncPoints.push(Ie)}}class on{constructor(){this._list=[]}clear(){this._list=[]}appendArray(Ie){let je=this._list;Ie.length!==0&&(je.length>0&&Ie[0].originalDts=je[Et].dts&&Ieje[ht].lastSample.originalDts&&Ie=je[ht].lastSample.originalDts&&(ht===je.length-1||ht0&&(Et=this._searchNearestSegmentBefore(Je.originalBeginDts)+1),this._lastAppendLocation=Et,this._list.splice(Et,0,Je)}getLastSegmentBefore(Ie){let je=this._searchNearestSegmentBefore(Ie);return je>=0?this._list[je]:null}getLastSampleBefore(Ie){let je=this.getLastSegmentBefore(Ie);return je!=null?je.lastSample:null}getLastSyncPointBefore(Ie){let je=this._searchNearestSegmentBefore(Ie),Je=this._list[je].syncPoints;for(;Je.length===0&&je>0;)je--,Je=this._list[je].syncPoints;return Je.length>0?Je[Je.length-1]:null}}class xn{constructor(Ie){this.TAG="MP4Remuxer",this._config=Ie,this._isLive=Ie.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new yn("audio"),this._videoSegmentInfoList=new yn("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(oe.chrome&&(oe.version.major<50||oe.version.major===50&&oe.version.build<2661)),this._fillSilentAfterSeek=oe.msedge||oe.msie,this._mp3UseMpegAudio=!oe.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(Ie){return Ie.onDataAvailable=this.remux.bind(this),Ie.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(Ie){this._onInitSegment=Ie}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(Ie){this._onMediaSegment=Ie}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(Ie){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(Ie,je){if(!this._onMediaSegment)throw new le("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Ie,je),this._remuxVideo(je),this._remuxAudio(Ie)}_onTrackMetadataReceived(Ie,je){let Je=null,ht="mp4",Et=je.codec;if(Ie==="audio")this._audioMeta=je,je.codec==="mp3"&&this._mp3UseMpegAudio?(ht="mpeg",Et="",Je=new Uint8Array):Je=mt.generateInitSegment(je);else if(Ie==="video")this._videoMeta=je,Je=mt.generateInitSegment(je);else return;if(!this._onInitSegment)throw new le("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Ie,{type:Ie,data:Je.buffer,codec:Et,container:`${Ie}/${ht}`,mediaDuration:je.duration})}_calculateDtsBase(Ie,je){this._dtsBaseInited||(Ie.samples&&Ie.samples.length&&(this._audioDtsBase=Ie.samples[0].dts),je.samples&&je.samples.length&&(this._videoDtsBase=je.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let Ie=this._videoStashedLastSample,je=this._audioStashedLastSample,Je={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Ie!=null&&(Je.samples.push(Ie),Je.length=Ie.length);let ht={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};je!=null&&(ht.samples.push(je),ht.length=je.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Je,!0),this._remuxAudio(ht,!0)}_remuxAudio(Ie,je){if(this._audioMeta==null)return;let Je=Ie,ht=Je.samples,Et,Qt=-1,fn=-1,sn=-1,mn=this._audioMeta.refSampleDuration,Zn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,tr=this._dtsBaseInited&&this._audioNextDts===void 0,Vt=!1;if(!ht||ht.length===0||ht.length===1&&!je)return;let Gt=0,Rt=null,jt=0;Zn?(Gt=0,jt=Je.length):(Gt=8,jt=8+Je.length);let Mt=null;if(ht.length>1&&(Mt=ht.pop(),jt-=Mt.length),this._audioStashedLastSample!=null){let Dt=this._audioStashedLastSample;this._audioStashedLastSample=null,ht.unshift(Dt),jt+=Dt.length}Mt!=null&&(this._audioStashedLastSample=Mt);let Kt=ht[0].dts-this._dtsBase;if(this._audioNextDts)Et=Kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Et=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Vt=!0);else{let Dt=this._audioSegmentInfoList.getLastSampleBefore(Kt);if(Dt!=null){let Bt=Kt-(Dt.originalDts+Dt.duration);Bt<=3&&(Bt=0);let Zt=Dt.dts+Dt.duration+Bt;Et=Kt-Zt}else Et=0}if(Vt){let Dt=Kt-Et,Bt=this._videoSegmentInfoList.getLastSegmentBefore(Kt);if(Bt!=null&&Bt.beginDts=1?Fn=yt[yt.length-1].duration:Fn=Math.floor(mn);let dr=!1,_r=null;if(Fn>mn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!oe.safari){dr=!0;let Kr=Math.abs(Fn-mn),Sr=Math.ceil(Kr/mn),hr=Tn+mn;ve.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${Tn+Fn} ms, expected: ${Tn+Math.round(mn)} ms, delta: ${Math.round(Kr)} ms, generate: ${Sr} frames`);let Mr=ft.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Mr==null&&(ve.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Mr=Zt),_r=[];for(let Wr=0;Wr0){let Ur=_r[_r.length-1];Ur.duration=Jn-Ur.dts}let ii={dts:Jn,pts:Jn,cts:0,unit:Mr,size:Mr.byteLength,duration:0,originalDts:tn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};_r.push(ii),jt+=ii.size,hr+=mn}let Br=_r[_r.length-1];Br.duration=Tn+Fn-Br.dts,Fn=Math.round(mn)}yt.push({dts:Tn,pts:Tn,cts:0,unit:Bt.unit,size:Bt.unit.byteLength,duration:Fn,originalDts:tn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),dr&&yt.push.apply(yt,_r)}Zn?Rt=new Uint8Array(jt):(Rt=new Uint8Array(jt),Rt[0]=jt>>>24&255,Rt[1]=jt>>>16&255,Rt[2]=jt>>>8&255,Rt[3]=jt&255,Rt.set(mt.types.mdat,4));for(let Dt=0;Dt1&&(Gt=ht.pop(),Vt-=Gt.length),this._videoStashedLastSample!=null){let qt=this._videoStashedLastSample;this._videoStashedLastSample=null,ht.unshift(qt),Vt+=qt.length}Gt!=null&&(this._videoStashedLastSample=Gt);let Rt=ht[0].dts-this._dtsBase;if(this._videoNextDts)Et=Rt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Et=0;else{let qt=this._videoSegmentInfoList.getLastSampleBefore(Rt);if(qt!=null){let vn=Rt-(qt.originalDts+qt.duration);vn<=3&&(vn=0);let Tt=qt.dts+qt.duration+vn;Et=Rt-Tt}else Et=0}let jt=new nn,Mt=[];for(let qt=0;qt=1?tn=Mt[Mt.length-1].duration:tn=Math.floor(this._videoMeta.refSampleDuration),It){let Tn=new St(Dt,Zt,tn,vn.dts,!0);Tn.fileposition=vn.fileposition,jt.appendSyncPoint(Tn)}Mt.push({dts:Dt,pts:Zt,cts:Bt,units:vn.units,size:vn.length,isKeyframe:It,duration:tn,originalDts:Tt,flags:{isLeading:0,dependsOn:It?2:1,isDependedOn:It?1:0,hasRedundancy:0,isNonSync:It?0:1}})}tr=new Uint8Array(Vt),tr[0]=Vt>>>24&255,tr[1]=Vt>>>16&255,tr[2]=Vt>>>8&255,tr[3]=Vt&255,tr.set(mt.types.mdat,4);for(let qt=0;qt{ht.timestampBase=Je,Je+=ht.duration,ht.cors=Ie.cors,ht.withCredentials=Ie.withCredentials,je.referrerPolicy&&(ht.referrerPolicy=je.referrerPolicy)}),!isNaN(Je)&&this._mediaDataSource.duration!==Je&&(this._mediaDataSource.duration=Je),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(Ie,je){this._currentSegmentIndex=Ie;let Je=this._mediaDataSource.segments[Ie],ht=this._ioctl=new Pe(Je,this._config,Ie);ht.onError=this._onIOException.bind(this),ht.onSeeked=this._onIOSeeked.bind(this),ht.onComplete=this._onIOComplete.bind(this),ht.onRedirect=this._onIORedirect.bind(this),ht.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),je?this._demuxer.bindDataSource(this._ioctl):ht.onDataArrival=this._onInitChunkArrival.bind(this),ht.open(je)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(Ie){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let je=this._searchSegmentIndexContains(Ie);if(je===this._currentSegmentIndex){let Je=this._mediaInfo.segments[je];if(Je==null)this._pendingSeekTime=Ie;else{let ht=Je.getNearestKeyframe(Ie);this._remuxer.seek(ht.milliseconds),this._ioctl.seek(ht.fileposition),this._pendingResolveSeekPoint=ht.milliseconds}}else{let Je=this._mediaInfo.segments[je];if(Je==null)this._pendingSeekTime=Ie,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(je);else{let ht=Je.getNearestKeyframe(Ie);this._internalAbort(),this._remuxer.seek(Ie),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[je].timestampBase,this._loadSegment(je,ht.fileposition),this._pendingResolveSeekPoint=ht.milliseconds,this._reportSegmentMediaInfo(je)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(Ie){let je=this._mediaDataSource.segments,Je=je.length-1;for(let ht=0;ht0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ht=this._demuxer.parseChunks(Ie,je);else if((Je=ct.probe(Ie)).match){this._demuxer=new ct(Je,this._config),this._remuxer||(this._remuxer=new an(this._config));let Et=this._mediaDataSource;Et.duration!=null&&!isNaN(Et.duration)&&(this._demuxer.overridedDuration=Et.duration),typeof Et.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Et.hasAudio),typeof Et.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Et.hasVideo),this._demuxer.timestampBase=Et.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),ht=this._demuxer.parseChunks(Ie,je)}else Je=null,ve.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Jt.DEMUX_ERROR,He.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),ht=0;return ht}_onMediaInfo(Ie){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Ie),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,pt.prototype));let je=Object.assign({},Ie);Object.setPrototypeOf(je,pt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=je,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Je=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Je)})}_onMetaDataArrived(Ie){this._emitter.emit(Jt.METADATA_ARRIVED,Ie)}_onScriptDataArrived(Ie){this._emitter.emit(Jt.SCRIPTDATA_ARRIVED,Ie)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(Ie){let Je=Ie+1;Je0&&Je[0].originalDts===ht&&(ht=Je[0].pts),this._emitter.emit(Jt.RECOMMEND_SEEKPOINT,ht)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(Ie){let je=this._mediaInfo.segments[Ie],Je=Object.assign({},je);Je.duration=this._mediaInfo.duration,Je.segmentCount=this._mediaInfo.segmentCount,delete Je.segments,delete Je.keyframesIndex,this._emitter.emit(Jt.MEDIA_INFO,Je)}_reportStatisticsInfo(){let Ie={};Ie.url=this._ioctl.currentURL,Ie.hasRedirect=this._ioctl.hasRedirect,Ie.hasRedirect&&(Ie.redirectedURL=this._ioctl.currentRedirectedURL),Ie.speed=this._ioctl.currentSpeed,Ie.loaderType=this._ioctl.loaderType,Ie.currentSegmentIndex=this._currentSegmentIndex,Ie.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Jt.STATISTICS_INFO,Ie)}}var rn=Ut,Bn=function(dn){let Ie="TransmuxingWorker",je=null,Je=jt.bind(this);Ye.install(),dn.addEventListener("message",function(Mt){switch(Mt.data.cmd){case"init":je=new rn(Mt.data.param[0],Mt.data.param[1]),je.on(Jt.IO_ERROR,Vt.bind(this)),je.on(Jt.DEMUX_ERROR,Gt.bind(this)),je.on(Jt.INIT_SEGMENT,ht.bind(this)),je.on(Jt.MEDIA_SEGMENT,Et.bind(this)),je.on(Jt.LOADING_COMPLETE,Qt.bind(this)),je.on(Jt.RECOVERED_EARLY_EOF,fn.bind(this)),je.on(Jt.MEDIA_INFO,sn.bind(this)),je.on(Jt.METADATA_ARRIVED,mn.bind(this)),je.on(Jt.SCRIPTDATA_ARRIVED,Zn.bind(this)),je.on(Jt.STATISTICS_INFO,tr.bind(this)),je.on(Jt.RECOMMEND_SEEKPOINT,Rt.bind(this));break;case"destroy":je&&(je.destroy(),je=null),dn.postMessage({msg:"destroyed"});break;case"start":je.start();break;case"stop":je.stop();break;case"seek":je.seek(Mt.data.param);break;case"pause":je.pause();break;case"resume":je.resume();break;case"logging_config":{let Kt=Mt.data.param;Qe.applyConfig(Kt),Kt.enableCallback===!0?Qe.addLogListener(Je):Qe.removeLogListener(Je);break}}});function ht(Mt,Kt){let yt={msg:Jt.INIT_SEGMENT,data:{type:Mt,data:Kt}};dn.postMessage(yt,[Kt.data])}function Et(Mt,Kt){let yt={msg:Jt.MEDIA_SEGMENT,data:{type:Mt,data:Kt}};dn.postMessage(yt,[Kt.data])}function Qt(){let Mt={msg:Jt.LOADING_COMPLETE};dn.postMessage(Mt)}function fn(){let Mt={msg:Jt.RECOVERED_EARLY_EOF};dn.postMessage(Mt)}function sn(Mt){let Kt={msg:Jt.MEDIA_INFO,data:Mt};dn.postMessage(Kt)}function mn(Mt){let Kt={msg:Jt.METADATA_ARRIVED,data:Mt};dn.postMessage(Kt)}function Zn(Mt){let Kt={msg:Jt.SCRIPTDATA_ARRIVED,data:Mt};dn.postMessage(Kt)}function tr(Mt){let Kt={msg:Jt.STATISTICS_INFO,data:Mt};dn.postMessage(Kt)}function Vt(Mt,Kt){dn.postMessage({msg:Jt.IO_ERROR,data:{type:Mt,info:Kt}})}function Gt(Mt,Kt){dn.postMessage({msg:Jt.DEMUX_ERROR,data:{type:Mt,info:Kt}})}function Rt(Mt){dn.postMessage({msg:Jt.RECOMMEND_SEEKPOINT,data:Mt})}function jt(Mt,Kt){dn.postMessage({msg:"logcat_callback",data:{type:Mt,logcat:Kt}})}};class kt{constructor(Ie,je){if(this.TAG="Transmuxer",this._emitter=new(pe()),je.enableWorker&&typeof Worker!="undefined")try{let Je=Ce(82059);this._worker=Je(Bn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Ie,je]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Qe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Qe.getConfig()})}catch(Je){ve.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new rn(Ie,je)}else this._controller=new rn(Ie,je);if(this._controller){let Je=this._controller;Je.on(Jt.IO_ERROR,this._onIOError.bind(this)),Je.on(Jt.DEMUX_ERROR,this._onDemuxError.bind(this)),Je.on(Jt.INIT_SEGMENT,this._onInitSegment.bind(this)),Je.on(Jt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Je.on(Jt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Je.on(Jt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Je.on(Jt.MEDIA_INFO,this._onMediaInfo.bind(this)),Je.on(Jt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Je.on(Jt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Je.on(Jt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Je.on(Jt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Qe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(Ie){this._worker?this._worker.postMessage({cmd:"seek",param:Ie}):this._controller.seek(Ie)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.INIT_SEGMENT,Ie,je)})}_onMediaSegment(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.MEDIA_SEGMENT,Ie,je)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Jt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Jt.RECOVERED_EARLY_EOF)})}_onMediaInfo(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.MEDIA_INFO,Ie)})}_onMetaDataArrived(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.METADATA_ARRIVED,Ie)})}_onScriptDataArrived(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.SCRIPTDATA_ARRIVED,Ie)})}_onStatisticsInfo(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.STATISTICS_INFO,Ie)})}_onIOError(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.IO_ERROR,Ie,je)})}_onDemuxError(Ie,je){Promise.resolve().then(()=>{this._emitter.emit(Jt.DEMUX_ERROR,Ie,je)})}_onRecommendSeekpoint(Ie){Promise.resolve().then(()=>{this._emitter.emit(Jt.RECOMMEND_SEEKPOINT,Ie)})}_onLoggingConfigChanged(Ie){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Ie})}_onWorkerMessage(Ie){let je=Ie.data,Je=je.data;if(je.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(je.msg){case Jt.INIT_SEGMENT:case Jt.MEDIA_SEGMENT:this._emitter.emit(je.msg,Je.type,Je.data);break;case Jt.LOADING_COMPLETE:case Jt.RECOVERED_EARLY_EOF:this._emitter.emit(je.msg);break;case Jt.MEDIA_INFO:Object.setPrototypeOf(Je,pt.prototype),this._emitter.emit(je.msg,Je);break;case Jt.METADATA_ARRIVED:case Jt.SCRIPTDATA_ARRIVED:case Jt.STATISTICS_INFO:this._emitter.emit(je.msg,Je);break;case Jt.IO_ERROR:case Jt.DEMUX_ERROR:this._emitter.emit(je.msg,Je.type,Je.info);break;case Jt.RECOMMEND_SEEKPOINT:this._emitter.emit(je.msg,Je);break;case"logcat_callback":ve.emitter.emit("log",Je.type,Je.logcat);break;default:break}}}var ln=kt,Mn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Qn{constructor(Ie){this.TAG="MSEController",this._config=Ie,this._emitter=new(pe()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new on}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaSource)throw new le("MediaSource has been attached to an HTMLMediaElement!");let je=this._mediaSource=new window.MediaSource;je.addEventListener("sourceopen",this.e.onSourceOpen),je.addEventListener("sourceended",this.e.onSourceEnded),je.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Ie,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Ie.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let Ie=this._mediaSource;for(let je in this._sourceBuffers){let Je=this._pendingSegments[je];Je.splice(0,Je.length),this._pendingSegments[je]=null,this._pendingRemoveRanges[je]=null,this._lastInitSegments[je]=null;let ht=this._sourceBuffers[je];if(ht){if(Ie.readyState!=="closed"){try{Ie.removeSourceBuffer(ht)}catch(Et){ve.e(this.TAG,Et.message)}ht.removeEventListener("error",this.e.onSourceBufferError),ht.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[je]=null,this._sourceBuffers[je]=null}}if(Ie.readyState==="open")try{Ie.endOfStream()}catch(je){ve.e(this.TAG,je.message)}Ie.removeEventListener("sourceopen",this.e.onSourceOpen),Ie.removeEventListener("sourceended",this.e.onSourceEnded),Ie.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(Ie,je){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Ie),this._pendingSegments[Ie.type].push(Ie);return}let Je=Ie,ht=`${Je.container}`;Je.codec&&Je.codec.length>0&&(ht+=`;codecs=${Je.codec}`);let Et=!1;if(ve.v(this.TAG,"Received Initialization Segment, mimeType: "+ht),this._lastInitSegments[Je.type]=Je,ht!==this._mimeTypes[Je.type]){if(this._mimeTypes[Je.type])ve.v(this.TAG,`Notice: ${Je.type} mimeType changed, origin: ${this._mimeTypes[Je.type]}, target: ${ht}`);else{Et=!0;try{let Qt=this._sourceBuffers[Je.type]=this._mediaSource.addSourceBuffer(ht);Qt.addEventListener("error",this.e.onSourceBufferError),Qt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Qt){ve.e(this.TAG,Qt.message),this._emitter.emit(Mn.ERROR,{code:Qt.code,msg:Qt.message});return}}this._mimeTypes[Je.type]=ht}je||this._pendingSegments[Je.type].push(Je),Et||this._sourceBuffers[Je.type]&&!this._sourceBuffers[Je.type].updating&&this._doAppendSegments(),oe.safari&&Je.container==="audio/mpeg"&&Je.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Je.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(Ie){let je=Ie;this._pendingSegments[je.type].push(je),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Je=this._sourceBuffers[je.type];Je&&!Je.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(Ie){for(let je in this._sourceBuffers){if(!this._sourceBuffers[je])continue;let Je=this._sourceBuffers[je];if(this._mediaSource.readyState==="open")try{Je.abort()}catch(Et){ve.e(this.TAG,Et.message)}this._idrList.clear();let ht=this._pendingSegments[je];if(ht.splice(0,ht.length),this._mediaSource.readyState!=="closed"){for(let Et=0;Et=1&&Ie-ht.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let Ie=this._mediaElement.currentTime;for(let je in this._sourceBuffers){let Je=this._sourceBuffers[je];if(Je){let ht=Je.buffered,Et=!1;for(let Qt=0;Qt=this._config.autoCleanupMaxBackwardDuration){Et=!0;let mn=Ie-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[je].push({start:fn,end:mn})}}else sn0&&(isNaN(je)||Je>je)&&(ve.v(this.TAG,`Update MediaSource duration from ${je} to ${Je}`),this._mediaSource.duration=Je),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let Ie in this._pendingRemoveRanges){if(!this._sourceBuffers[Ie]||this._sourceBuffers[Ie].updating)continue;let je=this._sourceBuffers[Ie],Je=this._pendingRemoveRanges[Ie];for(;Je.length&&!je.updating;){let ht=Je.shift();je.remove(ht.start,ht.end)}}}_doAppendSegments(){let Ie=this._pendingSegments;for(let je in Ie)if(!(!this._sourceBuffers[je]||this._sourceBuffers[je].updating)&&Ie[je].length>0){let Je=Ie[je].shift();if(Je.timestampOffset){let ht=this._sourceBuffers[je].timestampOffset,Et=Je.timestampOffset/1e3;Math.abs(ht-Et)>.1&&(ve.v(this.TAG,`Update MPEG audio timestampOffset from ${ht} to ${Et}`),this._sourceBuffers[je].timestampOffset=Et),delete Je.timestampOffset}if(!Je.data||Je.data.byteLength===0)continue;try{this._sourceBuffers[je].appendBuffer(Je.data),this._isBufferFull=!1,je==="video"&&Je.hasOwnProperty("info")&&this._idrList.appendArray(Je.info.syncPoints)}catch(ht){this._pendingSegments[je].unshift(Je),ht.code===22?(this._isBufferFull||this._emitter.emit(Mn.BUFFER_FULL),this._isBufferFull=!0):(ve.e(this.TAG,ht.message),this._emitter.emit(Mn.ERROR,{code:ht.code,msg:ht.message}))}}}_onSourceOpen(){if(ve.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let Ie=this._pendingSourceBufferInit;for(;Ie.length;){let je=Ie.shift();this.appendInitSegment(je,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Mn.SOURCE_OPEN)}_onSourceEnded(){ve.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){ve.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let Ie=this._pendingSegments;return Ie.video.length>0||Ie.audio.length>0}_hasPendingRemoveRanges(){let Ie=this._pendingRemoveRanges;return Ie.video.length>0||Ie.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Mn.UPDATE_END)}_onSourceBufferError(Ie){ve.e(this.TAG,`SourceBuffer Error: ${Ie}`)}}var mr=Qn;const lr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Cr={NETWORK_EXCEPTION:E.EXCEPTION,NETWORK_STATUS_CODE_INVALID:E.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:E.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:E.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:He.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:He.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:He.CODEC_UNSUPPORTED};class nr{constructor(Ie,je){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(pe()),this._config=Ke(),typeof je=="object"&&Object.assign(this._config,je),Ie.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");Ie.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=Ie,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let Je=oe.chrome&&(oe.version.major<50||oe.version.major===50&&oe.version.build<2661);this._alwaysSeekKeyframe=!!(Je||oe.msedge||oe.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ie,je){Ie===nt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}):Ie===nt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Ie.addEventListener("seeking",this.e.onvSeeking),Ie.addEventListener("canplay",this.e.onvCanPlay),Ie.addEventListener("stalled",this.e.onvStalled),Ie.addEventListener("progress",this.e.onvProgress),this._msectl=new mr(this._config),this._msectl.on(Mn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Mn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Mn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Mn.ERROR,je=>{this._emitter.emit(nt.ERROR,lr.MEDIA_ERROR,Cr.MEDIA_MSE_ERROR,je)}),this._msectl.attachMediaElement(Ie),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new le("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new le("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ln(this._mediaDataSource,this._config),this._transmuxer.on(Jt.INIT_SEGMENT,(Ie,je)=>{this._msectl.appendInitSegment(je)}),this._transmuxer.on(Jt.MEDIA_SEGMENT,(Ie,je)=>{if(this._msectl.appendMediaSegment(je),this._config.lazyLoad&&!this._config.isLive){let Je=this._mediaElement.currentTime;je.info.endDts>=(Je+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(ve.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Jt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(nt.LOADING_COMPLETE)}),this._transmuxer.on(Jt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(nt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Jt.IO_ERROR,(Ie,je)=>{this._emitter.emit(nt.ERROR,lr.NETWORK_ERROR,Ie,je)}),this._transmuxer.on(Jt.DEMUX_ERROR,(Ie,je)=>{this._emitter.emit(nt.ERROR,lr.MEDIA_ERROR,Ie,{code:-1,msg:je})}),this._transmuxer.on(Jt.MEDIA_INFO,Ie=>{this._mediaInfo=Ie,this._emitter.emit(nt.MEDIA_INFO,Object.assign({},Ie))}),this._transmuxer.on(Jt.METADATA_ARRIVED,Ie=>{this._emitter.emit(nt.METADATA_ARRIVED,Ie)}),this._transmuxer.on(Jt.SCRIPTDATA_ARRIVED,Ie=>{this._emitter.emit(nt.SCRIPTDATA_ARRIVED,Ie)}),this._transmuxer.on(Jt.STATISTICS_INFO,Ie=>{this._statisticsInfo=this._fillStatisticsInfo(Ie),this._emitter.emit(nt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Jt.RECOMMEND_SEEKPOINT,Ie=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ie){this._mediaElement.volume=Ie}get muted(){return this._mediaElement.muted}set muted(Ie){this._mediaElement.muted=Ie}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ie){this._mediaElement?this._internalSeek(Ie):this._pendingSeekTime=Ie}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(Ie){if(Ie.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Ie;let je=!0,Je=0,ht=0;if(this._mediaElement.getVideoPlaybackQuality){let Et=this._mediaElement.getVideoPlaybackQuality();Je=Et.totalVideoFrames,ht=Et.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,ht=this._mediaElement.webkitDroppedFrameCount):je=!1;return je&&(Ie.decodedFrames=Je,Ie.droppedFrames=ht),Ie}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let Ie=this._mediaElement.buffered,je=this._mediaElement.currentTime,Je=0,ht=0;for(let Et=0;Et=je+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(ve.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){ve.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let Ie=this._mediaElement.currentTime,je=this._mediaElement.buffered,Je=!1;for(let ht=0;ht=Et&&Ie=Qt-this._config.lazyLoadRecoverDuration&&(Je=!0);break}}Je&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Je&&(ve.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(Ie){let je=this._mediaElement.buffered;for(let Je=0;Je=ht&&Ie0){let Et=this._mediaElement.buffered.start(0);(Et<1&&Ie0&&je.currentTime0){let ht=Je.start(0);if(ht<1&&je{this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}):Ie===nt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ie,je)}off(Ie,je){this._emitter.removeListener(Ie,je)}attachMediaElement(Ie){if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new le("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ie){this._mediaElement.volume=Ie}get muted(){return this._mediaElement.muted}set muted(Ie){this._mediaElement.muted=Ie}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ie){this._mediaElement?this._mediaElement.currentTime=Ie:this._pendingSeekTime=Ie}get mediaInfo(){let je={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(je.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(je.width=this._mediaElement.videoWidth,je.height=this._mediaElement.videoHeight)),je}get statisticsInfo(){let Ie={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Ie;let je=!0,Je=0,ht=0;if(this._mediaElement.getVideoPlaybackQuality){let Et=this._mediaElement.getVideoPlaybackQuality();Je=Et.totalVideoFrames,ht=Et.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,ht=this._mediaElement.webkitDroppedFrameCount):je=!1;return je&&(Ie.decodedFrames=Je,Ie.droppedFrames=ht),Ie}_onvLoadedMetadata(Ie){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}}var In=Nn;Ye.install();function Wn(dn,Ie){let je=dn;if(je==null||typeof je!="object")throw new ae("MediaDataSource must be an javascript object!");if(!je.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(je.type){case"flv":return new ur(je,Ie);default:return new In(je,Ie)}}function Kn(){return Re.supportMSEH264Playback()}function Ln(){return Re.getFeatureList()}let $n={};$n.createPlayer=Wn,$n.isSupported=Kn,$n.getFeatureList=Ln,$n.BaseLoader=b,$n.LoaderStatus=me,$n.LoaderErrors=E,$n.Events=nt,$n.ErrorTypes=lr,$n.ErrorDetails=Cr,$n.FlvPlayer=ur,$n.NativePlayer=In,$n.LoggingControl=Qe,Object.defineProperty($n,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var ar=$n},9981:function(Yn,en){"use strict";const Ce=function(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ye=1;Ye{const Oe=Me[pe];Oe!==void 0&&(te[pe]=Oe)})}return te};en.Z=Ce},86013:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(19248);const Me=pe=>{let Oe;return typeof pe=="object"&&(pe!=null&&pe.clearIcon)?Oe=pe:pe&&(Oe={clearIcon:te.createElement(Ye.Z,null)}),Oe};en.Z=Me},54500:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});const te=Ye=>Ye?typeof Ye=="function"?Ye():Ye:null},97224:function(Yn,en,Ce){"use strict";Ce.d(en,{F:function(){return te}});function te(Me){return Me!=null&&Me===Me.window}const Ye=Me=>{var pe,Oe;if(typeof window=="undefined")return 0;let ve=0;return te(Me)?ve=Me.pageYOffset:Me instanceof Document?ve=Me.documentElement.scrollTop:(Me instanceof HTMLElement||Me)&&(ve=Me.scrollTop),Me&&!te(Me)&&typeof ve!="number"&&(ve=(Oe=((pe=Me.ownerDocument)!==null&&pe!==void 0?pe:Me).documentElement)===null||Oe===void 0?void 0:Oe.scrollTop),ve};en.Z=Ye},83010:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return pe}});var te=Ce(16089);function Ye(Oe,ve,ue,fe){const he=ue-ve;return Oe/=fe/2,Oe<1?he/2*Oe*Oe*Oe+ve:he/2*((Oe-=2)*Oe*Oe+2)+ve}var Me=Ce(97224);function pe(Oe){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:fe,duration:he=450}=ve,le=ue(),ae=(0,Me.Z)(le),ie=Date.now(),me=()=>{const b=Date.now()-ie,z=Ye(b>he?he:b,ae,Oe,he);(0,Me.F)(le)?le.scrollTo(window.pageXOffset,z):le instanceof Document||le.constructor.name==="HTMLDocument"?le.documentElement.scrollTop=z:le.scrollTop=z,b{var a;const{prefixCls:x,className:re,popupClassName:ce,dropdownClassName:ge,children:_e,dataSource:ye}=se,be=(0,ue.Z)(_e);let Se;be.length===1&&pe.isValidElement(be[0])&&!ae(be[0])&&([Se]=be);const Be=Se?()=>Se:void 0;let Ae;be.length&&ae(be[0])?Ae=_e:Ae=ye?ye.map(ze=>{if(pe.isValidElement(ze))return ze;switch(typeof ze){case"string":return pe.createElement(le,{key:ze,value:ze},ze);case"object":{const{value:Ke}=ze;return pe.createElement(le,{key:Ke,value:Ke},ze.text)}default:return}}):[];const{getPrefixCls:we}=pe.useContext(he.E_),Ue=we("select",x),[Pe]=(0,fe.Cn)("SelectLike",(a=se.dropdownStyle)===null||a===void 0?void 0:a.zIndex);return pe.createElement(Me.default,Object.assign({ref:de,suffixIcon:null},(0,te.Z)(se,["dataSource","dropdownClassName"]),{prefixCls:Ue,popupClassName:ce||ge,dropdownStyle:Object.assign(Object.assign({},se.dropdownStyle),{zIndex:Pe}),className:ve()(`${Ue}-auto-complete`,re),mode:Me.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:Be}),Ae)};var E=pe.forwardRef(ie);const{Option:b}=Me.default,z=(0,Ye.Z)(E,"dropdownAlign",se=>(0,te.Z)(se,["visible"])),ne=E;ne.Option=b,ne._InternalPanelDoNotUseOrYouWillBeFired=z;var oe=ne},79939:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return vn}});var te=Ce(77654),Ye=Ce(59301),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(60499),ve=Ce(85899),ue=Ce(72190),fe=Ce(42244),he=Ce(37463),le=Ce(6551),ae=Ce(6089),ie=Ce(18929),me=Ye.createContext({}),E=me,b=Ce(43749),z=Ce(18642),ne="__rc_cascader_search_mark__",oe=function(It,Dt,Bt){var Zt=Bt.label,tn=Zt===void 0?"":Zt;return Dt.some(function(Tn){return String(Tn[tn]).toLowerCase().includes(It.toLowerCase())})},se=function(It,Dt,Bt,Zt){return Dt.map(function(tn){return tn[Zt.label]}).join(" / ")},de=function(It,Dt,Bt,Zt,tn,Tn){var Fn=tn.filter,dr=Fn===void 0?oe:Fn,_r=tn.render,Kr=_r===void 0?se:_r,Sr=tn.limit,hr=Sr===void 0?50:Sr,Mr=tn.sort;return Ye.useMemo(function(){var Br=[];if(!It)return[];function Wr(Jn,ii){var Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jn.forEach(function(Gr){if(!(!Mr&&hr!==!1&&hr>0&&Br.length>=hr)){var qr=[].concat((0,te.Z)(ii),[Gr]),Li=Gr[Bt.children],wi=Ur||Gr.disabled;if((!Li||Li.length===0||Tn)&&dr(It,qr,{label:Bt.label})){var ui;Br.push((0,ve.Z)((0,ve.Z)({},Gr),{},(ui={disabled:wi},(0,z.Z)(ui,Bt.label,Kr(It,qr,Zt,Bt)),(0,z.Z)(ui,ne,qr),(0,z.Z)(ui,Bt.children,void 0),ui)))}Li&&Wr(Gr[Bt.children],qr,wi)}})}return Wr(Dt,[]),Mr&&Br.sort(function(Jn,ii){return Mr(Jn[ne],ii[ne],It,Bt)}),hr!==!1&&hr>0?Br.slice(0,hr):Br},[It,Dt,Bt,Zt,Kr,Tn,dr,Mr,hr])},a=de,x="__RC_CASCADER_SPLIT__",re="SHOW_PARENT",ce="SHOW_CHILD";function ge(Tt){return Tt.join(x)}function _e(Tt){return Tt.map(ge)}function ye(Tt){return Tt.split(x)}function be(Tt){var It=Tt||{},Dt=It.label,Bt=It.value,Zt=It.children,tn=Bt||"value";return{label:Dt||"label",value:tn,key:tn,children:Zt||"children"}}function Se(Tt,It){var Dt,Bt;return(Dt=Tt.isLeaf)!==null&&Dt!==void 0?Dt:!((Bt=Tt[It.children])!==null&&Bt!==void 0&&Bt.length)}function Be(Tt){var It=Tt.parentElement;if(It){var Dt=Tt.offsetTop-It.offsetTop;Dt-It.scrollTop<0?It.scrollTo({top:Dt}):Dt+Tt.offsetHeight-It.scrollTop>It.offsetHeight&&It.scrollTo({top:Dt+Tt.offsetHeight-It.offsetHeight})}}function Ae(Tt,It){return Tt.map(function(Dt){var Bt;return(Bt=Dt[ne])===null||Bt===void 0?void 0:Bt.map(function(Zt){return Zt[It.value]})})}function we(Tt){return Array.isArray(Tt)&&Array.isArray(Tt[0])}function Ue(Tt){return Tt?we(Tt)?Tt:(Tt.length===0?[]:[Tt]).map(function(It){return Array.isArray(It)?It:[It]}):[]}function Pe(Tt,It,Dt){var Bt=new Set(Tt),Zt=It();return Tt.filter(function(tn){var Tn=Zt[tn],Fn=Tn?Tn.parent:null,dr=Tn?Tn.children:null;return Tn&&Tn.node.disabled?!0:Dt===ce?!(dr&&dr.some(function(_r){return _r.key&&Bt.has(_r.key)})):!(Fn&&!Fn.node.disabled&&Bt.has(Fn.key))})}function ze(Tt,It,Dt){for(var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Zt=It,tn=[],Tn=function(){var _r,Kr,Sr,hr=Tt[Fn],Mr=(_r=Zt)===null||_r===void 0?void 0:_r.findIndex(function(Wr){var Jn=Wr[Dt.value];return Bt?String(Jn)===String(hr):Jn===hr}),Br=Mr!==-1?(Kr=Zt)===null||Kr===void 0?void 0:Kr[Mr]:null;tn.push({value:(Sr=Br==null?void 0:Br[Dt.value])!==null&&Sr!==void 0?Sr:hr,index:Mr,option:Br}),Zt=Br==null?void 0:Br[Dt.children]},Fn=0;Fn1){var ui=Br.slice(0,-1);Ur(ui)}else _r(!1)},Li=function(){var ui,Qr=((ui=Jn[Wr])===null||ui===void 0?void 0:ui[Dt.children])||[],Di=Qr.find(function(di){return!di.disabled});if(Di){var oi=[].concat((0,te.Z)(Br),[Di[Dt.value]]);Ur(oi)}};Ye.useImperativeHandle(Tt,function(){return{onKeyDown:function(ui){var Qr=ui.which;switch(Qr){case Le.Z.UP:case Le.Z.DOWN:{var Di=0;Qr===Le.Z.UP?Di=-1:Qr===Le.Z.DOWN&&(Di=1),Di!==0&&Gr(Di);break}case Le.Z.LEFT:{if(dr)break;Sr?Li():qr();break}case Le.Z.RIGHT:{if(dr)break;Sr?qr():Li();break}case Le.Z.BACKSPACE:{dr||qr();break}case Le.Z.ENTER:{if(Br.length){var oi=Jn[Wr],di=(oi==null?void 0:oi[ne])||[];di.length?tn(di.map(function(ci){return ci[Dt.value]}),di[di.length-1]):tn(Br,Jn[Wr])}break}case Le.Z.ESC:_r(!1),Kr&&ui.stopPropagation()}},onKeyUp:function(){}}})},et=Ye.forwardRef(function(Tt,It){var Dt,Bt,Zt,tn=Tt.prefixCls,Tn=Tt.multiple,Fn=Tt.searchValue,dr=Tt.toggleOpen,_r=Tt.notFoundContent,Kr=Tt.direction,Sr=Tt.open,hr=Tt.disabled,Mr=Ye.useRef(null),Br=Kr==="rtl",Wr=Ye.useContext(E),Jn=Wr.options,ii=Wr.values,Ur=Wr.halfValues,Gr=Wr.fieldNames,qr=Wr.changeOnSelect,Li=Wr.onSelect,wi=Wr.searchOptions,ui=Wr.dropdownPrefixCls,Qr=Wr.loadData,Di=Wr.expandTrigger,oi=ui||tn,di=Ye.useState([]),ci=(0,ue.Z)(di,2),ki=ci[0],Ki=ci[1],ua=function(Vn){if(!(!Qr||Fn)){var Sn=ze(Vn,Jn,Gr),Rr=Sn.map(function(mi){var Nr=mi.option;return Nr}),ti=Rr[Rr.length-1];if(ti&&!Se(ti,Gr)){var gn=ge(Vn);Ki(function(mi){return[].concat((0,te.Z)(mi),[gn])}),Qr(Rr)}}};Ye.useEffect(function(){ki.length&&ki.forEach(function(un){var Vn=ye(un),Sn=ze(Vn,Jn,Gr,!0).map(function(ti){var gn=ti.option;return gn}),Rr=Sn[Sn.length-1];(!Rr||Rr[Gr.children]||Se(Rr,Gr))&&Ki(function(ti){return ti.filter(function(gn){return gn!==un})})})},[Jn,ki,Gr]);var kn=Ye.useMemo(function(){return new Set(_e(ii))},[ii]),qi=Ye.useMemo(function(){return new Set(_e(Ur))},[Ur]),Qi=Fe(Tn,Sr),ra=(0,ue.Z)(Qi,2),_i=ra[0],Ti=ra[1],Xr=function(Vn){Ti(Vn),ua(Vn)},rr=function(Vn){if(hr)return!1;var Sn=Vn.disabled,Rr=Se(Vn,Gr);return!Sn&&(Rr||qr||Tn)},Dr=function(Vn,Sn){var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Li(Vn),!Tn&&(Sn||qr&&(Di==="hover"||Rr))&&dr(!1)},Fr=Ye.useMemo(function(){return Fn?wi:Jn},[Fn,wi,Jn]),or=Ye.useMemo(function(){for(var un=[{options:Fr}],Vn=Fr,Sn=Ae(Vn,Gr),Rr=function(){var mi=_i[ti],Nr=Vn.find(function(pi,Gi){return(Sn[Gi]?ge(Sn[Gi]):pi[Gr.value])===mi}),Ar=Nr==null?void 0:Nr[Gr.children];if(!(Ar!=null&&Ar.length))return 1;Vn=Ar,un.push({options:Ar})},ti=0;ti<_i.length&&!Rr();ti+=1);return un},[Fr,_i,Gr]),ei=function(Vn,Sn){rr(Sn)&&Dr(Vn,Se(Sn,Gr),!0)};Ze(It,Fr,Gr,_i,Xr,ei,{direction:Kr,searchValue:Fn,toggleOpen:dr,open:Sr}),Ye.useEffect(function(){if(!Fn)for(var un=0;un<_i.length;un+=1){var Vn,Sn=_i.slice(0,un+1),Rr=ge(Sn),ti=(Vn=Mr.current)===null||Vn===void 0?void 0:Vn.querySelector('li[data-path-key="'.concat(Rr.replace(/\\{0,2}"/g,'\\"'),'"]'));ti&&Be(ti)}},[_i,Fn]);var si=!((Dt=or[0])!==null&&Dt!==void 0&&(Dt=Dt.options)!==null&&Dt!==void 0&&Dt.length),wr=[(Bt={},(0,z.Z)(Bt,Gr.value,"__EMPTY__"),(0,z.Z)(Bt,Yt,_r),(0,z.Z)(Bt,"disabled",!0),Bt)],Ir=(0,ve.Z)((0,ve.Z)({},Tt),{},{multiple:!si&&Tn,onSelect:Dr,onActive:Xr,onToggleOpen:dr,checkedSet:kn,halfCheckedSet:qi,loadingKeys:ki,isSelectable:rr}),Hr=si?[{options:wr}]:or,ri=Hr.map(function(un,Vn){var Sn=_i.slice(0,Vn),Rr=_i[Vn];return Ye.createElement(zt,(0,Oe.Z)({key:Vn},Ir,{prefixCls:oi,options:un.options,prevValuePath:Sn,activeValue:Rr}))});return Ye.createElement(Ft,{open:Sr},Ye.createElement("div",{className:pe()("".concat(oi,"-menus"),(Zt={},(0,z.Z)(Zt,"".concat(oi,"-menu-empty"),si),(0,z.Z)(Zt,"".concat(oi,"-rtl"),Br),Zt)),ref:Mr},ri))}),He=et,We=Ye.forwardRef(function(Tt,It){var Dt=(0,he.lk)();return Ye.createElement(He,(0,Oe.Z)({},Tt,Dt,{ref:It}))}),tt=We,at=Ce(70425);function ot(){}function ct(Tt){var It,Dt=Tt,Bt=Dt.prefixCls,Zt=Bt===void 0?"rc-cascader":Bt,tn=Dt.style,Tn=Dt.className,Fn=Dt.options,dr=Dt.checkable,_r=Dt.defaultValue,Kr=Dt.value,Sr=Dt.fieldNames,hr=Dt.changeOnSelect,Mr=Dt.onChange,Br=Dt.showCheckedStrategy,Wr=Dt.loadData,Jn=Dt.expandTrigger,ii=Dt.expandIcon,Ur=ii===void 0?">":ii,Gr=Dt.loadingIcon,qr=Dt.direction,Li=Dt.notFoundContent,wi=Li===void 0?"Not Found":Li,ui=Dt.disabled,Qr=!!dr,Di=(0,at.C8)(_r,{value:Kr,postState:Ue}),oi=(0,ue.Z)(Di,2),di=oi[0],ci=oi[1],ki=Ye.useMemo(function(){return be(Sr)},[JSON.stringify(Sr)]),Ki=nt(ki,Fn),ua=(0,ue.Z)(Ki,3),kn=ua[0],qi=ua[1],Qi=ua[2],ra=Ne(kn,ki),_i=At(Qr,di,qi,Qi,ra),Ti=(0,ue.Z)(_i,3),Xr=Ti[0],rr=Ti[1],Dr=Ti[2],Fr=(0,at.zX)(function(Hr){if(ci(Hr),Mr){var ri=Ue(Hr),un=ri.map(function(Rr){return ze(Rr,kn,ki).map(function(ti){return ti.option})}),Vn=Qr?ri:ri[0],Sn=Qr?un:un[0];Mr(Vn,Sn)}}),or=pt(Qr,Fr,Xr,rr,Dr,qi,Qi,Br),ei=(0,at.zX)(function(Hr){or(Hr)}),si=Ye.useMemo(function(){return{options:kn,fieldNames:ki,values:Xr,halfValues:rr,changeOnSelect:hr,onSelect:ei,checkable:dr,searchOptions:[],dropdownPrefixCls:void 0,loadData:Wr,expandTrigger:Jn,expandIcon:Ur,loadingIcon:Gr,dropdownMenuColumnStyle:void 0}},[kn,ki,Xr,rr,hr,ei,dr,Wr,Jn,Ur,Gr]),wr="".concat(Zt,"-panel"),Ir=!kn.length;return Ye.createElement(E.Provider,{value:si},Ye.createElement("div",{className:pe()(wr,(It={},(0,z.Z)(It,"".concat(wr,"-rtl"),qr==="rtl"),(0,z.Z)(It,"".concat(wr,"-empty"),Ir),It),Tn),style:tn},Ir?wi:Ye.createElement(He,{prefixCls:Zt,searchValue:"",multiple:Qr,toggleOpen:ot,open:!0,direction:qr,disabled:ui})))}function lt(Tt){var It=Tt.onPopupVisibleChange,Dt=Tt.popupVisible,Bt=Tt.popupClassName,Zt=Tt.popupPlacement;warning(!It,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Dt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Bt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Zt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function mt(Tt,It){if(Tt){var Dt=function Bt(Zt){for(var tn=0;tn":ua,qi=Tt.loadingIcon,Qi=Tt.children,ra=Tt.dropdownMatchSelectWidth,_i=ra===void 0?!1:ra,Ti=Tt.showCheckedStrategy,Xr=Ti===void 0?re:Ti,rr=Tt.optionRender,Dr=(0,fe.Z)(Tt,ft),Fr=(0,le.ZP)(Dt),or=!!Sr,ei=(0,ie.Z)(Tn,{value:Fn,postState:Ue}),si=(0,ue.Z)(ei,2),wr=si[0],Ir=si[1],Hr=Ye.useMemo(function(){return be(tn)},[JSON.stringify(tn)]),ri=nt(Hr,Ur),un=(0,ue.Z)(ri,3),Vn=un[0],Sn=un[1],Rr=un[2],ti=(0,ie.Z)("",{value:Br,postState:function(kr){return kr||""}}),gn=(0,ue.Z)(ti,2),mi=gn[0],Nr=gn[1],Ar=function(kr,Zi){Nr(kr),Zi.source!=="blur"&&Wr&&Wr(kr)},pi=Qe(Jn),Gi=(0,ue.Z)(pi,2),gi=Gi[0],Wi=Gi[1],Jr=a(mi,Vn,Hr,Gr||Zt,Wi,dr||or),li=Ne(Vn,Hr),Zr=At(or,wr,Sn,Rr,li),Vi=(0,ue.Z)(Zr,3),sa=Vi[0],vi=Vi[1],Ni=Vi[2],Ii=Ye.useMemo(function(){var Ci=_e(sa),kr=Pe(Ci,Sn,Xr);return[].concat((0,te.Z)(Ni),(0,te.Z)(Rr(kr)))},[sa,Sn,Rr,Ni,Xr]),Mi=Ke(Ii,Vn,Hr,or,Kr),fa=(0,ae.Z)(function(Ci){if(Ir(Ci),_r){var kr=Ue(Ci),Zi=kr.map(function(ir){return ze(ir,Vn,Hr).map(function(Ji){return Ji.option})}),ma=or?kr:kr[0],ba=or?Zi:Zi[0];_r(ma,ba)}}),ca=pt(or,fa,sa,vi,Ni,Sn,Rr,Xr),la=(0,ae.Z)(function(Ci){(!or||Mr)&&Nr(""),ca(Ci)}),zi=function(kr,Zi){if(Zi.type==="clear"){fa([]);return}var ma=Zi.values[0],ba=ma.valueCells;la(ba)},Da=wi!==void 0?wi:Li,Ca=Qr||ui,Ra=ci||di,to=function(kr){ki==null||ki(kr),Ki==null||Ki(kr)},bi=Ye.useMemo(function(){return{options:Vn,fieldNames:Hr,values:sa,halfValues:vi,changeOnSelect:dr,onSelect:la,checkable:Sr,searchOptions:Jr,dropdownPrefixCls:Gr,loadData:qr,expandTrigger:ii,expandIcon:kn,loadingIcon:qi,dropdownMenuColumnStyle:Di,optionRender:rr}},[Vn,Hr,sa,vi,dr,la,Sr,Jr,Gr,qr,ii,kn,qi,Di,rr]),Yi=!(mi?Jr:Vn).length,Ei=mi&&Wi.matchInputWidth||Yi?{}:{minWidth:"auto"};return Ye.createElement(E.Provider,{value:bi},Ye.createElement(he.Ac,(0,Oe.Z)({},Dr,{ref:It,id:Fr,prefixCls:Zt,autoClearSearchValue:Mr,dropdownMatchSelectWidth:_i,dropdownStyle:(0,ve.Z)((0,ve.Z)({},Ei),oi),displayValues:Mi,onDisplayValuesChange:zi,mode:or?"multiple":void 0,searchValue:mi,onSearch:Ar,showSearch:gi,OptionList:tt,emptyOptions:Yi,open:Da,dropdownClassName:Ca,placement:Ra,onDropdownVisibleChange:to,getRawInputElement:function(){return Qi}})))});St.SHOW_PARENT=re,St.SHOW_CHILD=ce,St.Panel=ct;var nn=St,on=nn,yn=Ce(2738),xn=Ce(75030),an=Ce(86641),An=Ce(45915),Jt=Ce(82855),Ut=Ce(48755),rn=Ce(38406),_n=Ce(2171),Bn=Ce(83397),kt=Ce(31756),ln=Ce(56553),Cn=Ce(24971),Mn=Ce(1722),Qn=Ce(90376),mr=Ce(68525),lr=Ce(90005),Cr=Ce(70045);function nr(Tt,It){const{getPrefixCls:Dt,direction:Bt,renderEmpty:Zt}=Ye.useContext(Ut.E_),tn=It||Bt,Tn=Dt("select",Tt),Fn=Dt("cascader",Tt);return[Tn,Fn,tn,Zt]}var ur=nr;function Nn(Tt,It){return Ye.useMemo(()=>It?Ye.createElement("span",{className:`${Tt}-checkbox-inner`}):!1,[It])}var In=Ce(33853),Wn=Ce(58617),Kn=Ce(38819),$n=(Tt,It,Dt)=>{let Bt=Dt;Dt||(Bt=It?Ye.createElement(In.Z,null):Ye.createElement(Kn.Z,null));const Zt=Ye.createElement("span",{className:`${Tt}-menu-item-loading-icon`},Ye.createElement(Wn.Z,{spin:!0}));return Ye.useMemo(()=>[Bt,Zt],[Bt])},ar=Ce(56119),dn=Ce(16931),Ie=Ce(36237),je=Ce(36170),Je=Ce(63356),Et=Tt=>{const{prefixCls:It,componentCls:Dt}=Tt,Bt=`${Dt}-menu-item`,Zt=` &${Bt}-expand ${Bt}-expand-icon, ${Bt}-loading-icon `;return[(0,je.C2)(`${It}-checkbox`,Tt),{[Dt]:{"&-checkbox":{top:0,marginInlineEnd:Tt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Dt}-menu-empty`]:{[`${Dt}-menu`]:{width:"100%",height:"auto",[Bt]:{color:Tt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Tt.controlItemWidth,height:Tt.dropdownHeight,margin:0,padding:Tt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Ie.unit)(Tt.lineWidth)} ${Tt.lineType} ${Tt.colorSplit}`},"&-item":Object.assign(Object.assign({},Je.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Tt.optionPadding,lineHeight:Tt.lineHeight,cursor:"pointer",transition:`all ${Tt.motionDurationMid}`,borderRadius:Tt.borderRadiusSM,"&:hover":{background:Tt.controlItemBgHover},"&-disabled":{color:Tt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Zt]:{color:Tt.colorTextDisabled}},[`&-active:not(${Bt}-disabled)`]:{"&, &:hover":{color:Tt.optionSelectedColor,fontWeight:Tt.optionSelectedFontWeight,backgroundColor:Tt.optionSelectedBg}},"&-content":{flex:"auto"},[Zt]:{marginInlineStart:Tt.paddingXXS,color:Tt.colorTextDescription,fontSize:Tt.fontSizeIcon},"&-keyword":{color:Tt.colorHighlight}})}}}]};const Qt=Tt=>{const{componentCls:It,antCls:Dt}=Tt;return[{[It]:{width:Tt.controlWidth}},{[`${It}-dropdown`]:[{[`&${Dt}-select-dropdown`]:{padding:0}},Et(Tt)]},{[`${It}-dropdown-rtl`]:{direction:"rtl"}},(0,ar.c)(Tt)]},fn=Tt=>{const It=Math.round((Tt.controlHeight-Tt.fontSize*Tt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Tt.controlItemBgActive,optionSelectedFontWeight:Tt.fontWeightStrong,optionPadding:`${It}px ${Tt.paddingSM}px`,menuPadding:Tt.paddingXXS,optionSelectedColor:Tt.colorText}};var sn=(0,dn.I$)("Cascader",Tt=>[Qt(Tt)],fn);const mn=Tt=>{const{componentCls:It}=Tt;return{[`${It}-panel`]:[Et(Tt),{display:"inline-flex",border:`${(0,Ie.unit)(Tt.lineWidth)} ${Tt.lineType} ${Tt.colorSplit}`,borderRadius:Tt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${It}-menus`]:{alignItems:"stretch"},[`${It}-menu`]:{height:"auto"},"&-empty":{padding:Tt.paddingXXS}}]}};var Zn=(0,dn.A1)(["Cascader","Panel"],Tt=>mn(Tt),fn);function tr(Tt){const{prefixCls:It,className:Dt,multiple:Bt,rootClassName:Zt,notFoundContent:tn,direction:Tn,expandIcon:Fn,disabled:dr}=Tt,_r=Ye.useContext(_n.Z),Kr=dr!=null?dr:_r,[Sr,hr,Mr,Br]=ur(It,Tn),Wr=(0,Bn.Z)(hr),[Jn,ii,Ur]=sn(hr,Wr);Zn(hr);const Gr=Mr==="rtl",[qr,Li]=$n(Sr,Gr,Fn),wi=tn||(Br==null?void 0:Br("Cascader"))||Ye.createElement(rn.Z,{componentName:"Cascader"}),ui=Nn(hr,Bt);return Jn(Ye.createElement(ct,Object.assign({},Tt,{checkable:ui,prefixCls:hr,className:pe()(Dt,ii,Zt,Ur,Wr),notFoundContent:wi,direction:Mr,expandIcon:qr,loadingIcon:Li,disabled:Kr})))}var Vt=tr,Gt=function(Tt,It){var Dt={};for(var Bt in Tt)Object.prototype.hasOwnProperty.call(Tt,Bt)&&It.indexOf(Bt)<0&&(Dt[Bt]=Tt[Bt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Bt=Object.getOwnPropertySymbols(Tt);Ztdr===0?[Fn]:[].concat((0,te.Z)(Tn),[It,Fn]),[]),Zt=[];let tn=0;return Bt.forEach((Tn,Fn)=>{const dr=tn+Tn.length;let _r=Tt.slice(tn,dr);tn=dr,Fn%2===1&&(_r=Ye.createElement("span",{className:`${Dt}-menu-item-keyword`,key:`separator-${Fn}`},_r)),Zt.push(_r)}),Zt}const Kt=(Tt,It,Dt,Bt)=>{const Zt=[],tn=Tt.toLowerCase();return It.forEach((Tn,Fn)=>{Fn!==0&&Zt.push(" / ");let dr=Tn[Bt.label];const _r=typeof dr;(_r==="string"||_r==="number")&&(dr=Mt(String(dr),tn,Dt)),Zt.push(dr)}),Zt},yt=Ye.forwardRef((Tt,It)=>{var Dt;const{prefixCls:Bt,size:Zt,disabled:tn,className:Tn,rootClassName:Fn,multiple:dr,bordered:_r=!0,transitionName:Kr,choiceTransitionName:Sr="",popupClassName:hr,dropdownClassName:Mr,expandIcon:Br,placement:Wr,showSearch:Jn,allowClear:ii=!0,notFoundContent:Ur,direction:Gr,getPopupContainer:qr,status:Li,showArrow:wi,builtinPlacements:ui,style:Qr,variant:Di}=Tt,oi=Gt(Tt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),di=(0,yn.Z)(oi,["suffixIcon"]),{getPrefixCls:ci,getPopupContainer:ki,className:Ki,style:ua}=(0,Ut.dj)("cascader"),{popupOverflow:kn}=Ye.useContext(Ut.E_),{status:qi,hasFeedback:Qi,isFormItemInput:ra,feedbackIcon:_i}=Ye.useContext(ln.aM),Ti=(0,Jt.F)(qi,Li),[Xr,rr,Dr,Fr]=ur(Bt,Gr),or=Dr==="rtl",ei=ci(),si=(0,Bn.Z)(Xr),[wr,Ir,Hr]=(0,Qn.Z)(Xr,si),ri=(0,Bn.Z)(rr),[un]=sn(rr,ri),{compactSize:Vn,compactItemClassnames:Sn}=(0,Cr.ri)(Xr,Gr),[Rr,ti]=(0,Cn.Z)("cascader",Di,_r),gn=Ur||(Fr==null?void 0:Fr("Cascader"))||Ye.createElement(rn.Z,{componentName:"Cascader"}),mi=pe()(hr||Mr,`${rr}-dropdown`,{[`${rr}-dropdown-rtl`]:Dr==="rtl"},Fn,si,ri,Ir,Hr),Nr=Ye.useMemo(()=>{if(!Jn)return Jn;let fa={render:Kt};return typeof Jn=="object"&&(fa=Object.assign(Object.assign({},fa),Jn)),fa},[Jn]),Ar=(0,kt.Z)(fa=>{var ca;return(ca=Zt!=null?Zt:Vn)!==null&&ca!==void 0?ca:fa}),pi=Ye.useContext(_n.Z),Gi=tn!=null?tn:pi,[gi,Wi]=$n(Xr,or,Br),Jr=Nn(rr,dr),li=(0,lr.Z)(Tt.suffixIcon,wi),{suffixIcon:Zr,removeIcon:Vi,clearIcon:sa}=(0,mr.Z)(Object.assign(Object.assign({},Tt),{hasFeedback:Qi,feedbackIcon:_i,showSuffixIcon:li,multiple:dr,prefixCls:Xr,componentName:"Cascader"})),vi=Ye.useMemo(()=>Wr!==void 0?Wr:or?"bottomRight":"bottomLeft",[Wr,or]),Ni=ii===!0?{clearIcon:sa}:ii,[Ii]=(0,xn.Cn)("SelectLike",(Dt=di.dropdownStyle)===null||Dt===void 0?void 0:Dt.zIndex),Mi=Ye.createElement(on,Object.assign({prefixCls:Xr,className:pe()(!Bt&&rr,{[`${Xr}-lg`]:Ar==="large",[`${Xr}-sm`]:Ar==="small",[`${Xr}-rtl`]:or,[`${Xr}-${Rr}`]:ti,[`${Xr}-in-form-item`]:ra},(0,Jt.Z)(Xr,Ti,Qi),Sn,Ki,Tn,Fn,si,ri,Ir,Hr),disabled:Gi,style:Object.assign(Object.assign({},ua),Qr)},di,{builtinPlacements:(0,Mn.Z)(ui,kn),direction:Dr,placement:vi,notFoundContent:gn,allowClear:Ni,showSearch:Nr,expandIcon:gi,suffixIcon:Zr,removeIcon:Vi,loadingIcon:Wi,checkable:Jr,dropdownClassName:mi,dropdownPrefixCls:Bt||rr,dropdownStyle:Object.assign(Object.assign({},di.dropdownStyle),{zIndex:Ii}),choiceTransitionName:(0,an.m)(ei,"",Sr),transitionName:(0,an.m)(ei,"slide-up",Kr),getPopupContainer:qr||ki,ref:It}));return un(wr(Mi))}),qt=(0,An.Z)(yt,"dropdownAlign",Tt=>(0,yn.Z)(Tt,["visible"]));yt.SHOW_PARENT=jt,yt.SHOW_CHILD=Rt,yt.Panel=Vt,yt._InternalPanelDoNotUseOrYouWillBeFired=qt;var vn=yt},62673:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return _e}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(16632),Oe=Ce(8654),ve=Ce(12919),ue=Ce(63872),fe=Ce(48755),he=Ce(2171),le=Ce(83397),ae=Ce(56553),me=te.createContext(null),E=Ce(36170),b=Ce(74632),z=function(ye,be){var Se={};for(var Be in ye)Object.prototype.hasOwnProperty.call(ye,Be)&&be.indexOf(Be)<0&&(Se[Be]=ye[Be]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(ye);Ae{var Se;const{prefixCls:Be,className:Ae,rootClassName:we,children:Ue,indeterminate:Pe=!1,style:ze,onMouseEnter:Ke,onMouseLeave:Ne,skipGroup:Re=!1,disabled:$e}=ye,nt=z(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ut,direction:Qe,checkbox:rt}=te.useContext(fe.E_),pt=te.useContext(me),{isFormItemInput:At}=te.useContext(ae.aM),gt=te.useContext(he.Z),Ft=(Se=(pt==null?void 0:pt.disabled)||$e)!==null&&Se!==void 0?Se:gt,Ct=te.useRef(nt.value),Yt=te.useRef(null),zt=(0,Oe.sQ)(be,Yt);te.useEffect(()=>{pt==null||pt.registerValue(nt.value)},[]),te.useEffect(()=>{if(!Re)return nt.value!==Ct.current&&(pt==null||pt.cancelValue(Ct.current),pt==null||pt.registerValue(nt.value),Ct.current=nt.value),()=>pt==null?void 0:pt.cancelValue(nt.value)},[nt.value]),te.useEffect(()=>{var ct;!((ct=Yt.current)===null||ct===void 0)&&ct.input&&(Yt.current.input.indeterminate=Pe)},[Pe]);const Xe=ut("checkbox",Be),Fe=(0,le.Z)(Xe),[Le,Ze,et]=(0,E.ZP)(Xe,Fe),He=Object.assign({},nt);pt&&!Re&&(He.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),pt.toggleOption&&pt.toggleOption({label:Ue,value:nt.value})},He.name=pt.name,He.checked=pt.value.includes(nt.value));const We=Me()(`${Xe}-wrapper`,{[`${Xe}-rtl`]:Qe==="rtl",[`${Xe}-wrapper-checked`]:He.checked,[`${Xe}-wrapper-disabled`]:Ft,[`${Xe}-wrapper-in-form-item`]:At},rt==null?void 0:rt.className,Ae,we,et,Fe,Ze),tt=Me()({[`${Xe}-indeterminate`]:Pe},ue.A,Ze),[at,ot]=(0,b.Z)(He.onClick);return Le(te.createElement(ve.Z,{component:"Checkbox",disabled:Ft},te.createElement("label",{className:We,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ze),onMouseEnter:Ke,onMouseLeave:Ne,onClick:at},te.createElement(pe.Z,Object.assign({},He,{onClick:ot,prefixCls:Xe,className:tt,disabled:Ft,ref:zt})),Ue!==void 0&&te.createElement("span",{className:`${Xe}-label`},Ue))))};var se=te.forwardRef(ne),de=Ce(77654),a=Ce(2738),x=function(ye,be){var Se={};for(var Be in ye)Object.prototype.hasOwnProperty.call(ye,Be)&&be.indexOf(Be)<0&&(Se[Be]=ye[Be]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(ye);Ae{const{defaultValue:Se,children:Be,options:Ae=[],prefixCls:we,className:Ue,rootClassName:Pe,style:ze,onChange:Ke}=ye,Ne=x(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Re,direction:$e}=te.useContext(fe.E_),[nt,ut]=te.useState(Ne.value||Se||[]),[Qe,rt]=te.useState([]);te.useEffect(()=>{"value"in Ne&&ut(Ne.value||[])},[Ne.value]);const pt=te.useMemo(()=>Ae.map(tt=>typeof tt=="string"||typeof tt=="number"?{label:tt,value:tt}:tt),[Ae]),At=tt=>{rt(at=>at.filter(ot=>ot!==tt))},gt=tt=>{rt(at=>[].concat((0,de.Z)(at),[tt]))},Ft=tt=>{const at=nt.indexOf(tt.value),ot=(0,de.Z)(nt);at===-1?ot.push(tt.value):ot.splice(at,1),"value"in Ne||ut(ot),Ke==null||Ke(ot.filter(ct=>Qe.includes(ct)).sort((ct,lt)=>{const mt=pt.findIndex(ft=>ft.value===ct),Lt=pt.findIndex(ft=>ft.value===lt);return mt-Lt}))},Ct=Re("checkbox",we),Yt=`${Ct}-group`,zt=(0,le.Z)(Ct),[Xe,Fe,Le]=(0,E.ZP)(Ct,zt),Ze=(0,a.Z)(Ne,["value","disabled"]),et=Ae.length?pt.map(tt=>te.createElement(se,{prefixCls:Ct,key:tt.value.toString(),disabled:"disabled"in tt?tt.disabled:Ne.disabled,value:tt.value,checked:nt.includes(tt.value),onChange:tt.onChange,className:`${Yt}-item`,style:tt.style,title:tt.title,id:tt.id,required:tt.required},tt.label)):Be,He={toggleOption:Ft,value:nt,disabled:Ne.disabled,name:Ne.name,registerValue:gt,cancelValue:At},We=Me()(Yt,{[`${Yt}-rtl`]:$e==="rtl"},Ue,Pe,Le,zt,Fe);return Xe(te.createElement("div",Object.assign({className:We,style:ze},Ze,{ref:be}),te.createElement(me.Provider,{value:He},et)))});const ge=se;ge.Group=ce,ge.__ANT_CHECKBOX=!0;var _e=ge},36170:function(Yn,en,Ce){"use strict";Ce.d(en,{C2:function(){return ve}});var te=Ce(36237),Ye=Ce(63356),Me=Ce(51636),pe=Ce(16931);const Oe=ue=>{const{checkboxCls:fe}=ue,he=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,Ye.Wf)(ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:ue.marginXS,[`> ${ue.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,Ye.Wf)(ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,Ye.Wf)(ue)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ue.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,Ye.oN)(ue))},[`${fe}-inner`]:{boxSizing:"border-box",display:"block",width:ue.checkboxSize,height:ue.checkboxSize,direction:"ltr",backgroundColor:ue.colorBgContainer,border:`${(0,te.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,borderCollapse:"separate",transition:`all ${ue.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:ue.calc(ue.checkboxSize).div(14).mul(5).equal(),height:ue.calc(ue.checkboxSize).div(14).mul(8).equal(),border:`${(0,te.unit)(ue.lineWidthBold)} solid ${ue.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ue.motionDurationFast} ${ue.motionEaseInBack}, opacity ${ue.motionDurationFast}`}},"& + span":{paddingInlineStart:ue.paddingXS,paddingInlineEnd:ue.paddingXS}})},{[` ${he}:not(${he}-disabled), ${fe}:not(${fe}-disabled) `]:{[`&:hover ${fe}-inner`]:{borderColor:ue.colorPrimary}},[`${he}:not(${he}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:ue.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:ue.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:ue.colorPrimary,borderColor:ue.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ue.motionDurationMid} ${ue.motionEaseOutBack} ${ue.motionDurationFast}`}}},[` ${he}-checked:not(${he}-disabled), ${fe}-checked:not(${fe}-disabled) `]:{[`&:hover ${fe}-inner`]:{backgroundColor:ue.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:`${ue.colorBgContainer} !important`,borderColor:`${ue.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:ue.calc(ue.fontSizeLG).div(2).equal(),height:ue.calc(ue.fontSizeLG).div(2).equal(),backgroundColor:ue.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${fe}-inner`]:{backgroundColor:`${ue.colorBgContainer} !important`,borderColor:`${ue.colorPrimary} !important`}}}},{[`${he}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,"&:after":{borderColor:ue.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ue.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:ue.colorTextDisabled}}}]};function ve(ue,fe){const he=(0,Me.mergeToken)(fe,{checkboxCls:`.${ue}`,checkboxSize:fe.controlInteractiveSize});return[Oe(he)]}en.ZP=(0,pe.I$)("Checkbox",(ue,fe)=>{let{prefixCls:he}=fe;return[ve(he,ue)]})},38406:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(48755),Me=Ce(584);const pe=Oe=>{const{componentName:ve}=Oe,{getPrefixCls:ue}=(0,te.useContext)(Ye.E_),fe=ue("empty");switch(ve){case"Table":case"List":return te.createElement(Me.Z,{image:Me.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(Me.Z,{image:Me.Z.PRESENTED_IMAGE_SIMPLE,className:`${fe}-small`});case"Table.filter":return null;default:return te.createElement(Me.Z,null)}};en.Z=pe},37285:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return E}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(48755),Oe=Ce(36237),ve=Ce(63356),ue=Ce(16931),fe=Ce(51636);const he=b=>{const{componentCls:z,sizePaddingEdgeHorizontal:ne,colorSplit:oe,lineWidth:se,textPaddingInline:de,orientationMargin:a,verticalMarginInline:x}=b;return{[z]:Object.assign(Object.assign({},(0,ve.Wf)(b)),{borderBlockStart:`${(0,Oe.unit)(se)} solid ${oe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:x,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Oe.unit)(se)} solid ${oe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Oe.unit)(b.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${z}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Oe.unit)(b.dividerHorizontalWithTextGutterMargin)} 0`,color:b.colorTextHeading,fontWeight:500,fontSize:b.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${oe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Oe.unit)(se)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${z}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${z}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${z}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:de},"&-dashed":{background:"none",borderColor:oe,borderStyle:"dashed",borderWidth:`${(0,Oe.unit)(se)} 0 0`},[`&-horizontal${z}-with-text${z}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${z}-dashed`]:{borderInlineStartWidth:se,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:oe,borderStyle:"dotted",borderWidth:`${(0,Oe.unit)(se)} 0 0`},[`&-horizontal${z}-with-text${z}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${z}-dotted`]:{borderInlineStartWidth:se,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${z}-with-text`]:{color:b.colorText,fontWeight:"normal",fontSize:b.fontSize},[`&-horizontal${z}-with-text-start${z}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${z}-inner-text`]:{paddingInlineStart:ne}},[`&-horizontal${z}-with-text-end${z}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${z}-inner-text`]:{paddingInlineEnd:ne}}})}},le=b=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:b.marginXS});var ae=(0,ue.I$)("Divider",b=>{const z=(0,fe.mergeToken)(b,{dividerHorizontalWithTextGutterMargin:b.margin,dividerHorizontalGutterMargin:b.marginLG,sizePaddingEdgeHorizontal:0});return[he(z)]},le,{unitless:{orientationMargin:!0}}),ie=function(b,z){var ne={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&z.indexOf(oe)<0&&(ne[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);se{const{getPrefixCls:z,direction:ne,className:oe,style:se}=(0,pe.dj)("divider"),{prefixCls:de,type:a="horizontal",orientation:x="center",orientationMargin:re,className:ce,rootClassName:ge,children:_e,dashed:ye,variant:be="solid",plain:Se,style:Be}=b,Ae=ie(b,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),we=z("divider",de),[Ue,Pe,ze]=ae(we),Ke=!!_e,Ne=te.useMemo(()=>x==="left"?ne==="rtl"?"end":"start":x==="right"?ne==="rtl"?"start":"end":x,[ne,x]),Re=Ne==="start"&&re!=null,$e=Ne==="end"&&re!=null,nt=Me()(we,oe,Pe,ze,`${we}-${a}`,{[`${we}-with-text`]:Ke,[`${we}-with-text-${Ne}`]:Ke,[`${we}-dashed`]:!!ye,[`${we}-${be}`]:be!=="solid",[`${we}-plain`]:!!Se,[`${we}-rtl`]:ne==="rtl",[`${we}-no-default-orientation-margin-start`]:Re,[`${we}-no-default-orientation-margin-end`]:$e},ce,ge),ut=te.useMemo(()=>typeof re=="number"?re:/^\d+$/.test(re)?Number(re):re,[re]),Qe={marginInlineStart:Re?ut:void 0,marginInlineEnd:$e?ut:void 0};return Ue(te.createElement("div",Object.assign({className:nt,style:Object.assign(Object.assign({},se),Be)},Ae,{role:"separator"}),_e&&a!=="vertical"&&te.createElement("span",{className:`${we}-inner-text`,style:Qe},_e)))}},36207:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return at}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(85899),Oe=Ce(72190),ve=Ce(43403),ue=Ce(34280),fe=te.createContext(null),he=te.createContext({}),le=fe,ae=Ce(18642),ie=Ce(60499),me=Ce(77900),E=Ce(10228),b=Ce(26112),z=Ce(42244),ne=Ce(8654),oe=["prefixCls","className","containerRef"],se=function(ct){var lt=ct.prefixCls,mt=ct.className,Lt=ct.containerRef,ft=(0,z.Z)(ct,oe),St=te.useContext(he),nn=St.panel,on=(0,ne.x1)(nn,Lt);return te.createElement("div",(0,ie.Z)({className:Me()("".concat(lt,"-content"),mt),role:"dialog",ref:on},(0,b.Z)(ct,{aria:!0}),{"aria-modal":"true"},ft))},de=se,a=Ce(48736);function x(ot){return typeof ot=="string"&&String(Number(ot))===ot?((0,a.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ot)):ot}function re(ot){warning(!("wrapperClassName"in ot),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ot.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ce={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ge(ot,ct){var lt,mt,Lt,ft=ot.prefixCls,St=ot.open,nn=ot.placement,on=ot.inline,yn=ot.push,xn=ot.forceRender,an=ot.autoFocus,An=ot.keyboard,Jt=ot.classNames,Ut=ot.rootClassName,rn=ot.rootStyle,_n=ot.zIndex,Bn=ot.className,kt=ot.id,ln=ot.style,Cn=ot.motion,Mn=ot.width,Qn=ot.height,mr=ot.children,lr=ot.mask,Cr=ot.maskClosable,nr=ot.maskMotion,ur=ot.maskClassName,Nn=ot.maskStyle,In=ot.afterOpenChange,Wn=ot.onClose,Kn=ot.onMouseEnter,Ln=ot.onMouseOver,$n=ot.onMouseLeave,ar=ot.onClick,dn=ot.onKeyDown,Ie=ot.onKeyUp,je=ot.styles,Je=ot.drawerRender,ht=te.useRef(),Et=te.useRef(),Qt=te.useRef();te.useImperativeHandle(ct,function(){return ht.current});var fn=function(Dt){var Bt=Dt.keyCode,Zt=Dt.shiftKey;switch(Bt){case E.Z.TAB:{if(Bt===E.Z.TAB){if(!Zt&&document.activeElement===Qt.current){var tn;(tn=Et.current)===null||tn===void 0||tn.focus({preventScroll:!0})}else if(Zt&&document.activeElement===Et.current){var Tn;(Tn=Qt.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}}break}case E.Z.ESC:{Wn&&An&&(Dt.stopPropagation(),Wn(Dt));break}}};te.useEffect(function(){if(St&&an){var It;(It=ht.current)===null||It===void 0||It.focus({preventScroll:!0})}},[St]);var sn=te.useState(!1),mn=(0,Oe.Z)(sn,2),Zn=mn[0],tr=mn[1],Vt=te.useContext(le),Gt;typeof yn=="boolean"?Gt=yn?{}:{distance:0}:Gt=yn||{};var Rt=(lt=(mt=(Lt=Gt)===null||Lt===void 0?void 0:Lt.distance)!==null&&mt!==void 0?mt:Vt==null?void 0:Vt.pushDistance)!==null&<!==void 0?lt:180,jt=te.useMemo(function(){return{pushDistance:Rt,push:function(){tr(!0)},pull:function(){tr(!1)}}},[Rt]);te.useEffect(function(){if(St){var It;Vt==null||(It=Vt.push)===null||It===void 0||It.call(Vt)}else{var Dt;Vt==null||(Dt=Vt.pull)===null||Dt===void 0||Dt.call(Vt)}},[St]),te.useEffect(function(){return function(){var It;Vt==null||(It=Vt.pull)===null||It===void 0||It.call(Vt)}},[]);var Mt=lr&&te.createElement(me.default,(0,ie.Z)({key:"mask"},nr,{visible:St}),function(It,Dt){var Bt=It.className,Zt=It.style;return te.createElement("div",{className:Me()("".concat(ft,"-mask"),Bt,Jt==null?void 0:Jt.mask,ur),style:(0,pe.Z)((0,pe.Z)((0,pe.Z)({},Zt),Nn),je==null?void 0:je.mask),onClick:Cr&&St?Wn:void 0,ref:Dt})}),Kt=typeof Cn=="function"?Cn(nn):Cn,yt={};if(Zn&&Rt)switch(nn){case"top":yt.transform="translateY(".concat(Rt,"px)");break;case"bottom":yt.transform="translateY(".concat(-Rt,"px)");break;case"left":yt.transform="translateX(".concat(Rt,"px)");break;default:yt.transform="translateX(".concat(-Rt,"px)");break}nn==="left"||nn==="right"?yt.width=x(Mn):yt.height=x(Qn);var qt={onMouseEnter:Kn,onMouseOver:Ln,onMouseLeave:$n,onClick:ar,onKeyDown:dn,onKeyUp:Ie},vn=te.createElement(me.default,(0,ie.Z)({key:"panel"},Kt,{visible:St,forceRender:xn,onVisibleChanged:function(Dt){In==null||In(Dt)},removeOnLeave:!1,leavedClassName:"".concat(ft,"-content-wrapper-hidden")}),function(It,Dt){var Bt=It.className,Zt=It.style,tn=te.createElement(de,(0,ie.Z)({id:kt,containerRef:Dt,prefixCls:ft,className:Me()(Bn,Jt==null?void 0:Jt.content),style:(0,pe.Z)((0,pe.Z)({},ln),je==null?void 0:je.content)},(0,b.Z)(ot,{aria:!0}),qt),mr);return te.createElement("div",(0,ie.Z)({className:Me()("".concat(ft,"-content-wrapper"),Jt==null?void 0:Jt.wrapper,Bt),style:(0,pe.Z)((0,pe.Z)((0,pe.Z)({},yt),Zt),je==null?void 0:je.wrapper)},(0,b.Z)(ot,{data:!0})),Je?Je(tn):tn)}),Tt=(0,pe.Z)({},rn);return _n&&(Tt.zIndex=_n),te.createElement(le.Provider,{value:jt},te.createElement("div",{className:Me()(ft,"".concat(ft,"-").concat(nn),Ut,(0,ae.Z)((0,ae.Z)({},"".concat(ft,"-open"),St),"".concat(ft,"-inline"),on)),style:Tt,tabIndex:-1,ref:ht,onKeyDown:fn},Mt,te.createElement("div",{tabIndex:0,ref:Et,style:ce,"aria-hidden":"true","data-sentinel":"start"}),vn,te.createElement("div",{tabIndex:0,ref:Qt,style:ce,"aria-hidden":"true","data-sentinel":"end"})))}var _e=te.forwardRef(ge),ye=_e,be=function(ct){var lt=ct.open,mt=lt===void 0?!1:lt,Lt=ct.prefixCls,ft=Lt===void 0?"rc-drawer":Lt,St=ct.placement,nn=St===void 0?"right":St,on=ct.autoFocus,yn=on===void 0?!0:on,xn=ct.keyboard,an=xn===void 0?!0:xn,An=ct.width,Jt=An===void 0?378:An,Ut=ct.mask,rn=Ut===void 0?!0:Ut,_n=ct.maskClosable,Bn=_n===void 0?!0:_n,kt=ct.getContainer,ln=ct.forceRender,Cn=ct.afterOpenChange,Mn=ct.destroyOnClose,Qn=ct.onMouseEnter,mr=ct.onMouseOver,lr=ct.onMouseLeave,Cr=ct.onClick,nr=ct.onKeyDown,ur=ct.onKeyUp,Nn=ct.panelRef,In=te.useState(!1),Wn=(0,Oe.Z)(In,2),Kn=Wn[0],Ln=Wn[1],$n=te.useState(!1),ar=(0,Oe.Z)($n,2),dn=ar[0],Ie=ar[1];(0,ue.Z)(function(){Ie(!0)},[]);var je=dn?mt:!1,Je=te.useRef(),ht=te.useRef();(0,ue.Z)(function(){je&&(ht.current=document.activeElement)},[je]);var Et=function(Zn){var tr;if(Ln(Zn),Cn==null||Cn(Zn),!Zn&&ht.current&&!((tr=Je.current)!==null&&tr!==void 0&&tr.contains(ht.current))){var Vt;(Vt=ht.current)===null||Vt===void 0||Vt.focus({preventScroll:!0})}},Qt=te.useMemo(function(){return{panel:Nn}},[Nn]);if(!ln&&!Kn&&!je&&Mn)return null;var fn={onMouseEnter:Qn,onMouseOver:mr,onMouseLeave:lr,onClick:Cr,onKeyDown:nr,onKeyUp:ur},sn=(0,pe.Z)((0,pe.Z)({},ct),{},{open:je,prefixCls:ft,placement:nn,autoFocus:yn,keyboard:an,width:Jt,mask:rn,maskClosable:Bn,inline:kt===!1,afterOpenChange:Et,ref:Je},fn);return te.createElement(he.Provider,{value:Qt},te.createElement(ve.Z,{open:je||ln||Kn,autoDestroy:!1,getContainer:kt,autoLock:rn&&(je||Kn)},te.createElement(ye,sn)))},Se=be,Be=Se,Ae=Ce(62487),we=Ce(75030),Ue=Ce(86641),Pe=Ce(55743),ze=Ce(48755),Ke=Ce(91190),Ne=Ce(78776),Re=Ce(458),nt=ot=>{var ct,lt;const{prefixCls:mt,title:Lt,footer:ft,extra:St,loading:nn,onClose:on,headerStyle:yn,bodyStyle:xn,footerStyle:an,children:An,classNames:Jt,styles:Ut}=ot,rn=(0,ze.dj)("drawer"),_n=te.useCallback(Mn=>te.createElement("button",{type:"button",onClick:on,"aria-label":"Close",className:`${mt}-close`},Mn),[on]),[Bn,kt]=(0,Ne.Z)((0,Ne.w)(ot),(0,Ne.w)(rn),{closable:!0,closeIconRender:_n}),ln=te.useMemo(()=>{var Mn,Qn;return!Lt&&!Bn?null:te.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mn=rn.styles)===null||Mn===void 0?void 0:Mn.header),yn),Ut==null?void 0:Ut.header),className:Me()(`${mt}-header`,{[`${mt}-header-close-only`]:Bn&&!Lt&&!St},(Qn=rn.classNames)===null||Qn===void 0?void 0:Qn.header,Jt==null?void 0:Jt.header)},te.createElement("div",{className:`${mt}-header-title`},kt,Lt&&te.createElement("div",{className:`${mt}-title`},Lt)),St&&te.createElement("div",{className:`${mt}-extra`},St))},[Bn,kt,St,yn,mt,Lt]),Cn=te.useMemo(()=>{var Mn,Qn;if(!ft)return null;const mr=`${mt}-footer`;return te.createElement("div",{className:Me()(mr,(Mn=rn.classNames)===null||Mn===void 0?void 0:Mn.footer,Jt==null?void 0:Jt.footer),style:Object.assign(Object.assign(Object.assign({},(Qn=rn.styles)===null||Qn===void 0?void 0:Qn.footer),an),Ut==null?void 0:Ut.footer)},ft)},[ft,an,mt]);return te.createElement(te.Fragment,null,ln,te.createElement("div",{className:Me()(`${mt}-body`,Jt==null?void 0:Jt.body,(ct=rn.classNames)===null||ct===void 0?void 0:ct.body),style:Object.assign(Object.assign(Object.assign({},(lt=rn.styles)===null||lt===void 0?void 0:lt.body),xn),Ut==null?void 0:Ut.body)},nn?te.createElement(Re.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${mt}-body-skeleton`}):An),Cn)},ut=Ce(36237),Qe=Ce(63356),rt=Ce(16931),pt=Ce(51636);const At=ot=>{const ct="100%";return{left:`translateX(-${ct})`,right:`translateX(${ct})`,top:`translateY(-${ct})`,bottom:`translateY(${ct})`}[ot]},gt=(ot,ct)=>({"&-enter, &-appear":Object.assign(Object.assign({},ot),{"&-active":ct}),"&-leave":Object.assign(Object.assign({},ct),{"&-active":ot})}),Ft=(ot,ct)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ct}`}}},gt({opacity:ot},{opacity:1})),Ct=(ot,ct)=>[Ft(.7,ct),gt({transform:At(ot)},{transform:"none"})];var zt=ot=>{const{componentCls:ct,motionDurationSlow:lt}=ot;return{[ct]:{[`${ct}-mask-motion`]:Ft(0,lt),[`${ct}-panel-motion`]:["left","right","top","bottom"].reduce((mt,Lt)=>Object.assign(Object.assign({},mt),{[`&-${Lt}`]:Ct(Lt,lt)}),{})}}};const Xe=ot=>{const{borderRadiusSM:ct,componentCls:lt,zIndexPopup:mt,colorBgMask:Lt,colorBgElevated:ft,motionDurationSlow:St,motionDurationMid:nn,paddingXS:on,padding:yn,paddingLG:xn,fontSizeLG:an,lineHeightLG:An,lineWidth:Jt,lineType:Ut,colorSplit:rn,marginXS:_n,colorIcon:Bn,colorIconHover:kt,colorBgTextHover:ln,colorBgTextActive:Cn,colorText:Mn,fontWeightStrong:Qn,footerPaddingBlock:mr,footerPaddingInline:lr,calc:Cr}=ot,nr=`${lt}-content-wrapper`;return{[lt]:{position:"fixed",inset:0,zIndex:mt,pointerEvents:"none",color:Mn,"&-pure":{position:"relative",background:ft,display:"flex",flexDirection:"column",[`&${lt}-left`]:{boxShadow:ot.boxShadowDrawerLeft},[`&${lt}-right`]:{boxShadow:ot.boxShadowDrawerRight},[`&${lt}-top`]:{boxShadow:ot.boxShadowDrawerUp},[`&${lt}-bottom`]:{boxShadow:ot.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${lt}-mask`]:{position:"absolute",inset:0,zIndex:mt,background:Lt,pointerEvents:"auto"},[nr]:{position:"absolute",zIndex:mt,maxWidth:"100vw",transition:`all ${St}`,"&-hidden":{display:"none"}},[`&-left > ${nr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ot.boxShadowDrawerLeft},[`&-right > ${nr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ot.boxShadowDrawerRight},[`&-top > ${nr}`]:{top:0,insetInline:0,boxShadow:ot.boxShadowDrawerUp},[`&-bottom > ${nr}`]:{bottom:0,insetInline:0,boxShadow:ot.boxShadowDrawerDown},[`${lt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ft,pointerEvents:"auto"},[`${lt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,ut.unit)(yn)} ${(0,ut.unit)(xn)}`,fontSize:an,lineHeight:An,borderBottom:`${(0,ut.unit)(Jt)} ${Ut} ${rn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${lt}-extra`]:{flex:"none"},[`${lt}-close`]:Object.assign({display:"inline-flex",width:Cr(an).add(on).equal(),height:Cr(an).add(on).equal(),borderRadius:ct,justifyContent:"center",alignItems:"center",marginInlineEnd:_n,color:Bn,fontWeight:Qn,fontSize:an,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${nn}`,textRendering:"auto","&:hover":{color:kt,backgroundColor:ln,textDecoration:"none"},"&:active":{backgroundColor:Cn}},(0,Qe.Qy)(ot)),[`${lt}-title`]:{flex:1,margin:0,fontWeight:ot.fontWeightStrong,fontSize:an,lineHeight:An},[`${lt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:xn,overflow:"auto",[`${lt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${lt}-footer`]:{flexShrink:0,padding:`${(0,ut.unit)(mr)} ${(0,ut.unit)(lr)}`,borderTop:`${(0,ut.unit)(Jt)} ${Ut} ${rn}`},"&-rtl":{direction:"rtl"}}}},Fe=ot=>({zIndexPopup:ot.zIndexPopupBase,footerPaddingBlock:ot.paddingXS,footerPaddingInline:ot.padding});var Le=(0,rt.I$)("Drawer",ot=>{const ct=(0,pt.mergeToken)(ot,{});return[Xe(ct),zt(ct)]},Fe),Ze=function(ot,ct){var lt={};for(var mt in ot)Object.prototype.hasOwnProperty.call(ot,mt)&&ct.indexOf(mt)<0&&(lt[mt]=ot[mt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,mt=Object.getOwnPropertySymbols(ot);Lt{var ct;const{rootClassName:lt,width:mt,height:Lt,size:ft="default",mask:St=!0,push:nn=He,open:on,afterOpenChange:yn,onClose:xn,prefixCls:an,getContainer:An,style:Jt,className:Ut,visible:rn,afterVisibleChange:_n,maskStyle:Bn,drawerStyle:kt,contentWrapperStyle:ln}=ot,Cn=Ze(ot,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mn,getPrefixCls:Qn,direction:mr,className:lr,style:Cr,classNames:nr,styles:ur}=(0,ze.dj)("drawer"),Nn=Qn("drawer",an),[In,Wn,Kn]=Le(Nn),Ln=An===void 0&&Mn?()=>Mn(document.body):An,$n=Me()({"no-mask":!St,[`${Nn}-rtl`]:mr==="rtl"},lt,Wn,Kn),ar=te.useMemo(()=>mt!=null?mt:ft==="large"?736:378,[mt,ft]),dn=te.useMemo(()=>Lt!=null?Lt:ft==="large"?736:378,[Lt,ft]),Ie={motionName:(0,Ue.m)(Nn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},je=sn=>({motionName:(0,Ue.m)(Nn,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Je=(0,Ke.H)(),[ht,Et]=(0,we.Cn)("Drawer",Cn.zIndex),{classNames:Qt={},styles:fn={}}=Cn;return In(te.createElement(Ae.Z,{form:!0,space:!0},te.createElement(Pe.Z.Provider,{value:Et},te.createElement(Be,Object.assign({prefixCls:Nn,onClose:xn,maskMotion:Ie,motion:je},Cn,{classNames:{mask:Me()(Qt.mask,nr.mask),content:Me()(Qt.content,nr.content),wrapper:Me()(Qt.wrapper,nr.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},fn.mask),Bn),ur.mask),content:Object.assign(Object.assign(Object.assign({},fn.content),kt),ur.content),wrapper:Object.assign(Object.assign(Object.assign({},fn.wrapper),ln),ur.wrapper)},open:on!=null?on:rn,mask:St,push:nn,width:ar,height:dn,style:Object.assign(Object.assign({},Cr),Jt),className:Me()(lr,Ut),rootClassName:$n,getContainer:Ln,afterOpenChange:yn!=null?yn:_n,panelRef:Je,zIndex:ht}),te.createElement(nt,Object.assign({prefixCls:Nn},Cn,{onClose:xn}))))))},tt=ot=>{const{prefixCls:ct,style:lt,className:mt,placement:Lt="right"}=ot,ft=Ze(ot,["prefixCls","style","className","placement"]),{getPrefixCls:St}=te.useContext(ze.E_),nn=St("drawer",ct),[on,yn,xn]=Le(nn),an=Me()(nn,`${nn}-pure`,`${nn}-${Lt}`,yn,xn,mt);return on(te.createElement("div",{className:an,style:lt},te.createElement(nt,Object.assign({prefixCls:nn},ft))))};We._InternalPanelDoNotUseOrYouWillBeFired=tt;var at=We},19563:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ut}});var te=Ce(59301),Ye=Ce(33853),Me=Ce(38819),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(96478),ue=Ce(6089),fe=Ce(18929),he=Ce(2738),le=Ce(75030),ie=Qe=>typeof Qe!="object"&&typeof Qe!="function"||Qe===null,me=Ce(52838),E=Ce(45915),b=Ce(22703),z=Ce(32383),ne=Ce(55743),oe=Ce(48755),se=Ce(83397),de=Ce(93041),a=Ce(78857),x=Ce(57700),re=Ce(36237),ce=Ce(63356),ge=Ce(46e3),_e=Ce(93873),ye=Ce(34925),be=Ce(37645),Se=Ce(36305),Be=Ce(16931),Ae=Ce(51636),Ue=Qe=>{const{componentCls:rt,menuCls:pt,colorError:At,colorTextLightSolid:gt}=Qe,Ft=`${pt}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${pt} ${Ft}`]:{[`&${Ft}-danger:not(${Ft}-disabled)`]:{color:At,"&:hover":{color:gt,backgroundColor:At}}}}}};const Pe=Qe=>{const{componentCls:rt,menuCls:pt,zIndexPopup:At,dropdownArrowDistance:gt,sizePopupArrow:Ft,antCls:Ct,iconCls:Yt,motionDurationMid:zt,paddingBlock:Xe,fontSize:Fe,dropdownEdgeChildPadding:Le,colorTextDisabled:Ze,fontSizeIcon:et,controlPaddingHorizontal:He,colorBgElevated:We}=Qe;return[{[rt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:At,display:"block","&::before":{position:"absolute",insetBlock:Qe.calc(Ft).div(2).sub(gt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ct}-btn`]:{[`& > ${Yt}-down, & > ${Ct}-btn-icon > ${Yt}-down`]:{fontSize:et}},[`${rt}-wrap`]:{position:"relative",[`${Ct}-btn > ${Yt}-down`]:{fontSize:et},[`${Yt}-down::before`]:{transition:`transform ${zt}`}},[`${rt}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottomLeft, &${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottomLeft, &${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottom, &${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottom, &${Ct}-slide-down-enter${Ct}-slide-down-enter-active${rt}-placement-bottomRight, &${Ct}-slide-down-appear${Ct}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:ge.fJ},[`&${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-topLeft, &${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-topLeft, &${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-top, &${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-top, &${Ct}-slide-up-enter${Ct}-slide-up-enter-active${rt}-placement-topRight, &${Ct}-slide-up-appear${Ct}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:ge.Qt},[`&${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottomLeft, &${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottom, &${Ct}-slide-down-leave${Ct}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:ge.Uw},[`&${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-topLeft, &${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-top, &${Ct}-slide-up-leave${Ct}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:ge.ly}}},(0,be.ZP)(Qe,We,{arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${pt}`]:{position:"relative",margin:0},[`${pt}-submenu-popup`]:{position:"absolute",zIndex:At,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:Object.assign(Object.assign({},(0,ce.Wf)(Qe)),{[pt]:Object.assign(Object.assign({padding:Le,listStyleType:"none",backgroundColor:We,backgroundClip:"padding-box",borderRadius:Qe.borderRadiusLG,outline:"none",boxShadow:Qe.boxShadowSecondary},(0,ce.Qy)(Qe)),{"&:empty":{padding:0,boxShadow:"none"},[`${pt}-item-group-title`]:{padding:`${(0,re.unit)(Xe)} ${(0,re.unit)(He)}`,color:Qe.colorTextDescription,transition:`all ${zt}`},[`${pt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pt}-item-icon`]:{minWidth:Fe,marginInlineEnd:Qe.marginXS,fontSize:Qe.fontSizeSM},[`${pt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${zt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${pt}-item-extra`]:{paddingInlineStart:Qe.padding,marginInlineStart:"auto",fontSize:Qe.fontSizeSM,color:Qe.colorTextDescription}},[`${pt}-item, ${pt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,re.unit)(Xe)} ${(0,re.unit)(He)}`,color:Qe.colorText,fontWeight:"normal",fontSize:Fe,lineHeight:Qe.lineHeight,cursor:"pointer",transition:`all ${zt}`,borderRadius:Qe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Qe.controlItemBgHover}},(0,ce.Qy)(Qe)),{"&-selected":{color:Qe.colorPrimary,backgroundColor:Qe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Qe.controlItemBgActiveHover}},"&-disabled":{color:Ze,cursor:"not-allowed","&:hover":{color:Ze,backgroundColor:We,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,re.unit)(Qe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Qe.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Qe.colorTextDescription,fontSize:et,fontStyle:"normal"}}}),[`${pt}-item-group-list`]:{margin:`0 ${(0,re.unit)(Qe.marginXS)}`,padding:0,listStyle:"none"},[`${pt}-submenu-title`]:{paddingInlineEnd:Qe.calc(He).add(Qe.fontSizeSM).equal()},[`${pt}-submenu-vertical`]:{position:"relative"},[`${pt}-submenu${pt}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:Ze,backgroundColor:We,cursor:"not-allowed"}},[`${pt}-submenu-selected ${rt}-menu-submenu-title`]:{color:Qe.colorPrimary}})})},[(0,ge.oN)(Qe,"slide-up"),(0,ge.oN)(Qe,"slide-down"),(0,_e.Fm)(Qe,"move-up"),(0,_e.Fm)(Qe,"move-down"),(0,ye._y)(Qe,"zoom-big")]]},ze=Qe=>Object.assign(Object.assign({zIndexPopup:Qe.zIndexPopupBase+50,paddingBlock:(Qe.controlHeight-Qe.fontSize*Qe.lineHeight)/2},(0,be.wZ)({contentRadius:Qe.borderRadiusLG,limitVerticalRadius:!0})),(0,Se.w)(Qe));var Ke=(0,Be.I$)("Dropdown",Qe=>{const{marginXXS:rt,sizePopupArrow:pt,paddingXXS:At,componentCls:gt}=Qe,Ft=(0,Ae.mergeToken)(Qe,{menuCls:`${gt}-menu`,dropdownArrowDistance:Qe.calc(pt).div(2).add(rt).equal(),dropdownEdgeChildPadding:At});return[Pe(Ft),Ue(Ft)]},ze,{resetStyle:!1});const Ne=null,Re=Qe=>{var rt;const{menu:pt,arrow:At,prefixCls:gt,children:Ft,trigger:Ct,disabled:Yt,dropdownRender:zt,getPopupContainer:Xe,overlayClassName:Fe,rootClassName:Le,overlayStyle:Ze,open:et,onOpenChange:He,visible:We,onVisibleChange:tt,mouseEnterDelay:at=.15,mouseLeaveDelay:ot=.1,autoAdjustOverflow:ct=!0,placement:lt="",overlay:mt,transitionName:Lt}=Qe,{getPopupContainer:ft,getPrefixCls:St,direction:nn,dropdown:on}=te.useContext(oe.E_),yn=(0,z.ln)("Dropdown"),xn=te.useMemo(()=>{const Ln=St();return Lt!==void 0?Lt:lt.includes("top")?`${Ln}-slide-down`:`${Ln}-slide-up`},[St,lt,Lt]),an=te.useMemo(()=>lt?lt.includes("Center")?lt.slice(0,lt.indexOf("Center")):lt:nn==="rtl"?"bottomRight":"bottomLeft",[lt,nn]),An=St("dropdown",gt),Jt=(0,se.Z)(An),[Ut,rn,_n]=Ke(An,Jt),[,Bn]=(0,x.ZP)(),kt=te.Children.only(ie(Ft)?te.createElement("span",null,Ft):Ft),ln=(0,b.Tm)(kt,{className:Oe()(`${An}-trigger`,{[`${An}-rtl`]:nn==="rtl"},kt.props.className),disabled:(rt=kt.props.disabled)!==null&&rt!==void 0?rt:Yt}),Cn=Yt?[]:Ct,Mn=!!(Cn!=null&&Cn.includes("contextMenu")),[Qn,mr]=(0,fe.Z)(!1,{value:et!=null?et:We}),lr=(0,ue.Z)(Ln=>{He==null||He(Ln,{source:"trigger"}),tt==null||tt(Ln),mr(Ln)}),Cr=Oe()(Fe,Le,rn,_n,Jt,on==null?void 0:on.className,{[`${An}-rtl`]:nn==="rtl"}),nr=(0,me.Z)({arrowPointAtCenter:typeof At=="object"&&At.pointAtCenter,autoAdjustOverflow:ct,offset:Bn.marginXXS,arrowWidth:At?Bn.sizePopupArrow:0,borderRadius:Bn.borderRadius}),ur=te.useCallback(()=>{pt!=null&&pt.selectable&&(pt!=null&&pt.multiple)||(He==null||He(!1,{source:"menu"}),mr(!1))},[pt==null?void 0:pt.selectable,pt==null?void 0:pt.multiple]),Nn=()=>{let Ln;return pt!=null&&pt.items?Ln=te.createElement(de.default,Object.assign({},pt)):typeof mt=="function"?Ln=mt():Ln=mt,zt&&(Ln=zt(Ln)),Ln=te.Children.only(typeof Ln=="string"?te.createElement("span",null,Ln):Ln),te.createElement(a.J,{prefixCls:`${An}-menu`,rootClassName:Oe()(_n,Jt),expandIcon:te.createElement("span",{className:`${An}-menu-submenu-arrow`},nn==="rtl"?te.createElement(Ye.Z,{className:`${An}-menu-submenu-arrow-icon`}):te.createElement(Me.Z,{className:`${An}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ur,validator:$n=>{let{mode:ar}=$n}},Ln)},[In,Wn]=(0,le.Cn)("Dropdown",Ze==null?void 0:Ze.zIndex);let Kn=te.createElement(ve.Z,Object.assign({alignPoint:Mn},(0,he.Z)(Qe,["rootClassName"]),{mouseEnterDelay:at,mouseLeaveDelay:ot,visible:Qn,builtinPlacements:nr,arrow:!!At,overlayClassName:Cr,prefixCls:An,getPopupContainer:Xe||ft,transitionName:xn,trigger:Cn,overlay:Nn,placement:an,onVisibleChange:lr,overlayStyle:Object.assign(Object.assign(Object.assign({},on==null?void 0:on.style),Ze),{zIndex:In})}),ln);return In&&(Kn=te.createElement(ne.Z.Provider,{value:Wn},Kn)),Ut(Kn)},$e=(0,E.Z)(Re,"align",void 0,"dropdown",Qe=>Qe),nt=Qe=>te.createElement($e,Object.assign({},Qe),te.createElement("span",null));Re._InternalPanelDoNotUseOrYouWillBeFired=nt;var ut=Re},75727:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return E}});var te=Ce(19563),Ye=Ce(59301),Me=Ce(18785),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(7939),ue=Ce(48755),fe=Ce(44104),he=Ce(70045),le=function(b,z){var ne={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&z.indexOf(oe)<0&&(ne[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);se{const{getPopupContainer:z,getPrefixCls:ne,direction:oe}=Ye.useContext(ue.E_),{prefixCls:se,type:de="default",danger:a,disabled:x,loading:re,onClick:ce,htmlType:ge,children:_e,className:ye,menu:be,arrow:Se,autoFocus:Be,overlay:Ae,trigger:we,align:Ue,open:Pe,onOpenChange:ze,placement:Ke,getPopupContainer:Ne,href:Re,icon:$e=Ye.createElement(Me.Z,null),title:nt,buttonsRender:ut=at=>at,mouseEnterDelay:Qe,mouseLeaveDelay:rt,overlayClassName:pt,overlayStyle:At,destroyPopupOnHide:gt,dropdownRender:Ft}=b,Ct=le(b,["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"]),Yt=ne("dropdown",se),zt=`${Yt}-button`,Xe={menu:be,arrow:Se,autoFocus:Be,align:Ue,disabled:x,trigger:x?[]:we,onOpenChange:ze,getPopupContainer:Ne||z,mouseEnterDelay:Qe,mouseLeaveDelay:rt,overlayClassName:pt,overlayStyle:At,destroyPopupOnHide:gt,dropdownRender:Ft},{compactSize:Fe,compactItemClassnames:Le}=(0,he.ri)(Yt,oe),Ze=Oe()(zt,Le,ye);"overlay"in b&&(Xe.overlay=Ae),"open"in b&&(Xe.open=Pe),"placement"in b?Xe.placement=Ke:Xe.placement=oe==="rtl"?"bottomLeft":"bottomRight";const et=Ye.createElement(ve.ZP,{type:de,danger:a,disabled:x,loading:re,onClick:ce,htmlType:ge,href:Re,title:nt},_e),He=Ye.createElement(ve.ZP,{type:de,danger:a,icon:$e}),[We,tt]=ut([et,He]);return Ye.createElement(fe.Z.Compact,Object.assign({className:Ze,size:Fe,block:!0},Ct),We,Ye.createElement(te.Z,Object.assign({},Xe),tt))};ae.__ANT_BUTTON=!0;var ie=ae;const me=te.Z;me.Button=ie;var E=me},584:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(9017),Oe=Ce(17835),ve=Ce(57700),fe=()=>{const[,a]=(0,ve.ZP)(),[x]=(0,pe.Z)("Empty"),ce=new Oe.FastColor(a.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return te.createElement("svg",{style:ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(x==null?void 0:x.description)||"Empty"),te.createElement("g",{fill:"none",fillRule:"evenodd"},te.createElement("g",{transform:"translate(24 31.67)"},te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),te.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"}),te.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)"}),te.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"}),te.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"})),te.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"}),te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},le=()=>{const[,a]=(0,ve.ZP)(),[x]=(0,pe.Z)("Empty"),{colorFill:re,colorFillTertiary:ce,colorFillQuaternary:ge,colorBgContainer:_e}=a,{borderColor:ye,shadowColor:be,contentColor:Se}=(0,te.useMemo)(()=>({borderColor:new Oe.FastColor(re).onBackground(_e).toHexString(),shadowColor:new Oe.FastColor(ce).onBackground(_e).toHexString(),contentColor:new Oe.FastColor(ge).onBackground(_e).toHexString()}),[re,ce,ge,_e]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(x==null?void 0:x.description)||"Empty"),te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},te.createElement("ellipse",{fill:be,cx:"32",cy:"33",rx:"32",ry:"7"}),te.createElement("g",{fillRule:"nonzero",stroke:ye},te.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"}),te.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:Se}))))},ae=Ce(16931),ie=Ce(51636);const me=a=>{const{componentCls:x,margin:re,marginXS:ce,marginXL:ge,fontSize:_e,lineHeight:ye}=a;return{[x]:{marginInline:ce,fontSize:_e,lineHeight:ye,textAlign:"center",[`${x}-image`]:{height:a.emptyImgHeight,marginBottom:ce,opacity:a.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${x}-description`]:{color:a.colorTextDescription},[`${x}-footer`]:{marginTop:re},"&-normal":{marginBlock:ge,color:a.colorTextDescription,[`${x}-description`]:{color:a.colorTextDescription},[`${x}-image`]:{height:a.emptyImgHeightMD}},"&-small":{marginBlock:ce,color:a.colorTextDescription,[`${x}-image`]:{height:a.emptyImgHeightSM}}}}};var E=(0,ae.I$)("Empty",a=>{const{componentCls:x,controlHeightLG:re,calc:ce}=a,ge=(0,ie.mergeToken)(a,{emptyImgCls:`${x}-img`,emptyImgHeight:ce(re).mul(2.5).equal(),emptyImgHeightMD:re,emptyImgHeightSM:ce(re).mul(.875).equal()});return[me(ge)]}),b=Ce(48755),z=function(a,x){var re={};for(var ce in a)Object.prototype.hasOwnProperty.call(a,ce)&&x.indexOf(ce)<0&&(re[ce]=a[ce]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ce=Object.getOwnPropertySymbols(a);ge{const{className:x,rootClassName:re,prefixCls:ce,image:ge=ne,description:_e,children:ye,imageStyle:be,style:Se,classNames:Be,styles:Ae}=a,we=z(a,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ue,direction:Pe,className:ze,style:Ke,classNames:Ne,styles:Re}=(0,b.dj)("empty"),$e=Ue("empty",ce),[nt,ut,Qe]=E($e),[rt]=(0,pe.Z)("Empty"),pt=typeof _e!="undefined"?_e:rt==null?void 0:rt.description,At=typeof pt=="string"?pt:"empty";let gt=null;return typeof ge=="string"?gt=te.createElement("img",{alt:At,src:ge}):gt=ge,nt(te.createElement("div",Object.assign({className:Me()(ut,Qe,$e,ze,{[`${$e}-normal`]:ge===oe,[`${$e}-rtl`]:Pe==="rtl"},x,re,Ne.root,Be==null?void 0:Be.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Re.root),Ke),Ae==null?void 0:Ae.root),Se)},we),te.createElement("div",{className:Me()(`${$e}-image`,Ne.image,Be==null?void 0:Be.image),style:Object.assign(Object.assign(Object.assign({},be),Re.image),Ae==null?void 0:Ae.image)},gt),pt&&te.createElement("div",{className:Me()(`${$e}-description`,Ne.description,Be==null?void 0:Be.description),style:Object.assign(Object.assign({},Re.description),Ae==null?void 0:Ae.description)},pt),ye&&te.createElement("div",{className:Me()(`${$e}-footer`,Ne.footer,Be==null?void 0:Be.footer),style:Object.assign(Object.assign({},Re.footer),Ae==null?void 0:Ae.footer)},ye)))};se.PRESENTED_IMAGE_DEFAULT=ne,se.PRESENTED_IMAGE_SIMPLE=oe;var de=se},28284:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Gt}});var te=Ce(56553),Ye=Ce(77654),Me=Ce(59301),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(77900),ue=Ce(86641),fe=Ce(83397);function he(Rt){const[jt,Mt]=Me.useState(Rt);return Me.useEffect(()=>{const Kt=setTimeout(()=>{Mt(Rt)},Rt.length?0:10);return()=>{clearTimeout(Kt)}},[Rt]),jt}var le=Ce(36237),ae=Ce(63356),ie=Ce(34925),me=Ce(34961),E=Ce(51636),b=Ce(16931),ne=Rt=>{const{componentCls:jt}=Rt,Mt=`${jt}-show-help`,Kt=`${jt}-show-help-item`;return{[Mt]:{transition:`opacity ${Rt.motionDurationFast} ${Rt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${Rt.motionDurationFast} ${Rt.motionEaseInOut}, opacity ${Rt.motionDurationFast} ${Rt.motionEaseInOut}, transform ${Rt.motionDurationFast} ${Rt.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const oe=Rt=>({legend:{display:"block",width:"100%",marginBottom:Rt.marginLG,padding:0,color:Rt.colorTextDescription,fontSize:Rt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,le.unit)(Rt.lineWidth)} ${Rt.lineType} ${Rt.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,le.unit)(Rt.controlOutlineWidth)} ${Rt.controlOutline}`},output:{display:"block",paddingTop:15,color:Rt.colorText,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight}}),se=(Rt,jt)=>{const{formItemCls:Mt}=Rt;return{[Mt]:{[`${Mt}-label > label`]:{height:jt},[`${Mt}-control-input`]:{minHeight:jt}}}},de=Rt=>{const{componentCls:jt}=Rt;return{[Rt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Rt)),oe(Rt)),{[`${jt}-text`]:{display:"inline-block",paddingInlineEnd:Rt.paddingSM},"&-small":Object.assign({},se(Rt,Rt.controlHeightSM)),"&-large":Object.assign({},se(Rt,Rt.controlHeightLG))})}},a=Rt=>{const{formItemCls:jt,iconCls:Mt,rootPrefixCls:Kt,antCls:yt,labelRequiredMarkColor:qt,labelColor:vn,labelFontSize:Tt,labelHeight:It,labelColonMarginInlineStart:Dt,labelColonMarginInlineEnd:Bt,itemMarginBottom:Zt}=Rt;return{[jt]:Object.assign(Object.assign({},(0,ae.Wf)(Rt)),{marginBottom:Zt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${yt}-row`]:{display:"none"},"&-has-warning":{[`${jt}-split`]:{color:Rt.colorError}},"&-has-error":{[`${jt}-split`]:{color:Rt.colorWarning}},[`${jt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Rt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:It,color:vn,fontSize:Tt,[`> ${Mt}`]:{fontSize:Rt.fontSize,verticalAlign:"top"},[`&${jt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Rt.marginXXS,color:qt,fontSize:Rt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${jt}-required-mark-hidden, &${jt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${jt}-optional`]:{display:"inline-block",marginInlineStart:Rt.marginXXS,color:Rt.colorTextDescription,[`&${jt}-required-mark-hidden`]:{display:"none"}},[`${jt}-tooltip`]:{color:Rt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Rt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Dt,marginInlineEnd:Bt},[`&${jt}-no-colon::after`]:{content:'"\\a0"'}}},[`${jt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Kt}-col-'"]):not([class*="' ${Kt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Rt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[jt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Rt.colorTextDescription,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Rt.controlHeightSM,transition:`color ${Rt.motionDurationMid} ${Rt.motionEaseOut}`},"&-explain":{"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning}}},[`&-with-help ${jt}-explain`]:{height:"auto",opacity:1},[`${jt}-feedback-icon`]:{fontSize:Rt.fontSize,textAlign:"center",visibility:"visible",animationName:ie.kr,animationDuration:Rt.motionDurationMid,animationTimingFunction:Rt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Rt.colorSuccess},"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning},"&-validating":{color:Rt.colorPrimary}}})}},x=(Rt,jt)=>{const{formItemCls:Mt}=Rt;return{[`${jt}-horizontal`]:{[`${Mt}-label`]:{flexGrow:0},[`${Mt}-control`]:{flex:"1 1 0",minWidth:0},[`${Mt}-label[class$='-24'], ${Mt}-label[class*='-24 ']`]:{[`& + ${Mt}-control`]:{minWidth:"unset"}}}}},re=Rt=>{const{componentCls:jt,formItemCls:Mt,inlineItemMarginBottom:Kt}=Rt;return{[`${jt}-inline`]:{display:"flex",flexWrap:"wrap",[Mt]:{flex:"none",marginInlineEnd:Rt.margin,marginBottom:Kt,"&-row":{flexWrap:"nowrap"},[`> ${Mt}-label, > ${Mt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Mt}-label`]:{flex:"none"},[`${jt}-text`]:{display:"inline-block"},[`${Mt}-has-feedback`]:{display:"inline-block"}}}}},ce=Rt=>({padding:Rt.verticalLabelPadding,margin:Rt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ge=Rt=>{const{componentCls:jt,formItemCls:Mt,rootPrefixCls:Kt}=Rt;return{[`${Mt} ${Mt}-label`]:ce(Rt),[`${jt}:not(${jt}-inline)`]:{[Mt]:{flexWrap:"wrap",[`${Mt}-label, ${Mt}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},_e=Rt=>{const{componentCls:jt,formItemCls:Mt,antCls:Kt}=Rt;return{[`${jt}-vertical`]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Mt}-row`]:{flexDirection:"column"},[`${Mt}-label > label`]:{height:"auto"},[`${Mt}-control`]:{width:"100%"},[`${Mt}-label, ${Kt}-col-24${Mt}-label, ${Kt}-col-xl-24${Mt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenXSMax)})`]:[ge(Rt),{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-xs-24${Mt}-label`]:ce(Rt)}}}],[`@media (max-width: ${(0,le.unit)(Rt.screenSMMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-sm-24${Mt}-label`]:ce(Rt)}}},[`@media (max-width: ${(0,le.unit)(Rt.screenMDMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-md-24${Mt}-label`]:ce(Rt)}}},[`@media (max-width: ${(0,le.unit)(Rt.screenLGMax)})`]:{[jt]:{[`${Mt}:not(${Mt}-horizontal)`]:{[`${Kt}-col-lg-24${Mt}-label`]:ce(Rt)}}}}},ye=Rt=>{const{formItemCls:jt,antCls:Mt}=Rt;return{[`${jt}-vertical`]:{[`${jt}-row`]:{flexDirection:"column"},[`${jt}-label > label`]:{height:"auto"},[`${jt}-control`]:{width:"100%"}},[`${jt}-vertical ${jt}-label, ${Mt}-col-24${jt}-label, ${Mt}-col-xl-24${jt}-label`]:ce(Rt),[`@media (max-width: ${(0,le.unit)(Rt.screenXSMax)})`]:[ge(Rt),{[jt]:{[`${Mt}-col-xs-24${jt}-label`]:ce(Rt)}}],[`@media (max-width: ${(0,le.unit)(Rt.screenSMMax)})`]:{[jt]:{[`${Mt}-col-sm-24${jt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenMDMax)})`]:{[jt]:{[`${Mt}-col-md-24${jt}-label`]:ce(Rt)}},[`@media (max-width: ${(0,le.unit)(Rt.screenLGMax)})`]:{[jt]:{[`${Mt}-col-lg-24${jt}-label`]:ce(Rt)}}}},be=Rt=>({labelRequiredMarkColor:Rt.colorError,labelColor:Rt.colorTextHeading,labelFontSize:Rt.fontSize,labelHeight:Rt.controlHeight,labelColonMarginInlineStart:Rt.marginXXS/2,labelColonMarginInlineEnd:Rt.marginXS,itemMarginBottom:Rt.marginLG,verticalLabelPadding:`0 0 ${Rt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Se=(Rt,jt)=>(0,E.mergeToken)(Rt,{formItemCls:`${Rt.componentCls}-item`,rootPrefixCls:jt});var Be=(0,b.I$)("Form",(Rt,jt)=>{let{rootPrefixCls:Mt}=jt;const Kt=Se(Rt,Mt);return[de(Kt),a(Kt),ne(Kt),x(Kt,Kt.componentCls),x(Kt,Kt.formItemCls),re(Kt),_e(Kt),ye(Kt),(0,me.Z)(Kt),ie.kr]},be,{order:-1e3});const Ae=[];function we(Rt,jt,Mt){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Rt=="string"?Rt:`${jt}-${Kt}`,error:Rt,errorStatus:Mt}}var Pe=Rt=>{let{help:jt,helpStatus:Mt,errors:Kt=Ae,warnings:yt=Ae,className:qt,fieldId:vn,onVisibleChanged:Tt}=Rt;const{prefixCls:It}=Me.useContext(te.Rk),Dt=`${It}-item-explain`,Bt=(0,fe.Z)(It),[Zt,tn,Tn]=Be(It,Bt),Fn=Me.useMemo(()=>(0,ue.Z)(It),[It]),dr=he(Kt),_r=he(yt),Kr=Me.useMemo(()=>jt!=null?[we(jt,"help",Mt)]:[].concat((0,Ye.Z)(dr.map((Mr,Br)=>we(Mr,"error","error",Br))),(0,Ye.Z)(_r.map((Mr,Br)=>we(Mr,"warning","warning",Br)))),[jt,Mt,dr,_r]),Sr=Me.useMemo(()=>{const Mr={};return Kr.forEach(Br=>{let{key:Wr}=Br;Mr[Wr]=(Mr[Wr]||0)+1}),Kr.map((Br,Wr)=>Object.assign(Object.assign({},Br),{key:Mr[Br.key]>1?`${Br.key}-fallback-${Wr}`:Br.key}))},[Kr]),hr={};return vn&&(hr.id=`${vn}_help`),Zt(Me.createElement(ve.default,{motionDeadline:Fn.motionDeadline,motionName:`${It}-show-help`,visible:!!Sr.length,onVisibleChanged:Tt},Mr=>{const{className:Br,style:Wr}=Mr;return Me.createElement("div",Object.assign({},hr,{className:Oe()(Dt,Br,Tn,Bt,qt,tn),style:Wr}),Me.createElement(ve.CSSMotionList,Object.assign({keys:Sr},(0,ue.Z)(It),{motionName:`${It}-show-help-item`,component:!1}),Jn=>{const{key:ii,error:Ur,errorStatus:Gr,className:qr,style:Li}=Jn;return Me.createElement("div",{key:ii,className:Oe()(qr,{[`${Dt}-${Gr}`]:Gr}),style:Li},Ur)}))}))},ze=Ce(69180),Ke=Ce(48755),Ne=Ce(2171),Re=Ce(31756),$e=Ce(23069),nt=Ce(76846),ut=Ce(16722);const Qe=["parentNode"],rt="form_item";function pt(Rt){return Rt===void 0||Rt===!1?[]:Array.isArray(Rt)?Rt:[Rt]}function At(Rt,jt){if(!Rt.length)return;const Mt=Rt.join("_");return jt?`${jt}_${Mt}`:Qe.includes(Mt)?`${rt}_${Mt}`:Mt}function gt(Rt,jt,Mt,Kt,yt,qt){let vn=Kt;return qt!==void 0?vn=qt:Mt.validating?vn="validating":Rt.length?vn="error":jt.length?vn="warning":(Mt.touched||yt&&Mt.validated)&&(vn="success"),vn}var Ft=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);ytRt!=null?Rt:Object.assign(Object.assign({},jt),{__INTERNAL__:{itemRef:yt=>qt=>{const vn=Ct(yt);qt?Mt.current[vn]=qt:delete Mt.current[vn]}},scrollToField:function(yt){let qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:vn}=qt,Tt=Ft(qt,["focus"]),It=Yt(yt,Kt);It&&((0,ut.Z)(It,Object.assign({scrollMode:"if-needed",block:"nearest"},Tt)),vn&&Kt.focusField(yt))},focusField:yt=>{var qt,vn;const Tt=Kt.getFieldInstance(yt);typeof(Tt==null?void 0:Tt.focus)=="function"?Tt.focus():(vn=(qt=Yt(yt,Kt))===null||qt===void 0?void 0:qt.focus)===null||vn===void 0||vn.call(qt)},getFieldInstance:yt=>{const qt=Ct(yt);return Mt.current[qt]}}),[Rt,jt]);return[Kt]}var Xe=Ce(98350),Fe=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt{const Mt=Me.useContext(Ne.Z),{getPrefixCls:Kt,direction:yt,requiredMark:qt,colon:vn,scrollToFirstError:Tt,className:It,style:Dt}=(0,Ke.dj)("form"),{prefixCls:Bt,className:Zt,rootClassName:tn,size:Tn,disabled:Fn=Mt,form:dr,colon:_r,labelAlign:Kr,labelWrap:Sr,labelCol:hr,wrapperCol:Mr,hideRequiredMark:Br,layout:Wr="horizontal",scrollToFirstError:Jn,requiredMark:ii,onFinishFailed:Ur,name:Gr,style:qr,feedbackIcons:Li,variant:wi}=Rt,ui=Fe(Rt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Qr=(0,Re.Z)(Tn),Di=Me.useContext(Xe.Z),oi=Me.useMemo(()=>ii!==void 0?ii:Br?!1:qt!==void 0?qt:!0,[Br,ii,qt]),di=_r!=null?_r:vn,ci=Kt("form",Bt),ki=(0,fe.Z)(ci),[Ki,ua,kn]=Be(ci,ki),qi=Oe()(ci,`${ci}-${Wr}`,{[`${ci}-hide-required-mark`]:oi===!1,[`${ci}-rtl`]:yt==="rtl",[`${ci}-${Qr}`]:Qr},kn,ki,ua,It,Zt,tn),[Qi]=zt(dr),{__INTERNAL__:ra}=Qi;ra.name=Gr;const _i=Me.useMemo(()=>({name:Gr,labelAlign:Kr,labelCol:hr,labelWrap:Sr,wrapperCol:Mr,vertical:Wr==="vertical",colon:di,requiredMark:oi,itemRef:ra.itemRef,form:Qi,feedbackIcons:Li}),[Gr,Kr,hr,Mr,Wr,di,oi,Qi,Li]),Ti=Me.useRef(null);Me.useImperativeHandle(jt,()=>{var Dr;return Object.assign(Object.assign({},Qi),{nativeElement:(Dr=Ti.current)===null||Dr===void 0?void 0:Dr.nativeElement})});const Xr=(Dr,Fr)=>{if(Dr){let or={block:"nearest"};typeof Dr=="object"&&(or=Object.assign(Object.assign({},or),Dr)),Qi.scrollToField(Fr,or)}},rr=Dr=>{if(Ur==null||Ur(Dr),Dr.errorFields.length){const Fr=Dr.errorFields[0].name;if(Jn!==void 0){Xr(Jn,Fr);return}Tt!==void 0&&Xr(Tt,Fr)}};return Ki(Me.createElement(te.pg.Provider,{value:wi},Me.createElement(Ne.n,{disabled:Fn},Me.createElement($e.Z.Provider,{value:Qr},Me.createElement(te.RV,{validateMessages:Di},Me.createElement(te.q3.Provider,{value:_i},Me.createElement(ze.default,Object.assign({id:Gr},ui,{name:Gr,onFinishFailed:rr,form:Qi,ref:Ti,style:Object.assign(Object.assign({},Dt),qr),className:qi}))))))))};var et=Me.forwardRef(Le),He=Ce(41799),We=Ce(8654),tt=Ce(22703),at=Ce(32383),ot=Ce(11592);function ct(Rt){if(typeof Rt=="function")return Rt;const jt=(0,ot.Z)(Rt);return jt.length<=1?jt[0]:jt}const lt=()=>{const{status:Rt,errors:jt=[],warnings:Mt=[]}=Me.useContext(te.aM);return{status:Rt,errors:jt,warnings:Mt}};lt.Context=te.aM;var mt=lt,Lt=Ce(16089);function ft(Rt){const[jt,Mt]=Me.useState(Rt),Kt=Me.useRef(null),yt=Me.useRef([]),qt=Me.useRef(!1);Me.useEffect(()=>(qt.current=!1,()=>{qt.current=!0,Lt.Z.cancel(Kt.current),Kt.current=null}),[]);function vn(Tt){qt.current||(Kt.current===null&&(yt.current=[],Kt.current=(0,Lt.Z)(()=>{Kt.current=null,Mt(It=>{let Dt=It;return yt.current.forEach(Bt=>{Dt=Bt(Dt)}),Dt})})),yt.current.push(Tt))}return[jt,vn]}function St(){const{itemRef:Rt}=Me.useContext(te.q3),jt=Me.useRef({});function Mt(Kt,yt){const qt=yt&&typeof yt=="object"&&(0,We.C4)(yt),vn=Kt.join("_");return(jt.current.name!==vn||jt.current.originRef!==qt)&&(jt.current.name=vn,jt.current.originRef=qt,jt.current.ref=(0,We.sQ)(Rt(Kt),qt)),jt.current.ref}return Mt}var nn=Ce(29194),on=Ce(34280),yn=Ce(2738),xn=Ce(65970),an=Ce(70425),An=Ce(5472);const Jt=Rt=>{const{formItemCls:jt}=Rt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${jt}-control`]:{display:"flex"}}}};var Ut=(0,b.bk)(["Form","item-item"],(Rt,jt)=>{let{rootPrefixCls:Mt}=jt;const Kt=Se(Rt,Mt);return[Jt(Kt)]}),rn=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt{const{prefixCls:jt,status:Mt,labelCol:Kt,wrapperCol:yt,children:qt,errors:vn,warnings:Tt,_internalItemRender:It,extra:Dt,help:Bt,fieldId:Zt,marginBottom:tn,onErrorVisibleChanged:Tn,label:Fn}=Rt,dr=`${jt}-item`,_r=Me.useContext(te.q3),Kr=Me.useMemo(()=>{let ui=Object.assign({},yt||_r.wrapperCol||{});return Fn===null&&!Kt&&!yt&&_r.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Di=>{const oi=Di?[Di]:[],di=(0,an.U2)(_r.labelCol,oi),ci=typeof di=="object"?di:{},ki=(0,an.U2)(ui,oi),Ki=typeof ki=="object"?ki:{};"span"in ci&&!("offset"in Ki)&&ci.span<_n&&(ui=(0,an.t8)(ui,[].concat(oi,["offset"]),ci.span))}),ui},[yt,_r]),Sr=Oe()(`${dr}-control`,Kr.className),hr=Me.useMemo(()=>{const{labelCol:ui,wrapperCol:Qr}=_r;return rn(_r,["labelCol","wrapperCol"])},[_r]),Mr=Me.useRef(null),[Br,Wr]=Me.useState(0);(0,on.Z)(()=>{Dt&&Mr.current?Wr(Mr.current.clientHeight):Wr(0)},[Dt]);const Jn=Me.createElement("div",{className:`${dr}-control-input`},Me.createElement("div",{className:`${dr}-control-input-content`},qt)),ii=Me.useMemo(()=>({prefixCls:jt,status:Mt}),[jt,Mt]),Ur=tn!==null||vn.length||Tt.length?Me.createElement(te.Rk.Provider,{value:ii},Me.createElement(Pe,{fieldId:Zt,errors:vn,warnings:Tt,help:Bt,helpStatus:Mt,className:`${dr}-explain-connected`,onVisibleChanged:Tn})):null,Gr={};Zt&&(Gr.id=`${Zt}_extra`);const qr=Dt?Me.createElement("div",Object.assign({},Gr,{className:`${dr}-extra`,ref:Mr}),Dt):null,Li=Ur||qr?Me.createElement("div",{className:`${dr}-additional`,style:tn?{minHeight:tn+Br}:{}},Ur,qr):null,wi=It&&It.mark==="pro_table_render"&&It.render?It.render(Rt,{input:Jn,errorList:Ur,extra:qr}):Me.createElement(Me.Fragment,null,Jn,Li);return Me.createElement(te.q3.Provider,{value:hr},Me.createElement(An.Z,Object.assign({},Kr,{className:Sr}),wi),Me.createElement(Ut,{prefixCls:jt}))},ln=Ce(61485),Cn=Ce(9017),Mn=Ce(85981),Qn=Ce(25399),mr=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt{let{prefixCls:jt,label:Mt,htmlFor:Kt,labelCol:yt,labelAlign:qt,colon:vn,required:Tt,requiredMark:It,tooltip:Dt,vertical:Bt}=Rt;var Zt;const[tn]=(0,Cn.Z)("Form"),{labelAlign:Tn,labelCol:Fn,labelWrap:dr,colon:_r}=Me.useContext(te.q3);if(!Mt)return null;const Kr=yt||Fn||{},Sr=qt||Tn,hr=`${jt}-item-label`,Mr=Oe()(hr,Sr==="left"&&`${hr}-left`,Kr.className,{[`${hr}-wrap`]:!!dr});let Br=Mt;const Wr=vn===!0||_r!==!1&&vn!==!1;Wr&&!Bt&&typeof Mt=="string"&&Mt.trim()&&(Br=Mt.replace(/[:|:]\s*$/,""));const ii=lr(Dt);if(ii){const{icon:ui=Me.createElement(ln.Z,null)}=ii,Qr=mr(ii,["icon"]),Di=Me.createElement(Qn.Z,Object.assign({},Qr),Me.cloneElement(ui,{className:`${jt}-item-tooltip`,title:"",onClick:oi=>{oi.preventDefault()},tabIndex:null}));Br=Me.createElement(Me.Fragment,null,Br,Di)}const Ur=It==="optional",Gr=typeof It=="function",qr=It===!1;Gr?Br=It(Br,{required:!!Tt}):Ur&&!Tt&&(Br=Me.createElement(Me.Fragment,null,Br,Me.createElement("span",{className:`${jt}-item-optional`,title:""},(tn==null?void 0:tn.optional)||((Zt=Mn.Z.Form)===null||Zt===void 0?void 0:Zt.optional))));let Li;qr?Li="hidden":(Ur||Gr)&&(Li="optional");const wi=Oe()({[`${jt}-item-required`]:Tt,[`${jt}-item-required-mark-${Li}`]:Li,[`${jt}-item-no-colon`]:!Wr});return Me.createElement(An.Z,Object.assign({},Kr,{className:Mr}),Me.createElement("label",{htmlFor:Kt,className:wi,title:typeof Mt=="string"?Mt:""},Br))},ur=Ce(29679),Nn=Ce(19248),In=Ce(96512),Wn=Ce(58617);const Kn={success:ur.Z,warning:In.Z,error:Nn.Z,validating:Wn.Z};function Ln(Rt){let{children:jt,errors:Mt,warnings:Kt,hasFeedback:yt,validateStatus:qt,prefixCls:vn,meta:Tt,noStyle:It}=Rt;const Dt=`${vn}-item`,{feedbackIcons:Bt}=Me.useContext(te.q3),Zt=gt(Mt,Kt,Tt,null,!!yt,qt),{isFormItemInput:tn,status:Tn,hasFeedback:Fn,feedbackIcon:dr}=Me.useContext(te.aM),_r=Me.useMemo(()=>{var Kr;let Sr;if(yt){const Mr=yt!==!0&&yt.icons||Bt,Br=Zt&&((Kr=Mr==null?void 0:Mr({status:Zt,errors:Mt,warnings:Kt}))===null||Kr===void 0?void 0:Kr[Zt]),Wr=Zt&&Kn[Zt];Sr=Br!==!1&&Wr?Me.createElement("span",{className:Oe()(`${Dt}-feedback-icon`,`${Dt}-feedback-icon-${Zt}`)},Br||Me.createElement(Wr,null)):null}const hr={status:Zt||"",errors:Mt,warnings:Kt,hasFeedback:!!yt,feedbackIcon:Sr,isFormItemInput:!0};return It&&(hr.status=(Zt!=null?Zt:Tn)||"",hr.isFormItemInput=tn,hr.hasFeedback=!!(yt!=null?yt:Fn),hr.feedbackIcon=yt!==void 0?hr.feedbackIcon:dr),hr},[Zt,yt,It,tn,Tn]);return Me.createElement(te.aM.Provider,{value:_r},jt)}var $n=function(Rt,jt){var Mt={};for(var Kt in Rt)Object.prototype.hasOwnProperty.call(Rt,Kt)&&jt.indexOf(Kt)<0&&(Mt[Kt]=Rt[Kt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Kt=Object.getOwnPropertySymbols(Rt);yt{if(qr&&Jn.current){const ci=getComputedStyle(Jn.current);ui(parseInt(ci.marginBottom,10))}},[qr,Li]);const Qr=ci=>{ci||ui(null)},oi=function(){let ci=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ki=ci?ii:Dt.errors,Ki=ci?Ur:Dt.warnings;return gt(ki,Ki,Dt,"",!!Bt,It)}(),di=Oe()(hr,Mt,Kt,{[`${hr}-with-help`]:Gr||ii.length||Ur.length,[`${hr}-has-feedback`]:oi&&Bt,[`${hr}-has-success`]:oi==="success",[`${hr}-has-warning`]:oi==="warning",[`${hr}-has-error`]:oi==="error",[`${hr}-is-validating`]:oi==="validating",[`${hr}-hidden`]:Zt,[`${hr}-${Kr}`]:Kr});return Me.createElement("div",{className:di,style:yt,ref:Jn},Me.createElement(xn.Z,Object.assign({className:`${hr}-row`},(0,yn.Z)(Sr,["_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"])),Me.createElement(nr,Object.assign({htmlFor:Tn},Rt,{requiredMark:Mr,required:Fn!=null?Fn:dr,prefixCls:jt,vertical:Wr})),Me.createElement(kt,Object.assign({},Rt,Dt,{errors:ii,warnings:Ur,prefixCls:jt,status:oi,help:qt,marginBottom:wi,onErrorVisibleChanged:Qr}),Me.createElement(te.qI.Provider,{value:_r},Me.createElement(Ln,{prefixCls:jt,meta:Dt,errors:Dt.errors,warnings:Dt.warnings,hasFeedback:Bt,validateStatus:oi},tn)))),!!wi&&Me.createElement("div",{className:`${hr}-margin-offset`,style:{marginBottom:-wi}}))}const dn="__SPLIT__",Ie=null;function je(Rt,jt){const Mt=Object.keys(Rt),Kt=Object.keys(jt);return Mt.length===Kt.length&&Mt.every(yt=>{const qt=Rt[yt],vn=jt[yt];return qt===vn||typeof qt=="function"||typeof vn=="function"})}const Je=Me.memo(Rt=>{let{children:jt}=Rt;return jt},(Rt,jt)=>je(Rt.control,jt.control)&&Rt.update===jt.update&&Rt.childProps.length===jt.childProps.length&&Rt.childProps.every((Mt,Kt)=>Mt===jt.childProps[Kt]));function ht(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Et(Rt){const{name:jt,noStyle:Mt,className:Kt,dependencies:yt,prefixCls:qt,shouldUpdate:vn,rules:Tt,children:It,required:Dt,label:Bt,messageVariables:Zt,trigger:tn="onChange",validateTrigger:Tn,hidden:Fn,help:dr,layout:_r}=Rt,{getPrefixCls:Kr}=Me.useContext(Ke.E_),{name:Sr}=Me.useContext(te.q3),hr=ct(It),Mr=typeof hr=="function",Br=Me.useContext(te.qI),{validateTrigger:Wr}=Me.useContext(ze.FieldContext),Jn=Tn!==void 0?Tn:Wr,ii=jt!=null,Ur=Kr("form",qt),Gr=(0,fe.Z)(Ur),[qr,Li,wi]=Be(Ur,Gr),ui=(0,at.ln)("Form.Item"),Qr=Me.useContext(ze.ListContext),Di=Me.useRef(null),[oi,di]=ft({}),[ci,ki]=(0,He.Z)(()=>ht()),Ki=Ti=>{const Xr=Qr==null?void 0:Qr.getKey(Ti.name);if(ki(Ti.destroy?ht():Ti,!0),Mt&&dr!==!1&&Br){let rr=Ti.name;if(Ti.destroy)rr=Di.current||rr;else if(Xr!==void 0){const[Dr,Fr]=Xr;rr=[Dr].concat((0,Ye.Z)(Fr)),Di.current=rr}Br(Ti,rr)}},ua=(Ti,Xr)=>{di(rr=>{const Dr=Object.assign({},rr),or=[].concat((0,Ye.Z)(Ti.name.slice(0,-1)),(0,Ye.Z)(Xr)).join(dn);return Ti.destroy?delete Dr[or]:Dr[or]=Ti,Dr})},[kn,qi]=Me.useMemo(()=>{const Ti=(0,Ye.Z)(ci.errors),Xr=(0,Ye.Z)(ci.warnings);return Object.values(oi).forEach(rr=>{Ti.push.apply(Ti,(0,Ye.Z)(rr.errors||[])),Xr.push.apply(Xr,(0,Ye.Z)(rr.warnings||[]))}),[Ti,Xr]},[oi,ci.errors,ci.warnings]),Qi=St();function ra(Ti,Xr,rr){return Mt&&!Fn?Me.createElement(Ln,{prefixCls:Ur,hasFeedback:Rt.hasFeedback,validateStatus:Rt.validateStatus,meta:ci,errors:kn,warnings:qi,noStyle:!0},Ti):Me.createElement(ar,Object.assign({key:"row"},Rt,{className:Oe()(Kt,wi,Gr,Li),prefixCls:Ur,fieldId:Xr,isRequired:rr,errors:kn,warnings:qi,meta:ci,onSubItemMetaChange:ua,layout:_r}),Ti)}if(!ii&&!Mr&&!yt)return qr(ra(hr));let _i={};return typeof Bt=="string"?_i.label=Bt:jt&&(_i.label=String(jt)),Zt&&(_i=Object.assign(Object.assign({},_i),Zt)),qr(Me.createElement(ze.Field,Object.assign({},Rt,{messageVariables:_i,trigger:tn,validateTrigger:Jn,onMetaChange:Ki}),(Ti,Xr,rr)=>{const Dr=pt(jt).length&&Xr?Xr.name:[],Fr=At(Dr,Sr),or=Dt!==void 0?Dt:!!(Tt!=null&&Tt.some(wr=>{if(wr&&typeof wr=="object"&&wr.required&&!wr.warningOnly)return!0;if(typeof wr=="function"){const Ir=wr(rr);return(Ir==null?void 0:Ir.required)&&!(Ir!=null&&Ir.warningOnly)}return!1})),ei=Object.assign({},Ti);let si=null;if(Array.isArray(hr)&&ii)si=hr;else if(!(Mr&&(!(vn||yt)||ii))){if(!(yt&&!Mr&&!ii))if(Me.isValidElement(hr)){const wr=Object.assign(Object.assign({},hr.props),ei);if(wr.id||(wr.id=Fr),dr||kn.length>0||qi.length>0||Rt.extra){const ri=[];(dr||kn.length>0)&&ri.push(`${Fr}_help`),Rt.extra&&ri.push(`${Fr}_extra`),wr["aria-describedby"]=ri.join(" ")}kn.length>0&&(wr["aria-invalid"]="true"),or&&(wr["aria-required"]="true"),(0,We.Yr)(hr)&&(wr.ref=Qi(Dr,hr)),new Set([].concat((0,Ye.Z)(pt(tn)),(0,Ye.Z)(pt(Jn)))).forEach(ri=>{wr[ri]=function(){for(var un,Vn,Sn,Rr,ti,gn=arguments.length,mi=new Array(gn),Nr=0;Nr{var{prefixCls:jt,children:Mt}=Rt,Kt=sn(Rt,["prefixCls","children"]);const{getPrefixCls:yt}=Me.useContext(Ke.E_),qt=yt("form",jt),vn=Me.useMemo(()=>({prefixCls:qt,status:"error"}),[qt]);return Me.createElement(ze.List,Object.assign({},Kt),(Tt,It,Dt)=>Me.createElement(te.Rk.Provider,{value:vn},Mt(Tt.map(Bt=>Object.assign(Object.assign({},Bt),{fieldKey:Bt.key})),It,{errors:Dt.errors,warnings:Dt.warnings})))};function tr(){const{form:Rt}=Me.useContext(te.q3);return Rt}const Vt=et;Vt.Item=fn,Vt.List=Zn,Vt.ErrorList=Pe,Vt.useForm=zt,Vt.useFormInstance=tr,Vt.useWatch=ze.useWatch,Vt.Provider=te.RV,Vt.create=()=>{};var Gt=Vt},4875:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Bn}});var te=Ce(59301),Ye=Ce(84105),Me=Ce(87395),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(60499),ue=Ce(18642),fe=Ce(43749),he=Ce(72190),le=Ce(42244),ae=Ce(38705),ie=Ce(17212);function me(){return typeof BigInt=="function"}function E(kt){return!kt&&kt!==0&&!Number.isNaN(kt)||!String(kt).trim()}function b(kt){var ln=kt.trim(),Cn=ln.startsWith("-");Cn&&(ln=ln.slice(1)),ln=ln.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ln.startsWith(".")&&(ln="0".concat(ln));var Mn=ln||"0",Qn=Mn.split("."),mr=Qn[0]||"0",lr=Qn[1]||"0";mr==="0"&&lr==="0"&&(Cn=!1);var Cr=Cn?"-":"";return{negative:Cn,negativeStr:Cr,trimStr:Mn,integerStr:mr,decimalStr:lr,fullStr:"".concat(Cr).concat(Mn)}}function z(kt){var ln=String(kt);return!Number.isNaN(Number(ln))&&ln.includes("e")}function ne(kt){var ln=String(kt);if(z(kt)){var Cn=Number(ln.slice(ln.indexOf("e-")+2)),Mn=ln.match(/\.(\d+)/);return Mn!=null&&Mn[1]&&(Cn+=Mn[1].length),Cn}return ln.includes(".")&&se(ln)?ln.length-ln.indexOf(".")-1:0}function oe(kt){var ln=String(kt);if(z(kt)){if(kt>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(kt).toString():Number.MAX_SAFE_INTEGER);if(kt0&&arguments[0]!==void 0?arguments[0]:!0;return Cn?this.isInvalidate()?"":b("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),kt}(),a=function(){function kt(ln){if((0,ae.Z)(this,kt),(0,ue.Z)(this,"origin",""),(0,ue.Z)(this,"number",void 0),(0,ue.Z)(this,"empty",void 0),E(ln)){this.empty=!0;return}this.origin=String(ln),this.number=Number(ln)}return(0,ie.Z)(kt,[{key:"negate",value:function(){return new kt(-this.toNumber())}},{key:"add",value:function(Cn){if(this.isInvalidate())return new kt(Cn);var Mn=Number(Cn);if(Number.isNaN(Mn))return this;var Qn=this.number+Mn;if(Qn>Number.MAX_SAFE_INTEGER)return new kt(Number.MAX_SAFE_INTEGER);if(QnNumber.MAX_SAFE_INTEGER)return new kt(Number.MAX_SAFE_INTEGER);if(Qn0&&arguments[0]!==void 0?arguments[0]:!0;return Cn?this.isInvalidate()?"":oe(this.number):this.origin}}]),kt}();function x(kt){return me()?new de(kt):new a(kt)}function re(kt,ln,Cn){var Mn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(kt==="")return"";var Qn=b(kt),mr=Qn.negativeStr,lr=Qn.integerStr,Cr=Qn.decimalStr,nr="".concat(ln).concat(Cr),ur="".concat(mr).concat(lr);if(Cn>=0){var Nn=Number(Cr[Cn]);if(Nn>=5&&!Mn){var In=x(kt).add("".concat(mr,"0.").concat("0".repeat(Cn)).concat(10-Nn));return re(In.toString(),ln,Cn,Mn)}return Cn===0?ur:"".concat(ur).concat(ln).concat(Cr.padEnd(Cn,"0").slice(0,Cn))}return nr===".0"?ur:"".concat(ur).concat(nr)}var ce=x,ge=Ce(36901),_e=Ce(34280);function ye(kt,ln){return typeof Proxy!="undefined"&&kt?new Proxy(kt,{get:function(Mn,Qn){if(ln[Qn])return ln[Qn];var mr=Mn[Qn];return typeof mr=="function"?mr.bind(Mn):mr}}):kt}var be=Ce(8654),Se=Ce(48736);function Be(kt,ln){var Cn=(0,te.useRef)(null);function Mn(){try{var mr=kt.selectionStart,lr=kt.selectionEnd,Cr=kt.value,nr=Cr.substring(0,mr),ur=Cr.substring(lr);Cn.current={start:mr,end:lr,value:Cr,beforeTxt:nr,afterTxt:ur}}catch(Nn){}}function Qn(){if(kt&&Cn.current&&ln)try{var mr=kt.value,lr=Cn.current,Cr=lr.beforeTxt,nr=lr.afterTxt,ur=lr.start,Nn=mr.length;if(mr.startsWith(Cr))Nn=Cr.length;else if(mr.endsWith(nr))Nn=mr.length-Cn.current.afterTxt.length;else{var In=Cr[ur-1],Wn=mr.indexOf(In,ur-1);Wn!==-1&&(Nn=Wn+1)}kt.setSelectionRange(Nn,Nn)}catch(Kn){(0,Se.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Kn.message))}}return[Mn,Qn]}var Ae=Ce(49658),we=function(){var ln=(0,te.useState)(!1),Cn=(0,he.Z)(ln,2),Mn=Cn[0],Qn=Cn[1];return(0,_e.Z)(function(){Qn((0,Ae.Z)())},[]),Mn},Ue=we,Pe=Ce(16089),ze=200,Ke=600;function Ne(kt){var ln=kt.prefixCls,Cn=kt.upNode,Mn=kt.downNode,Qn=kt.upDisabled,mr=kt.downDisabled,lr=kt.onStep,Cr=te.useRef(),nr=te.useRef([]),ur=te.useRef();ur.current=lr;var Nn=function(){clearTimeout(Cr.current)},In=function(je,Je){je.preventDefault(),Nn(),ur.current(Je);function ht(){ur.current(Je),Cr.current=setTimeout(ht,ze)}Cr.current=setTimeout(ht,Ke)};te.useEffect(function(){return function(){Nn(),nr.current.forEach(function(Ie){return Pe.Z.cancel(Ie)})}},[]);var Wn=Ue();if(Wn)return null;var Kn="".concat(ln,"-handler"),Ln=Oe()(Kn,"".concat(Kn,"-up"),(0,ue.Z)({},"".concat(Kn,"-up-disabled"),Qn)),$n=Oe()(Kn,"".concat(Kn,"-down"),(0,ue.Z)({},"".concat(Kn,"-down-disabled"),mr)),ar=function(){return nr.current.push((0,Pe.Z)(Nn))},dn={unselectable:"on",role:"button",onMouseUp:ar,onMouseLeave:ar};return te.createElement("div",{className:"".concat(Kn,"-wrap")},te.createElement("span",(0,ve.Z)({},dn,{onMouseDown:function(je){In(je,!0)},"aria-label":"Increase Value","aria-disabled":Qn,className:Ln}),Cn||te.createElement("span",{unselectable:"on",className:"".concat(ln,"-handler-up-inner")})),te.createElement("span",(0,ve.Z)({},dn,{onMouseDown:function(je){In(je,!1)},"aria-label":"Decrease Value","aria-disabled":mr,className:$n}),Mn||te.createElement("span",{unselectable:"on",className:"".concat(ln,"-handler-down-inner")})))}function Re(kt){var ln=typeof kt=="number"?oe(kt):b(kt).fullStr,Cn=ln.includes(".");return Cn?b(ln.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:kt+"0"}var $e=Ce(30292),nt=function(){var kt=(0,te.useRef)(0),ln=function(){Pe.Z.cancel(kt.current)};return(0,te.useEffect)(function(){return ln},[]),function(Cn){ln(),kt.current=(0,Pe.Z)(function(){Cn()})}},ut=["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"],Qe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rt=function(ln,Cn){return ln||Cn.isEmpty()?Cn.toString():Cn.toNumber()},pt=function(ln){var Cn=ce(ln);return Cn.isInvalidate()?null:Cn},At=te.forwardRef(function(kt,ln){var Cn=kt.prefixCls,Mn=kt.className,Qn=kt.style,mr=kt.min,lr=kt.max,Cr=kt.step,nr=Cr===void 0?1:Cr,ur=kt.defaultValue,Nn=kt.value,In=kt.disabled,Wn=kt.readOnly,Kn=kt.upHandler,Ln=kt.downHandler,$n=kt.keyboard,ar=kt.changeOnWheel,dn=ar===void 0?!1:ar,Ie=kt.controls,je=Ie===void 0?!0:Ie,Je=kt.classNames,ht=kt.stringMode,Et=kt.parser,Qt=kt.formatter,fn=kt.precision,sn=kt.decimalSeparator,mn=kt.onChange,Zn=kt.onInput,tr=kt.onPressEnter,Vt=kt.onStep,Gt=kt.changeOnBlur,Rt=Gt===void 0?!0:Gt,jt=kt.domRef,Mt=(0,le.Z)(kt,ut),Kt="".concat(Cn,"-input"),yt=te.useRef(null),qt=te.useState(!1),vn=(0,he.Z)(qt,2),Tt=vn[0],It=vn[1],Dt=te.useRef(!1),Bt=te.useRef(!1),Zt=te.useRef(!1),tn=te.useState(function(){return ce(Nn!=null?Nn:ur)}),Tn=(0,he.Z)(tn,2),Fn=Tn[0],dr=Tn[1];function _r(Fr){Nn===void 0&&dr(Fr)}var Kr=te.useCallback(function(Fr,or){if(!or)return fn>=0?fn:Math.max(ne(Fr),ne(nr))},[fn,nr]),Sr=te.useCallback(function(Fr){var or=String(Fr);if(Et)return Et(or);var ei=or;return sn&&(ei=ei.replace(sn,".")),ei.replace(/[^\w.-]+/g,"")},[Et,sn]),hr=te.useRef(""),Mr=te.useCallback(function(Fr,or){if(Qt)return Qt(Fr,{userTyping:or,input:String(hr.current)});var ei=typeof Fr=="number"?oe(Fr):Fr;if(!or){var si=Kr(ei,or);if(se(ei)&&(sn||si>=0)){var wr=sn||".";ei=re(ei,wr,si)}}return ei},[Qt,Kr,sn]),Br=te.useState(function(){var Fr=ur!=null?ur:Nn;return Fn.isInvalidate()&&["string","number"].includes((0,fe.Z)(Fr))?Number.isNaN(Fr)?"":Fr:Mr(Fn.toString(),!1)}),Wr=(0,he.Z)(Br,2),Jn=Wr[0],ii=Wr[1];hr.current=Jn;function Ur(Fr,or){ii(Mr(Fr.isInvalidate()?Fr.toString(!1):Fr.toString(!or),or))}var Gr=te.useMemo(function(){return pt(lr)},[lr,fn]),qr=te.useMemo(function(){return pt(mr)},[mr,fn]),Li=te.useMemo(function(){return!Gr||!Fn||Fn.isInvalidate()?!1:Gr.lessEquals(Fn)},[Gr,Fn]),wi=te.useMemo(function(){return!qr||!Fn||Fn.isInvalidate()?!1:Fn.lessEquals(qr)},[qr,Fn]),ui=Be(yt.current,Tt),Qr=(0,he.Z)(ui,2),Di=Qr[0],oi=Qr[1],di=function(or){return Gr&&!or.lessEquals(Gr)?Gr:qr&&!qr.lessEquals(or)?qr:null},ci=function(or){return!di(or)},ki=function(or,ei){var si=or,wr=ci(si)||si.isEmpty();if(!si.isEmpty()&&!ei&&(si=di(si)||si,wr=!0),!Wn&&!In&&wr){var Ir=si.toString(),Hr=Kr(Ir,ei);return Hr>=0&&(si=ce(re(Ir,".",Hr)),ci(si)||(si=ce(re(Ir,".",Hr,!0)))),si.equals(Fn)||(_r(si),mn==null||mn(si.isEmpty()?null:rt(ht,si)),Nn===void 0&&Ur(si,ei)),si}return Fn},Ki=nt(),ua=function Fr(or){if(Di(),hr.current=or,ii(or),!Bt.current){var ei=Sr(or),si=ce(ei);si.isNaN()||ki(si,!0)}Zn==null||Zn(or),Ki(function(){var wr=or;Et||(wr=or.replace(/。/g,".")),wr!==or&&Fr(wr)})},kn=function(){Bt.current=!0},qi=function(){Bt.current=!1,ua(yt.current.value)},Qi=function(or){ua(or.target.value)},ra=function(or){var ei;if(!(or&&Li||!or&&wi)){Dt.current=!1;var si=ce(Zt.current?Re(nr):nr);or||(si=si.negate());var wr=(Fn||ce(0)).add(si.toString()),Ir=ki(wr,!1);Vt==null||Vt(rt(ht,Ir),{offset:Zt.current?Re(nr):nr,type:or?"up":"down"}),(ei=yt.current)===null||ei===void 0||ei.focus()}},_i=function(or){var ei=ce(Sr(Jn)),si;ei.isNaN()?si=ki(Fn,or):si=ki(ei,or),Nn!==void 0?Ur(Fn,!1):si.isNaN()||Ur(si,!1)},Ti=function(){Dt.current=!0},Xr=function(or){var ei=or.key,si=or.shiftKey;Dt.current=!0,Zt.current=si,ei==="Enter"&&(Bt.current||(Dt.current=!1),_i(!1),tr==null||tr(or)),$n!==!1&&!Bt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ei)&&(ra(ei==="Up"||ei==="ArrowUp"),or.preventDefault())},rr=function(){Dt.current=!1,Zt.current=!1};te.useEffect(function(){if(dn&&Tt){var Fr=function(si){ra(si.deltaY<0),si.preventDefault()},or=yt.current;if(or)return or.addEventListener("wheel",Fr,{passive:!1}),function(){return or.removeEventListener("wheel",Fr)}}});var Dr=function(){Rt&&_i(!1),It(!1),Dt.current=!1};return(0,_e.o)(function(){Fn.isInvalidate()||Ur(Fn,!1)},[fn,Qt]),(0,_e.o)(function(){var Fr=ce(Nn);dr(Fr);var or=ce(Sr(Jn));(!Fr.equals(or)||!Dt.current||Qt)&&Ur(Fr,Dt.current)},[Nn]),(0,_e.o)(function(){Qt&&oi()},[Jn]),te.createElement("div",{ref:jt,className:Oe()(Cn,Mn,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Cn,"-focused"),Tt),"".concat(Cn,"-disabled"),In),"".concat(Cn,"-readonly"),Wn),"".concat(Cn,"-not-a-number"),Fn.isNaN()),"".concat(Cn,"-out-of-range"),!Fn.isInvalidate()&&!ci(Fn))),style:Qn,onFocus:function(){It(!0)},onBlur:Dr,onKeyDown:Xr,onKeyUp:rr,onCompositionStart:kn,onCompositionEnd:qi,onBeforeInput:Ti},je&&te.createElement(Ne,{prefixCls:Cn,upNode:Kn,downNode:Ln,upDisabled:Li,downDisabled:wi,onStep:ra}),te.createElement("div",{className:"".concat(Kt,"-wrap")},te.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mr,"aria-valuemax":lr,"aria-valuenow":Fn.isInvalidate()?null:Fn.toString(),step:nr},Mt,{ref:(0,be.sQ)(yt,ln),className:Kt,value:Jn,onChange:Qi,disabled:In,readOnly:Wn}))))}),gt=te.forwardRef(function(kt,ln){var Cn=kt.disabled,Mn=kt.style,Qn=kt.prefixCls,mr=Qn===void 0?"rc-input-number":Qn,lr=kt.value,Cr=kt.prefix,nr=kt.suffix,ur=kt.addonBefore,Nn=kt.addonAfter,In=kt.className,Wn=kt.classNames,Kn=(0,le.Z)(kt,Qe),Ln=te.useRef(null),$n=te.useRef(null),ar=te.useRef(null),dn=function(je){ar.current&&(0,$e.nH)(ar.current,je)};return te.useImperativeHandle(ln,function(){return ye(ar.current,{focus:dn,nativeElement:Ln.current.nativeElement||$n.current})}),te.createElement(ge.BaseInput,{className:In,triggerFocus:dn,prefixCls:mr,value:lr,disabled:Cn,style:Mn,prefix:Cr,suffix:nr,addonAfter:Nn,addonBefore:ur,classNames:Wn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ln},te.createElement(At,(0,ve.Z)({prefixCls:mr,disabled:Cn,ref:ar,domRef:$n,className:Wn==null?void 0:Wn.input},Kn)))}),Ft=gt,Ct=Ft,Yt=Ce(62487),zt=Ce(82855),Xe=Ce(48755),Fe=Ce(60840),Le=Ce(2171),Ze=Ce(83397),et=Ce(31756),He=Ce(56553),We=Ce(24971),tt=Ce(70045),at=Ce(36237),ot=Ce(53075),ct=Ce(64910),lt=Ce(39082),mt=Ce(63356),Lt=Ce(56119),ft=Ce(16931),St=Ce(51636),nn=Ce(17835);const on=kt=>{var ln;const Cn=(ln=kt.handleVisible)!==null&&ln!==void 0?ln:"auto",Mn=kt.controlHeightSM-kt.lineWidth*2;return Object.assign(Object.assign({},(0,ct.T)(kt)),{controlWidth:90,handleWidth:Mn,handleFontSize:kt.fontSize/2,handleVisible:Cn,handleActiveBg:kt.colorFillAlter,handleBg:kt.colorBgContainer,filledHandleBg:new nn.FastColor(kt.colorFillSecondary).onBackground(kt.colorBgContainer).toHexString(),handleHoverColor:kt.colorPrimary,handleBorderColor:kt.colorBorder,handleOpacity:Cn===!0?1:0,handleVisibleWidth:Cn===!0?Mn:0})},yn=(kt,ln)=>{let{componentCls:Cn,borderRadiusSM:Mn,borderRadiusLG:Qn}=kt;const mr=ln==="lg"?Qn:Mn;return{[`&-${ln}`]:{[`${Cn}-handler-wrap`]:{borderStartEndRadius:mr,borderEndEndRadius:mr},[`${Cn}-handler-up`]:{borderStartEndRadius:mr},[`${Cn}-handler-down`]:{borderEndEndRadius:mr}}}},xn=kt=>{const{componentCls:ln,lineWidth:Cn,lineType:Mn,borderRadius:Qn,inputFontSizeSM:mr,inputFontSizeLG:lr,controlHeightLG:Cr,controlHeightSM:nr,colorError:ur,paddingInlineSM:Nn,paddingBlockSM:In,paddingBlockLG:Wn,paddingInlineLG:Kn,colorTextDescription:Ln,motionDurationMid:$n,handleHoverColor:ar,handleOpacity:dn,paddingInline:Ie,paddingBlock:je,handleBg:Je,handleActiveBg:ht,colorTextDisabled:Et,borderRadiusSM:Qt,borderRadiusLG:fn,controlWidth:sn,handleBorderColor:mn,filledHandleBg:Zn,lineHeightLG:tr,calc:Vt}=kt;return[{[ln]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),(0,ot.ik)(kt)),{display:"inline-block",width:sn,margin:0,padding:0,borderRadius:Qn}),(0,lt.qG)(kt,{[`${ln}-handler-wrap`]:{background:Je,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}}})),(0,lt.H8)(kt,{[`${ln}-handler-wrap`]:{background:Zn,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}},"&:focus-within":{[`${ln}-handler-wrap`]:{background:Je}}})),(0,lt.vc)(kt,{[`${ln}-handler-wrap`]:{background:Je,[`${ln}-handler-down`]:{borderBlockStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`}}})),(0,lt.Mu)(kt)),{"&-rtl":{direction:"rtl",[`${ln}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:lr,lineHeight:tr,borderRadius:fn,[`input${ln}-input`]:{height:Vt(Cr).sub(Vt(Cn).mul(2)).equal(),padding:`${(0,at.unit)(Wn)} ${(0,at.unit)(Kn)}`}},"&-sm":{padding:0,fontSize:mr,borderRadius:Qt,[`input${ln}-input`]:{height:Vt(nr).sub(Vt(Cn).mul(2)).equal(),padding:`${(0,at.unit)(In)} ${(0,at.unit)(Nn)}`}},"&-out-of-range":{[`${ln}-input-wrap`]:{input:{color:ur}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),(0,ot.s7)(kt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ln}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ln}-group-addon`]:{borderRadius:fn,fontSize:kt.fontSizeLG}},"&-sm":{[`${ln}-group-addon`]:{borderRadius:Qt}}},(0,lt.ir)(kt)),(0,lt.S5)(kt)),{[`&:not(${ln}-compact-first-item):not(${ln}-compact-last-item)${ln}-compact-item`]:{[`${ln}, ${ln}-group-addon`]:{borderRadius:0}},[`&:not(${ln}-compact-last-item)${ln}-compact-first-item`]:{[`${ln}, ${ln}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ln}-compact-first-item)${ln}-compact-last-item`]:{[`${ln}, ${ln}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ln}-input`]:{cursor:"not-allowed"},[ln]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(kt)),{width:"100%",padding:`${(0,at.unit)(je)} ${(0,at.unit)(Ie)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qn,outline:0,transition:`all ${$n} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ot.nz)(kt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ln}-handler-wrap, &-focused ${ln}-handler-wrap`]:{width:kt.handleWidth,opacity:1}})},{[ln]:Object.assign(Object.assign(Object.assign({[`${ln}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:kt.handleVisibleWidth,opacity:dn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Qn,borderEndEndRadius:Qn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${$n}`,overflow:"hidden",[`${ln}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${ln}-handler-up-inner, ${ln}-handler-down-inner `]:{marginInlineEnd:0,fontSize:kt.handleFontSize}}},[`${ln}-handler`]:{height:"50%",overflow:"hidden",color:Ln,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,at.unit)(Cn)} ${Mn} ${mn}`,transition:`all ${$n} linear`,"&:active":{background:ht},"&:hover":{height:"60%",[` ${ln}-handler-up-inner, ${ln}-handler-down-inner `]:{color:ar}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,mt.Ro)()),{color:Ln,transition:`all ${$n} linear`,userSelect:"none"})},[`${ln}-handler-up`]:{borderStartEndRadius:Qn},[`${ln}-handler-down`]:{borderEndEndRadius:Qn}},yn(kt,"lg")),yn(kt,"sm")),{"&-disabled, &-readonly":{[`${ln}-handler-wrap`]:{display:"none"},[`${ln}-input`]:{color:"inherit"}},[` ${ln}-handler-up-disabled, ${ln}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${ln}-handler-up-disabled:hover &-handler-up-inner, ${ln}-handler-down-disabled:hover &-handler-down-inner `]:{color:Et}})}]},an=kt=>{const{componentCls:ln,paddingBlock:Cn,paddingInline:Mn,inputAffixPadding:Qn,controlWidth:mr,borderRadiusLG:lr,borderRadiusSM:Cr,paddingInlineLG:nr,paddingInlineSM:ur,paddingBlockLG:Nn,paddingBlockSM:In,motionDurationMid:Wn}=kt;return{[`${ln}-affix-wrapper`]:Object.assign(Object.assign({[`input${ln}-input`]:{padding:`${(0,at.unit)(Cn)} 0`}},(0,ot.ik)(kt)),{position:"relative",display:"inline-flex",alignItems:"center",width:mr,padding:0,paddingInlineStart:Mn,"&-lg":{borderRadius:lr,paddingInlineStart:nr,[`input${ln}-input`]:{padding:`${(0,at.unit)(Nn)} 0`}},"&-sm":{borderRadius:Cr,paddingInlineStart:ur,[`input${ln}-input`]:{padding:`${(0,at.unit)(In)} 0`}},[`&:not(${ln}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ln}-disabled`]:{background:"transparent"},[`> div${ln}`]:{width:"100%",border:"none",outline:"none",[`&${ln}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ln}-handler-wrap`]:{zIndex:2},[ln]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Qn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mn,marginInlineStart:Qn,transition:`margin ${Wn}`}},[`&:hover ${ln}-handler-wrap, &-focused ${ln}-handler-wrap`]:{width:kt.handleWidth,opacity:1},[`&:not(${ln}-affix-wrapper-without-controls):hover ${ln}-suffix`]:{marginInlineEnd:kt.calc(kt.handleWidth).add(Mn).equal()}})}};var An=(0,ft.I$)("InputNumber",kt=>{const ln=(0,St.mergeToken)(kt,(0,ct.e)(kt));return[xn(ln),an(ln),(0,Lt.c)(ln)]},on,{unitless:{handleOpacity:!0}}),Jt=function(kt,ln){var Cn={};for(var Mn in kt)Object.prototype.hasOwnProperty.call(kt,Mn)&&ln.indexOf(Mn)<0&&(Cn[Mn]=kt[Mn]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Mn=Object.getOwnPropertySymbols(kt);Qn{const{getPrefixCls:Cn,direction:Mn}=te.useContext(Xe.E_),Qn=te.useRef(null);te.useImperativeHandle(ln,()=>Qn.current);const{className:mr,rootClassName:lr,size:Cr,disabled:nr,prefixCls:ur,addonBefore:Nn,addonAfter:In,prefix:Wn,suffix:Kn,bordered:Ln,readOnly:$n,status:ar,controls:dn,variant:Ie}=kt,je=Jt(kt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Je=Cn("input-number",ur),ht=(0,Ze.Z)(Je),[Et,Qt,fn]=An(Je,ht),{compactSize:sn,compactItemClassnames:mn}=(0,tt.ri)(Je,Mn);let Zn=te.createElement(Me.Z,{className:`${Je}-handler-up-inner`}),tr=te.createElement(Ye.Z,{className:`${Je}-handler-down-inner`});const Vt=typeof dn=="boolean"?dn:void 0;typeof dn=="object"&&(Zn=typeof dn.upIcon=="undefined"?Zn:te.createElement("span",{className:`${Je}-handler-up-inner`},dn.upIcon),tr=typeof dn.downIcon=="undefined"?tr:te.createElement("span",{className:`${Je}-handler-down-inner`},dn.downIcon));const{hasFeedback:Gt,status:Rt,isFormItemInput:jt,feedbackIcon:Mt}=te.useContext(He.aM),Kt=(0,zt.F)(Rt,ar),yt=(0,et.Z)(Tn=>{var Fn;return(Fn=Cr!=null?Cr:sn)!==null&&Fn!==void 0?Fn:Tn}),qt=te.useContext(Le.Z),vn=nr!=null?nr:qt,[Tt,It]=(0,We.Z)("inputNumber",Ie,Ln),Dt=Gt&&te.createElement(te.Fragment,null,Mt),Bt=Oe()({[`${Je}-lg`]:yt==="large",[`${Je}-sm`]:yt==="small",[`${Je}-rtl`]:Mn==="rtl",[`${Je}-in-form-item`]:jt},Qt),Zt=`${Je}-group`,tn=te.createElement(Ct,Object.assign({ref:Qn,disabled:vn,className:Oe()(fn,ht,mr,lr,mn),upHandler:Zn,downHandler:tr,prefixCls:Je,readOnly:$n,controls:Vt,prefix:Wn,suffix:Dt||Kn,addonBefore:Nn&&te.createElement(Yt.Z,{form:!0,space:!0},Nn),addonAfter:In&&te.createElement(Yt.Z,{form:!0,space:!0},In),classNames:{input:Bt,variant:Oe()({[`${Je}-${Tt}`]:It},(0,zt.Z)(Je,Kt,Gt)),affixWrapper:Oe()({[`${Je}-affix-wrapper-sm`]:yt==="small",[`${Je}-affix-wrapper-lg`]:yt==="large",[`${Je}-affix-wrapper-rtl`]:Mn==="rtl",[`${Je}-affix-wrapper-without-controls`]:dn===!1||vn},Qt),wrapper:Oe()({[`${Zt}-rtl`]:Mn==="rtl"},Qt),groupWrapper:Oe()({[`${Je}-group-wrapper-sm`]:yt==="small",[`${Je}-group-wrapper-lg`]:yt==="large",[`${Je}-group-wrapper-rtl`]:Mn==="rtl",[`${Je}-group-wrapper-${Tt}`]:It},(0,zt.Z)(`${Je}-group-wrapper`,Kt,Gt),Qt)}},je));return Et(tn)}),rn=Ut,_n=kt=>te.createElement(Fe.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(Ut,Object.assign({},kt)));rn._InternalPanelDoNotUseOrYouWillBeFired=_n;var Bn=rn},49397:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return a}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(36901),Oe=Ce(8654),ve=Ce(62487),ue=Ce(86013),fe=Ce(82855),he=Ce(48755),le=Ce(2171),ae=Ce(83397),ie=Ce(31756),me=Ce(56553),E=Ce(24971),b=Ce(70045),z=Ce(23826),ne=Ce(53075);function oe(x){return!!(x.prefix||x.suffix||x.allowClear||x.showCount)}var se=function(x,re){var ce={};for(var ge in x)Object.prototype.hasOwnProperty.call(x,ge)&&re.indexOf(ge)<0&&(ce[ge]=x[ge]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ge=Object.getOwnPropertySymbols(x);_e{const{prefixCls:ce,bordered:ge=!0,status:_e,size:ye,disabled:be,onBlur:Se,onFocus:Be,suffix:Ae,allowClear:we,addonAfter:Ue,addonBefore:Pe,className:ze,style:Ke,styles:Ne,rootClassName:Re,onChange:$e,classNames:nt,variant:ut}=x,Qe=se(x,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:rt,direction:pt,allowClear:At,autoComplete:gt,className:Ft,style:Ct,classNames:Yt,styles:zt}=(0,he.dj)("input"),Xe=rt("input",ce),Fe=(0,te.useRef)(null),Le=(0,ae.Z)(Xe),[Ze,et,He]=(0,ne.TI)(Xe,Re),[We]=(0,ne.ZP)(Xe,Le),{compactSize:tt,compactItemClassnames:at}=(0,b.ri)(Xe,pt),ot=(0,ie.Z)(Bn=>{var kt;return(kt=ye!=null?ye:tt)!==null&&kt!==void 0?kt:Bn}),ct=te.useContext(le.Z),lt=be!=null?be:ct,{status:mt,hasFeedback:Lt,feedbackIcon:ft}=(0,te.useContext)(me.aM),St=(0,fe.F)(mt,_e),nn=oe(x)||!!Lt,on=(0,te.useRef)(nn),yn=(0,z.Z)(Fe,!0),xn=Bn=>{yn(),Se==null||Se(Bn)},an=Bn=>{yn(),Be==null||Be(Bn)},An=Bn=>{yn(),$e==null||$e(Bn)},Jt=(Lt||Ae)&&te.createElement(te.Fragment,null,Ae,Lt&&ft),Ut=(0,ue.Z)(we!=null?we:At),[rn,_n]=(0,E.Z)("input",ut,ge);return Ze(We(te.createElement(pe.default,Object.assign({ref:(0,Oe.sQ)(re,Fe),prefixCls:Xe,autoComplete:gt},Qe,{disabled:lt,onBlur:xn,onFocus:an,style:Object.assign(Object.assign({},Ct),Ke),styles:Object.assign(Object.assign({},zt),Ne),suffix:Jt,allowClear:Ut,className:Me()(ze,Re,He,Le,at,Ft),onChange:An,addonBefore:Pe&&te.createElement(ve.Z,{form:!0,space:!0},Pe),addonAfter:Ue&&te.createElement(ve.Z,{form:!0,space:!0},Ue),classNames:Object.assign(Object.assign(Object.assign({},nt),Yt),{input:Me()({[`${Xe}-sm`]:ot==="small",[`${Xe}-lg`]:ot==="large",[`${Xe}-rtl`]:pt==="rtl"},nt==null?void 0:nt.input,Yt.input,et),variant:Me()({[`${Xe}-${rn}`]:_n},(0,fe.Z)(Xe,St)),affixWrapper:Me()({[`${Xe}-affix-wrapper-sm`]:ot==="small",[`${Xe}-affix-wrapper-lg`]:ot==="large",[`${Xe}-affix-wrapper-rtl`]:pt==="rtl"},et),wrapper:Me()({[`${Xe}-group-rtl`]:pt==="rtl"},et),groupWrapper:Me()({[`${Xe}-group-wrapper-sm`]:ot==="small",[`${Xe}-group-wrapper-lg`]:ot==="large",[`${Xe}-group-wrapper-rtl`]:pt==="rtl",[`${Xe}-group-wrapper-${rn}`]:_n},(0,fe.Z)(`${Xe}-group-wrapper`,St,Lt),et)})}))))})},79809:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return re}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(22711),Oe=Ce(86013),ve=Ce(82855),ue=Ce(48755),fe=Ce(2171),he=Ce(83397),le=Ce(31756),ae=Ce(56553),ie=Ce(24971),me=Ce(70045),E=Ce(30292),b=Ce(53075),z=Ce(16931),ne=Ce(51636),oe=Ce(64910);const se=ce=>{const{componentCls:ge,paddingLG:_e}=ce,ye=`${ge}-textarea`;return{[`textarea${ge}`]:{maxWidth:"100%",height:"auto",minHeight:ce.controlHeight,lineHeight:ce.lineHeight,verticalAlign:"bottom",transition:`all ${ce.motionDurationSlow}`,resize:"vertical",[`&${ge}-mouse-active`]:{transition:`all ${ce.motionDurationSlow}, height 0s, width 0s`}},[`${ge}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ye]:{position:"relative","&-show-count":{[`> ${ge}`]:{height:"100%"},[`${ge}-data-count`]:{position:"absolute",bottom:ce.calc(ce.fontSize).mul(ce.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ce.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${ge}, &-affix-wrapper${ye}-has-feedback ${ge} `]:{paddingInlineEnd:_e},[`&-affix-wrapper${ge}-affix-wrapper`]:{padding:0,[`> textarea${ge}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ce.calc(ce.controlHeight).sub(ce.calc(ce.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ge}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ge}-clear-icon`]:{position:"absolute",insetInlineEnd:ce.paddingInline,insetBlockStart:ce.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ce.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ge}-affix-wrapper-sm`]:{[`${ge}-suffix`]:{[`${ge}-clear-icon`]:{insetInlineEnd:ce.paddingInlineSM}}}}}};var de=(0,z.I$)(["Input","TextArea"],ce=>{const ge=(0,ne.mergeToken)(ce,(0,oe.e)(ce));return[se(ge)]},oe.T,{resetFont:!1}),a=function(ce,ge){var _e={};for(var ye in ce)Object.prototype.hasOwnProperty.call(ce,ye)&&ge.indexOf(ye)<0&&(_e[ye]=ce[ye]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ye=Object.getOwnPropertySymbols(ce);be{var _e;const{prefixCls:ye,bordered:be=!0,size:Se,disabled:Be,status:Ae,allowClear:we,classNames:Ue,rootClassName:Pe,className:ze,style:Ke,styles:Ne,variant:Re,showCount:$e,onMouseDown:nt,onResize:ut}=ce,Qe=a(ce,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:rt,direction:pt,allowClear:At,autoComplete:gt,className:Ft,style:Ct,classNames:Yt,styles:zt}=(0,ue.dj)("textArea"),Xe=te.useContext(fe.Z),Fe=Be!=null?Be:Xe,{status:Le,hasFeedback:Ze,feedbackIcon:et}=te.useContext(ae.aM),He=(0,ve.F)(Le,Ae),We=te.useRef(null);te.useImperativeHandle(ge,()=>{var _n;return{resizableTextArea:(_n=We.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Bn=>{var kt,ln;(0,E.nH)((ln=(kt=We.current)===null||kt===void 0?void 0:kt.resizableTextArea)===null||ln===void 0?void 0:ln.textArea,Bn)},blur:()=>{var Bn;return(Bn=We.current)===null||Bn===void 0?void 0:Bn.blur()}}});const tt=rt("input",ye),at=(0,he.Z)(tt),[ot,ct,lt]=(0,b.TI)(tt,Pe),[mt]=de(tt,at),{compactSize:Lt,compactItemClassnames:ft}=(0,me.ri)(tt,pt),St=(0,le.Z)(_n=>{var Bn;return(Bn=Se!=null?Se:Lt)!==null&&Bn!==void 0?Bn:_n}),[nn,on]=(0,ie.Z)("textArea",Re,be),yn=(0,Oe.Z)(we!=null?we:At),[xn,an]=te.useState(!1),[An,Jt]=te.useState(!1),Ut=_n=>{an(!0),nt==null||nt(_n);const Bn=()=>{an(!1),document.removeEventListener("mouseup",Bn)};document.addEventListener("mouseup",Bn)},rn=_n=>{var Bn,kt;if(ut==null||ut(_n),xn&&typeof getComputedStyle=="function"){const ln=(kt=(Bn=We.current)===null||Bn===void 0?void 0:Bn.nativeElement)===null||kt===void 0?void 0:kt.querySelector("textarea");ln&&getComputedStyle(ln).resize==="both"&&Jt(!0)}};return ot(mt(te.createElement(pe.default,Object.assign({autoComplete:gt},Qe,{style:Object.assign(Object.assign({},Ct),Ke),styles:Object.assign(Object.assign({},zt),Ne),disabled:Fe,allowClear:yn,className:Me()(lt,at,ze,Pe,ft,Ft,An&&`${tt}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ue),Yt),{textarea:Me()({[`${tt}-sm`]:St==="small",[`${tt}-lg`]:St==="large"},ct,Ue==null?void 0:Ue.textarea,Yt.textarea,xn&&`${tt}-mouse-active`),variant:Me()({[`${tt}-${nn}`]:on},(0,ve.Z)(tt,He)),affixWrapper:Me()(`${tt}-textarea-affix-wrapper`,{[`${tt}-affix-wrapper-rtl`]:pt==="rtl",[`${tt}-affix-wrapper-sm`]:St==="small",[`${tt}-affix-wrapper-lg`]:St==="large",[`${tt}-textarea-show-count`]:$e||((_e=ce.count)===null||_e===void 0?void 0:_e.show)},ct)}),prefixCls:tt,suffix:Ze&&te.createElement("span",{className:`${tt}-textarea-suffix`},et),showCount:$e,ref:We,onResize:rn,onMouseDown:Ut}))))})},23826:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(59301);function Ye(Me,pe){const Oe=(0,te.useRef)([]),ve=()=>{Oe.current.push(setTimeout(()=>{var ue,fe,he,le;!((ue=Me.current)===null||ue===void 0)&&ue.input&&((fe=Me.current)===null||fe===void 0?void 0:fe.input.getAttribute("type"))==="password"&&(!((he=Me.current)===null||he===void 0)&&he.input.hasAttribute("value"))&&((le=Me.current)===null||le===void 0||le.input.removeAttribute("value"))}))};return(0,te.useEffect)(()=>(pe&&ve(),()=>Oe.current.forEach(ue=>{ue&&clearTimeout(ue)})),[]),ve}},37568:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Yt}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(48755),Oe=Ce(56553),ve=Ce(53075),fe=zt=>{const{getPrefixCls:Xe,direction:Fe}=(0,te.useContext)(pe.E_),{prefixCls:Le,className:Ze}=zt,et=Xe("input-group",Le),He=Xe("input"),[We,tt,at]=(0,ve.ZP)(He),ot=Me()(et,at,{[`${et}-lg`]:zt.size==="large",[`${et}-sm`]:zt.size==="small",[`${et}-compact`]:zt.compact,[`${et}-rtl`]:Fe==="rtl"},tt,Ze),ct=(0,te.useContext)(Oe.aM),lt=(0,te.useMemo)(()=>Object.assign(Object.assign({},ct),{isFormItemInput:!1}),[ct]);return We(te.createElement("span",{className:ot,style:zt.style,onMouseEnter:zt.onMouseEnter,onMouseLeave:zt.onMouseLeave,onFocus:zt.onFocus,onBlur:zt.onBlur},te.createElement(Oe.aM.Provider,{value:lt},zt.children)))},he=Ce(49397),le=Ce(77654),ae=Ce(6089),ie=Ce(26112),me=Ce(82855),E=Ce(31756),b=Ce(16931),z=Ce(51636),ne=Ce(64910);const oe=zt=>{const{componentCls:Xe,paddingXS:Fe}=zt;return{[Xe]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Fe,"&-rtl":{direction:"rtl"},[`${Xe}-input`]:{textAlign:"center",paddingInline:zt.paddingXXS},[`&${Xe}-sm ${Xe}-input`]:{paddingInline:zt.calc(zt.paddingXXS).div(2).equal()},[`&${Xe}-lg ${Xe}-input`]:{paddingInline:zt.paddingXS}}}};var se=(0,b.I$)(["Input","OTP"],zt=>{const Xe=(0,z.mergeToken)(zt,(0,ne.e)(zt));return[oe(Xe)]},ne.T),de=Ce(16089),a=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze{const{value:Fe,onChange:Le,onActiveChange:Ze,index:et,mask:He}=zt,We=a(zt,["value","onChange","onActiveChange","index","mask"]),tt=Fe&&typeof He=="string"?He:Fe,at=Lt=>{Le(et,Lt.target.value)},ot=te.useRef(null);te.useImperativeHandle(Xe,()=>ot.current);const ct=()=>{(0,de.Z)(()=>{var Lt;const ft=(Lt=ot.current)===null||Lt===void 0?void 0:Lt.input;document.activeElement===ft&&ft&&ft.select()})},lt=Lt=>{const{key:ft,ctrlKey:St,metaKey:nn}=Lt;ft==="ArrowLeft"?Ze(et-1):ft==="ArrowRight"?Ze(et+1):ft==="z"&&(St||nn)&&Lt.preventDefault(),ct()},mt=Lt=>{Lt.key==="Backspace"&&!Fe&&Ze(et-1),ct()};return te.createElement(he.Z,Object.assign({type:He===!0?"password":"text"},We,{ref:ot,value:tt,onInput:at,onFocus:ct,onKeyDown:lt,onKeyUp:mt,onMouseDown:ct,onMouseUp:ct}))}),ce=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze{const{index:Xe,prefixCls:Fe,separator:Le}=zt,Ze=typeof Le=="function"?Le(Xe):Le;return Ze?te.createElement("span",{className:`${Fe}-separator`},Ze):null};var be=te.forwardRef((zt,Xe)=>{const{prefixCls:Fe,length:Le=6,size:Ze,defaultValue:et,value:He,onChange:We,formatter:tt,separator:at,variant:ot,disabled:ct,status:lt,autoFocus:mt,mask:Lt,type:ft,onInput:St,inputMode:nn}=zt,on=ce(zt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:yn,direction:xn}=te.useContext(pe.E_),an=yn("otp",Fe),An=(0,ie.Z)(on,{aria:!0,data:!0,attr:!0}),[Jt,Ut,rn]=se(an),_n=(0,E.Z)(Wn=>Ze!=null?Ze:Wn),Bn=te.useContext(Oe.aM),kt=(0,me.F)(Bn.status,lt),ln=te.useMemo(()=>Object.assign(Object.assign({},Bn),{status:kt,hasFeedback:!1,feedbackIcon:null}),[Bn,kt]),Cn=te.useRef(null),Mn=te.useRef({});te.useImperativeHandle(Xe,()=>({focus:()=>{var Wn;(Wn=Mn.current[0])===null||Wn===void 0||Wn.focus()},blur:()=>{var Wn;for(let Kn=0;Kntt?tt(Wn):Wn,[mr,lr]=te.useState(()=>ge(Qn(et||"")));te.useEffect(()=>{He!==void 0&&lr(ge(He))},[He]);const Cr=(0,ae.Z)(Wn=>{lr(Wn),St&&St(Wn),We&&Wn.length===Le&&Wn.every(Kn=>Kn)&&Wn.some((Kn,Ln)=>mr[Ln]!==Kn)&&We(Wn.join(""))}),nr=(0,ae.Z)((Wn,Kn)=>{let Ln=(0,le.Z)(mr);for(let ar=0;ar=0&&!Ln[ar];ar-=1)Ln.pop();const $n=Qn(Ln.map(ar=>ar||" ").join(""));return Ln=ge($n).map((ar,dn)=>ar===" "&&!Ln[dn]?Ln[dn]:ar),Ln}),ur=(Wn,Kn)=>{var Ln;const $n=nr(Wn,Kn),ar=Math.min(Wn+Kn.length,Le-1);ar!==Wn&&$n[Wn]!==void 0&&((Ln=Mn.current[ar])===null||Ln===void 0||Ln.focus()),Cr($n)},Nn=Wn=>{var Kn;(Kn=Mn.current[Wn])===null||Kn===void 0||Kn.focus()},In={variant:ot,disabled:ct,status:kt,mask:Lt,type:ft,inputMode:nn};return Jt(te.createElement("div",Object.assign({},An,{ref:Cn,className:Me()(an,{[`${an}-sm`]:_n==="small",[`${an}-lg`]:_n==="large",[`${an}-rtl`]:xn==="rtl"},rn,Ut)}),te.createElement(Oe.aM.Provider,{value:ln},Array.from({length:Le}).map((Wn,Kn)=>{const Ln=`otp-${Kn}`,$n=mr[Kn]||"";return te.createElement(te.Fragment,{key:Ln},te.createElement(re,Object.assign({ref:ar=>{Mn.current[Kn]=ar},index:Kn,size:_n,htmlSize:1,className:`${an}-input`,onChange:ur,value:$n,onActiveChange:Nn,autoFocus:Kn===0&&mt},In)),Knzt?te.createElement(Be.Z,null):te.createElement(Se.Z,null),Ne={click:"onClick",hover:"onMouseOver"};var $e=te.forwardRef((zt,Xe)=>{const{disabled:Fe,action:Le="click",visibilityToggle:Ze=!0,iconRender:et=Ke}=zt,He=te.useContext(Ue.Z),We=Fe!=null?Fe:He,tt=typeof Ze=="object"&&Ze.visible!==void 0,[at,ot]=(0,te.useState)(()=>tt?Ze.visible:!1),ct=(0,te.useRef)(null);te.useEffect(()=>{tt&&ot(Ze.visible)},[tt,Ze]);const lt=(0,Pe.Z)(ct),mt=()=>{var _n;if(We)return;at&<();const Bn=!at;ot(Bn),typeof Ze=="object"&&((_n=Ze.onVisibleChange)===null||_n===void 0||_n.call(Ze,Bn))},Lt=_n=>{const Bn=Ne[Le]||"",kt=et(at),ln={[Bn]:mt,className:`${_n}-icon`,key:"passwordIcon",onMouseDown:Cn=>{Cn.preventDefault()},onMouseUp:Cn=>{Cn.preventDefault()}};return te.cloneElement(te.isValidElement(kt)?kt:te.createElement("span",null,kt),ln)},{className:ft,prefixCls:St,inputPrefixCls:nn,size:on}=zt,yn=ze(zt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:xn}=te.useContext(pe.E_),an=xn("input",nn),An=xn("input-password",St),Jt=Ze&&Lt(An),Ut=Me()(An,ft,{[`${An}-${on}`]:!!on}),rn=Object.assign(Object.assign({},(0,Ae.Z)(yn,["suffix","iconRender","visibilityToggle"])),{type:at?"text":"password",className:Ut,prefixCls:an,suffix:Jt});return on&&(rn.size=on),te.createElement(he.Z,Object.assign({ref:(0,we.sQ)(Xe,ct)},rn))}),nt=Ce(47472),ut=Ce(22703),Qe=Ce(7939),rt=Ce(70045),pt=function(zt,Xe){var Fe={};for(var Le in zt)Object.prototype.hasOwnProperty.call(zt,Le)&&Xe.indexOf(Le)<0&&(Fe[Le]=zt[Le]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Le=Object.getOwnPropertySymbols(zt);Ze{const{prefixCls:Fe,inputPrefixCls:Le,className:Ze,size:et,suffix:He,enterButton:We=!1,addonAfter:tt,loading:at,disabled:ot,onSearch:ct,onChange:lt,onCompositionStart:mt,onCompositionEnd:Lt}=zt,ft=pt(zt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:nn}=te.useContext(pe.E_),on=te.useRef(!1),yn=St("input-search",Fe),xn=St("input",Le),{compactSize:an}=(0,rt.ri)(yn,nn),An=(0,E.Z)(ur=>{var Nn;return(Nn=et!=null?et:an)!==null&&Nn!==void 0?Nn:ur}),Jt=te.useRef(null),Ut=ur=>{ur!=null&&ur.target&&ur.type==="click"&&ct&&ct(ur.target.value,ur,{source:"clear"}),lt==null||lt(ur)},rn=ur=>{var Nn;document.activeElement===((Nn=Jt.current)===null||Nn===void 0?void 0:Nn.input)&&ur.preventDefault()},_n=ur=>{var Nn,In;ct&&ct((In=(Nn=Jt.current)===null||Nn===void 0?void 0:Nn.input)===null||In===void 0?void 0:In.value,ur,{source:"input"})},Bn=ur=>{on.current||at||_n(ur)},kt=typeof We=="boolean"?te.createElement(nt.Z,null):null,ln=`${yn}-button`;let Cn;const Mn=We||{},Qn=Mn.type&&Mn.type.__ANT_BUTTON===!0;Qn||Mn.type==="button"?Cn=(0,ut.Tm)(Mn,Object.assign({onMouseDown:rn,onClick:ur=>{var Nn,In;(In=(Nn=Mn==null?void 0:Mn.props)===null||Nn===void 0?void 0:Nn.onClick)===null||In===void 0||In.call(Nn,ur),_n(ur)},key:"enterButton"},Qn?{className:ln,size:An}:{})):Cn=te.createElement(Qe.ZP,{className:ln,type:We?"primary":void 0,size:An,disabled:ot,key:"enterButton",onMouseDown:rn,onClick:_n,loading:at,icon:kt},We),tt&&(Cn=[Cn,(0,ut.Tm)(tt,{key:"addonAfter"})]);const mr=Me()(yn,{[`${yn}-rtl`]:nn==="rtl",[`${yn}-${An}`]:!!An,[`${yn}-with-button`]:!!We},Ze),lr=Object.assign(Object.assign({},ft),{className:mr,prefixCls:xn,type:"search"}),Cr=ur=>{on.current=!0,mt==null||mt(ur)},nr=ur=>{on.current=!1,Lt==null||Lt(ur)};return te.createElement(he.Z,Object.assign({ref:(0,we.sQ)(Jt,Xe),onPressEnter:Bn},lr,{size:An,onCompositionStart:Cr,onCompositionEnd:nr,addonAfter:Cn,suffix:He,onChange:Ut,disabled:ot}))}),Ft=Ce(79809);const Ct=he.Z;Ct.Group=fe,Ct.Search=gt,Ct.TextArea=Ft.Z,Ct.Password=$e,Ct.OTP=be;var Yt=Ct},24303:function(Yn,en,Ce){"use strict";Ce.d(en,{D:function(){return ce},Z:function(){return ye}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(Se,Be){return te.createElement(Oe.Z,(0,Ye.Z)({},Se,{ref:Be,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(33853),le=Ce(38819),ae=Ce(92310),ie=Ce.n(ae),me=Ce(2738),E=Ce(48755),b=Ce(6989),z=Ce(36237),ne=Ce(48923),oe=Ce(16931);const se=be=>{const{componentCls:Se,siderBg:Be,motionDurationMid:Ae,motionDurationSlow:we,antCls:Ue,triggerHeight:Pe,triggerColor:ze,triggerBg:Ke,headerHeight:Ne,zeroTriggerWidth:Re,zeroTriggerHeight:$e,borderRadiusLG:nt,lightSiderBg:ut,lightTriggerColor:Qe,lightTriggerBg:rt,bodyBg:pt}=be;return{[Se]:{position:"relative",minWidth:0,background:Be,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:Pe},"&-right":{order:1},[`${Se}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ue}-menu${Ue}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Se}-children`]:{overflow:"hidden"},[`${Se}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Pe,color:ze,lineHeight:(0,z.unit)(Pe),textAlign:"center",background:Ke,cursor:"pointer",transition:`all ${Ae}`},[`${Se}-zero-width-trigger`]:{position:"absolute",top:Ne,insetInlineEnd:be.calc(Re).mul(-1).equal(),zIndex:1,width:Re,height:$e,color:ze,fontSize:be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderRadius:`0 ${(0,z.unit)(nt)} ${(0,z.unit)(nt)} 0`,cursor:"pointer",transition:`background ${we} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${we}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:be.calc(Re).mul(-1).equal(),borderRadius:`${(0,z.unit)(nt)} 0 0 ${(0,z.unit)(nt)}`}},"&-light":{background:ut,[`${Se}-trigger`]:{color:Qe,background:rt},[`${Se}-zero-width-trigger`]:{color:Qe,background:rt,border:`1px solid ${pt}`,borderInlineStart:0}}}}};var de=(0,oe.I$)(["Layout","Sider"],be=>[se(be)],ne.eh,{deprecatedTokens:ne.jn}),a=function(be,Se){var Be={};for(var Ae in be)Object.prototype.hasOwnProperty.call(be,Ae)&&Se.indexOf(Ae)<0&&(Be[Ae]=be[Ae]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ae=Object.getOwnPropertySymbols(be);we!Number.isNaN(Number.parseFloat(be))&&isFinite(be),ce=te.createContext({}),ge=(()=>{let be=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return be+=1,`${Se}${be}`}})();var ye=te.forwardRef((be,Se)=>{const{prefixCls:Be,className:Ae,trigger:we,children:Ue,defaultCollapsed:Pe=!1,theme:ze="dark",style:Ke={},collapsible:Ne=!1,reverseArrow:Re=!1,width:$e=200,collapsedWidth:nt=80,zeroWidthTriggerStyle:ut,breakpoint:Qe,onCollapse:rt,onBreakpoint:pt}=be,At=a(be,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:gt}=(0,te.useContext)(b.V),[Ft,Ct]=(0,te.useState)("collapsed"in be?be.collapsed:Pe),[Yt,zt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in be&&Ct(be.collapsed)},[be.collapsed]);const Xe=(An,Jt)=>{"collapsed"in be||Ct(An),rt==null||rt(An,Jt)},{getPrefixCls:Fe,direction:Le}=(0,te.useContext)(E.E_),Ze=Fe("layout-sider",Be),[et,He,We]=de(Ze),tt=(0,te.useRef)(null);tt.current=An=>{zt(An.matches),pt==null||pt(An.matches),Ft!==An.matches&&Xe(An.matches,"responsive")},(0,te.useEffect)(()=>{function An(Ut){return tt.current(Ut)}let Jt;if(typeof window!="undefined"){const{matchMedia:Ut}=window;if(Ut&&Qe&&Qe in x){Jt=Ut(`screen and (max-width: ${x[Qe]})`);try{Jt.addEventListener("change",An)}catch(rn){Jt.addListener(An)}An(Jt)}}return()=>{try{Jt==null||Jt.removeEventListener("change",An)}catch(Ut){Jt==null||Jt.removeListener(An)}}},[Qe]),(0,te.useEffect)(()=>{const An=ge("ant-sider-");return gt.addSider(An),()=>gt.removeSider(An)},[]);const at=()=>{Xe(!Ft,"clickTrigger")},ot=(0,me.Z)(At,["collapsed"]),ct=Ft?nt:$e,lt=re(ct)?`${ct}px`:String(ct),mt=parseFloat(String(nt||0))===0?te.createElement("span",{onClick:at,className:ie()(`${Ze}-zero-width-trigger`,`${Ze}-zero-width-trigger-${Re?"right":"left"}`),style:ut},we||te.createElement(fe,null)):null,Lt=Le==="rtl"==!Re,nn={expanded:Lt?te.createElement(le.Z,null):te.createElement(he.Z,null),collapsed:Lt?te.createElement(he.Z,null):te.createElement(le.Z,null)}[Ft?"collapsed":"expanded"],on=we!==null?mt||te.createElement("div",{className:`${Ze}-trigger`,onClick:at,style:{width:lt}},we||nn):null,yn=Object.assign(Object.assign({},Ke),{flex:`0 0 ${lt}`,maxWidth:lt,minWidth:lt,width:lt}),xn=ie()(Ze,`${Ze}-${ze}`,{[`${Ze}-collapsed`]:!!Ft,[`${Ze}-has-trigger`]:Ne&&we!==null&&!mt,[`${Ze}-below`]:!!Yt,[`${Ze}-zero-width`]:parseFloat(lt)===0},Ae,He,We),an=te.useMemo(()=>({siderCollapsed:Ft}),[Ft]);return et(te.createElement(ce.Provider,{value:an},te.createElement("aside",Object.assign({className:xn},ot,{style:yn,ref:Se}),te.createElement("div",{className:`${Ze}-children`},Ue),Ne||Yt&&mt?on:null)))})},6989:function(Yn,en,Ce){"use strict";Ce.d(en,{V:function(){return Ye}});var te=Ce(59301);const Ye=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Yn,en,Ce){"use strict";Ce.d(en,{eh:function(){return pe},jn:function(){return Oe}});var te=Ce(36237),Ye=Ce(16931);const Me=ve=>{const{antCls:ue,componentCls:fe,colorText:he,footerBg:le,headerHeight:ae,headerPadding:ie,headerColor:me,footerPadding:E,fontSize:b,bodyBg:z,headerBg:ne}=ve;return{[fe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:z,"&, *":{boxSizing:"border-box"},[`&${fe}-has-sider`]:{flexDirection:"row",[`> ${fe}, > ${fe}-content`]:{width:0}},[`${fe}-header, &${fe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${fe}-header`]:{height:ae,padding:ie,color:me,lineHeight:(0,te.unit)(ae),background:ne,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${fe}-footer`]:{padding:E,color:he,fontSize:b,background:le},[`${fe}-content`]:{flex:"auto",color:he,minHeight:0}}},pe=ve=>{const{colorBgLayout:ue,controlHeight:fe,controlHeightLG:he,colorText:le,controlHeightSM:ae,marginXXS:ie,colorTextLightSolid:me,colorBgContainer:E}=ve,b=he*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:fe*2,headerPadding:`0 ${b}px`,headerColor:le,footerPadding:`${ae}px ${b}px`,footerBg:ue,siderBg:"#001529",triggerHeight:he+ie*2,triggerBg:"#002140",triggerColor:me,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:E,lightTriggerBg:E,lightTriggerColor:le}},Oe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];en.ZP=(0,Ye.I$)("Layout",ve=>[Me(ve)],pe,{deprecatedTokens:Oe})},78857:function(Yn,en,Ce){"use strict";Ce.d(en,{J:function(){return ve}});var te=Ce(59301),Ye=Ce(8654),Me=Ce(62487),pe=function(ue,fe){var he={};for(var le in ue)Object.prototype.hasOwnProperty.call(ue,le)&&fe.indexOf(le)<0&&(he[le]=ue[le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,le=Object.getOwnPropertySymbols(ue);ae{const{children:he}=ue,le=pe(ue,["children"]),ae=te.useContext(Oe),ie=te.useMemo(()=>Object.assign(Object.assign({},ae),le),[ae,le.prefixCls,le.mode,le.selectable,le.rootClassName]),me=(0,Ye.t4)(he),E=(0,Ye.x1)(fe,me?(0,Ye.C4)(he):null);return te.createElement(Oe.Provider,{value:ie},te.createElement(Me.Z,{space:!0},me?te.cloneElement(he,{ref:E}):he))});en.Z=Oe},93041:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return et}});var te=Ce(59301),Ye=Ce(28321),Me=Ce(24303),pe=Ce(18785),Oe=Ce(92310),ve=Ce.n(Oe),ue=Ce(6089),fe=Ce(2738),he=Ce(86641),le=Ce(22703),ae=Ce(48755),ie=Ce(83397),E=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),b=function(He,We){var tt={};for(var at in He)Object.prototype.hasOwnProperty.call(He,at)&&We.indexOf(at)<0&&(tt[at]=He[at]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(He);ot{const{prefixCls:We,className:tt,dashed:at}=He,ot=b(He,["prefixCls","className","dashed"]),{getPrefixCls:ct}=te.useContext(ae.E_),lt=ct("menu",We),mt=ve()({[`${lt}-item-divider-dashed`]:!!at},tt);return te.createElement(Ye.iz,Object.assign({className:mt},ot))},oe=Ce(11592),se=Ce(25399),a=He=>{var We;const{className:tt,children:at,icon:ot,title:ct,danger:lt,extra:mt}=He,{prefixCls:Lt,firstLevel:ft,direction:St,disableMenuItemTitleTooltip:nn,inlineCollapsed:on}=te.useContext(E),yn=rn=>{const _n=at==null?void 0:at[0],Bn=te.createElement("span",{className:ve()(`${Lt}-title-content`,{[`${Lt}-title-content-with-extra`]:!!mt||mt===0})},at);return(!ot||te.isValidElement(at)&&at.type==="span")&&at&&rn&&ft&&typeof _n=="string"?te.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},_n.charAt(0)):Bn},{siderCollapsed:xn}=te.useContext(Me.D);let an=ct;typeof ct=="undefined"?an=ft?at:"":ct===!1&&(an="");const An={title:an};!xn&&!on&&(An.title=null,An.open=!1);const Jt=(0,oe.Z)(at).length;let Ut=te.createElement(Ye.ck,Object.assign({},(0,fe.Z)(He,["title","icon","danger"]),{className:ve()({[`${Lt}-item-danger`]:lt,[`${Lt}-item-only-child`]:(ot?Jt+1:Jt)===1},tt),title:typeof ct=="string"?ct:void 0}),(0,le.Tm)(ot,{className:ve()(te.isValidElement(ot)?(We=ot.props)===null||We===void 0?void 0:We.className:"",`${Lt}-item-icon`)}),yn(on));return nn||(Ut=te.createElement(se.Z,Object.assign({},An,{placement:St==="rtl"?"left":"right",classNames:{root:`${Lt}-inline-collapsed-tooltip`}}),Ut)),Ut},x=Ce(78857),re=Ce(36237),ce=Ce(17835),ge=Ce(63356),_e=Ce(34961),ye=Ce(46e3),be=Ce(34925),Se=Ce(16931),Be=Ce(51636),we=He=>{const{componentCls:We,motionDurationSlow:tt,horizontalLineHeight:at,colorSplit:ot,lineWidth:ct,lineType:lt,itemPaddingInline:mt}=He;return{[`${We}-horizontal`]:{lineHeight:at,border:0,borderBottom:`${(0,re.unit)(ct)} ${lt} ${ot}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${We}-item, ${We}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:mt},[`> ${We}-item:hover, > ${We}-item-active, > ${We}-submenu ${We}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${We}-item, ${We}-submenu-title`]:{transition:[`border-color ${tt}`,`background ${tt}`].join(",")},[`${We}-submenu-arrow`]:{display:"none"}}}},Pe=He=>{let{componentCls:We,menuArrowOffset:tt,calc:at}=He;return{[`${We}-rtl`]:{direction:"rtl"},[`${We}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${We}-rtl${We}-vertical, ${We}-submenu-rtl ${We}-vertical`]:{[`${We}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,re.unit)(at(tt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,re.unit)(tt)})`}}}}};const ze=He=>Object.assign({},(0,ge.oN)(He));var Ne=(He,We)=>{const{componentCls:tt,itemColor:at,itemSelectedColor:ot,subMenuItemSelectedColor:ct,groupTitleColor:lt,itemBg:mt,subMenuItemBg:Lt,itemSelectedBg:ft,activeBarHeight:St,activeBarWidth:nn,activeBarBorderWidth:on,motionDurationSlow:yn,motionEaseInOut:xn,motionEaseOut:an,itemPaddingInline:An,motionDurationMid:Jt,itemHoverColor:Ut,lineType:rn,colorSplit:_n,itemDisabledColor:Bn,dangerItemColor:kt,dangerItemHoverColor:ln,dangerItemSelectedColor:Cn,dangerItemActiveBg:Mn,dangerItemSelectedBg:Qn,popupBg:mr,itemHoverBg:lr,itemActiveBg:Cr,menuSubMenuBg:nr,horizontalItemSelectedColor:ur,horizontalItemSelectedBg:Nn,horizontalItemBorderRadius:In,horizontalItemHoverBg:Wn}=He;return{[`${tt}-${We}, ${tt}-${We} > ${tt}`]:{color:at,background:mt,[`&${tt}-root:focus-visible`]:Object.assign({},ze(He)),[`${tt}-item`]:{"&-group-title, &-extra":{color:lt}},[`${tt}-submenu-selected > ${tt}-submenu-title`]:{color:ct},[`${tt}-item, ${tt}-submenu-title`]:{color:at,[`&:not(${tt}-item-disabled):focus-visible`]:Object.assign({},ze(He))},[`${tt}-item-disabled, ${tt}-submenu-disabled`]:{color:`${Bn} !important`},[`${tt}-item:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{[`&:hover, > ${tt}-submenu-title:hover`]:{color:Ut}},[`&:not(${tt}-horizontal)`]:{[`${tt}-item:not(${tt}-item-selected)`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:Cr}},[`${tt}-submenu-title`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:Cr}}},[`${tt}-item-danger`]:{color:kt,[`&${tt}-item:hover`]:{[`&:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{color:ln}},[`&${tt}-item:active`]:{background:Mn}},[`${tt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${tt}-item-selected`]:{color:ot,[`&${tt}-item-danger`]:{color:Cn},"a, a:hover":{color:"inherit"}},[`& ${tt}-item-selected`]:{backgroundColor:ft,[`&${tt}-item-danger`]:{backgroundColor:Qn}},[`&${tt}-submenu > ${tt}`]:{backgroundColor:nr},[`&${tt}-popup > ${tt}`]:{backgroundColor:mr},[`&${tt}-submenu-popup > ${tt}`]:{backgroundColor:mr},[`&${tt}-horizontal`]:Object.assign(Object.assign({},We==="dark"?{borderBottom:0}:{}),{[`> ${tt}-item, > ${tt}-submenu`]:{top:on,marginTop:He.calc(on).mul(-1).equal(),marginBottom:0,borderRadius:In,"&::after":{position:"absolute",insetInline:An,bottom:0,borderBottom:`${(0,re.unit)(St)} solid transparent`,transition:`border-color ${yn} ${xn}`,content:'""'},"&:hover, &-active, &-open":{background:Wn,"&::after":{borderBottomWidth:St,borderBottomColor:ur}},"&-selected":{color:ur,backgroundColor:Nn,"&:hover":{backgroundColor:Nn},"&::after":{borderBottomWidth:St,borderBottomColor:ur}}}}),[`&${tt}-root`]:{[`&${tt}-inline, &${tt}-vertical`]:{borderInlineEnd:`${(0,re.unit)(on)} ${rn} ${_n}`}},[`&${tt}-inline`]:{[`${tt}-sub${tt}-inline`]:{background:Lt},[`${tt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,re.unit)(nn)} solid ${ot}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Jt} ${an}`,`opacity ${Jt} ${an}`].join(","),content:'""'},[`&${tt}-item-danger`]:{"&::after":{borderInlineEndColor:Cn}}},[`${tt}-selected, ${tt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Jt} ${xn}`,`opacity ${Jt} ${xn}`].join(",")}}}}}};const Re=He=>{const{componentCls:We,itemHeight:tt,itemMarginInline:at,padding:ot,menuArrowSize:ct,marginXS:lt,itemMarginBlock:mt,itemWidth:Lt,itemPaddingInline:ft}=He,St=He.calc(ct).add(ot).add(lt).equal();return{[`${We}-item`]:{position:"relative",overflow:"hidden"},[`${We}-item, ${We}-submenu-title`]:{height:tt,lineHeight:(0,re.unit)(tt),paddingInline:ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:at,marginBlock:mt,width:Lt},[`> ${We}-item, > ${We}-submenu > ${We}-submenu-title`]:{height:tt,lineHeight:(0,re.unit)(tt)},[`${We}-item-group-list ${We}-submenu-title, ${We}-submenu-title`]:{paddingInlineEnd:St}}};var nt=He=>{const{componentCls:We,iconCls:tt,itemHeight:at,colorTextLightSolid:ot,dropdownWidth:ct,controlHeightLG:lt,motionEaseOut:mt,paddingXL:Lt,itemMarginInline:ft,fontSizeLG:St,motionDurationFast:nn,motionDurationSlow:on,paddingXS:yn,boxShadowSecondary:xn,collapsedWidth:an,collapsedIconSize:An}=He,Jt={height:at,lineHeight:(0,re.unit)(at),listStylePosition:"inside",listStyleType:"disc"};return[{[We]:{"&-inline, &-vertical":Object.assign({[`&${We}-root`]:{boxShadow:"none"}},Re(He))},[`${We}-submenu-popup`]:{[`${We}-vertical`]:Object.assign(Object.assign({},Re(He)),{boxShadow:xn})}},{[`${We}-submenu-popup ${We}-vertical${We}-sub`]:{minWidth:ct,maxHeight:`calc(100vh - ${(0,re.unit)(He.calc(lt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${We}-inline`]:{width:"100%",[`&${We}-root`]:{[`${We}-item, ${We}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${nn} ${mt}`].join(","),[`> ${We}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${We}-sub${We}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${We}-submenu > ${We}-submenu-title`]:Jt,[`& ${We}-item-group-title`]:{paddingInlineStart:Lt}},[`${We}-item`]:Jt}},{[`${We}-inline-collapsed`]:{width:an,[`&${We}-root`]:{[`${We}-item, ${We}-submenu ${We}-submenu-title`]:{[`> ${We}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${We}-item, > ${We}-item-group > ${We}-item-group-list > ${We}-item, > ${We}-item-group > ${We}-item-group-list > ${We}-submenu > ${We}-submenu-title, > ${We}-submenu > ${We}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,re.unit)(He.calc(An).div(2).equal())} - ${(0,re.unit)(ft)})`,textOverflow:"clip",[` ${We}-submenu-arrow, ${We}-submenu-expand-icon `]:{opacity:0},[`${We}-item-icon, ${tt}`]:{margin:0,fontSize:An,lineHeight:(0,re.unit)(at),"+ span":{display:"inline-block",opacity:0}}},[`${We}-item-icon, ${tt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${We}-item-icon, ${tt}`]:{display:"none"},"a, a:hover":{color:ot}},[`${We}-item-group-title`]:Object.assign(Object.assign({},ge.vS),{paddingInline:yn})}}]};const ut=He=>{const{componentCls:We,motionDurationSlow:tt,motionDurationMid:at,motionEaseInOut:ot,motionEaseOut:ct,iconCls:lt,iconSize:mt,iconMarginInlineEnd:Lt}=He;return{[`${We}-item, ${We}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${tt}`,`background ${tt}`,`padding calc(${tt} + 0.1s) ${ot}`].join(","),[`${We}-item-icon, ${lt}`]:{minWidth:mt,fontSize:mt,transition:[`font-size ${at} ${ct}`,`margin ${tt} ${ot}`,`color ${tt}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${tt} ${ot}`,`margin ${tt}`,`color ${tt}`].join(",")}},[`${We}-item-icon`]:Object.assign({},(0,ge.Ro)()),[`&${We}-item-only-child`]:{[`> ${lt}, > ${We}-item-icon`]:{marginInlineEnd:0}}},[`${We}-item-disabled, ${We}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${We}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Qe=He=>{const{componentCls:We,motionDurationSlow:tt,motionEaseInOut:at,borderRadius:ot,menuArrowSize:ct,menuArrowOffset:lt}=He;return{[`${We}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:He.margin,width:ct,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${tt} ${at}, opacity ${tt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He.calc(ct).mul(.6).equal(),height:He.calc(ct).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ot,transition:[`background ${tt} ${at}`,`transform ${tt} ${at}`,`top ${tt} ${at}`,`color ${tt} ${at}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,re.unit)(He.calc(lt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,re.unit)(lt)})`}}}}},rt=He=>{const{antCls:We,componentCls:tt,fontSize:at,motionDurationSlow:ot,motionDurationMid:ct,motionEaseInOut:lt,paddingXS:mt,padding:Lt,colorSplit:ft,lineWidth:St,zIndexPopup:nn,borderRadiusLG:on,subMenuItemBorderRadius:yn,menuArrowSize:xn,menuArrowOffset:an,lineType:An,groupTitleLineHeight:Jt,groupTitleFontSize:Ut}=He;return[{"":{[tt]:Object.assign(Object.assign({},(0,ge.dF)()),{"&-hidden":{display:"none"}})},[`${tt}-submenu-hidden`]:{display:"none"}},{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(He)),(0,ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:at,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ot} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${tt}-item`]:{flex:"none"}},[`${tt}-item, ${tt}-submenu, ${tt}-submenu-title`]:{borderRadius:He.itemBorderRadius},[`${tt}-item-group-title`]:{padding:`${(0,re.unit)(mt)} ${(0,re.unit)(Lt)}`,fontSize:Ut,lineHeight:Jt,transition:`all ${ot}`},[`&-horizontal ${tt}-submenu`]:{transition:[`border-color ${ot} ${lt}`,`background ${ot} ${lt}`].join(",")},[`${tt}-submenu, ${tt}-submenu-inline`]:{transition:[`border-color ${ot} ${lt}`,`background ${ot} ${lt}`,`padding ${ct} ${lt}`].join(",")},[`${tt}-submenu ${tt}-sub`]:{cursor:"initial",transition:[`background ${ot} ${lt}`,`padding ${ot} ${lt}`].join(",")},[`${tt}-title-content`]:{transition:`color ${ot}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${We}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${tt}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:He.padding}},[`${tt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${tt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ft,borderStyle:An,borderWidth:0,borderTopWidth:St,marginBlock:St,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ut(He)),{[`${tt}-item-group`]:{[`${tt}-item-group-list`]:{margin:0,padding:0,[`${tt}-item, ${tt}-submenu-title`]:{paddingInline:`${(0,re.unit)(He.calc(at).mul(2).equal())} ${(0,re.unit)(Lt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:nn,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${tt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${tt}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},ut(He)),Qe(He)),{[`${tt}-item, ${tt}-submenu > ${tt}-submenu-title`]:{borderRadius:yn},[`${tt}-submenu-title::after`]:{transition:`transform ${ot} ${lt}`}})},"\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:He.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:He.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:He.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:He.paddingXS}}}),Qe(He)),{[`&-inline-collapsed ${tt}-submenu-arrow, &-inline ${tt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,re.unit)(an)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,re.unit)(He.calc(an).mul(-1).equal())})`}},[`${tt}-submenu-open${tt}-submenu-inline > ${tt}-submenu-title > ${tt}-submenu-arrow`]:{transform:`translateY(${(0,re.unit)(He.calc(xn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,re.unit)(He.calc(an).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,re.unit)(an)})`}}})},{[`${We}-layout-header`]:{[tt]:{lineHeight:"inherit"}}}]},pt=He=>{var We,tt,at;const{colorPrimary:ot,colorError:ct,colorTextDisabled:lt,colorErrorBg:mt,colorText:Lt,colorTextDescription:ft,colorBgContainer:St,colorFillAlter:nn,colorFillContent:on,lineWidth:yn,lineWidthBold:xn,controlItemBgActive:an,colorBgTextHover:An,controlHeightLG:Jt,lineHeight:Ut,colorBgElevated:rn,marginXXS:_n,padding:Bn,fontSize:kt,controlHeightSM:ln,fontSizeLG:Cn,colorTextLightSolid:Mn,colorErrorHover:Qn}=He,mr=(We=He.activeBarWidth)!==null&&We!==void 0?We:0,lr=(tt=He.activeBarBorderWidth)!==null&&tt!==void 0?tt:yn,Cr=(at=He.itemMarginInline)!==null&&at!==void 0?at:He.marginXXS,nr=new ce.FastColor(Mn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:He.zIndexPopupBase+50,radiusItem:He.borderRadiusLG,itemBorderRadius:He.borderRadiusLG,radiusSubMenuItem:He.borderRadiusSM,subMenuItemBorderRadius:He.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:ot,horizontalItemHoverColor:ot,colorGroupTitle:ft,groupTitleColor:ft,colorItemTextSelected:ot,itemSelectedColor:ot,subMenuItemSelectedColor:ot,colorItemTextSelectedHorizontal:ot,horizontalItemSelectedColor:ot,colorItemBg:St,itemBg:St,colorItemBgHover:An,itemHoverBg:An,colorItemBgActive:on,itemActiveBg:an,colorSubItemBg:nn,subMenuItemBg:nn,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:mr,colorActiveBarHeight:xn,activeBarHeight:xn,colorActiveBarBorderSize:yn,activeBarBorderWidth:lr,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:ct,dangerItemColor:ct,colorDangerItemTextHover:ct,dangerItemHoverColor:ct,colorDangerItemTextSelected:ct,dangerItemSelectedColor:ct,colorDangerItemBgActive:mt,dangerItemActiveBg:mt,colorDangerItemBgSelected:mt,dangerItemSelectedBg:mt,itemMarginInline:Cr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Jt,groupTitleLineHeight:Ut,collapsedWidth:Jt*2,popupBg:rn,itemMarginBlock:_n,itemPaddingInline:Bn,horizontalLineHeight:`${Jt*1.15}px`,iconSize:kt,iconMarginInlineEnd:ln-kt,collapsedIconSize:Cn,groupTitleFontSize:kt,darkItemDisabledColor:new ce.FastColor(Mn).setA(.25).toRgbString(),darkItemColor:nr,darkDangerItemColor:ct,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mn,darkItemSelectedBg:ot,darkDangerItemSelectedBg:ct,darkItemHoverBg:"transparent",darkGroupTitleColor:nr,darkItemHoverColor:Mn,darkDangerItemHoverColor:Qn,darkDangerItemSelectedColor:Mn,darkDangerItemActiveBg:ct,itemWidth:mr?`calc(100% + ${lr}px)`:`calc(100% - ${Cr*2}px)`}};var At=function(He){let We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Se.I$)("Menu",ot=>{const{colorBgElevated:ct,controlHeightLG:lt,fontSize:mt,darkItemColor:Lt,darkDangerItemColor:ft,darkItemBg:St,darkSubMenuItemBg:nn,darkItemSelectedColor:on,darkItemSelectedBg:yn,darkDangerItemSelectedBg:xn,darkItemHoverBg:an,darkGroupTitleColor:An,darkItemHoverColor:Jt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:rn,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:Bn,popupBg:kt,darkPopupBg:ln}=ot,Cn=ot.calc(mt).div(7).mul(5).equal(),Mn=(0,Be.mergeToken)(ot,{menuArrowSize:Cn,menuHorizontalHeight:ot.calc(lt).mul(1.15).equal(),menuArrowOffset:ot.calc(Cn).mul(.25).equal(),menuSubMenuBg:ct,calc:ot.calc,popupBg:kt}),Qn=(0,Be.mergeToken)(Mn,{itemColor:Lt,itemHoverColor:Jt,groupTitleColor:An,itemSelectedColor:on,subMenuItemSelectedColor:on,itemBg:St,popupBg:ln,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:an,itemDisabledColor:Ut,dangerItemColor:ft,dangerItemHoverColor:rn,dangerItemSelectedColor:_n,dangerItemActiveBg:Bn,dangerItemSelectedBg:xn,menuSubMenuBg:nn,horizontalItemSelectedColor:on,horizontalItemSelectedBg:yn});return[rt(Mn),we(Mn),nt(Mn),Ne(Mn,"light"),Ne(Qn,"dark"),Pe(Mn),(0,_e.Z)(Mn),(0,ye.oN)(Mn,"slide-up"),(0,ye.oN)(Mn,"slide-down"),(0,be._y)(Mn,"zoom-big")]},pt,{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:tt,unitless:{groupTitleLineHeight:!0}})(He,We)},gt=Ce(75030),Ct=He=>{var We;const{popupClassName:tt,icon:at,title:ot,theme:ct}=He,lt=te.useContext(E),{prefixCls:mt,inlineCollapsed:Lt,theme:ft}=lt,St=(0,Ye.Xl)();let nn;if(!at)nn=Lt&&!St.length&&ot&&typeof ot=="string"?te.createElement("div",{className:`${mt}-inline-collapsed-noicon`},ot.charAt(0)):te.createElement("span",{className:`${mt}-title-content`},ot);else{const xn=te.isValidElement(ot)&&ot.type==="span";nn=te.createElement(te.Fragment,null,(0,le.Tm)(at,{className:ve()(te.isValidElement(at)?(We=at.props)===null||We===void 0?void 0:We.className:"",`${mt}-item-icon`)}),xn?ot:te.createElement("span",{className:`${mt}-title-content`},ot))}const on=te.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]),[yn]=(0,gt.Cn)("Menu");return te.createElement(E.Provider,{value:on},te.createElement(Ye.Wd,Object.assign({},(0,fe.Z)(He,["icon"]),{title:nn,popupClassName:ve()(mt,tt,`${mt}-${ct||ft}`),popupStyle:Object.assign({zIndex:yn},He.popupStyle)})))},Yt=function(He,We){var tt={};for(var at in He)Object.prototype.hasOwnProperty.call(He,at)&&We.indexOf(at)<0&&(tt[at]=He[at]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(He);ot{var tt;const at=te.useContext(x.Z),ot=at||{},{getPrefixCls:ct,getPopupContainer:lt,direction:mt,menu:Lt}=te.useContext(ae.E_),ft=ct(),{prefixCls:St,className:nn,style:on,theme:yn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:an,inlineCollapsed:An,siderCollapsed:Jt,rootClassName:Ut,mode:rn,selectable:_n,onClick:Bn,overflowedIndicatorPopupClassName:kt}=He,ln=Yt(He,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Cn=(0,fe.Z)(ln,["collapsedWidth"]);(tt=ot.validator)===null||tt===void 0||tt.call(ot,{mode:rn});const Mn=(0,ue.Z)(function(){var ar;Bn==null||Bn.apply(void 0,arguments),(ar=ot.onClick)===null||ar===void 0||ar.call(ot)}),Qn=ot.mode||rn,mr=_n!=null?_n:ot.selectable,lr=An!=null?An:Jt,Cr={horizontal:{motionName:`${ft}-slide-up`},inline:(0,he.Z)(ft),other:{motionName:`${ft}-zoom-big`}},nr=ct("menu",St||ot.prefixCls),ur=(0,ie.Z)(nr),[Nn,In,Wn]=At(nr,ur,!at),Kn=ve()(`${nr}-${yn}`,Lt==null?void 0:Lt.className,nn),Ln=te.useMemo(()=>{var ar,dn;if(typeof xn=="function"||zt(xn))return xn||null;if(typeof ot.expandIcon=="function"||zt(ot.expandIcon))return ot.expandIcon||null;if(typeof(Lt==null?void 0:Lt.expandIcon)=="function"||zt(Lt==null?void 0:Lt.expandIcon))return(Lt==null?void 0:Lt.expandIcon)||null;const Ie=(ar=xn!=null?xn:ot==null?void 0:ot.expandIcon)!==null&&ar!==void 0?ar:Lt==null?void 0:Lt.expandIcon;return(0,le.Tm)(Ie,{className:ve()(`${nr}-submenu-expand-icon`,te.isValidElement(Ie)?(dn=Ie.props)===null||dn===void 0?void 0:dn.className:void 0)})},[xn,ot==null?void 0:ot.expandIcon,Lt==null?void 0:Lt.expandIcon,nr]),$n=te.useMemo(()=>({prefixCls:nr,inlineCollapsed:lr||!1,direction:mt,firstLevel:!0,theme:yn,mode:Qn,disableMenuItemTitleTooltip:an}),[nr,lr,mt,an,yn]);return Nn(te.createElement(x.Z.Provider,{value:null},te.createElement(E.Provider,{value:$n},te.createElement(Ye.ZP,Object.assign({getPopupContainer:lt,overflowedIndicator:te.createElement(pe.Z,null),overflowedIndicatorPopupClassName:ve()(nr,`${nr}-${yn}`,kt),mode:Qn,selectable:mr,onClick:Mn},Cn,{inlineCollapsed:lr,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),on),className:Kn,prefixCls:nr,direction:mt,defaultMotions:Cr,expandIcon:Ln,ref:We,rootClassName:ve()(Ut,In,ot.rootClassName,Wn,ur),_internalComponents:Xe})))))});const Ze=(0,te.forwardRef)((He,We)=>{const tt=(0,te.useRef)(null),at=te.useContext(Me.D);return(0,te.useImperativeHandle)(We,()=>({menu:tt.current,focus:ot=>{var ct;(ct=tt.current)===null||ct===void 0||ct.focus(ot)}})),te.createElement(Le,Object.assign({ref:tt},He,at))});Ze.Item=a,Ze.SubMenu=Ct,Ze.Divider=ne,Ze.ItemGroup=Ye.BW;var et=Ze},31709:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Lt}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(St,nn){return te.createElement(Oe.Z,(0,Ye.Z)({},St,{ref:nn,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(49198),le=Ce(33853),ae=Ce(38819),ie=Ce(92310),me=Ce.n(ie),E=Ce(18642),b=Ce(43749),z=Ce(85899),ne=Ce(72190),oe=Ce(18929),se=Ce(10228),de=Ce(26112),a=Ce(48736),x=Ce(17119),re=[10,20,50,100],ce=function(St){var nn=St.pageSizeOptions,on=nn===void 0?re:nn,yn=St.locale,xn=St.changeSize,an=St.pageSize,An=St.goButton,Jt=St.quickGo,Ut=St.rootPrefixCls,rn=St.disabled,_n=St.buildOptionText,Bn=St.showSizeChanger,kt=St.sizeChangerRender,ln=te.useState(""),Cn=(0,ne.Z)(ln,2),Mn=Cn[0],Qn=Cn[1],mr=function(){return!Mn||Number.isNaN(Mn)?void 0:Number(Mn)},lr=typeof _n=="function"?_n:function($n){return"".concat($n," ").concat(yn.items_per_page)},Cr=function(ar){Qn(ar.target.value)},nr=function(ar){An||Mn===""||(Qn(""),!(ar.relatedTarget&&(ar.relatedTarget.className.indexOf("".concat(Ut,"-item-link"))>=0||ar.relatedTarget.className.indexOf("".concat(Ut,"-item"))>=0))&&(Jt==null||Jt(mr())))},ur=function(ar){Mn!==""&&(ar.keyCode===se.Z.ENTER||ar.type==="click")&&(Qn(""),Jt==null||Jt(mr()))},Nn=function(){return on.some(function(ar){return ar.toString()===an.toString()})?on:on.concat([an]).sort(function(ar,dn){var Ie=Number.isNaN(Number(ar))?0:Number(ar),je=Number.isNaN(Number(dn))?0:Number(dn);return Ie-je})},In="".concat(Ut,"-options");if(!Bn&&!Jt)return null;var Wn=null,Kn=null,Ln=null;return Bn&&kt&&(Wn=kt({disabled:rn,size:an,onSizeChange:function(ar){xn==null||xn(Number(ar))},"aria-label":yn.page_size,className:"".concat(In,"-size-changer"),options:Nn().map(function($n){return{label:lr($n),value:$n}})})),Jt&&(An&&(Ln=typeof An=="boolean"?te.createElement("button",{type:"button",onClick:ur,onKeyUp:ur,disabled:rn,className:"".concat(In,"-quick-jumper-button")},yn.jump_to_confirm):te.createElement("span",{onClick:ur,onKeyUp:ur},An)),Kn=te.createElement("div",{className:"".concat(In,"-quick-jumper")},yn.jump_to,te.createElement("input",{disabled:rn,type:"text",value:Mn,onChange:Cr,onKeyUp:ur,onBlur:nr,"aria-label":yn.page}),yn.page,Ln)),te.createElement("li",{className:In},Wn,Kn)},ge=ce,_e=function(St){var nn=St.rootPrefixCls,on=St.page,yn=St.active,xn=St.className,an=St.showTitle,An=St.onClick,Jt=St.onKeyPress,Ut=St.itemRender,rn="".concat(nn,"-item"),_n=me()(rn,"".concat(rn,"-").concat(on),(0,E.Z)((0,E.Z)({},"".concat(rn,"-active"),yn),"".concat(rn,"-disabled"),!on),xn),Bn=function(){An(on)},kt=function(Mn){Jt(Mn,An,on)},ln=Ut(on,"page",te.createElement("a",{rel:"nofollow"},on));return ln?te.createElement("li",{title:an?String(on):null,className:_n,onClick:Bn,onKeyDown:kt,tabIndex:0},ln):null},ye=_e,be=function(St,nn,on){return on};function Se(){}function Be(ft){var St=Number(ft);return typeof St=="number"&&!Number.isNaN(St)&&isFinite(St)&&Math.floor(St)===St}function Ae(ft,St,nn){var on=typeof ft=="undefined"?St:ft;return Math.floor((nn-1)/on)+1}var we=function(St){var nn=St.prefixCls,on=nn===void 0?"rc-pagination":nn,yn=St.selectPrefixCls,xn=yn===void 0?"rc-select":yn,an=St.className,An=St.current,Jt=St.defaultCurrent,Ut=Jt===void 0?1:Jt,rn=St.total,_n=rn===void 0?0:rn,Bn=St.pageSize,kt=St.defaultPageSize,ln=kt===void 0?10:kt,Cn=St.onChange,Mn=Cn===void 0?Se:Cn,Qn=St.hideOnSinglePage,mr=St.align,lr=St.showPrevNextJumpers,Cr=lr===void 0?!0:lr,nr=St.showQuickJumper,ur=St.showLessItems,Nn=St.showTitle,In=Nn===void 0?!0:Nn,Wn=St.onShowSizeChange,Kn=Wn===void 0?Se:Wn,Ln=St.locale,$n=Ln===void 0?x.Z:Ln,ar=St.style,dn=St.totalBoundaryShowSizeChanger,Ie=dn===void 0?50:dn,je=St.disabled,Je=St.simple,ht=St.showTotal,Et=St.showSizeChanger,Qt=Et===void 0?_n>Ie:Et,fn=St.sizeChangerRender,sn=St.pageSizeOptions,mn=St.itemRender,Zn=mn===void 0?be:mn,tr=St.jumpPrevIcon,Vt=St.jumpNextIcon,Gt=St.prevIcon,Rt=St.nextIcon,jt=te.useRef(null),Mt=(0,oe.Z)(10,{value:Bn,defaultValue:ln}),Kt=(0,ne.Z)(Mt,2),yt=Kt[0],qt=Kt[1],vn=(0,oe.Z)(1,{value:An,defaultValue:Ut,postState:function(Zr){return Math.max(1,Math.min(Zr,Ae(void 0,yt,_n)))}}),Tt=(0,ne.Z)(vn,2),It=Tt[0],Dt=Tt[1],Bt=te.useState(It),Zt=(0,ne.Z)(Bt,2),tn=Zt[0],Tn=Zt[1];(0,te.useEffect)(function(){Tn(It)},[It]);var Fn=Mn!==Se,dr="current"in St,_r=Math.max(1,It-(ur?3:5)),Kr=Math.min(Ae(void 0,yt,_n),It+(ur?3:5));function Sr(li,Zr){var Vi=li||te.createElement("button",{type:"button","aria-label":Zr,className:"".concat(on,"-item-link")});return typeof li=="function"&&(Vi=te.createElement(li,(0,z.Z)({},St))),Vi}function hr(li){var Zr=li.target.value,Vi=Ae(void 0,yt,_n),sa;return Zr===""?sa=Zr:Number.isNaN(Number(Zr))?sa=tn:Zr>=Vi?sa=Vi:sa=Number(Zr),sa}function Mr(li){return Be(li)&&li!==It&&Be(_n)&&_n>0}var Br=_n>yt?nr:!1;function Wr(li){(li.keyCode===se.Z.UP||li.keyCode===se.Z.DOWN)&&li.preventDefault()}function Jn(li){var Zr=hr(li);switch(Zr!==tn&&Tn(Zr),li.keyCode){case se.Z.ENTER:Gr(Zr);break;case se.Z.UP:Gr(Zr-1);break;case se.Z.DOWN:Gr(Zr+1);break;default:break}}function ii(li){Gr(hr(li))}function Ur(li){var Zr=Ae(li,yt,_n),Vi=It>Zr&&Zr!==0?Zr:It;qt(li),Tn(Vi),Kn==null||Kn(It,li),Dt(Vi),Mn==null||Mn(Vi,li)}function Gr(li){if(Mr(li)&&!je){var Zr=Ae(void 0,yt,_n),Vi=li;return li>Zr?Vi=Zr:li<1&&(Vi=1),Vi!==tn&&Tn(Vi),Dt(Vi),Mn==null||Mn(Vi,yt),Vi}return It}var qr=It>1,Li=It2?Vi-2:0),vi=2;vi_n?_n:It*yt])),Ti=null,Xr=Ae(void 0,yt,_n);if(Qn&&_n<=yt)return null;var rr=[],Dr={rootPrefixCls:on,onClick:Gr,onKeyPress:oi,showTitle:In,itemRender:Zn,page:-1},Fr=It-1>0?It-1:0,or=It+1=Hr*2&&It!==3&&(rr[0]=te.cloneElement(rr[0],{className:me()("".concat(on,"-item-after-jump-prev"),rr[0].props.className)}),rr.unshift(Qi)),Xr-It>=Hr*2&&It!==Xr-2){var Nr=rr[rr.length-1];rr[rr.length-1]=te.cloneElement(Nr,{className:me()("".concat(on,"-item-before-jump-next"),Nr.props.className)}),rr.push(Ti)}ti!==1&&rr.unshift(te.createElement(ye,(0,Ye.Z)({},Dr,{key:1,page:1}))),gn!==Xr&&rr.push(te.createElement(ye,(0,Ye.Z)({},Dr,{key:Xr,page:Xr})))}var Ar=ua(Fr);if(Ar){var pi=!qr||!Xr;Ar=te.createElement("li",{title:In?$n.prev_page:null,onClick:wi,tabIndex:pi?null:0,onKeyDown:di,className:me()("".concat(on,"-prev"),(0,E.Z)({},"".concat(on,"-disabled"),pi)),"aria-disabled":pi},Ar)}var Gi=kn(or);if(Gi){var gi,Wi;Je?(gi=!Li,Wi=qr?0:null):(gi=!Li||!Xr,Wi=gi?null:0),Gi=te.createElement("li",{title:In?$n.next_page:null,onClick:ui,tabIndex:Wi,onKeyDown:ci,className:me()("".concat(on,"-next"),(0,E.Z)({},"".concat(on,"-disabled"),gi)),"aria-disabled":gi},Gi)}var Jr=me()(on,an,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(on,"-start"),mr==="start"),"".concat(on,"-center"),mr==="center"),"".concat(on,"-end"),mr==="end"),"".concat(on,"-simple"),Je),"".concat(on,"-disabled"),je));return te.createElement("ul",(0,Ye.Z)({className:Jr,style:ar,ref:jt},ra),_i,Ar,Je?Ir:rr,Gi,te.createElement(ge,{locale:$n,rootPrefixCls:on,disabled:je,selectPrefixCls:xn,changeSize:Ur,pageSize:yt,pageSizeOptions:sn,quickGo:Br?Gr:null,goButton:wr,showSizeChanger:Qt,sizeChangerRender:fn}))},Ue=we,Pe=Ce(61852),ze=Ce(48755),Ke=Ce(31756),Ne=Ce(13783),Re=Ce(9017),$e=Ce(82326),nt=Ce(57700),ut=Ce(36237),Qe=Ce(53075),rt=Ce(64910),pt=Ce(39082),At=Ce(63356),gt=Ce(51636),Ft=Ce(16931);const Ct=ft=>{const{componentCls:St}=ft;return{[`${St}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}}},[`&${St}-disabled`]:{cursor:"not-allowed",[`${St}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ft.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ft.colorBorder,backgroundColor:ft.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ft.itemActiveBgDisabled},a:{color:ft.itemActiveColorDisabled}}},[`${St}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${St}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${St}-simple-pager`]:{color:ft.colorTextDisabled},[`${St}-jump-prev, ${St}-jump-next`]:{[`${St}-item-link-icon`]:{opacity:0},[`${St}-item-ellipsis`]:{opacity:1}}},[`&${St}-simple`]:{[`${St}-prev, ${St}-next`]:{[`&${St}-disabled ${St}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Yt=ft=>{const{componentCls:St}=ft;return{[`&${St}-mini ${St}-total-text, &${St}-mini ${St}-simple-pager`]:{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini ${St}-item`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:(0,ut.unit)(ft.calc(ft.itemSizeSM).sub(2).equal())},[`&${St}-mini ${St}-prev, &${St}-mini ${St}-next`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini:not(${St}-disabled)`]:{[`${St}-prev, ${St}-next`]:{[`&:hover ${St}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${St}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${St}-disabled:hover ${St}-item-link`]:{backgroundColor:"transparent"}}},[` &${St}-mini ${St}-prev ${St}-item-link, &${St}-mini ${St}-next ${St}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)}},[`&${St}-mini ${St}-jump-prev, &${St}-mini ${St}-jump-next`]:{height:ft.itemSizeSM,marginInlineEnd:0,lineHeight:(0,ut.unit)(ft.itemSizeSM)},[`&${St}-mini ${St}-options`]:{marginInlineStart:ft.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ft.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM),input:Object.assign(Object.assign({},(0,Qe.x0)(ft)),{width:ft.paginationMiniQuickJumperInputWidth,height:ft.controlHeightSM})}}}},zt=ft=>{const{componentCls:St}=ft;return{[` &${St}-simple ${St}-prev, &${St}-simple ${St}-next `]:{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM),verticalAlign:"top",[`${St}-item-link`]:{height:ft.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive},"&::after":{height:ft.itemSizeSM,lineHeight:(0,ut.unit)(ft.itemSizeSM)}}},[`&${St}-simple ${St}-simple-pager`]:{display:"inline-block",height:ft.itemSizeSM,marginInlineEnd:ft.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,ut.unit)(ft.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ft.itemInputBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} ${ft.colorBorder}`,borderRadius:ft.borderRadius,outline:"none",transition:`border-color ${ft.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ft.colorPrimary},"&:focus":{borderColor:ft.colorPrimaryHover,boxShadow:`${(0,ut.unit)(ft.inputOutlineOffset)} 0 ${(0,ut.unit)(ft.controlOutlineWidth)} ${ft.controlOutline}`},"&[disabled]":{color:ft.colorTextDisabled,backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,cursor:"not-allowed"}}}}},Xe=ft=>{const{componentCls:St}=ft;return{[`${St}-jump-prev, ${St}-jump-next`]:{outline:0,[`${St}-item-container`]:{position:"relative",[`${St}-item-link-icon`]:{color:ft.colorPrimary,fontSize:ft.fontSizeSM,opacity:0,transition:`all ${ft.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${St}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ft.colorTextDisabled,letterSpacing:ft.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ft.paginationEllipsisTextIndent,opacity:1,transition:`all ${ft.motionDurationMid}`}},"&:hover":{[`${St}-item-link-icon`]:{opacity:1},[`${St}-item-ellipsis`]:{opacity:0}}},[` ${St}-prev, ${St}-jump-prev, ${St}-jump-next `]:{marginInlineEnd:ft.marginXS},[` ${St}-prev, ${St}-next, ${St}-jump-prev, ${St}-jump-next `]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,color:ft.colorText,fontFamily:ft.fontFamily,lineHeight:(0,ut.unit)(ft.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ft.borderRadius,cursor:"pointer",transition:`all ${ft.motionDurationMid}`},[`${St}-prev, ${St}-next`]:{outline:0,button:{color:ft.colorText,cursor:"pointer",userSelect:"none"},[`${St}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ft.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:"none",transition:`all ${ft.motionDurationMid}`},[`&:hover ${St}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${St}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${St}-disabled:hover`]:{[`${St}-item-link`]:{backgroundColor:"transparent"}}},[`${St}-slash`]:{marginInlineEnd:ft.paginationSlashMarginInlineEnd,marginInlineStart:ft.paginationSlashMarginInlineStart},[`${St}-options`]:{display:"inline-block",marginInlineStart:ft.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ft.controlHeight,marginInlineStart:ft.marginXS,lineHeight:(0,ut.unit)(ft.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Qe.ik)(ft)),(0,pt.$U)(ft,{borderColor:ft.colorBorder,hoverBorderColor:ft.colorPrimaryHover,activeBorderColor:ft.colorPrimary,activeShadow:ft.activeShadow})),{"&[disabled]":Object.assign({},(0,pt.Xy)(ft)),width:ft.calc(ft.controlHeightLG).mul(1.25).equal(),height:ft.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ft.marginXS,marginInlineEnd:ft.marginXS})}}}},Fe=ft=>{const{componentCls:St}=ft;return{[`${St}-item`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,marginInlineEnd:ft.marginXS,fontFamily:ft.fontFamily,lineHeight:(0,ut.unit)(ft.calc(ft.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ft.itemBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,ut.unit)(ft.paginationItemPaddingInline)}`,color:ft.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${St}-item-active)`]:{"&:hover":{transition:`all ${ft.motionDurationMid}`,backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},"&-active":{fontWeight:ft.fontWeightStrong,backgroundColor:ft.itemActiveBg,borderColor:ft.colorPrimary,a:{color:ft.colorPrimary},"&:hover":{borderColor:ft.colorPrimaryHover},"&:hover a":{color:ft.colorPrimaryHover}}}}},Le=ft=>{const{componentCls:St}=ft;return{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(ft)),{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:'""'},[`${St}-total-text`]:{display:"inline-block",height:ft.itemSize,marginInlineEnd:ft.marginXS,lineHeight:(0,ut.unit)(ft.calc(ft.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Fe(ft)),Xe(ft)),zt(ft)),Yt(ft)),Ct(ft)),{[`@media only screen and (max-width: ${ft.screenLG}px)`]:{[`${St}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ft.screenSM}px)`]:{[`${St}-options`]:{display:"none"}}}),[`&${ft.componentCls}-rtl`]:{direction:"rtl"}}},Ze=ft=>{const{componentCls:St}=ft;return{[`${St}:not(${St}-disabled)`]:{[`${St}-item`]:Object.assign({},(0,At.Qy)(ft)),[`${St}-jump-prev, ${St}-jump-next`]:{"&:focus-visible":Object.assign({[`${St}-item-link-icon`]:{opacity:1},[`${St}-item-ellipsis`]:{opacity:0}},(0,At.oN)(ft))},[`${St}-prev, ${St}-next`]:{[`&:focus-visible ${St}-item-link`]:Object.assign({},(0,At.oN)(ft))}}}},et=ft=>Object.assign({itemBg:ft.colorBgContainer,itemSize:ft.controlHeight,itemSizeSM:ft.controlHeightSM,itemActiveBg:ft.colorBgContainer,itemLinkBg:ft.colorBgContainer,itemActiveColorDisabled:ft.colorTextDisabled,itemActiveBgDisabled:ft.controlItemBgActiveDisabled,itemInputBg:ft.colorBgContainer,miniOptionsSizeChangerTop:0},(0,rt.T)(ft)),He=ft=>(0,gt.mergeToken)(ft,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ft.calc(ft.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ft.calc(ft.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ft.calc(ft.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ft.calc(ft.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ft.marginSM,paginationSlashMarginInlineEnd:ft.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e)(ft));var We=(0,Ft.I$)("Pagination",ft=>{const St=He(ft);return[Le(St),Ze(St)]},et);const tt=ft=>{const{componentCls:St}=ft;return{[`${St}${St}-bordered${St}-disabled:not(${St}-mini)`]:{"&, &:hover":{[`${St}-item-link`]:{borderColor:ft.colorBorder}},"&:focus-visible":{[`${St}-item-link`]:{borderColor:ft.colorBorder}},[`${St}-item, ${St}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,[`&:hover:not(${St}-item-active)`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,a:{color:ft.colorTextDisabled}},[`&${St}-item-active`]:{backgroundColor:ft.itemActiveBgDisabled}},[`${St}-prev, ${St}-next`]:{"&:hover button":{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,color:ft.colorTextDisabled},[`${St}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder}}},[`${St}${St}-bordered:not(${St}-mini)`]:{[`${St}-prev, ${St}-next`]:{"&:hover button":{borderColor:ft.colorPrimaryHover,backgroundColor:ft.itemBg},[`${St}-item-link`]:{backgroundColor:ft.itemLinkBg,borderColor:ft.colorBorder},[`&:hover ${St}-item-link`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,color:ft.colorPrimary},[`&${St}-disabled`]:{[`${St}-item-link`]:{borderColor:ft.colorBorder,color:ft.colorTextDisabled}}},[`${St}-item`]:{backgroundColor:ft.itemBg,border:`${(0,ut.unit)(ft.lineWidth)} ${ft.lineType} ${ft.colorBorder}`,[`&:hover:not(${St}-item-active)`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,a:{color:ft.colorPrimary}},"&-active":{borderColor:ft.colorPrimary}}}}};var at=(0,Ft.bk)(["Pagination","bordered"],ft=>{const St=He(ft);return[tt(St)]},et);function ot(ft){return(0,te.useMemo)(()=>typeof ft=="boolean"?[ft,{}]:ft&&typeof ft=="object"?[!0,ft]:[void 0,void 0],[ft])}var ct=function(ft,St){var nn={};for(var on in ft)Object.prototype.hasOwnProperty.call(ft,on)&&St.indexOf(on)<0&&(nn[on]=ft[on]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,on=Object.getOwnPropertySymbols(ft);yn{const{align:St,prefixCls:nn,selectPrefixCls:on,className:yn,rootClassName:xn,style:an,size:An,locale:Jt,responsive:Ut,showSizeChanger:rn,selectComponentClass:_n,pageSizeOptions:Bn}=ft,kt=ct(ft,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ln}=(0,Ne.Z)(Ut),[,Cn]=(0,nt.ZP)(),{getPrefixCls:Mn,direction:Qn,showSizeChanger:mr,className:lr,style:Cr}=(0,ze.dj)("pagination"),nr=Mn("pagination",nn),[ur,Nn,In]=We(nr),Wn=(0,Ke.Z)(An),Kn=Wn==="small"||!!(ln&&!Wn&&Ut),[Ln]=(0,Re.Z)("Pagination",Pe.Z),$n=Object.assign(Object.assign({},Ln),Jt),[ar,dn]=ot(rn),[Ie,je]=ot(mr),Je=ar!=null?ar:Ie,ht=dn!=null?dn:je,Et=_n||$e.default,Qt=te.useMemo(()=>Bn?Bn.map(Vt=>Number(Vt)):void 0,[Bn]),fn=Vt=>{var Gt;const{disabled:Rt,size:jt,onSizeChange:Mt,"aria-label":Kt,className:yt,options:qt}=Vt,{className:vn,onChange:Tt}=ht||{},It=(Gt=qt.find(Dt=>String(Dt.value)===String(jt)))===null||Gt===void 0?void 0:Gt.value;return te.createElement(Et,Object.assign({disabled:Rt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Dt=>Dt.parentNode,"aria-label":Kt,options:qt},ht,{value:It,onChange:(Dt,Bt)=>{Mt==null||Mt(Dt),Tt==null||Tt(Dt,Bt)},size:Kn?"small":"middle",className:me()(yt,vn)}))},sn=te.useMemo(()=>{const Vt=te.createElement("span",{className:`${nr}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=te.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},Qn==="rtl"?te.createElement(ae.Z,null):te.createElement(le.Z,null)),Rt=te.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},Qn==="rtl"?te.createElement(le.Z,null):te.createElement(ae.Z,null)),jt=te.createElement("a",{className:`${nr}-item-link`},te.createElement("div",{className:`${nr}-item-container`},Qn==="rtl"?te.createElement(he.Z,{className:`${nr}-item-link-icon`}):te.createElement(fe,{className:`${nr}-item-link-icon`}),Vt)),Mt=te.createElement("a",{className:`${nr}-item-link`},te.createElement("div",{className:`${nr}-item-container`},Qn==="rtl"?te.createElement(fe,{className:`${nr}-item-link-icon`}):te.createElement(he.Z,{className:`${nr}-item-link-icon`}),Vt));return{prevIcon:Gt,nextIcon:Rt,jumpPrevIcon:jt,jumpNextIcon:Mt}},[Qn,nr]),mn=Mn("select",on),Zn=me()({[`${nr}-${St}`]:!!St,[`${nr}-mini`]:Kn,[`${nr}-rtl`]:Qn==="rtl",[`${nr}-bordered`]:Cn.wireframe},lr,yn,xn,Nn,In),tr=Object.assign(Object.assign({},Cr),an);return ur(te.createElement(te.Fragment,null,Cn.wireframe&&te.createElement(at,{prefixCls:nr}),te.createElement(Ue,Object.assign({},sn,kt,{style:tr,prefixCls:nr,selectPrefixCls:mn,className:Zn,locale:$n,pageSizeOptions:Qt,showSizeChanger:Je,sizeChangerRender:fn}))))},Lt=mt},69106:function(Yn,en,Ce){"use strict";Ce.d(en,{aV:function(){return he},t5:function(){return le}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(29125),Oe=Ce(54500),ve=Ce(48755),ue=Ce(85074),fe=function(ie,me){var E={};for(var b in ie)Object.prototype.hasOwnProperty.call(ie,b)&&me.indexOf(b)<0&&(E[b]=ie[b]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,b=Object.getOwnPropertySymbols(ie);z{let{title:me,content:E,prefixCls:b}=ie;return!me&&!E?null:te.createElement(te.Fragment,null,me&&te.createElement("div",{className:`${b}-title`},me),E&&te.createElement("div",{className:`${b}-inner-content`},E))},le=ie=>{const{hashId:me,prefixCls:E,className:b,style:z,placement:ne="top",title:oe,content:se,children:de}=ie,a=(0,Oe.Z)(oe),x=(0,Oe.Z)(se),re=Me()(me,E,`${E}-pure`,`${E}-placement-${ne}`,b);return te.createElement("div",{className:re,style:z},te.createElement("div",{className:`${E}-arrow`}),te.createElement(pe.G,Object.assign({},ie,{className:me,prefixCls:E}),de||te.createElement(he,{prefixCls:E,title:a,content:x})))},ae=ie=>{const{prefixCls:me,className:E}=ie,b=fe(ie,["prefixCls","className"]),{getPrefixCls:z}=te.useContext(ve.E_),ne=z("popover",me),[oe,se,de]=(0,ue.Z)(ne);return oe(te.createElement(le,Object.assign({},b,{prefixCls:ne,hashId:se,className:Me()(E,de)})))};en.ZP=ae},37639:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(18929),Oe=Ce(10228),ve=Ce(54500),ue=Ce(86641),fe=Ce(22703),he=Ce(25399),le=Ce(69106),ae=Ce(48755),ie=Ce(85074),me=function(z,ne){var oe={};for(var se in z)Object.prototype.hasOwnProperty.call(z,se)&&ne.indexOf(se)<0&&(oe[se]=z[se]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,se=Object.getOwnPropertySymbols(z);de{var oe,se;const{prefixCls:de,title:a,content:x,overlayClassName:re,placement:ce="top",trigger:ge="hover",children:_e,mouseEnterDelay:ye=.1,mouseLeaveDelay:be=.1,onOpenChange:Se,overlayStyle:Be={},styles:Ae,classNames:we}=z,Ue=me(z,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Pe,className:ze,style:Ke,classNames:Ne,styles:Re}=(0,ae.dj)("popover"),$e=Pe("popover",de),[nt,ut,Qe]=(0,ie.Z)($e),rt=Pe(),pt=Me()(re,ut,Qe,ze,Ne.root,we==null?void 0:we.root),At=Me()(Ne.body,we==null?void 0:we.body),[gt,Ft]=(0,pe.Z)(!1,{value:(oe=z.open)!==null&&oe!==void 0?oe:z.visible,defaultValue:(se=z.defaultOpen)!==null&&se!==void 0?se:z.defaultVisible}),Ct=(Le,Ze)=>{Ft(Le,!0),Se==null||Se(Le,Ze)},Yt=Le=>{Le.keyCode===Oe.Z.ESC&&Ct(!1,Le)},zt=Le=>{Ct(Le)},Xe=(0,ve.Z)(a),Fe=(0,ve.Z)(x);return nt(te.createElement(he.Z,Object.assign({placement:ce,trigger:ge,mouseEnterDelay:ye,mouseLeaveDelay:be},Ue,{prefixCls:$e,classNames:{root:pt,body:At},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Re.root),Ke),Be),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},Re.body),Ae==null?void 0:Ae.body)},ref:ne,open:gt,onOpenChange:zt,overlay:Xe||Fe?te.createElement(le.aV,{prefixCls:$e,title:Xe,content:Fe}):null,transitionName:(0,ue.m)(rt,"zoom-big",Ue.transitionName),"data-popover-inject":!0}),(0,fe.Tm)(_e,{onKeyDown:Le=>{var Ze,et;te.isValidElement(_e)&&((et=_e==null?void 0:(Ze=_e.props).onKeyDown)===null||et===void 0||et.call(Ze,Le)),Yt(Le)}})))});b._InternalPanelDoNotUseOrYouWillBeFired=le.ZP,en.Z=b},85074:function(Yn,en,Ce){"use strict";var te=Ce(63356),Ye=Ce(34925),Me=Ce(37645),pe=Ce(36305),Oe=Ce(34998),ve=Ce(16931),ue=Ce(51636);const fe=ae=>{const{componentCls:ie,popoverColor:me,titleMinWidth:E,fontWeightStrong:b,innerPadding:z,boxShadowSecondary:ne,colorTextHeading:oe,borderRadiusLG:se,zIndexPopup:de,titleMarginBottom:a,colorBgElevated:x,popoverBg:re,titleBorderBottom:ce,innerContentPadding:ge,titlePadding:_e}=ae;return[{[ie]:Object.assign(Object.assign({},(0,te.Wf)(ae)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:de,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":x,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ie}-content`]:{position:"relative"},[`${ie}-inner`]:{backgroundColor:re,backgroundClip:"padding-box",borderRadius:se,boxShadow:ne,padding:z},[`${ie}-title`]:{minWidth:E,marginBottom:a,color:oe,fontWeight:b,borderBottom:ce,padding:_e},[`${ie}-inner-content`]:{color:me,padding:ge}})},(0,Me.ZP)(ae,"var(--antd-arrow-background-color)"),{[`${ie}-pure`]:{position:"relative",maxWidth:"none",margin:ae.sizePopupArrow,display:"inline-block",[`${ie}-content`]:{display:"inline-block"}}}]},he=ae=>{const{componentCls:ie}=ae;return{[ie]:Oe.i.map(me=>{const E=ae[`${me}6`];return{[`&${ie}-${me}`]:{"--antd-arrow-background-color":E,[`${ie}-inner`]:{backgroundColor:E},[`${ie}-arrow`]:{background:"transparent"}}}})}},le=ae=>{const{lineWidth:ie,controlHeight:me,fontHeight:E,padding:b,wireframe:z,zIndexPopupBase:ne,borderRadiusLG:oe,marginXS:se,lineType:de,colorSplit:a,paddingSM:x}=ae,re=me-E,ce=re/2,ge=re/2-ie,_e=b;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ne+30},(0,pe.w)(ae)),(0,Me.wZ)({contentRadius:oe,limitVerticalRadius:!0})),{innerPadding:z?0:12,titleMarginBottom:z?0:se,titlePadding:z?`${ce}px ${_e}px ${ge}px`:0,titleBorderBottom:z?`${ie}px ${de} ${a}`:"none",innerContentPadding:z?`${x}px ${_e}px`:0})};en.Z=(0,ve.I$)("Popover",ae=>{const{colorBgElevated:ie,colorText:me}=ae,E=(0,ue.mergeToken)(ae,{popoverBg:ie,popoverColor:me});return[fe(E),he(E),(0,Ye._y)(E,"zoom-big")]},le,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Jt}});var te=Ce(59301),Ye=Ce(17835),Me=Ce(29679),pe=Ce(40001),Oe=Ce(19248),ve=Ce(99267),ue=Ce(92310),fe=Ce.n(ue),he=Ce(2738),le=Ce(48755),ae=Ce(60499),ie=Ce(85899),me=Ce(42244),E={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},b=function(){var rn=(0,te.useRef)([]),_n=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Bn=Date.now(),kt=!1;rn.current.forEach(function(ln){if(ln){kt=!0;var Cn=ln.style;Cn.transitionDuration=".3s, .3s, .3s, .06s",_n.current&&Bn-_n.current<100&&(Cn.transitionDuration="0s, 0s")}}),kt&&(_n.current=Date.now())}),rn.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(rn){var _n=(0,ie.Z)((0,ie.Z)({},E),rn),Bn=_n.className,kt=_n.percent,ln=_n.prefixCls,Cn=_n.strokeColor,Mn=_n.strokeLinecap,Qn=_n.strokeWidth,mr=_n.style,lr=_n.trailColor,Cr=_n.trailWidth,nr=_n.transition,ur=(0,me.Z)(_n,z);delete ur.gapPosition;var Nn=Array.isArray(kt)?kt:[kt],In=Array.isArray(Cn)?Cn:[Cn],Wn=b(),Kn=Qn/2,Ln=100-Qn/2,$n="M ".concat(Mn==="round"?Kn:0,",").concat(Kn,` L `).concat(Mn==="round"?Ln:100,",").concat(Kn),ar="0 0 100 ".concat(Qn),dn=0;return te.createElement("svg",(0,ae.Z)({className:fe()("".concat(ln,"-line"),Bn),viewBox:ar,preserveAspectRatio:"none",style:mr},ur),te.createElement("path",{className:"".concat(ln,"-line-trail"),d:$n,strokeLinecap:Mn,stroke:lr,strokeWidth:Cr||Qn,fillOpacity:"0"}),Nn.map(function(Ie,je){var Je=1;switch(Mn){case"round":Je=1-Qn/100;break;case"square":Je=1-Qn/2/100;break;default:Je=1;break}var ht={strokeDasharray:"".concat(Ie*Je,"px, 100px"),strokeDashoffset:"-".concat(dn,"px"),transition:nr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Et=In[je]||In[In.length-1];return dn+=Ie,te.createElement("path",{key:je,className:"".concat(ln,"-line-path"),d:$n,strokeLinecap:Mn,stroke:Et,strokeWidth:Qn,fillOpacity:"0",ref:function(fn){Wn[je]=fn},style:ht})}))},oe=ne,se=Ce(43749),de=Ce(72190),a=Ce(47273),x=0,re=(0,a.Z)();function ce(){var Ut;return re?(Ut=x,x+=1):Ut="TEST_OR_SSR",Ut}var ge=function(Ut){var rn=te.useState(),_n=(0,de.Z)(rn,2),Bn=_n[0],kt=_n[1];return te.useEffect(function(){kt("rc_progress_".concat(ce()))},[]),Ut||Bn},_e=function(rn){var _n=rn.bg,Bn=rn.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:_n}},Bn)};function ye(Ut,rn){return Object.keys(Ut).map(function(_n){var Bn=parseFloat(_n),kt="".concat(Math.floor(Bn*rn),"%");return"".concat(Ut[_n]," ").concat(kt)})}var be=te.forwardRef(function(Ut,rn){var _n=Ut.prefixCls,Bn=Ut.color,kt=Ut.gradientId,ln=Ut.radius,Cn=Ut.style,Mn=Ut.ptg,Qn=Ut.strokeLinecap,mr=Ut.strokeWidth,lr=Ut.size,Cr=Ut.gapDegree,nr=Bn&&(0,se.Z)(Bn)==="object",ur=nr?"#FFF":void 0,Nn=lr/2,In=te.createElement("circle",{className:"".concat(_n,"-circle-path"),r:ln,cx:Nn,cy:Nn,stroke:ur,strokeLinecap:Qn,strokeWidth:mr,opacity:Mn===0?0:1,style:Cn,ref:rn});if(!nr)return In;var Wn="".concat(kt,"-conic"),Kn=Cr?"".concat(180+Cr/2,"deg"):"0deg",Ln=ye(Bn,(360-Cr)/360),$n=ye(Bn,1),ar="conic-gradient(from ".concat(Kn,", ").concat(Ln.join(", "),")"),dn="linear-gradient(to ".concat(Cr?"bottom":"top",", ").concat($n.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Wn},In),te.createElement("foreignObject",{x:0,y:0,width:lr,height:lr,mask:"url(#".concat(Wn,")")},te.createElement(_e,{bg:dn},te.createElement(_e,{bg:ar}))))}),Se=be,Be=100,Ae=function(rn,_n,Bn,kt,ln,Cn,Mn,Qn,mr,lr){var Cr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,nr=Bn/100*360*((360-Cn)/360),ur=Cn===0?0:{bottom:0,top:180,left:90,right:-90}[Mn],Nn=(100-kt)/100*_n;mr==="round"&&kt!==100&&(Nn+=lr/2,Nn>=_n&&(Nn=_n-.01));var In=Be/2;return{stroke:typeof Qn=="string"?Qn:void 0,strokeDasharray:"".concat(_n,"px ").concat(rn),strokeDashoffset:Nn+Cr,transform:"rotate(".concat(ln+nr+ur,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"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}},we=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ue(Ut){var rn=Ut!=null?Ut:[];return Array.isArray(rn)?rn:[rn]}var Pe=function(rn){var _n=(0,ie.Z)((0,ie.Z)({},E),rn),Bn=_n.id,kt=_n.prefixCls,ln=_n.steps,Cn=_n.strokeWidth,Mn=_n.trailWidth,Qn=_n.gapDegree,mr=Qn===void 0?0:Qn,lr=_n.gapPosition,Cr=_n.trailColor,nr=_n.strokeLinecap,ur=_n.style,Nn=_n.className,In=_n.strokeColor,Wn=_n.percent,Kn=(0,me.Z)(_n,we),Ln=Be/2,$n=ge(Bn),ar="".concat($n,"-gradient"),dn=Ln-Cn/2,Ie=Math.PI*2*dn,je=mr>0?90+mr/2:-90,Je=Ie*((360-mr)/360),ht=(0,se.Z)(ln)==="object"?ln:{count:ln,gap:2},Et=ht.count,Qt=ht.gap,fn=Ue(Wn),sn=Ue(In),mn=sn.find(function(Mt){return Mt&&(0,se.Z)(Mt)==="object"}),Zn=mn&&(0,se.Z)(mn)==="object",tr=Zn?"butt":nr,Vt=Ae(Ie,Je,0,100,je,mr,lr,Cr,tr,Cn),Gt=b(),Rt=function(){var Kt=0;return fn.map(function(yt,qt){var vn=sn[qt]||sn[sn.length-1],Tt=Ae(Ie,Je,Kt,yt,je,mr,lr,vn,tr,Cn);return Kt+=yt,te.createElement(Se,{key:qt,color:vn,ptg:yt,radius:dn,prefixCls:kt,gradientId:ar,style:Tt,strokeLinecap:tr,strokeWidth:Cn,gapDegree:mr,ref:function(Dt){Gt[qt]=Dt},size:Be})}).reverse()},jt=function(){var Kt=Math.round(Et*(fn[0]/100)),yt=100/Et,qt=0;return new Array(Et).fill(null).map(function(vn,Tt){var It=Tt<=Kt-1?sn[0]:Cr,Dt=It&&(0,se.Z)(It)==="object"?"url(#".concat(ar,")"):void 0,Bt=Ae(Ie,Je,qt,yt,je,mr,lr,It,"butt",Cn,Qt);return qt+=(Je-Bt.strokeDashoffset+Qt)*100/Je,te.createElement("circle",{key:Tt,className:"".concat(kt,"-circle-path"),r:dn,cx:Ln,cy:Ln,stroke:Dt,strokeWidth:Cn,opacity:1,style:Bt,ref:function(tn){Gt[Tt]=tn}})})};return te.createElement("svg",(0,ae.Z)({className:fe()("".concat(kt,"-circle"),Nn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:ur,id:Bn,role:"presentation"},Kn),!Et&&te.createElement("circle",{className:"".concat(kt,"-circle-trail"),r:dn,cx:Ln,cy:Ln,stroke:Cr,strokeLinecap:tr,strokeWidth:Mn||Cn,style:Vt}),Et?jt():Rt())},ze=Pe,Ke={Line:oe,Circle:ze},Ne=Ce(25399),Re=Ce(68361);function $e(Ut){return!Ut||Ut<0?0:Ut>100?100:Ut}function nt(Ut){let{success:rn,successPercent:_n}=Ut,Bn=_n;return rn&&"progress"in rn&&(Bn=rn.progress),rn&&"percent"in rn&&(Bn=rn.percent),Bn}const ut=Ut=>{let{percent:rn,success:_n,successPercent:Bn}=Ut;const kt=$e(nt({success:_n,successPercent:Bn}));return[kt,$e($e(rn)-kt)]},Qe=Ut=>{let{success:rn={},strokeColor:_n}=Ut;const{strokeColor:Bn}=rn;return[Bn||Re.presetPrimaryColors.green,_n||null]},rt=(Ut,rn,_n)=>{var Bn,kt,ln,Cn;let Mn=-1,Qn=-1;if(rn==="step"){const mr=_n.steps,lr=_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?(Mn=Ut==="small"?2:14,Qn=lr!=null?lr:8):typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:[Mn=14,Qn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height],Mn*=mr}else if(rn==="line"){const mr=_n==null?void 0:_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?Qn=mr||(Ut==="small"?6:8):typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:[Mn=-1,Qn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height]}else(rn==="circle"||rn==="dashboard")&&(typeof Ut=="string"||typeof Ut=="undefined"?[Mn,Qn]=Ut==="small"?[60,60]:[120,120]:typeof Ut=="number"?[Mn,Qn]=[Ut,Ut]:Array.isArray(Ut)&&(Mn=(kt=(Bn=Ut[0])!==null&&Bn!==void 0?Bn:Ut[1])!==null&&kt!==void 0?kt:120,Qn=(Cn=(ln=Ut[0])!==null&&ln!==void 0?ln:Ut[1])!==null&&Cn!==void 0?Cn:120));return[Mn,Qn]},pt=3,At=Ut=>pt/Ut*100;var Ft=Ut=>{const{prefixCls:rn,trailColor:_n=null,strokeLinecap:Bn="round",gapPosition:kt,gapDegree:ln,width:Cn=120,type:Mn,children:Qn,success:mr,size:lr=Cn,steps:Cr}=Ut,[nr,ur]=rt(lr,"circle");let{strokeWidth:Nn}=Ut;Nn===void 0&&(Nn=Math.max(At(nr),6));const In={width:nr,height:ur,fontSize:nr*.15+6},Wn=te.useMemo(()=>{if(ln||ln===0)return ln;if(Mn==="dashboard")return 75},[ln,Mn]),Kn=ut(Ut),Ln=kt||Mn==="dashboard"&&"bottom"||void 0,$n=Object.prototype.toString.call(Ut.strokeColor)==="[object Object]",ar=Qe({success:mr,strokeColor:Ut.strokeColor}),dn=fe()(`${rn}-inner`,{[`${rn}-circle-gradient`]:$n}),Ie=te.createElement(ze,{steps:Cr,percent:Cr?Kn[1]:Kn,strokeWidth:Nn,trailWidth:Nn,strokeColor:Cr?ar[1]:ar,strokeLinecap:Bn,trailColor:_n,prefixCls:rn,gapDegree:Wn,gapPosition:Ln}),je=nr<=20,Je=te.createElement("div",{className:dn,style:In},Ie,!je&&Qn);return je?te.createElement(Ne.Z,{title:Qn},Je):Je},Ct=Ce(36237),Yt=Ce(63356),zt=Ce(16931),Xe=Ce(51636);const Fe="--progress-line-stroke-color",Le="--progress-percent",Ze=Ut=>{const rn=Ut?"100%":"-100%";return new Ct.Keyframes(`antProgress${Ut?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${rn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${rn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},et=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:Object.assign(Object.assign({},(0,Yt.Wf)(Ut)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ut.fontSize},[`${rn}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${rn}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ut.remainingColor,borderRadius:Ut.lineBorderRadius},[`${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.defaultColor}},[`${rn}-success-bg, ${rn}-bg`]:{position:"relative",background:Ut.defaultColor,borderRadius:Ut.lineBorderRadius,transition:`all ${Ut.motionDurationSlow} ${Ut.motionEaseInOutCirc}`},[`${rn}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${rn}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ut.marginXXS}},[`${rn}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Fe})`]},height:"100%",width:`calc(1 / var(${Le}) * 100%)`,display:"block"},[`&${rn}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${rn}-text-inner`]:{color:Ut.colorWhite,[`&${rn}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${rn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ut.colorSuccess},[`${rn}-text`]:{display:"inline-block",marginInlineStart:Ut.marginXS,color:Ut.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_n]:{fontSize:Ut.fontSize},[`&${rn}-text-outer`]:{width:"max-content"},[`&${rn}-text-outer${rn}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ut.marginXS}},[`${rn}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ct.unit)(Ut.paddingXXS)}`,[`&${rn}-text-start`]:{justifyContent:"start"},[`&${rn}-text-end`]:{justifyContent:"end"}},[`&${rn}-status-active`]:{[`${rn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ut.colorBgContainer,borderRadius:Ut.lineBorderRadius,opacity:0,animationName:Ze(),animationDuration:Ut.progressActiveMotionDuration,animationTimingFunction:Ut.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${rn}-rtl${rn}-status-active`]:{[`${rn}-bg::before`]:{animationName:Ze(!0)}},[`&${rn}-status-exception`]:{[`${rn}-bg`]:{backgroundColor:Ut.colorError},[`${rn}-text`]:{color:Ut.colorError}},[`&${rn}-status-exception ${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.colorError}},[`&${rn}-status-success`]:{[`${rn}-bg`]:{backgroundColor:Ut.colorSuccess},[`${rn}-text`]:{color:Ut.colorSuccess}},[`&${rn}-status-success ${rn}-inner:not(${rn}-circle-gradient)`]:{[`${rn}-circle-path`]:{stroke:Ut.colorSuccess}}})}},He=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:{[`${rn}-circle-trail`]:{stroke:Ut.remainingColor},[`&${rn}-circle ${rn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${rn}-circle ${rn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ut.circleTextColor,fontSize:Ut.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[_n]:{fontSize:Ut.circleIconFontSize}},[`${rn}-circle&-status-exception`]:{[`${rn}-text`]:{color:Ut.colorError}},[`${rn}-circle&-status-success`]:{[`${rn}-text`]:{color:Ut.colorSuccess}}},[`${rn}-inline-circle`]:{lineHeight:1,[`${rn}-inner`]:{verticalAlign:"bottom"}}}},We=Ut=>{const{componentCls:rn}=Ut;return{[rn]:{[`${rn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ut.progressStepMinWidth,marginInlineEnd:Ut.progressStepMarginInlineEnd,backgroundColor:Ut.remainingColor,transition:`all ${Ut.motionDurationSlow}`,"&-active":{backgroundColor:Ut.defaultColor}}}}}},tt=Ut=>{const{componentCls:rn,iconCls:_n}=Ut;return{[rn]:{[`${rn}-small&-line, ${rn}-small&-line ${rn}-text ${_n}`]:{fontSize:Ut.fontSizeSM}}}},at=Ut=>({circleTextColor:Ut.colorText,defaultColor:Ut.colorInfo,remainingColor:Ut.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ut.fontSize/Ut.fontSizeSM}em`});var ot=(0,zt.I$)("Progress",Ut=>{const rn=Ut.calc(Ut.marginXXS).div(2).equal(),_n=(0,Xe.mergeToken)(Ut,{progressStepMarginInlineEnd:rn,progressStepMinWidth:rn,progressActiveMotionDuration:"2.4s"});return[et(_n),He(_n),We(_n),tt(_n)]},at),ct=function(Ut,rn){var _n={};for(var Bn in Ut)Object.prototype.hasOwnProperty.call(Ut,Bn)&&rn.indexOf(Bn)<0&&(_n[Bn]=Ut[Bn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Bn=Object.getOwnPropertySymbols(Ut);kt{let rn=[];return Object.keys(Ut).forEach(_n=>{const Bn=parseFloat(_n.replace(/%/g,""));Number.isNaN(Bn)||rn.push({key:Bn,value:Ut[_n]})}),rn=rn.sort((_n,Bn)=>_n.key-Bn.key),rn.map(_n=>{let{key:Bn,value:kt}=_n;return`${kt} ${Bn}%`}).join(", ")},mt=(Ut,rn)=>{const{from:_n=Re.presetPrimaryColors.blue,to:Bn=Re.presetPrimaryColors.blue,direction:kt=rn==="rtl"?"to left":"to right"}=Ut,ln=ct(Ut,["from","to","direction"]);if(Object.keys(ln).length!==0){const Mn=lt(ln),Qn=`linear-gradient(${kt}, ${Mn})`;return{background:Qn,[Fe]:Qn}}const Cn=`linear-gradient(${kt}, ${_n}, ${Bn})`;return{background:Cn,[Fe]:Cn}};var ft=Ut=>{const{prefixCls:rn,direction:_n,percent:Bn,size:kt,strokeWidth:ln,strokeColor:Cn,strokeLinecap:Mn="round",children:Qn,trailColor:mr=null,percentPosition:lr,success:Cr}=Ut,{align:nr,type:ur}=lr,Nn=Cn&&typeof Cn!="string"?mt(Cn,_n):{[Fe]:Cn,background:Cn},In=Mn==="square"||Mn==="butt"?0:void 0,Wn=kt!=null?kt:[-1,ln||(kt==="small"?6:8)],[Kn,Ln]=rt(Wn,"line",{strokeWidth:ln}),$n={backgroundColor:mr||void 0,borderRadius:In},ar=Object.assign(Object.assign({width:`${$e(Bn)}%`,height:Ln,borderRadius:In},Nn),{[Le]:$e(Bn)/100}),dn=nt(Ut),Ie={width:`${$e(dn)}%`,height:Ln,borderRadius:In,backgroundColor:Cr==null?void 0:Cr.strokeColor},je={width:Kn<0?"100%":Kn},Je=te.createElement("div",{className:`${rn}-inner`,style:$n},te.createElement("div",{className:fe()(`${rn}-bg`,`${rn}-bg-${ur}`),style:ar},ur==="inner"&&Qn),dn!==void 0&&te.createElement("div",{className:`${rn}-success-bg`,style:Ie})),ht=ur==="outer"&&nr==="start",Et=ur==="outer"&&nr==="end";return ur==="outer"&&nr==="center"?te.createElement("div",{className:`${rn}-layout-bottom`},Je,Qn):te.createElement("div",{className:`${rn}-outer`,style:je},ht&&Qn,Je,Et&&Qn)},nn=Ut=>{const{size:rn,steps:_n,rounding:Bn=Math.round,percent:kt=0,strokeWidth:ln=8,strokeColor:Cn,trailColor:Mn=null,prefixCls:Qn,children:mr}=Ut,lr=Bn(_n*(kt/100)),Cr=rn==="small"?2:14,nr=rn!=null?rn:[Cr,ln],[ur,Nn]=rt(nr,"step",{steps:_n,strokeWidth:ln}),In=ur/_n,Wn=Array.from({length:_n});for(let Kn=0;Kn<_n;Kn++){const Ln=Array.isArray(Cn)?Cn[Kn]:Cn;Wn[Kn]=te.createElement("div",{key:Kn,className:fe()(`${Qn}-steps-item`,{[`${Qn}-steps-item-active`]:Kn<=lr-1}),style:{backgroundColor:Kn<=lr-1?Ln:Mn,width:In,height:Nn}})}return te.createElement("div",{className:`${Qn}-steps-outer`},Wn,mr)},on=function(Ut,rn){var _n={};for(var Bn in Ut)Object.prototype.hasOwnProperty.call(Ut,Bn)&&rn.indexOf(Bn)<0&&(_n[Bn]=Ut[Bn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Bn=Object.getOwnPropertySymbols(Ut);kt{const{prefixCls:_n,className:Bn,rootClassName:kt,steps:ln,strokeColor:Cn,percent:Mn=0,size:Qn="default",showInfo:mr=!0,type:lr="line",status:Cr,format:nr,style:ur,percentPosition:Nn={}}=Ut,In=on(Ut,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Wn="end",type:Kn="outer"}=Nn,Ln=Array.isArray(Cn)?Cn[0]:Cn,$n=typeof Cn=="string"||Array.isArray(Cn)?Cn:void 0,ar=te.useMemo(()=>{if(Ln){const Rt=typeof Ln=="string"?Ln:Object.values(Ln)[0];return new Ye.FastColor(Rt).isLight()}return!1},[Cn]),dn=te.useMemo(()=>{var Rt,jt;const Mt=nt(Ut);return parseInt(Mt!==void 0?(Rt=Mt!=null?Mt:0)===null||Rt===void 0?void 0:Rt.toString():(jt=Mn!=null?Mn:0)===null||jt===void 0?void 0:jt.toString(),10)},[Mn,Ut.success,Ut.successPercent]),Ie=te.useMemo(()=>!xn.includes(Cr)&&dn>=100?"success":Cr||"normal",[Cr,dn]),{getPrefixCls:je,direction:Je,progress:ht}=te.useContext(le.E_),Et=je("progress",_n),[Qt,fn,sn]=ot(Et),mn=lr==="line",Zn=mn&&!ln,tr=te.useMemo(()=>{if(!mr)return null;const Rt=nt(Ut);let jt;const Mt=nr||(yt=>`${yt}%`),Kt=mn&&ar&&Kn==="inner";return Kn==="inner"||nr||Ie!=="exception"&&Ie!=="success"?jt=Mt($e(Mn),$e(Rt)):Ie==="exception"?jt=mn?te.createElement(Oe.Z,null):te.createElement(ve.Z,null):Ie==="success"&&(jt=mn?te.createElement(Me.Z,null):te.createElement(pe.Z,null)),te.createElement("span",{className:fe()(`${Et}-text`,{[`${Et}-text-bright`]:Kt,[`${Et}-text-${Wn}`]:Zn,[`${Et}-text-${Kn}`]:Zn}),title:typeof jt=="string"?jt:void 0},jt)},[mr,Mn,dn,Ie,lr,Et,nr]);let Vt;lr==="line"?Vt=ln?te.createElement(nn,Object.assign({},Ut,{strokeColor:$n,prefixCls:Et,steps:typeof ln=="object"?ln.count:ln}),tr):te.createElement(ft,Object.assign({},Ut,{strokeColor:Ln,prefixCls:Et,direction:Je,percentPosition:{align:Wn,type:Kn}}),tr):(lr==="circle"||lr==="dashboard")&&(Vt=te.createElement(Ft,Object.assign({},Ut,{strokeColor:Ln,prefixCls:Et,progressStatus:Ie}),tr));const Gt=fe()(Et,`${Et}-status-${Ie}`,{[`${Et}-${lr==="dashboard"&&"circle"||lr}`]:lr!=="line",[`${Et}-inline-circle`]:lr==="circle"&&rt(Qn,"circle")[0]<=20,[`${Et}-line`]:Zn,[`${Et}-line-align-${Wn}`]:Zn,[`${Et}-line-position-${Kn}`]:Zn,[`${Et}-steps`]:ln,[`${Et}-show-info`]:mr,[`${Et}-${Qn}`]:typeof Qn=="string",[`${Et}-rtl`]:Je==="rtl"},ht==null?void 0:ht.className,Bn,kt,fn,sn);return Qt(te.createElement("div",Object.assign({ref:rn,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),ur),className:Gt,role:"progressbar","aria-valuenow":dn,"aria-valuemin":0,"aria-valuemax":100},(0,he.Z)(In,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Vt))}),Jt=An},63139:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ut}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(rt,pt){return te.createElement(Oe.Z,(0,Ye.Z)({},rt,{ref:pt,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(92310),le=Ce.n(he),ae=Ce(18642),ie=Ce(72190),me=Ce(42244),E=Ce(18929),b=Ce(10228),z=Ce(26112);function ne(Qe,rt){var pt=Qe.disabled,At=Qe.prefixCls,gt=Qe.character,Ft=Qe.characterRender,Ct=Qe.index,Yt=Qe.count,zt=Qe.value,Xe=Qe.allowHalf,Fe=Qe.focused,Le=Qe.onHover,Ze=Qe.onClick,et=function(mt){Le(mt,Ct)},He=function(mt){Ze(mt,Ct)},We=function(mt){mt.keyCode===b.Z.ENTER&&Ze(mt,Ct)},tt=Ct+1,at=new Set([At]);zt===0&&Ct===0&&Fe?at.add("".concat(At,"-focused")):Xe&&zt+.5>=tt&&ztCt?"true":"false","aria-posinset":Ct+1,"aria-setsize":Yt,tabIndex:pt?-1:0},te.createElement("div",{className:"".concat(At,"-first")},ot),te.createElement("div",{className:"".concat(At,"-second")},ot)));return Ft&&(ct=Ft(ct,Qe)),ct}var oe=te.forwardRef(ne);function se(){var Qe=te.useRef({});function rt(At){return Qe.current[At]}function pt(At){return function(gt){Qe.current[At]=gt}}return[rt,pt]}function de(Qe){var rt=Qe.pageXOffset,pt="scrollLeft";if(typeof rt!="number"){var At=Qe.document;rt=At.documentElement[pt],typeof rt!="number"&&(rt=At.body[pt])}return rt}function a(Qe){var rt,pt,At=Qe.ownerDocument,gt=At.body,Ft=At&&At.documentElement,Ct=Qe.getBoundingClientRect();return rt=Ct.left,pt=Ct.top,rt-=Ft.clientLeft||gt.clientLeft||0,pt-=Ft.clientTop||gt.clientTop||0,{left:rt,top:pt}}function x(Qe){var rt=a(Qe),pt=Qe.ownerDocument,At=pt.defaultView||pt.parentWindow;return rt.left+=de(At),rt.left}var re=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ce(Qe,rt){var pt=Qe.prefixCls,At=pt===void 0?"rc-rate":pt,gt=Qe.className,Ft=Qe.defaultValue,Ct=Qe.value,Yt=Qe.count,zt=Yt===void 0?5:Yt,Xe=Qe.allowHalf,Fe=Xe===void 0?!1:Xe,Le=Qe.allowClear,Ze=Le===void 0?!0:Le,et=Qe.keyboard,He=et===void 0?!0:et,We=Qe.character,tt=We===void 0?"\u2605":We,at=Qe.characterRender,ot=Qe.disabled,ct=Qe.direction,lt=ct===void 0?"ltr":ct,mt=Qe.tabIndex,Lt=mt===void 0?0:mt,ft=Qe.autoFocus,St=Qe.onHoverChange,nn=Qe.onChange,on=Qe.onFocus,yn=Qe.onBlur,xn=Qe.onKeyDown,an=Qe.onMouseLeave,An=(0,me.Z)(Qe,re),Jt=se(),Ut=(0,ie.Z)(Jt,2),rn=Ut[0],_n=Ut[1],Bn=te.useRef(null),kt=function(){if(!ot){var tr;(tr=Bn.current)===null||tr===void 0||tr.focus()}};te.useImperativeHandle(rt,function(){return{focus:kt,blur:function(){if(!ot){var tr;(tr=Bn.current)===null||tr===void 0||tr.blur()}}}});var ln=(0,E.Z)(Ft||0,{value:Ct}),Cn=(0,ie.Z)(ln,2),Mn=Cn[0],Qn=Cn[1],mr=(0,E.Z)(null),lr=(0,ie.Z)(mr,2),Cr=lr[0],nr=lr[1],ur=function(tr,Vt){var Gt=lt==="rtl",Rt=tr+1;if(Fe){var jt=rn(tr),Mt=x(jt),Kt=jt.clientWidth;(Gt&&Vt-Mt>Kt/2||!Gt&&Vt-Mt0&&!Gt||Vt===b.Z.RIGHT&&Mn>0&&Gt?(Nn(Mn-Rt),tr.preventDefault()):Vt===b.Z.LEFT&&Mn{const{componentCls:rt}=Qe;return{[`${rt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Qe.marginXS},"> div":{transition:`all ${Qe.motionDurationMid}, outline 0s`,"&:hover":{transform:Qe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Se.unit)(Qe.lineWidth)} dashed ${Qe.starColor}`,transform:Qe.starHoverScale}},"&-first, &-second":{color:Qe.starBg,transition:`all ${Qe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${rt}-star-first, &-half ${rt}-star-second`]:{opacity:1},[`&-half ${rt}-star-first, &-full ${rt}-star-second`]:{color:"inherit"}}}},Pe=Qe=>({[`&-rtl${Qe.componentCls}`]:{direction:"rtl"}}),ze=Qe=>{const{componentCls:rt}=Qe;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Qe)),{display:"inline-block",margin:0,padding:0,color:Qe.starColor,fontSize:Qe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${rt} ${rt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ue(Qe)),Pe(Qe))}},Ke=Qe=>({starColor:Qe.yellow6,starSize:Qe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Qe.colorFillContent});var Ne=(0,Ae.I$)("Rate",Qe=>{const rt=(0,we.mergeToken)(Qe,{});return[ze(rt)]},Ke),Re=Ce(2171),$e=function(Qe,rt){var pt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&rt.indexOf(At)<0&&(pt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,At=Object.getOwnPropertySymbols(Qe);gt{const{prefixCls:pt,className:At,rootClassName:gt,style:Ft,tooltips:Ct,character:Yt=te.createElement(fe,null),disabled:zt}=Qe,Xe=$e(Qe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Fe=(mt,Lt)=>{let{index:ft}=Lt;return Ct?te.createElement(be.Z,{title:Ct[ft]},mt):mt},{getPrefixCls:Le,direction:Ze,rate:et}=te.useContext(ye.E_),He=Le("rate",pt),[We,tt,at]=Ne(He),ot=Object.assign(Object.assign({},et==null?void 0:et.style),Ft),ct=te.useContext(Re.Z),lt=zt!=null?zt:ct;return We(te.createElement(_e,Object.assign({ref:rt,character:Yt,characterRender:Fe,disabled:lt},Xe,{className:le()(At,gt,tt,at,et==null?void 0:et.className),style:ot,prefixCls:He,direction:Ze})))})},82326:function(Yn,en,Ce){"use strict";var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(37463),Oe=Ce(2738),ve=Ce(75030),ue=Ce(86641),fe=Ce(45915),he=Ce(82855),le=Ce(48755),ae=Ce(38406),ie=Ce(2171),me=Ce(83397),E=Ce(31756),b=Ce(56553),z=Ce(24971),ne=Ce(70045),oe=Ce(57700),se=Ce(1722),de=Ce(90376),a=Ce(68525),x=Ce(90005),re=function(be,Se){var Be={};for(var Ae in be)Object.prototype.hasOwnProperty.call(be,Ae)&&Se.indexOf(Ae)<0&&(Be[Ae]=be[Ae]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ae=Object.getOwnPropertySymbols(be);we{var Be;const{prefixCls:Ae,bordered:we,className:Ue,rootClassName:Pe,getPopupContainer:ze,popupClassName:Ke,dropdownClassName:Ne,listHeight:Re=256,placement:$e,listItemHeight:nt,size:ut,disabled:Qe,notFoundContent:rt,status:pt,builtinPlacements:At,dropdownMatchSelectWidth:gt,popupMatchSelectWidth:Ft,direction:Ct,style:Yt,allowClear:zt,variant:Xe,dropdownStyle:Fe,transitionName:Le,tagRender:Ze,maxCount:et,prefix:He}=be,We=re(be,["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:tt,getPrefixCls:at,renderEmpty:ot,direction:ct,virtual:lt,popupMatchSelectWidth:mt,popupOverflow:Lt}=te.useContext(le.E_),ft=(0,le.dj)("select"),[,St]=(0,oe.ZP)(),nn=nt!=null?nt:St==null?void 0:St.controlHeight,on=at("select",Ae),yn=at(),xn=Ct!=null?Ct:ct,{compactSize:an,compactItemClassnames:An}=(0,ne.ri)(on,xn),[Jt,Ut]=(0,z.Z)("select",Xe,we),rn=(0,me.Z)(on),[_n,Bn,kt]=(0,de.Z)(on,rn),ln=te.useMemo(()=>{const{mode:fn}=be;if(fn!=="combobox")return fn===ce?"combobox":fn},[be.mode]),Cn=ln==="multiple"||ln==="tags",Mn=(0,x.Z)(be.suffixIcon,be.showArrow),Qn=(Be=Ft!=null?Ft:gt)!==null&&Be!==void 0?Be:mt,{status:mr,hasFeedback:lr,isFormItemInput:Cr,feedbackIcon:nr}=te.useContext(b.aM),ur=(0,he.F)(mr,pt);let Nn;rt!==void 0?Nn=rt:ln==="combobox"?Nn=null:Nn=(ot==null?void 0:ot("Select"))||te.createElement(ae.Z,{componentName:"Select"});const{suffixIcon:In,itemIcon:Wn,removeIcon:Kn,clearIcon:Ln}=(0,a.Z)(Object.assign(Object.assign({},We),{multiple:Cn,hasFeedback:lr,feedbackIcon:nr,showSuffixIcon:Mn,prefixCls:on,componentName:"Select"})),$n=zt===!0?{clearIcon:Ln}:zt,ar=(0,Oe.Z)(We,["suffixIcon","itemIcon"]),dn=Me()(Ke||Ne,{[`${on}-dropdown-${xn}`]:xn==="rtl"},Pe,kt,rn,Bn),Ie=(0,E.Z)(fn=>{var sn;return(sn=ut!=null?ut:an)!==null&&sn!==void 0?sn:fn}),je=te.useContext(ie.Z),Je=Qe!=null?Qe:je,ht=Me()({[`${on}-lg`]:Ie==="large",[`${on}-sm`]:Ie==="small",[`${on}-rtl`]:xn==="rtl",[`${on}-${Jt}`]:Ut,[`${on}-in-form-item`]:Cr},(0,he.Z)(on,ur,lr),An,ft.className,Ue,Pe,kt,rn,Bn),Et=te.useMemo(()=>$e!==void 0?$e:xn==="rtl"?"bottomRight":"bottomLeft",[$e,xn]),[Qt]=(0,ve.Cn)("SelectLike",Fe==null?void 0:Fe.zIndex);return _n(te.createElement(pe.ZP,Object.assign({ref:Se,virtual:lt,showSearch:ft.showSearch},ar,{style:Object.assign(Object.assign({},ft.style),Yt),dropdownMatchSelectWidth:Qn,transitionName:(0,ue.m)(yn,"slide-up",Le),builtinPlacements:(0,se.Z)(At,Lt),listHeight:Re,listItemHeight:nn,mode:ln,prefixCls:on,placement:Et,direction:xn,prefix:He,suffixIcon:In,menuItemSelectedIcon:Wn,removeIcon:Kn,allowClear:$n,notFoundContent:Nn,className:ht,getPopupContainer:ze||tt,dropdownClassName:dn,disabled:Je,dropdownStyle:Object.assign(Object.assign({},Fe),{zIndex:Qt}),maxCount:Cn?et:void 0,tagRender:Cn?Ze:void 0})))},_e=te.forwardRef(ge),ye=(0,fe.Z)(_e,"dropdownAlign");_e.SECRET_COMBOBOX_MODE_DO_NOT_USE=ce,_e.Option=pe.Wx,_e.OptGroup=pe.Xo,_e._InternalPanelDoNotUseOrYouWillBeFired=ye,en.default=_e},1722:function(Yn,en){"use strict";const Ce=Ye=>{const pe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ye==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},pe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},pe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},pe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},pe),{points:["br","tr"],offset:[0,-4]})}};function te(Ye,Me){return Ye||Ce(Me)}en.Z=te},90376:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ae}});var te=Ce(63356),Ye=Ce(56119),Me=Ce(16931),pe=Ce(51636),Oe=Ce(46e3),ve=Ce(93873);const ue=we=>{const{optionHeight:Ue,optionFontSize:Pe,optionLineHeight:ze,optionPadding:Ke}=we;return{position:"relative",display:"block",minHeight:Ue,padding:Ke,color:we.colorText,fontWeight:"normal",fontSize:Pe,lineHeight:ze,boxSizing:"border-box"}};var he=we=>{const{antCls:Ue,componentCls:Pe}=we,ze=`${Pe}-item`,Ke=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,Ne=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,Re=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,$e=`${Pe}-dropdown-placement-`,nt=`${ze}-option-selected`;return[{[`${Pe}-dropdown`]:Object.assign(Object.assign({},(0,te.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[` ${Ke}${$e}bottomLeft, ${Ne}${$e}bottomLeft `]:{animationName:Oe.fJ},[` ${Ke}${$e}topLeft, ${Ne}${$e}topLeft, ${Ke}${$e}topRight, ${Ne}${$e}topRight `]:{animationName:Oe.Qt},[`${Re}${$e}bottomLeft`]:{animationName:Oe.Uw},[` ${Re}${$e}topLeft, ${Re}${$e}topRight `]:{animationName:Oe.ly},"&-hidden":{display:"none"},[ze]:Object.assign(Object.assign({},ue(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},te.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ze}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${ze}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${ze}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${ze}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.calc(we.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ue(we)),{color:we.colorTextDisabled})}),[`${nt}:has(+ ${nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Oe.oN)(we,"slide-up"),(0,Oe.oN)(we,"slide-down"),(0,ve.Fm)(we,"move-up"),(0,ve.Fm)(we,"move-down")]},le=Ce(26743),ae=Ce(36237);function ie(we,Ue){const{componentCls:Pe,inputPaddingHorizontalBase:ze,borderRadius:Ke}=we,Ne=we.calc(we.controlHeight).sub(we.calc(we.lineWidth).mul(2)).equal(),Re=Ue?`${Pe}-${Ue}`:"";return{[`${Pe}-single${Re}`]:{fontSize:we.fontSize,height:we.controlHeight,[`${Pe}-selector`]:Object.assign(Object.assign({},(0,te.Wf)(we,!0)),{display:"flex",borderRadius:Ke,flex:"1 1 auto",[`${Pe}-selection-wrap:after`]:{lineHeight:(0,ae.unit)(Ne)},[`${Pe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Pe}-selection-item, ${Pe}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,ae.unit)(Ne),transition:`all ${we.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Pe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Pe}-selection-item:empty:after`,`${Pe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Pe}-show-arrow ${Pe}-selection-item, &${Pe}-show-arrow ${Pe}-selection-search, &${Pe}-show-arrow ${Pe}-selection-placeholder `]:{paddingInlineEnd:we.showArrowPaddingInlineEnd},[`&${Pe}-open ${Pe}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${Pe}-customize-input)`]:{[`${Pe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,ae.unit)(ze)}`,[`${Pe}-selection-search-input`]:{height:Ne,fontSize:we.fontSize},"&:after":{lineHeight:(0,ae.unit)(Ne)}}},[`&${Pe}-customize-input`]:{[`${Pe}-selector`]:{"&:after":{display:"none"},[`${Pe}-selection-search`]:{position:"static",width:"100%"},[`${Pe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,ae.unit)(ze)}`,"&:after":{display:"none"}}}}}}}function me(we){const{componentCls:Ue}=we,Pe=we.calc(we.controlPaddingHorizontalSM).sub(we.lineWidth).equal();return[ie(we),ie((0,pe.mergeToken)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{padding:`0 ${(0,ae.unit)(Pe)}`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:we.calc(Pe).add(we.calc(we.fontSize).mul(1.5)).equal()},[` &${Ue}-show-arrow ${Ue}-selection-item, &${Ue}-show-arrow ${Ue}-selection-placeholder `]:{paddingInlineEnd:we.calc(we.fontSize).mul(1.5).equal()}}}},ie((0,pe.mergeToken)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const E=we=>{const{fontSize:Ue,lineHeight:Pe,lineWidth:ze,controlHeight:Ke,controlHeightSM:Ne,controlHeightLG:Re,paddingXXS:$e,controlPaddingHorizontal:nt,zIndexPopupBase:ut,colorText:Qe,fontWeightStrong:rt,controlItemBgActive:pt,controlItemBgHover:At,colorBgContainer:gt,colorFillSecondary:Ft,colorBgContainerDisabled:Ct,colorTextDisabled:Yt,colorPrimaryHover:zt,colorPrimary:Xe,controlOutline:Fe}=we,Le=$e*2,Ze=ze*2,et=Math.min(Ke-Le,Ke-Ze),He=Math.min(Ne-Le,Ne-Ze),We=Math.min(Re-Le,Re-Ze);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor($e/2),zIndexPopup:ut+50,optionSelectedColor:Qe,optionSelectedFontWeight:rt,optionSelectedBg:pt,optionActiveBg:At,optionPadding:`${(Ke-Ue*Pe)/2}px ${nt}px`,optionFontSize:Ue,optionLineHeight:Pe,optionHeight:Ke,selectorBg:gt,clearBg:gt,singleItemHeightLG:Re,multipleItemBg:Ft,multipleItemBorderColor:"transparent",multipleItemHeight:et,multipleItemHeightSM:He,multipleItemHeightLG:We,multipleSelectorBgDisabled:Ct,multipleItemColorDisabled:Yt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(we.fontSize*1.25),hoverBorderColor:zt,activeBorderColor:Xe,activeOutlineColor:Fe,selectAffixPadding:$e}},b=(we,Ue)=>{const{componentCls:Pe,antCls:ze,controlOutlineWidth:Ke}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${Ue.borderColor}`,background:we.selectorBg},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:Ue.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Ue.activeBorderColor,boxShadow:`0 0 0 ${(0,ae.unit)(Ke)} ${Ue.activeOutlineColor}`,outline:0},[`${Pe}-prefix`]:{color:Ue.color}}}},z=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},b(we,Ue))}),ne=we=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},b(we,{borderColor:we.colorBorder,hoverBorderHover:we.hoverBorderColor,activeBorderColor:we.activeBorderColor,activeOutlineColor:we.activeOutlineColor,color:we.colorText})),z(we,{status:"error",borderColor:we.colorError,hoverBorderHover:we.colorErrorHover,activeBorderColor:we.colorError,activeOutlineColor:we.colorErrorOutline,color:we.colorError})),z(we,{status:"warning",borderColor:we.colorWarning,hoverBorderHover:we.colorWarningHover,activeBorderColor:we.colorWarning,activeOutlineColor:we.colorWarningOutline,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{background:we.colorBgContainerDisabled,color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`}})}),oe=(we,Ue)=>{const{componentCls:Pe,antCls:ze}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{background:Ue.bg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} transparent`,color:Ue.color},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{background:Ue.hoverBg},[`${Pe}-focused& ${Pe}-selector`]:{background:we.selectorBg,borderColor:Ue.activeBorderColor,outline:0}}}},se=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},oe(we,Ue))}),de=we=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},oe(we,{bg:we.colorFillTertiary,hoverBg:we.colorFillSecondary,activeBorderColor:we.activeBorderColor,color:we.colorText})),se(we,{status:"error",bg:we.colorErrorBg,hoverBg:we.colorErrorBgHover,activeBorderColor:we.colorError,color:we.colorError})),se(we,{status:"warning",bg:we.colorWarningBg,hoverBg:we.colorWarningBgHover,activeBorderColor:we.colorWarning,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{borderColor:we.colorBorder,background:we.colorBgContainerDisabled,color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.colorBgContainer,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.colorSplit}`}})}),a=we=>({"&-borderless":{[`${we.componentCls}-selector`]:{background:"transparent",border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} transparent`},[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`},[`&${we.componentCls}-status-error`]:{[`${we.componentCls}-prefix, ${we.componentCls}-selection-item`]:{color:we.colorError}},[`&${we.componentCls}-status-warning`]:{[`${we.componentCls}-prefix, ${we.componentCls}-selection-item`]:{color:we.colorWarning}}}}),x=(we,Ue)=>{const{componentCls:Pe,antCls:ze}=we;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{borderWidth:`0 0 ${(0,ae.unit)(we.lineWidth)} 0`,borderStyle:`none none ${we.lineType} none`,borderColor:Ue.borderColor,background:we.selectorBg,borderRadius:0},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:Ue.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Ue.activeBorderColor,outline:0},[`${Pe}-prefix`]:{color:Ue.color}}}},re=(we,Ue)=>({[`&${we.componentCls}-status-${Ue.status}`]:Object.assign({},x(we,Ue))}),ce=we=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},x(we,{borderColor:we.colorBorder,hoverBorderHover:we.hoverBorderColor,activeBorderColor:we.activeBorderColor,activeOutlineColor:we.activeOutlineColor,color:we.colorText})),re(we,{status:"error",borderColor:we.colorError,hoverBorderHover:we.colorErrorHover,activeBorderColor:we.colorError,activeOutlineColor:we.colorErrorOutline,color:we.colorError})),re(we,{status:"warning",borderColor:we.colorWarning,hoverBorderHover:we.colorWarningHover,activeBorderColor:we.colorWarning,activeOutlineColor:we.colorWarningOutline,color:we.colorWarning})),{[`&${we.componentCls}-disabled`]:{[`&:not(${we.componentCls}-customize-input) ${we.componentCls}-selector`]:{color:we.colorTextDisabled}},[`&${we.componentCls}-multiple ${we.componentCls}-selection-item`]:{background:we.multipleItemBg,border:`${(0,ae.unit)(we.lineWidth)} ${we.lineType} ${we.multipleItemBorderColor}`}})});var _e=we=>({[we.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ne(we)),de(we)),a(we)),ce(we))});const ye=we=>{const{componentCls:Ue}=we;return{position:"relative",transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ue}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},be=we=>{const{componentCls:Ue}=we;return{[`${Ue}-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"}}}},Se=we=>{const{antCls:Ue,componentCls:Pe,inputPaddingHorizontalBase:ze,iconCls:Ke}=we;return{[Pe]:Object.assign(Object.assign({},(0,te.Wf)(we)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Pe}-customize-input) ${Pe}-selector`]:Object.assign(Object.assign({},ye(we)),be(we)),[`${Pe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},te.vS),{[`> ${Ue}-typography`]:{display:"inline"}}),[`${Pe}-selection-placeholder`]:Object.assign(Object.assign({},te.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Pe}-arrow`]:Object.assign(Object.assign({},(0,te.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,height:we.fontSizeIcon,marginTop:we.calc(we.fontSizeIcon).mul(-1).div(2).equal(),color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${we.motionDurationSlow} ease`,[Ke]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Pe}-suffix)`]:{pointerEvents:"auto"}},[`${Pe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Pe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Pe}-prefix`]:{flex:"none",marginInlineEnd:we.selectAffixPadding},[`${Pe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:we.calc(we.fontSizeIcon).mul(-1).div(2).equal(),color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},[`&:hover ${Pe}-clear`]:{opacity:1,background:we.colorBgBase,borderRadius:"50%"}}),[`${Pe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Pe}-has-feedback`]:{[`${Pe}-clear`]:{insetInlineEnd:we.calc(ze).add(we.fontSize).add(we.paddingXS).equal()}}}}}},Be=we=>{const{componentCls:Ue}=we;return[{[Ue]:{[`&${Ue}-in-form-item`]:{width:"100%"}}},Se(we),me(we),(0,le.ZP)(we),he(we),{[`${Ue}-rtl`]:{direction:"rtl"}},(0,Ye.c)(we,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var Ae=(0,Me.I$)("Select",(we,Ue)=>{let{rootPrefixCls:Pe}=Ue;const ze=(0,pe.mergeToken)(we,{rootPrefixCls:Pe,inputPaddingHorizontalBase:we.calc(we.paddingSM).sub(1).equal(),multipleSelectItemHeight:we.multipleItemHeight,selectHeight:we.controlHeight});return[Be(ze),_e(ze)]},E,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yn,en,Ce){"use strict";Ce.d(en,{_z:function(){return ve},gp:function(){return pe}});var te=Ce(36237),Ye=Ce(63356),Me=Ce(51636);const pe=le=>{const{multipleSelectItemHeight:ae,paddingXXS:ie,lineWidth:me,INTERNAL_FIXED_ITEM_MARGIN:E}=le,b=le.max(le.calc(ie).sub(me).equal(),0),z=le.max(le.calc(b).sub(E).equal(),0);return{basePadding:b,containerPadding:z,itemHeight:(0,te.unit)(ae),itemLineHeight:(0,te.unit)(le.calc(ae).sub(le.calc(le.lineWidth).mul(2)).equal())}},Oe=le=>{const{multipleSelectItemHeight:ae,selectHeight:ie,lineWidth:me}=le;return le.calc(ie).sub(ae).div(2).sub(me).equal()},ve=le=>{const{componentCls:ae,iconCls:ie,borderRadiusSM:me,motionDurationSlow:E,paddingXS:b,multipleItemColorDisabled:z,multipleItemBorderColorDisabled:ne,colorIcon:oe,colorIconHover:se,INTERNAL_FIXED_ITEM_MARGIN:de}=le;return{[`${ae}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${ae}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:de,borderRadius:me,cursor:"default",transition:`font-size ${E}, line-height ${E}, height ${E}`,marginInlineEnd:le.calc(de).mul(2).equal(),paddingInlineStart:b,paddingInlineEnd:le.calc(b).div(2).equal(),[`${ae}-disabled&`]:{color:z,borderColor:ne,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:le.calc(b).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ye.Ro)()),{display:"inline-flex",alignItems:"center",color:oe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:se}})}}}},ue=(le,ae)=>{const{componentCls:ie,INTERNAL_FIXED_ITEM_MARGIN:me}=le,E=`${ie}-selection-overflow`,b=le.multipleSelectItemHeight,z=Oe(le),ne=ae?`${ie}-${ae}`:"",oe=pe(le);return{[`${ie}-multiple${ne}`]:Object.assign(Object.assign({},ve(le)),{[`${ie}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:oe.basePadding,paddingBlock:oe.containerPadding,borderRadius:le.borderRadius,[`${ie}-disabled&`]:{background:le.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,te.unit)(me)} 0`,lineHeight:(0,te.unit)(b),visibility:"hidden",content:'"\\a0"'}},[`${ie}-selection-item`]:{height:oe.itemHeight,lineHeight:(0,te.unit)(oe.itemLineHeight)},[`${ie}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,te.unit)(b),marginBlock:me}},[`${ie}-prefix`]:{marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(oe.basePadding).equal()},[`${E}-item + ${E}-item, ${ie}-prefix + ${ie}-selection-wrap `]:{[`${ie}-selection-search`]:{marginInlineStart:0},[`${ie}-selection-placeholder`]:{insetInlineStart:0}},[`${E}-item-suffix`]:{minHeight:oe.itemHeight,marginBlock:me},[`${ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(z).equal(),"\n &-input,\n &-mirror\n ":{height:b,fontFamily:le.fontFamily,lineHeight:(0,te.unit)(b),transition:`all ${le.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ie}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(oe.basePadding).equal(),insetInlineEnd:le.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${le.motionDurationSlow}`}})}};function fe(le,ae){const{componentCls:ie}=le,me=ae?`${ie}-${ae}`:"",E={[`${ie}-multiple${me}`]:{fontSize:le.fontSize,[`${ie}-selector`]:{[`${ie}-show-search&`]:{cursor:"text"}},[` &${ie}-show-arrow ${ie}-selector, &${ie}-allow-clear ${ie}-selector `]:{paddingInlineEnd:le.calc(le.fontSizeIcon).add(le.controlPaddingHorizontal).equal()}}};return[ue(le,ae),E]}const he=le=>{const{componentCls:ae}=le,ie=(0,Me.mergeToken)(le,{selectHeight:le.controlHeightSM,multipleSelectItemHeight:le.multipleItemHeightSM,borderRadius:le.borderRadiusSM,borderRadiusSM:le.borderRadiusXS}),me=(0,Me.mergeToken)(le,{fontSize:le.fontSizeLG,selectHeight:le.controlHeightLG,multipleSelectItemHeight:le.multipleItemHeightLG,borderRadius:le.borderRadiusLG,borderRadiusSM:le.borderRadius});return[fe(le),fe(ie,"sm"),{[`${ae}-multiple${ae}-sm`]:{[`${ae}-selection-placeholder`]:{insetInline:le.calc(le.controlPaddingHorizontalSM).sub(le.lineWidth).equal()},[`${ae}-selection-search`]:{marginInlineStart:2}}},fe(me,"lg")]};en.ZP=he},68525:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});var te=Ce(59301),Ye=Ce(40001),Me=Ce(19248),pe=Ce(99267),Oe=Ce(84105),ve=Ce(58617),ue=Ce(47472);function fe(he){let{suffixIcon:le,clearIcon:ae,menuItemSelectedIcon:ie,removeIcon:me,loading:E,multiple:b,hasFeedback:z,prefixCls:ne,showSuffixIcon:oe,feedbackIcon:se,showArrow:de,componentName:a}=he;const x=ae!=null?ae:te.createElement(Me.Z,null),re=ye=>le===null&&!z&&!de?null:te.createElement(te.Fragment,null,oe!==!1&&ye,z&&se);let ce=null;if(le!==void 0)ce=re(le);else if(E)ce=re(te.createElement(ve.Z,{spin:!0}));else{const ye=`${ne}-suffix`;ce=be=>{let{open:Se,showSearch:Be}=be;return re(Se&&Be?te.createElement(ue.Z,{className:ye}):te.createElement(Oe.Z,{className:ye}))}}let ge=null;ie!==void 0?ge=ie:b?ge=te.createElement(Ye.Z,null):ge=null;let _e=null;return me!==void 0?_e=me:_e=te.createElement(pe.Z,null),{clearIcon:x,suffixIcon:ce,itemIcon:ge,removeIcon:_e}}},90005:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});function te(Ye,Me){return Me!==void 0?Me:Ye!==null}},11938:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return be}});var te=Ce(59301),Ye=Ce(40192),Me=Ce(22703),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(26112),ue=Ce(48755),fe=Ce(458),le=Se=>{const{value:Be,formatter:Ae,precision:we,decimalSeparator:Ue,groupSeparator:Pe="",prefixCls:ze}=Se;let Ke;if(typeof Ae=="function")Ke=Ae(Be);else{const Ne=String(Be),Re=Ne.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Re||Ne==="-")Ke=Ne;else{const $e=Re[1];let nt=Re[2]||"0",ut=Re[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,Pe),typeof we=="number"&&(ut=ut.padEnd(we,"0").slice(0,we>0?we:0)),ut&&(ut=`${Ue}${ut}`),Ke=[te.createElement("span",{key:"int",className:`${ze}-content-value-int`},$e,nt),ut&&te.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},ut)]}}return te.createElement("span",{className:`${ze}-content-value`},Ke)},ae=Ce(63356),ie=Ce(16931),me=Ce(51636);const E=Se=>{const{componentCls:Be,marginXXS:Ae,padding:we,colorTextDescription:Ue,titleFontSize:Pe,colorTextHeading:ze,contentFontSize:Ke,fontFamily:Ne}=Se;return{[Be]:Object.assign(Object.assign({},(0,ae.Wf)(Se)),{[`${Be}-title`]:{marginBottom:Ae,color:Ue,fontSize:Pe},[`${Be}-skeleton`]:{paddingTop:we},[`${Be}-content`]:{color:ze,fontSize:Ke,fontFamily:Ne,[`${Be}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Be}-content-prefix, ${Be}-content-suffix`]:{display:"inline-block"},[`${Be}-content-prefix`]:{marginInlineEnd:Ae},[`${Be}-content-suffix`]:{marginInlineStart:Ae}}})}},b=Se=>{const{fontSizeHeading3:Be,fontSize:Ae}=Se;return{titleFontSize:Ae,contentFontSize:Be}};var z=(0,ie.I$)("Statistic",Se=>{const Be=(0,me.mergeToken)(Se,{});return[E(Be)]},b),ne=function(Se,Be){var Ae={};for(var we in Se)Object.prototype.hasOwnProperty.call(Se,we)&&Be.indexOf(we)<0&&(Ae[we]=Se[we]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,we=Object.getOwnPropertySymbols(Se);Ue{const{prefixCls:Be,className:Ae,rootClassName:we,style:Ue,valueStyle:Pe,value:ze=0,title:Ke,valueRender:Ne,prefix:Re,suffix:$e,loading:nt=!1,formatter:ut,precision:Qe,decimalSeparator:rt=".",groupSeparator:pt=",",onMouseEnter:At,onMouseLeave:gt}=Se,Ft=ne(Se,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ct,direction:Yt,className:zt,style:Xe}=(0,ue.dj)("statistic"),Fe=Ct("statistic",Be),[Le,Ze,et]=z(Fe),He=te.createElement(le,{decimalSeparator:rt,groupSeparator:pt,prefixCls:Fe,formatter:ut,precision:Qe,value:ze}),We=Oe()(Fe,{[`${Fe}-rtl`]:Yt==="rtl"},zt,Ae,we,Ze,et),tt=(0,ve.Z)(Ft,{aria:!0,data:!0});return Le(te.createElement("div",Object.assign({},tt,{className:We,style:Object.assign(Object.assign({},Xe),Ue),onMouseEnter:At,onMouseLeave:gt}),Ke&&te.createElement("div",{className:`${Fe}-title`},Ke),te.createElement(fe.Z,{paragraph:!1,loading:nt,className:`${Fe}-skeleton`},te.createElement("div",{style:Pe,className:`${Fe}-content`},Re&&te.createElement("span",{className:`${Fe}-content-prefix`},Re),Ne?Ne(He):He,$e&&te.createElement("span",{className:`${Fe}-content-suffix`},$e)))))};const de=[["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 a(Se,Be){let Ae=Se;const we=/\[[^\]]*]/g,Ue=(Be.match(we)||[]).map(Ne=>Ne.slice(1,-1)),Pe=Be.replace(we,"[]"),ze=de.reduce((Ne,Re)=>{let[$e,nt]=Re;if(Ne.includes($e)){const ut=Math.floor(Ae/nt);return Ae-=ut*nt,Ne.replace(new RegExp(`${$e}+`,"g"),Qe=>{const rt=Qe.length;return ut.toString().padStart(rt,"0")})}return Ne},Pe);let Ke=0;return ze.replace(we,()=>{const Ne=Ue[Ke];return Ke+=1,Ne})}function x(Se,Be){const{format:Ae=""}=Be,we=new Date(Se).getTime(),Ue=Date.now(),Pe=Math.max(we-Ue,0);return a(Pe,Ae)}var re=function(Se,Be){var Ae={};for(var we in Se)Object.prototype.hasOwnProperty.call(Se,we)&&Be.indexOf(we)<0&&(Ae[we]=Se[we]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,we=Object.getOwnPropertySymbols(Se);Ue{const{value:Be,format:Ae="HH:mm:ss",onChange:we,onFinish:Ue}=Se,Pe=re(Se,["value","format","onChange","onFinish"]),ze=(0,Ye.Z)(),Ke=te.useRef(null),Ne=()=>{Ue==null||Ue(),Ke.current&&(clearInterval(Ke.current),Ke.current=null)},Re=()=>{const ut=ge(Be);ut>=Date.now()&&(Ke.current=setInterval(()=>{ze(),we==null||we(ut-Date.now()),ut(Re(),()=>{Ke.current&&(clearInterval(Ke.current),Ke.current=null)}),[Be]);const $e=(ut,Qe)=>x(ut,Object.assign(Object.assign({},Qe),{format:Ae})),nt=ut=>(0,Me.Tm)(ut,{title:void 0});return te.createElement(se,Object.assign({},Pe,{value:Be,valueRender:nt,formatter:$e}))};var ye=te.memo(_e);se.Countdown=ye;var be=se},58755:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ue}});var te=Ce(59301),Ye=Ce(58617),Me=Ce(92310),pe=Ce.n(Me),Oe=Ce(60499),ve=Ce(18642),ue=Ce(72190),fe=Ce(42244),he=Ce(18929),le=Ce(10228),ae=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ie=te.forwardRef(function(Pe,ze){var Ke,Ne=Pe.prefixCls,Re=Ne===void 0?"rc-switch":Ne,$e=Pe.className,nt=Pe.checked,ut=Pe.defaultChecked,Qe=Pe.disabled,rt=Pe.loadingIcon,pt=Pe.checkedChildren,At=Pe.unCheckedChildren,gt=Pe.onClick,Ft=Pe.onChange,Ct=Pe.onKeyDown,Yt=(0,fe.Z)(Pe,ae),zt=(0,he.Z)(!1,{value:nt,defaultValue:ut}),Xe=(0,ue.Z)(zt,2),Fe=Xe[0],Le=Xe[1];function Ze(tt,at){var ot=Fe;return Qe||(ot=tt,Le(ot),Ft==null||Ft(ot,at)),ot}function et(tt){tt.which===le.Z.LEFT?Ze(!1,tt):tt.which===le.Z.RIGHT&&Ze(!0,tt),Ct==null||Ct(tt)}function He(tt){var at=Ze(!Fe,tt);gt==null||gt(at,tt)}var We=pe()(Re,$e,(Ke={},(0,ve.Z)(Ke,"".concat(Re,"-checked"),Fe),(0,ve.Z)(Ke,"".concat(Re,"-disabled"),Qe),Ke));return te.createElement("button",(0,Oe.Z)({},Yt,{type:"button",role:"switch","aria-checked":Fe,disabled:Qe,className:We,ref:ze,onKeyDown:et,onClick:He}),rt,te.createElement("span",{className:"".concat(Re,"-inner")},te.createElement("span",{className:"".concat(Re,"-inner-checked")},pt),te.createElement("span",{className:"".concat(Re,"-inner-unchecked")},At)))});ie.displayName="Switch";var me=ie,E=Ce(12919),b=Ce(48755),z=Ce(2171),ne=Ce(31756),oe=Ce(36237),se=Ce(17835),de=Ce(63356),a=Ce(16931),x=Ce(51636);const re=Pe=>{const{componentCls:ze,trackHeightSM:Ke,trackPadding:Ne,trackMinWidthSM:Re,innerMinMarginSM:$e,innerMaxMarginSM:nt,handleSizeSM:ut,calc:Qe}=Pe,rt=`${ze}-inner`,pt=(0,oe.unit)(Qe(ut).add(Qe(Ne).mul(2)).equal()),At=(0,oe.unit)(Qe(nt).mul(2).equal());return{[ze]:{[`&${ze}-small`]:{minWidth:Re,height:Ke,lineHeight:(0,oe.unit)(Ke),[`${ze}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:$e,[`${rt}-checked, ${rt}-unchecked`]:{minHeight:Ke},[`${rt}-checked`]:{marginInlineStart:`calc(-100% + ${pt} - ${At})`,marginInlineEnd:`calc(100% - ${pt} + ${At})`},[`${rt}-unchecked`]:{marginTop:Qe(Ke).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${ze}-handle`]:{width:ut,height:ut},[`${ze}-loading-icon`]:{top:Qe(Qe(ut).sub(Pe.switchLoadingIconSize)).div(2).equal(),fontSize:Pe.switchLoadingIconSize},[`&${ze}-checked`]:{[`${ze}-inner`]:{paddingInlineStart:$e,paddingInlineEnd:nt,[`${rt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${rt}-unchecked`]:{marginInlineStart:`calc(100% - ${pt} + ${At})`,marginInlineEnd:`calc(-100% + ${pt} - ${At})`}},[`${ze}-handle`]:{insetInlineStart:`calc(100% - ${(0,oe.unit)(Qe(ut).add(Ne).equal())})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${rt}`]:{[`${rt}-unchecked`]:{marginInlineStart:Qe(Pe.marginXXS).div(2).equal(),marginInlineEnd:Qe(Pe.marginXXS).mul(-1).div(2).equal()}},[`&${ze}-checked ${rt}`]:{[`${rt}-checked`]:{marginInlineStart:Qe(Pe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Qe(Pe.marginXXS).div(2).equal()}}}}}}},ce=Pe=>{const{componentCls:ze,handleSize:Ke,calc:Ne}=Pe;return{[ze]:{[`${ze}-loading-icon${Pe.iconCls}`]:{position:"relative",top:Ne(Ne(Ke).sub(Pe.fontSize)).div(2).equal(),color:Pe.switchLoadingIconColor,verticalAlign:"top"},[`&${ze}-checked ${ze}-loading-icon`]:{color:Pe.switchColor}}}},ge=Pe=>{const{componentCls:ze,trackPadding:Ke,handleBg:Ne,handleShadow:Re,handleSize:$e,calc:nt}=Pe,ut=`${ze}-handle`;return{[ze]:{[ut]:{position:"absolute",top:Ke,insetInlineStart:Ke,width:$e,height:$e,transition:`all ${Pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ne,borderRadius:nt($e).div(2).equal(),boxShadow:Re,transition:`all ${Pe.switchDuration} ease-in-out`,content:'""'}},[`&${ze}-checked ${ut}`]:{insetInlineStart:`calc(100% - ${(0,oe.unit)(nt($e).add(Ke).equal())})`},[`&:not(${ze}-disabled):active`]:{[`${ut}::before`]:{insetInlineEnd:Pe.switchHandleActiveInset,insetInlineStart:0},[`&${ze}-checked ${ut}::before`]:{insetInlineEnd:0,insetInlineStart:Pe.switchHandleActiveInset}}}}},_e=Pe=>{const{componentCls:ze,trackHeight:Ke,trackPadding:Ne,innerMinMargin:Re,innerMaxMargin:$e,handleSize:nt,calc:ut}=Pe,Qe=`${ze}-inner`,rt=(0,oe.unit)(ut(nt).add(ut(Ne).mul(2)).equal()),pt=(0,oe.unit)(ut($e).mul(2).equal());return{[ze]:{[Qe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:$e,paddingInlineEnd:Re,transition:`padding-inline-start ${Pe.switchDuration} ease-in-out, padding-inline-end ${Pe.switchDuration} ease-in-out`,[`${Qe}-checked, ${Qe}-unchecked`]:{display:"block",color:Pe.colorTextLightSolid,fontSize:Pe.fontSizeSM,transition:`margin-inline-start ${Pe.switchDuration} ease-in-out, margin-inline-end ${Pe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ke},[`${Qe}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${pt})`,marginInlineEnd:`calc(100% - ${rt} + ${pt})`},[`${Qe}-unchecked`]:{marginTop:ut(Ke).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${ze}-checked ${Qe}`]:{paddingInlineStart:Re,paddingInlineEnd:$e,[`${Qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Qe}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${pt})`,marginInlineEnd:`calc(-100% + ${rt} - ${pt})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${Qe}`]:{[`${Qe}-unchecked`]:{marginInlineStart:ut(Ne).mul(2).equal(),marginInlineEnd:ut(Ne).mul(-1).mul(2).equal()}},[`&${ze}-checked ${Qe}`]:{[`${Qe}-checked`]:{marginInlineStart:ut(Ne).mul(-1).mul(2).equal(),marginInlineEnd:ut(Ne).mul(2).equal()}}}}}},ye=Pe=>{const{componentCls:ze,trackHeight:Ke,trackMinWidth:Ne}=Pe;return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:Ke,lineHeight:(0,oe.unit)(Ke),verticalAlign:"middle",background:Pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${ze}-disabled)`]:{background:Pe.colorTextTertiary}}),(0,de.Qy)(Pe)),{[`&${ze}-checked`]:{background:Pe.switchColor,[`&:hover:not(${ze}-disabled)`]:{background:Pe.colorPrimaryHover}},[`&${ze}-loading, &${ze}-disabled`]:{cursor:"not-allowed",opacity:Pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${ze}-rtl`]:{direction:"rtl"}})}},be=Pe=>{const{fontSize:ze,lineHeight:Ke,controlHeight:Ne,colorWhite:Re}=Pe,$e=ze*Ke,nt=Ne/2,ut=2,Qe=$e-ut*2,rt=nt-ut*2;return{trackHeight:$e,trackHeightSM:nt,trackMinWidth:Qe*2+ut*4,trackMinWidthSM:rt*2+ut*2,trackPadding:ut,handleBg:Re,handleSize:Qe,handleSizeSM:rt,handleShadow:`0 2px 4px 0 ${new se.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Qe/2,innerMaxMargin:Qe+ut+ut*2,innerMinMarginSM:rt/2,innerMaxMarginSM:rt+ut+ut*2}};var Se=(0,a.I$)("Switch",Pe=>{const ze=(0,x.mergeToken)(Pe,{switchDuration:Pe.motionDurationMid,switchColor:Pe.colorPrimary,switchDisabledOpacity:Pe.opacityLoading,switchLoadingIconSize:Pe.calc(Pe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ye(ze),_e(ze),ge(ze),ce(ze),re(ze)]},be),Be=function(Pe,ze){var Ke={};for(var Ne in Pe)Object.prototype.hasOwnProperty.call(Pe,Ne)&&ze.indexOf(Ne)<0&&(Ke[Ne]=Pe[Ne]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ne=Object.getOwnPropertySymbols(Pe);Re{const{prefixCls:Ke,size:Ne,disabled:Re,loading:$e,className:nt,rootClassName:ut,style:Qe,checked:rt,value:pt,defaultChecked:At,defaultValue:gt,onChange:Ft}=Pe,Ct=Be(Pe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Yt,zt]=(0,he.Z)(!1,{value:rt!=null?rt:pt,defaultValue:At!=null?At:gt}),{getPrefixCls:Xe,direction:Fe,switch:Le}=te.useContext(b.E_),Ze=te.useContext(z.Z),et=(Re!=null?Re:Ze)||$e,He=Xe("switch",Ke),We=te.createElement("div",{className:`${He}-handle`},$e&&te.createElement(Ye.Z,{className:`${He}-loading-icon`})),[tt,at,ot]=Se(He),ct=(0,ne.Z)(Ne),lt=pe()(Le==null?void 0:Le.className,{[`${He}-small`]:ct==="small",[`${He}-loading`]:$e,[`${He}-rtl`]:Fe==="rtl"},nt,ut,at,ot),mt=Object.assign(Object.assign({},Le==null?void 0:Le.style),Qe),Lt=function(){zt(arguments.length<=0?void 0:arguments[0]),Ft==null||Ft.apply(void 0,arguments)};return tt(te.createElement(E.Z,{component:"Switch"},te.createElement(me,Object.assign({},Ct,{checked:Yt,onChange:Lt,prefixCls:He,className:lt,style:mt,disabled:et,ref:ze,loadingIcon:We}))))});we.__ANT_SWITCH=!0;var Ue=we},70858:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Bo}});var te=Ce(59301),Ye={},Me="rc-table-internal-hook",pe=Ce(72190),Oe=Ce(6089),ve=Ce(34280),ue=Ce(13697),fe=Ce(4676);function he(_t){var xt=te.createContext(void 0),Xt=function(wn){var Rn=wn.value,qn=wn.children,En=te.useRef(Rn);En.current=Rn;var er=te.useState(function(){return{getValue:function(){return En.current},listeners:new Set}}),Xn=(0,pe.Z)(er,1),Pr=Xn[0];return(0,ve.Z)(function(){(0,fe.unstable_batchedUpdates)(function(){Pr.listeners.forEach(function(yr){yr(Rn)})})},[Rn]),te.createElement(xt.Provider,{value:Pr},qn)};return{Context:xt,Provider:Xt,defaultValue:_t}}function le(_t,xt){var Xt=(0,Oe.Z)(typeof xt=="function"?xt:function(yr){if(xt===void 0)return yr;if(!Array.isArray(xt))return yr[xt];var br={};return xt.forEach(function(gr){br[gr]=yr[gr]}),br}),cn=te.useContext(_t==null?void 0:_t.Context),wn=cn||{},Rn=wn.listeners,qn=wn.getValue,En=te.useRef();En.current=Xt(cn?qn():_t==null?void 0:_t.defaultValue);var er=te.useState({}),Xn=(0,pe.Z)(er,2),Pr=Xn[1];return(0,ve.Z)(function(){if(!cn)return;function yr(br){var gr=Xt(br);(0,ue.Z)(En.current,gr,!0)||Pr({})}return Rn.add(yr),function(){Rn.delete(yr)}},[cn]),En.current}var ae=Ce(60499),ie=Ce(8654);function me(){var _t=te.createContext(null);function xt(){return te.useContext(_t)}function Xt(wn,Rn){var qn=(0,ie.Yr)(wn),En=function(Xn,Pr){var yr=qn?{ref:Pr}:{},br=te.useRef(0),gr=te.useRef(Xn),pr=xt();return pr!==null?te.createElement(wn,(0,ae.Z)({},Xn,yr)):((!Rn||Rn(gr.current,Xn))&&(br.current+=1),gr.current=Xn,te.createElement(_t.Provider,{value:br.current},te.createElement(wn,(0,ae.Z)({},Xn,yr))))};return qn?te.forwardRef(En):En}function cn(wn,Rn){var qn=(0,ie.Yr)(wn),En=function(Xn,Pr){var yr=qn?{ref:Pr}:{};return xt(),te.createElement(wn,(0,ae.Z)({},Xn,yr))};return qn?te.memo(te.forwardRef(En),Rn):te.memo(En,Rn)}return{makeImmutable:Xt,responseImmutable:cn,useImmutableMark:xt}}var E=me(),b=E.makeImmutable,z=E.responseImmutable,ne=E.useImmutableMark,oe=me(),se=oe.makeImmutable,de=oe.responseImmutable,a=oe.useImmutableMark,x=he(),re=x;function ce(_t,xt){var Xt=React.useRef(0);Xt.current+=1;var cn=React.useRef(_t),wn=[];Object.keys(_t||{}).map(function(qn){var En;(_t==null?void 0:_t[qn])!==((En=cn.current)===null||En===void 0?void 0:En[qn])&&wn.push(qn)}),cn.current=_t;var Rn=React.useRef([]);return wn.length&&(Rn.current=wn),React.useDebugValue(Xt.current),React.useDebugValue(Rn.current.join(", ")),xt&&console.log("".concat(xt,":"),Xt.current,Rn.current),Xt.current}var ge=null,_e=null,ye=Ce(43749),be=Ce(85899),Se=Ce(18642),Be=Ce(92310),Ae=Ce.n(Be),we=Ce(80547),Ue=Ce(97938),Pe=Ce(48736),ze=te.createContext({renderWithProps:!1}),Ke=ze,Ne="RC_TABLE_KEY";function Re(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function $e(_t){var xt=[],Xt={};return _t.forEach(function(cn){for(var wn=cn||{},Rn=wn.key,qn=wn.dataIndex,En=Rn||Re(qn).join("-")||Ne;Xt[En];)En="".concat(En,"_next");Xt[En]=!0,xt.push(En)}),xt}function nt(_t){return _t!=null}function ut(_t){return typeof _t=="number"&&!Number.isNaN(_t)}function Qe(_t){return _t&&(0,ye.Z)(_t)==="object"&&!Array.isArray(_t)&&!te.isValidElement(_t)}function rt(_t,xt,Xt,cn,wn,Rn){var qn=te.useContext(Ke),En=a(),er=(0,we.Z)(function(){if(nt(cn))return[cn];var Xn=xt==null||xt===""?[]:Array.isArray(xt)?xt:[xt],Pr=(0,Ue.Z)(_t,Xn),yr=Pr,br=void 0;if(wn){var gr=wn(Pr,_t,Xt);Qe(gr)?(yr=gr.children,br=gr.props,qn.renderWithProps=!0):yr=gr}return[yr,br]},[En,_t,cn,xt,wn,Xt],function(Xn,Pr){if(Rn){var yr=(0,pe.Z)(Xn,2),br=yr[1],gr=(0,pe.Z)(Pr,2),pr=gr[1];return Rn(pr,br)}return qn.renderWithProps?!0:!(0,ue.Z)(Xn,Pr,!0)});return er}function pt(_t,xt,Xt,cn){var wn=_t+xt-1;return _t<=cn&&wn>=Xt}function At(_t,xt){return le(re,function(Xt){var cn=pt(_t,xt||1,Xt.hoverStartRow,Xt.hoverEndRow);return[cn,Xt.onHover]})}var gt=Ce(70425),Ft=function(xt){var Xt=xt.ellipsis,cn=xt.rowType,wn=xt.children,Rn,qn=Xt===!0?{showTitle:!0}:Xt;return qn&&(qn.showTitle||cn==="header")&&(typeof wn=="string"||typeof wn=="number"?Rn=wn.toString():te.isValidElement(wn)&&typeof wn.props.children=="string"&&(Rn=wn.props.children)),Rn};function Ct(_t){var xt,Xt,cn,wn,Rn,qn,En,er,Xn=_t.component,Pr=_t.children,yr=_t.ellipsis,br=_t.scope,gr=_t.prefixCls,pr=_t.className,De=_t.align,ke=_t.record,Ve=_t.render,qe=_t.dataIndex,it=_t.renderIndex,dt=_t.shouldCellUpdate,bt=_t.index,vt=_t.rowType,Nt=_t.colSpan,Pt=_t.rowSpan,Ht=_t.fixLeft,$t=_t.fixRight,hn=_t.firstFixLeft,Pn=_t.lastFixLeft,Dn=_t.firstFixRight,pn=_t.lastFixRight,bn=_t.appendNode,Gn=_t.additionalProps,Un=Gn===void 0?{}:Gn,sr=_t.isSticky,cr="".concat(gr,"-cell"),ni=le(re,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Tr=ni.supportSticky,Si=ni.allColumnsFixedLeft,Ui=ni.rowHoverable,Fi=rt(ke,qe,it,Pr,Ve,dt),jr=(0,pe.Z)(Fi,2),Vr=jr[0],yi=jr[1],zn={},fr=typeof Ht=="number"&&Tr,$r=typeof $t=="number"&&Tr;fr&&(zn.position="sticky",zn.left=Ht),$r&&(zn.position="sticky",zn.right=$t);var xr=(xt=(Xt=(cn=yi==null?void 0:yi.colSpan)!==null&&cn!==void 0?cn:Un.colSpan)!==null&&Xt!==void 0?Xt:Nt)!==null&&xt!==void 0?xt:1,Yr=(wn=(Rn=(qn=yi==null?void 0:yi.rowSpan)!==null&&qn!==void 0?qn:Un.rowSpan)!==null&&Rn!==void 0?Rn:Pt)!==null&&wn!==void 0?wn:1,Lr=At(bt,Yr),Or=(0,pe.Z)(Lr,2),Bi=Or[0],na=Or[1],Oi=(0,gt.zX)(function(oo){var qa;ke&&na(bt,bt+Yr-1),Un==null||(qa=Un.onMouseEnter)===null||qa===void 0||qa.call(Un,oo)}),Ea=(0,gt.zX)(function(oo){var qa;ke&&na(-1,-1),Un==null||(qa=Un.onMouseLeave)===null||qa===void 0||qa.call(Un,oo)});if(xr===0||Yr===0)return null;var Ma=(En=Un.title)!==null&&En!==void 0?En:Ft({rowType:vt,ellipsis:yr,children:Vr}),Na=Ae()(cr,pr,(er={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(er,"".concat(cr,"-fix-left"),fr&&Tr),"".concat(cr,"-fix-left-first"),hn&&Tr),"".concat(cr,"-fix-left-last"),Pn&&Tr),"".concat(cr,"-fix-left-all"),Pn&&Si&&Tr),"".concat(cr,"-fix-right"),$r&&Tr),"".concat(cr,"-fix-right-first"),Dn&&Tr),"".concat(cr,"-fix-right-last"),pn&&Tr),"".concat(cr,"-ellipsis"),yr),"".concat(cr,"-with-append"),bn),"".concat(cr,"-fix-sticky"),(fr||$r)&&sr&&Tr),(0,Se.Z)(er,"".concat(cr,"-row-hover"),!yi&&Bi)),Un.className,yi==null?void 0:yi.className),ji={};De&&(ji.textAlign=De);var aa=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},yi==null?void 0:yi.style),zn),ji),Un.style),Ua=Vr;return(0,ye.Z)(Ua)==="object"&&!Array.isArray(Ua)&&!te.isValidElement(Ua)&&(Ua=null),yr&&(Pn||Dn)&&(Ua=te.createElement("span",{className:"".concat(cr,"-content")},Ua)),te.createElement(Xn,(0,ae.Z)({},yi,Un,{className:Na,style:aa,title:Ma,scope:br,onMouseEnter:Ui?Oi:void 0,onMouseLeave:Ui?Ea:void 0,colSpan:xr!==1?xr:null,rowSpan:Yr!==1?Yr:null}),bn,Ua)}var Yt=te.memo(Ct);function zt(_t,xt,Xt,cn,wn){var Rn=Xt[_t]||{},qn=Xt[xt]||{},En,er;Rn.fixed==="left"?En=cn.left[wn==="rtl"?xt:_t]:qn.fixed==="right"&&(er=cn.right[wn==="rtl"?_t:xt]);var Xn=!1,Pr=!1,yr=!1,br=!1,gr=Xt[xt+1],pr=Xt[_t-1],De=gr&&!gr.fixed||pr&&!pr.fixed||Xt.every(function(dt){return dt.fixed==="left"});if(wn==="rtl"){if(En!==void 0){var ke=pr&&pr.fixed==="left";br=!ke&&De}else if(er!==void 0){var Ve=gr&&gr.fixed==="right";yr=!Ve&&De}}else if(En!==void 0){var qe=gr&&gr.fixed==="left";Xn=!qe&&De}else if(er!==void 0){var it=pr&&pr.fixed==="right";Pr=!it&&De}return{fixLeft:En,fixRight:er,lastFixLeft:Xn,firstFixRight:Pr,lastFixRight:yr,firstFixLeft:br,isSticky:cn.isSticky}}var Xe=te.createContext({}),Fe=Xe;function Le(_t){var xt=_t.className,Xt=_t.index,cn=_t.children,wn=_t.colSpan,Rn=wn===void 0?1:wn,qn=_t.rowSpan,En=_t.align,er=le(re,["prefixCls","direction"]),Xn=er.prefixCls,Pr=er.direction,yr=te.useContext(Fe),br=yr.scrollColumnIndex,gr=yr.stickyOffsets,pr=yr.flattenColumns,De=Xt+Rn-1,ke=De+1===br?Rn+1:Rn,Ve=zt(Xt,Xt+ke-1,pr,gr,Pr);return te.createElement(Yt,(0,ae.Z)({className:xt,index:Xt,component:"td",prefixCls:Xn,record:null,dataIndex:null,align:En,colSpan:ke,rowSpan:qn,render:function(){return cn}},Ve))}var Ze=Ce(42244),et=["children"];function He(_t){var xt=_t.children,Xt=(0,Ze.Z)(_t,et);return te.createElement("tr",Xt,xt)}function We(_t){var xt=_t.children;return xt}We.Row=He,We.Cell=Le;var tt=We;function at(_t){var xt=_t.children,Xt=_t.stickyOffsets,cn=_t.flattenColumns,wn=le(re,"prefixCls"),Rn=cn.length-1,qn=cn[Rn],En=te.useMemo(function(){return{stickyOffsets:Xt,flattenColumns:cn,scrollColumnIndex:qn!=null&&qn.scrollbar?Rn:null}},[qn,cn,Rn,Xt]);return te.createElement(Fe.Provider,{value:En},te.createElement("tfoot",{className:"".concat(wn,"-summary")},xt))}var ot=de(at),ct=tt,lt=Ce(29301),mt=Ce(24514),Lt=Ce(75152),ft=Ce(26112);function St(_t,xt,Xt,cn,wn,Rn,qn){_t.push({record:xt,indent:Xt,index:qn});var En=Rn(xt),er=wn==null?void 0:wn.has(En);if(xt&&Array.isArray(xt[cn])&&er)for(var Xn=0;Xn1?hn-1:0),Dn=1;Dn=1)),style:(0,be.Z)((0,be.Z)({},Xt),Ve==null?void 0:Ve.style)}),pr.map(function(Ht,$t){var hn=Ht.render,Pn=Ht.dataIndex,Dn=Ht.className,pn=Ut(br,Ht,$t,er,wn),bn=pn.key,Gn=pn.fixedInfo,Un=pn.appendCellNode,sr=pn.additionalCellProps;return te.createElement(Yt,(0,ae.Z)({className:Dn,ellipsis:Ht.ellipsis,align:Ht.align,scope:Ht.rowScope,component:Ht.rowScope?yr:Pr,prefixCls:gr,key:bn,record:cn,index:wn,renderIndex:Rn,dataIndex:Pn,render:hn,shouldCellUpdate:Ht.shouldCellUpdate},Gn,{appendNode:Un,additionalProps:sr}))})),Nt;if(it&&(dt.current||qe)){var Pt=ke(cn,wn,er+1,qe);Nt=te.createElement(xn,{expanded:qe,className:Ae()("".concat(gr,"-expanded-row"),"".concat(gr,"-expanded-row-level-").concat(er+1),bt),prefixCls:gr,component:Xn,cellComponent:Pr,colSpan:pr.length,isEmpty:!1},Pt)}return te.createElement(te.Fragment,null,vt,Nt)}var _n=de(rn);function Bn(_t){var xt=_t.columnKey,Xt=_t.onColumnResize,cn=te.useRef();return(0,ve.Z)(function(){cn.current&&Xt(xt,cn.current.offsetWidth)},[]),te.createElement(lt.Z,{data:xt},te.createElement("td",{ref:cn,style:{padding:0,border:0,height:0}},te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var kt=Ce(29194);function ln(_t){var xt=_t.prefixCls,Xt=_t.columnsKey,cn=_t.onColumnResize,wn=te.useRef(null);return te.createElement("tr",{"aria-hidden":"true",className:"".concat(xt,"-measure-row"),style:{height:0,fontSize:0},ref:wn},te.createElement(lt.Z.Collection,{onBatchResize:function(qn){(0,kt.Z)(wn.current)&&qn.forEach(function(En){var er=En.data,Xn=En.size;cn(er,Xn.offsetWidth)})}},Xt.map(function(Rn){return te.createElement(Bn,{key:Rn,columnKey:Rn,onColumnResize:cn})})))}function Cn(_t){var xt=_t.data,Xt=_t.measureColumnWidth,cn=le(re,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),wn=cn.prefixCls,Rn=cn.getComponent,qn=cn.onColumnResize,En=cn.flattenColumns,er=cn.getRowKey,Xn=cn.expandedKeys,Pr=cn.childrenColumnName,yr=cn.emptyNode,br=nn(xt,Pr,Xn,er),gr=te.useRef({renderWithProps:!1}),pr=Rn(["body","wrapper"],"tbody"),De=Rn(["body","row"],"tr"),ke=Rn(["body","cell"],"td"),Ve=Rn(["body","cell"],"th"),qe;xt.length?qe=br.map(function(dt,bt){var vt=dt.record,Nt=dt.indent,Pt=dt.index,Ht=er(vt,bt);return te.createElement(_n,{key:Ht,rowKey:Ht,record:vt,index:bt,renderIndex:Pt,rowComponent:De,cellComponent:ke,scopeCellComponent:Ve,indent:Nt})}):qe=te.createElement(xn,{expanded:!0,className:"".concat(wn,"-placeholder"),prefixCls:wn,component:De,cellComponent:ke,colSpan:En.length,isEmpty:!0},yr);var it=$e(En);return te.createElement(Ke.Provider,{value:gr.current},te.createElement(pr,{className:"".concat(wn,"-tbody")},Xt&&te.createElement(ln,{prefixCls:wn,columnsKey:it,onColumnResize:qn}),qe))}var Mn=de(Cn),Qn=["expandable"],mr="RC_TABLE_INTERNAL_COL_DEFINE";function lr(_t){var xt=_t.expandable,Xt=(0,Ze.Z)(_t,Qn),cn;return"expandable"in _t?cn=(0,be.Z)((0,be.Z)({},Xt),xt):cn=Xt,cn.showExpandColumn===!1&&(cn.expandIconColumnIndex=-1),cn}var Cr=["columnType"];function nr(_t){for(var xt=_t.colWidths,Xt=_t.columns,cn=_t.columCount,wn=le(re,["tableLayout"]),Rn=wn.tableLayout,qn=[],En=cn||Xt.length,er=!1,Xn=En-1;Xn>=0;Xn-=1){var Pr=xt[Xn],yr=Xt&&Xt[Xn],br=void 0,gr=void 0;if(yr&&(br=yr[mr],Rn==="auto"&&(gr=yr.minWidth)),Pr||gr||br||er){var pr=br||{},De=pr.columnType,ke=(0,Ze.Z)(pr,Cr);qn.unshift(te.createElement("col",(0,ae.Z)({key:Xn,style:{width:Pr,minWidth:gr}},ke))),er=!0}}return te.createElement("colgroup",null,qn)}var ur=nr,Nn=Ce(77654),In=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Wn(_t,xt){return(0,te.useMemo)(function(){for(var Xt=[],cn=0;cn1?"colgroup":"col":null,ellipsis:ke.ellipsis,align:ke.align,component:qn,prefixCls:Pr,key:gr[De]},Ve,{additionalProps:qe,rowType:"header"}))}))},ar=$n;function dn(_t){var xt=[];function Xt(qn,En){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xt[er]=xt[er]||[];var Xn=En,Pr=qn.filter(Boolean).map(function(yr){var br={key:yr.key,className:yr.className||"",children:yr.title,column:yr,colStart:Xn},gr=1,pr=yr.children;return pr&&pr.length>0&&(gr=Xt(pr,Xn,er+1).reduce(function(De,ke){return De+ke},0),br.hasSubColumns=!0),"colSpan"in yr&&(gr=yr.colSpan),"rowSpan"in yr&&(br.rowSpan=yr.rowSpan),br.colSpan=gr,br.colEnd=br.colStart+gr-1,xt[er].push(br),Xn+=gr,gr});return Pr}Xt(_t,0);for(var cn=xt.length,wn=function(En){xt[En].forEach(function(er){!("rowSpan"in er)&&!er.hasSubColumns&&(er.rowSpan=cn-En)})},Rn=0;Rn1&&arguments[1]!==void 0?arguments[1]:"";return typeof xt=="number"?xt:xt.endsWith("%")?_t*parseFloat(xt)/100:null}function Et(_t,xt,Xt){return te.useMemo(function(){if(xt&&xt>0){var cn=0,wn=0;_t.forEach(function(br){var gr=ht(xt,br.width);gr?cn+=gr:wn+=1});var Rn=Math.max(xt,Xt),qn=Math.max(Rn-cn,wn),En=wn,er=qn/wn,Xn=0,Pr=_t.map(function(br){var gr=(0,be.Z)({},br),pr=ht(xt,gr.width);if(pr)gr.width=pr;else{var De=Math.floor(er);gr.width=En===1?qn:De,qn-=De,En-=1}return Xn+=gr.width,gr});if(Xn0?(0,be.Z)((0,be.Z)({},xt),{},{children:mn(Xt)}):xt})}function Zn(_t){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return _t.filter(function(Xt){return Xt&&(0,ye.Z)(Xt)==="object"}).reduce(function(Xt,cn,wn){var Rn=cn.fixed,qn=Rn===!0?"left":Rn,En="".concat(xt,"-").concat(wn),er=cn.children;return er&&er.length>0?[].concat((0,Nn.Z)(Xt),(0,Nn.Z)(Zn(er,En).map(function(Xn){return(0,be.Z)({fixed:qn},Xn)}))):[].concat((0,Nn.Z)(Xt),[(0,be.Z)((0,be.Z)({key:En},cn),{},{fixed:qn})])},[])}function tr(_t){return _t.map(function(xt){var Xt=xt.fixed,cn=(0,Ze.Z)(xt,fn),wn=Xt;return Xt==="left"?wn="right":Xt==="right"&&(wn="left"),(0,be.Z)({fixed:wn},cn)})}function Vt(_t,xt){var Xt=_t.prefixCls,cn=_t.columns,wn=_t.children,Rn=_t.expandable,qn=_t.expandedKeys,En=_t.columnTitle,er=_t.getRowKey,Xn=_t.onTriggerExpand,Pr=_t.expandIcon,yr=_t.rowExpandable,br=_t.expandIconColumnIndex,gr=_t.direction,pr=_t.expandRowByClick,De=_t.columnWidth,ke=_t.fixed,Ve=_t.scrollWidth,qe=_t.clientWidth,it=te.useMemo(function(){var Pn=cn||sn(wn)||[];return mn(Pn.slice())},[cn,wn]),dt=te.useMemo(function(){if(Rn){var Pn=it.slice();if(!Pn.includes(Ye)){var Dn=br||0;Dn>=0&&(Dn||ke==="left"||!ke)&&Pn.splice(Dn,0,Ye),ke==="right"&&Pn.splice(it.length,0,Ye)}var pn=Pn.indexOf(Ye);Pn=Pn.filter(function(sr,cr){return sr!==Ye||cr===pn});var bn=it[pn],Gn;ke?Gn=ke:Gn=bn?bn.fixed:null;var Un=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},mr,{className:"".concat(Xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",En),"fixed",Gn),"className","".concat(Xt,"-row-expand-icon-cell")),"width",De),"render",function(cr,ni,Tr){var Si=er(ni,Tr),Ui=qn.has(Si),Fi=yr?yr(ni):!0,jr=Pr({prefixCls:Xt,expanded:Ui,expandable:Fi,record:ni,onExpand:Xn});return pr?te.createElement("span",{onClick:function(yi){return yi.stopPropagation()}},jr):jr});return Pn.map(function(sr){return sr===Ye?Un:sr})}return it.filter(function(sr){return sr!==Ye})},[Rn,it,er,qn,Pr,gr]),bt=te.useMemo(function(){var Pn=dt;return xt&&(Pn=xt(Pn)),Pn.length||(Pn=[{render:function(){return null}}]),Pn},[xt,dt,gr]),vt=te.useMemo(function(){return gr==="rtl"?tr(Zn(bt)):Zn(bt)},[bt,gr,Ve]),Nt=te.useMemo(function(){for(var Pn=-1,Dn=vt.length-1;Dn>=0;Dn-=1){var pn=vt[Dn].fixed;if(pn==="left"||pn===!0){Pn=Dn;break}}if(Pn>=0)for(var bn=0;bn<=Pn;bn+=1){var Gn=vt[bn].fixed;if(Gn!=="left"&&Gn!==!0)return!0}var Un=vt.findIndex(function(ni){var Tr=ni.fixed;return Tr==="right"});if(Un>=0)for(var sr=Un;sr=Un-En?qe(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!0})}):qe(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!1})})}})},Dn=function(bn){qe(function(Gn){return(0,be.Z)((0,be.Z)({},Gn),{},{scrollLeft:bn/yr*br||0})})};return te.useImperativeHandle(Xt,function(){return{setScrollLeft:Dn,checkScrollBarVisible:Pn}}),te.useEffect(function(){var pn=(0,tn.Z)(document.body,"mouseup",Ht,!1),bn=(0,tn.Z)(document.body,"mousemove",hn,!1);return Pn(),function(){pn.remove(),bn.remove()}},[gr,vt]),te.useEffect(function(){if(Rn.current){for(var pn=[],bn=(0,Fn.bn)(Rn.current);bn;)pn.push(bn),bn=bn.parentElement;return pn.forEach(function(Gn){return Gn.addEventListener("scroll",Pn,!1)}),window.addEventListener("resize",Pn,!1),window.addEventListener("scroll",Pn,!1),er.addEventListener("scroll",Pn,!1),function(){pn.forEach(function(Gn){return Gn.removeEventListener("scroll",Pn)}),window.removeEventListener("resize",Pn),window.removeEventListener("scroll",Pn),er.removeEventListener("scroll",Pn)}}},[er]),te.useEffect(function(){Ve.isHiddenScrollBar||qe(function(pn){var bn=Rn.current;return bn?(0,be.Z)((0,be.Z)({},pn),{},{scrollLeft:bn.scrollLeft/bn.scrollWidth*bn.clientWidth}):pn})},[Ve.isHiddenScrollBar]),yr<=br||!gr||Ve.isHiddenScrollBar?null:te.createElement("div",{style:{height:(0,Lt.Z)(),width:br,bottom:En},className:"".concat(Pr,"-sticky-scroll")},te.createElement("div",{onMouseDown:$t,ref:pr,className:Ae()("".concat(Pr,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Pr,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(gr,"px"),transform:"translate3d(".concat(Ve.scrollLeft,"px, 0, 0)")}}))},Kr=te.forwardRef(_r);function Sr(_t){return null}var hr=Sr;function Mr(_t){return null}var Br=Mr,Wr="rc-table",Jn=[],ii={};function Ur(){return"No Data"}function Gr(_t,xt){var Xt=(0,be.Z)({rowKey:"key",prefixCls:Wr,emptyText:Ur},_t),cn=Xt.prefixCls,wn=Xt.className,Rn=Xt.rowClassName,qn=Xt.style,En=Xt.data,er=Xt.rowKey,Xn=Xt.scroll,Pr=Xt.tableLayout,yr=Xt.direction,br=Xt.title,gr=Xt.footer,pr=Xt.summary,De=Xt.caption,ke=Xt.id,Ve=Xt.showHeader,qe=Xt.components,it=Xt.emptyText,dt=Xt.onRow,bt=Xt.onHeaderRow,vt=Xt.onScroll,Nt=Xt.internalHooks,Pt=Xt.transformColumns,Ht=Xt.internalRefs,$t=Xt.tailor,hn=Xt.getContainerWidth,Pn=Xt.sticky,Dn=Xt.rowHoverable,pn=Dn===void 0?!0:Dn,bn=En||Jn,Gn=!!bn.length,Un=Nt===Me,sr=te.useCallback(function(Xa,eo){return(0,Ue.Z)(qe,Xa)||eo},[qe]),cr=te.useMemo(function(){return typeof er=="function"?er:function(Xa){var eo=Xa&&Xa[er];return eo}},[er]),ni=sr(["body"]),Tr=yt(),Si=(0,pe.Z)(Tr,3),Ui=Si[0],Fi=Si[1],jr=Si[2],Vr=Rt(Xt,bn,cr),yi=(0,pe.Z)(Vr,6),zn=yi[0],fr=yi[1],$r=yi[2],xr=yi[3],Yr=yi[4],Lr=yi[5],Or=Xn==null?void 0:Xn.x,Bi=te.useState(0),na=(0,pe.Z)(Bi,2),Oi=na[0],Ea=na[1],Ma=Gt((0,be.Z)((0,be.Z)((0,be.Z)({},Xt),zn),{},{expandable:!!zn.expandedRowRender,columnTitle:zn.columnTitle,expandedKeys:$r,getRowKey:cr,onTriggerExpand:Lr,expandIcon:xr,expandIconColumnIndex:zn.expandIconColumnIndex,direction:yr,scrollWidth:Un&&$t&&typeof Or=="number"?Or:null,clientWidth:Oi}),Un?Pt:null),Na=(0,pe.Z)(Ma,4),ji=Na[0],aa=Na[1],Ua=Na[2],oo=Na[3],qa=Ua!=null?Ua:Or,Ho=te.useMemo(function(){return{columns:ji,flattenColumns:aa}},[ji,aa]),Po=te.useRef(),ms=te.useRef(),_o=te.useRef(),Za=te.useRef();te.useImperativeHandle(xt,function(){return{nativeElement:Po.current,scrollTo:function(eo){var is;if(_o.current instanceof HTMLElement){var Is=eo.index,as=eo.top,Ol=eo.key;if(ut(as)){var vl;(vl=_o.current)===null||vl===void 0||vl.scrollTo({top:as})}else{var sl,Pl=Ol!=null?Ol:cr(bn[Is]);(sl=_o.current.querySelector('[data-row-key="'.concat(Pl,'"]')))===null||sl===void 0||sl.scrollIntoView()}}else(is=_o.current)!==null&&is!==void 0&&is.scrollTo&&_o.current.scrollTo(eo)}}});var ho=te.useRef(),vo=te.useState(!1),ko=(0,pe.Z)(vo,2),Ao=ko[0],Ga=ko[1],xo=te.useState(!1),so=(0,pe.Z)(xo,2),qo=so[0],No=so[1],us=te.useState(new Map),ps=(0,pe.Z)(us,2),rl=ps[0],mo=ps[1],Nl=$e(aa),cs=Nl.map(function(Xa){return rl.get(Xa)}),Ks=te.useMemo(function(){return cs},[cs.join("_")]),Os=Dt(Ks,aa,yr),gs=Xn&&nt(Xn.y),po=Xn&&nt(qa)||!!zn.fixed,Ps=po&&aa.some(function(Xa){var eo=Xa.fixed;return eo}),fl=te.useRef(),il=Tt(Pn,cn),al=il.isSticky,jl=il.offsetHeader,Vl=il.offsetSummary,Zl=il.offsetScroll,Gl=il.stickyClassName,tu=il.container,Ia=te.useMemo(function(){return pr==null?void 0:pr(bn)},[pr,bn]),Ha=(gs||al)&&te.isValidElement(Ia)&&Ia.type===tt&&Ia.props.fixed,bo,Io,Go;gs&&(Io={overflowY:Gn?"scroll":"auto",maxHeight:Xn.y}),po&&(bo={overflowX:"auto"},gs||(Io={overflowY:"hidden"}),Go={width:qa===!0?"auto":qa,minWidth:"100%"});var Ko=te.useCallback(function(Xa,eo){mo(function(is){if(is.get(Xa)!==eo){var Is=new Map(is);return Is.set(Xa,eo),Is}return is})},[]),Ys=Kt(null),rs=(0,pe.Z)(Ys,2),Tl=rs[0],nu=rs[1];function Fl(Xa,eo){eo&&(typeof eo=="function"?eo(Xa):eo.scrollLeft!==Xa&&(eo.scrollLeft=Xa,eo.scrollLeft!==Xa&&setTimeout(function(){eo.scrollLeft=Xa},0)))}var El=(0,Oe.Z)(function(Xa){var eo=Xa.currentTarget,is=Xa.scrollLeft,Is=yr==="rtl",as=typeof is=="number"?is:eo.scrollLeft,Ol=eo||ii;if(!nu()||nu()===Ol){var vl;Tl(Ol),Fl(as,ms.current),Fl(as,_o.current),Fl(as,ho.current),Fl(as,(vl=fl.current)===null||vl===void 0?void 0:vl.setScrollLeft)}var sl=eo||ms.current;if(sl){var Pl=Un&&$t&&typeof qa=="number"?qa:sl.scrollWidth,vu=sl.clientWidth;if(Pl===vu){Ga(!1),No(!1);return}Is?(Ga(-as0)):(Ga(as>0),No(as1?ke-pn:0,Gn=(0,be.Z)((0,be.Z)((0,be.Z)({},Pt),Xn),{},{flex:"0 0 ".concat(pn,"px"),width:"".concat(pn,"px"),marginRight:bn,pointerEvents:"auto"}),Un=te.useMemo(function(){return yr?Pn<=1:$t===0||Pn===0||Pn>1},[Pn,$t,yr]);Un?Gn.visibility="hidden":yr&&(Gn.height=br==null?void 0:br(Pn));var sr=Un?function(){return null}:gr,cr={};return(Pn===0||$t===0)&&(cr.rowSpan=1,cr.colSpan=1),te.createElement(Yt,(0,ae.Z)({className:Ae()(De,Pr),ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:qn,prefixCls:xt.prefixCls,key:dt,record:er,index:Rn,renderIndex:En,dataIndex:pr,render:sr,shouldCellUpdate:Xt.shouldCellUpdate},bt,{appendNode:vt,additionalProps:(0,be.Z)((0,be.Z)({},Nt),{},{style:Gn},cr)}))}var ki=ci,Ki=["data","index","className","rowKey","style","extra","getHeight"],ua=te.forwardRef(function(_t,xt){var Xt=_t.data,cn=_t.index,wn=_t.className,Rn=_t.rowKey,qn=_t.style,En=_t.extra,er=_t.getHeight,Xn=(0,Ze.Z)(_t,Ki),Pr=Xt.record,yr=Xt.indent,br=Xt.index,gr=le(re,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),pr=gr.scrollX,De=gr.flattenColumns,ke=gr.prefixCls,Ve=gr.fixColumn,qe=gr.componentWidth,it=le(Di,["getComponent"]),dt=it.getComponent,bt=on(Pr,Rn,cn,yr),vt=dt(["body","row"],"div"),Nt=dt(["body","cell"],"div"),Pt=bt.rowSupportExpand,Ht=bt.expanded,$t=bt.rowProps,hn=bt.expandedRowRender,Pn=bt.expandedRowClassName,Dn;if(Pt&&Ht){var pn=hn(Pr,cn,yr+1,Ht),bn=Jt(Pn,Pr,cn,yr),Gn={};Ve&&(Gn={style:(0,Se.Z)({},"--virtual-width","".concat(qe,"px"))});var Un="".concat(ke,"-expanded-row-cell");Dn=te.createElement(vt,{className:Ae()("".concat(ke,"-expanded-row"),"".concat(ke,"-expanded-row-level-").concat(yr+1),bn)},te.createElement(Yt,{component:Nt,prefixCls:ke,className:Ae()(Un,(0,Se.Z)({},"".concat(Un,"-fixed"),Ve)),additionalProps:Gn},pn))}var sr=(0,be.Z)((0,be.Z)({},qn),{},{width:pr});En&&(sr.position="absolute",sr.pointerEvents="none");var cr=te.createElement(vt,(0,ae.Z)({},$t,Xn,{"data-row-key":Rn,ref:Pt?null:xt,className:Ae()(wn,"".concat(ke,"-row"),$t==null?void 0:$t.className,(0,Se.Z)({},"".concat(ke,"-row-extra"),En)),style:(0,be.Z)((0,be.Z)({},sr),$t==null?void 0:$t.style)}),De.map(function(ni,Tr){return te.createElement(ki,{key:Tr,component:Nt,rowInfo:bt,column:ni,colIndex:Tr,indent:yr,index:cn,renderIndex:br,record:Pr,inverse:En,getHeight:er})}));return Pt?te.createElement("div",{ref:xt},cr,Dn):cr}),kn=de(ua),qi=kn,Qi=te.forwardRef(function(_t,xt){var Xt=_t.data,cn=_t.onScroll,wn=le(re,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Rn=wn.flattenColumns,qn=wn.onColumnResize,En=wn.getRowKey,er=wn.expandedKeys,Xn=wn.prefixCls,Pr=wn.childrenColumnName,yr=wn.scrollX,br=wn.direction,gr=le(Di),pr=gr.sticky,De=gr.scrollY,ke=gr.listItemHeight,Ve=gr.getComponent,qe=gr.onScroll,it=te.useRef(),dt=nn(Xt,Pr,er,En),bt=te.useMemo(function(){var Dn=0;return Rn.map(function(pn){var bn=pn.width,Gn=pn.key;return Dn+=bn,[Gn,bn,Dn]})},[Rn]),vt=te.useMemo(function(){return bt.map(function(Dn){return Dn[2]})},[bt]);te.useEffect(function(){bt.forEach(function(Dn){var pn=(0,pe.Z)(Dn,2),bn=pn[0],Gn=pn[1];qn(bn,Gn)})},[bt]),te.useImperativeHandle(xt,function(){var Dn,pn={scrollTo:function(Gn){var Un;(Un=it.current)===null||Un===void 0||Un.scrollTo(Gn)},nativeElement:(Dn=it.current)===null||Dn===void 0?void 0:Dn.nativeElement};return Object.defineProperty(pn,"scrollLeft",{get:function(){var Gn;return((Gn=it.current)===null||Gn===void 0?void 0:Gn.getScrollInfo().x)||0},set:function(Gn){var Un;(Un=it.current)===null||Un===void 0||Un.scrollTo({left:Gn})}}),pn});var Nt=function(pn,bn){var Gn,Un=(Gn=dt[bn])===null||Gn===void 0?void 0:Gn.record,sr=pn.onCell;if(sr){var cr,ni=sr(Un,bn);return(cr=ni==null?void 0:ni.rowSpan)!==null&&cr!==void 0?cr:1}return 1},Pt=function(pn){var bn=pn.start,Gn=pn.end,Un=pn.getSize,sr=pn.offsetY;if(Gn<0)return null;for(var cr=Rn.filter(function(xr){return Nt(xr,bn)===0}),ni=bn,Tr=function(Yr){if(cr=cr.filter(function(Lr){return Nt(Lr,Yr)===0}),!cr.length)return ni=Yr,1},Si=bn;Si>=0&&!Tr(Si);Si-=1);for(var Ui=Rn.filter(function(xr){return Nt(xr,Gn)!==1}),Fi=Gn,jr=function(Yr){if(Ui=Ui.filter(function(Lr){return Nt(Lr,Yr)!==1}),!Ui.length)return Fi=Math.max(Yr-1,Gn),1},Vr=Gn;Vr1})&&yi.push(Yr)},fr=ni;fr<=Fi;fr+=1)zn(fr);var $r=yi.map(function(xr){var Yr=dt[xr],Lr=En(Yr.record,xr),Or=function(Oi){var Ea=xr+Oi-1,Ma=En(dt[Ea].record,Ea),Na=Un(Lr,Ma);return Na.bottom-Na.top},Bi=Un(Lr);return te.createElement(qi,{key:xr,data:Yr,rowKey:Lr,index:xr,style:{top:-sr+Bi.top},extra:!0,getHeight:Or})});return $r},Ht=te.useMemo(function(){return{columnsOffset:vt}},[vt]),$t="".concat(Xn,"-tbody"),hn=Ve(["body","wrapper"]),Pn={};return pr&&(Pn.position="sticky",Pn.bottom=0,(0,ye.Z)(pr)==="object"&&pr.offsetScroll&&(Pn.bottom=pr.offsetScroll)),te.createElement(oi.Provider,{value:Ht},te.createElement(Qr.Z,{fullHeight:!1,ref:it,prefixCls:"".concat($t,"-virtual"),styles:{horizontalScrollBar:Pn},className:$t,height:De,itemHeight:ke||24,data:dt,itemKey:function(pn){return En(pn.record)},component:hn,scrollWidth:yr,direction:br,onVirtualScroll:function(pn){var bn,Gn=pn.x;cn({currentTarget:(bn=it.current)===null||bn===void 0?void 0:bn.nativeElement,scrollLeft:Gn})},onScroll:qe,extraRender:Pt},function(Dn,pn,bn){var Gn=En(Dn.record,pn);return te.createElement(qi,{data:Dn,rowKey:Gn,index:pn,style:bn.style})}))}),ra=de(Qi),_i=ra,Ti=function(xt,Xt){var cn=Xt.ref,wn=Xt.onScroll;return te.createElement(_i,{ref:cn,data:xt,onScroll:wn})};function Xr(_t,xt){var Xt=_t.data,cn=_t.columns,wn=_t.scroll,Rn=_t.sticky,qn=_t.prefixCls,En=qn===void 0?Wr:qn,er=_t.className,Xn=_t.listItemHeight,Pr=_t.components,yr=_t.onScroll,br=wn||{},gr=br.x,pr=br.y;typeof gr!="number"&&(gr=1),typeof pr!="number"&&(pr=500);var De=(0,gt.zX)(function(qe,it){return(0,Ue.Z)(Pr,qe)||it}),ke=(0,gt.zX)(yr),Ve=te.useMemo(function(){return{sticky:Rn,scrollY:pr,listItemHeight:Xn,getComponent:De,onScroll:ke}},[Rn,pr,Xn,De,ke]);return te.createElement(Di.Provider,{value:Ve},te.createElement(ui,(0,ae.Z)({},_t,{className:Ae()(er,"".concat(En,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},wn),{},{x:gr}),components:(0,be.Z)((0,be.Z)({},Pr),{},{body:Xt!=null&&Xt.length?Ti:void 0}),columns:cn,internalHooks:Me,tailor:!0,ref:xt})))}var rr=te.forwardRef(Xr);function Dr(_t){return se(rr,_t)}var Fr=Dr(),or=null,si=_t=>null,Ir=_t=>null,Hr=Ce(84105),ri=Ce(82661),un=Ce(34643),Vn=Ce(34061),Sn=Ce(18929);function Rr(_t){const[xt,Xt]=(0,te.useState)(null);return[(0,te.useCallback)((Rn,qn,En)=>{const er=xt!=null?xt:Rn,Xn=Math.min(er||0,Rn),Pr=Math.max(er||0,Rn),yr=qn.slice(Xn,Pr+1).map(pr=>_t(pr)),br=yr.some(pr=>!En.has(pr)),gr=[];return yr.forEach(pr=>{br?(En.has(pr)||gr.push(pr),En.add(pr)):(En.delete(pr),gr.push(pr))}),Xt(br?Pr:null),gr},[xt]),Rn=>{Xt(Rn)}]}var ti=Ce(32383),gn=Ce(62673),mi=Ce(75727),Nr=Ce(47889);const Ar={},pi="SELECT_ALL",Gi="SELECT_INVERT",gi="SELECT_NONE",Wi=[],Jr=(_t,xt)=>{let Xt=[];return(xt||[]).forEach(cn=>{Xt.push(cn),cn&&typeof cn=="object"&&_t in cn&&(Xt=[].concat((0,Nn.Z)(Xt),(0,Nn.Z)(Jr(_t,cn[_t]))))}),Xt};var Zr=(_t,xt)=>{const{preserveSelectedRowKeys:Xt,selectedRowKeys:cn,defaultSelectedRowKeys:wn,getCheckboxProps:Rn,onChange:qn,onSelect:En,onSelectAll:er,onSelectInvert:Xn,onSelectNone:Pr,onSelectMultiple:yr,columnWidth:br,type:gr,selections:pr,fixed:De,renderCell:ke,hideSelectAll:Ve,checkStrictly:qe=!0}=xt||{},{prefixCls:it,data:dt,pageData:bt,getRecordByKey:vt,getRowKey:Nt,expandType:Pt,childrenColumnName:Ht,locale:$t,getPopupContainer:hn}=_t,Pn=(0,ti.ln)("Table"),[Dn,pn]=Rr(xr=>xr),[bn,Gn]=(0,Sn.Z)(cn||wn||Wi,{value:cn}),Un=te.useRef(new Map),sr=(0,te.useCallback)(xr=>{if(Xt){const Yr=new Map;xr.forEach(Lr=>{let Or=vt(Lr);!Or&&Un.current.has(Lr)&&(Or=Un.current.get(Lr)),Yr.set(Lr,Or)}),Un.current=Yr}},[vt,Xt]);te.useEffect(()=>{sr(bn)},[bn]);const cr=(0,te.useMemo)(()=>Jr(Ht,bt),[Ht,bt]),{keyEntities:ni}=(0,te.useMemo)(()=>{if(qe)return{keyEntities:null};let xr=dt;if(Xt){const Yr=new Set(cr.map((Or,Bi)=>Nt(Or,Bi))),Lr=Array.from(Un.current).reduce((Or,Bi)=>{let[na,Oi]=Bi;return Yr.has(na)?Or:Or.concat(Oi)},[]);xr=[].concat((0,Nn.Z)(xr),(0,Nn.Z)(Lr))}return(0,Vn.I8)(xr,{externalGetKey:Nt,childrenPropName:Ht})},[dt,Nt,qe,Ht,Xt,cr]),Tr=(0,te.useMemo)(()=>{const xr=new Map;return cr.forEach((Yr,Lr)=>{const Or=Nt(Yr,Lr),Bi=(Rn?Rn(Yr):null)||{};xr.set(Or,Bi)}),xr},[cr,Nt,Rn]),Si=(0,te.useCallback)(xr=>{const Yr=Nt(xr);let Lr;return Tr.has(Yr)?Lr=Tr.get(Nt(xr)):Lr=Rn?Rn(xr):void 0,!!(Lr!=null&&Lr.disabled)},[Tr,Nt]),[Ui,Fi]=(0,te.useMemo)(()=>{if(qe)return[bn||[],[]];const{checkedKeys:xr,halfCheckedKeys:Yr}=(0,un.S)(bn,!0,ni,Si);return[xr||[],Yr]},[bn,qe,ni,Si]),jr=(0,te.useMemo)(()=>{const xr=gr==="radio"?Ui.slice(0,1):Ui;return new Set(xr)},[Ui,gr]),Vr=(0,te.useMemo)(()=>gr==="radio"?new Set:new Set(Fi),[Fi,gr]);te.useEffect(()=>{xt||Gn(Wi)},[!!xt]);const yi=(0,te.useCallback)((xr,Yr)=>{let Lr,Or;sr(xr),Xt?(Lr=xr,Or=xr.map(Bi=>Un.current.get(Bi))):(Lr=[],Or=[],xr.forEach(Bi=>{const na=vt(Bi);na!==void 0&&(Lr.push(Bi),Or.push(na))})),Gn(Lr),qn==null||qn(Lr,Or,{type:Yr})},[Gn,vt,qn,Xt]),zn=(0,te.useCallback)((xr,Yr,Lr,Or)=>{if(En){const Bi=Lr.map(na=>vt(na));En(vt(xr),Yr,Bi,Or)}yi(Lr,"single")},[En,vt,yi]),fr=(0,te.useMemo)(()=>!pr||Ve?null:(pr===!0?[pi,Gi,gi]:pr).map(Yr=>Yr===pi?{key:"all",text:$t.selectionAll,onSelect(){yi(dt.map((Lr,Or)=>Nt(Lr,Or)).filter(Lr=>{const Or=Tr.get(Lr);return!(Or!=null&&Or.disabled)||jr.has(Lr)}),"all")}}:Yr===Gi?{key:"invert",text:$t.selectInvert,onSelect(){const Lr=new Set(jr);bt.forEach((Bi,na)=>{const Oi=Nt(Bi,na),Ea=Tr.get(Oi);Ea!=null&&Ea.disabled||(Lr.has(Oi)?Lr.delete(Oi):Lr.add(Oi))});const Or=Array.from(Lr);Xn&&(Pn.deprecated(!1,"onSelectInvert","onChange"),Xn(Or)),yi(Or,"invert")}}:Yr===gi?{key:"none",text:$t.selectNone,onSelect(){Pr==null||Pr(),yi(Array.from(jr).filter(Lr=>{const Or=Tr.get(Lr);return Or==null?void 0:Or.disabled}),"none")}}:Yr).map(Yr=>Object.assign(Object.assign({},Yr),{onSelect:function(){for(var Lr,Or,Bi=arguments.length,na=new Array(Bi),Oi=0;Oi{var Yr;if(!xt)return xr.filter(Za=>Za!==Ar);let Lr=(0,Nn.Z)(xr);const Or=new Set(jr),Bi=cr.map(Nt).filter(Za=>!Tr.get(Za).disabled),na=Bi.every(Za=>Or.has(Za)),Oi=Bi.some(Za=>Or.has(Za)),Ea=()=>{const Za=[];na?Bi.forEach(vo=>{Or.delete(vo),Za.push(vo)}):Bi.forEach(vo=>{Or.has(vo)||(Or.add(vo),Za.push(vo))});const ho=Array.from(Or);er==null||er(!na,ho.map(vo=>vt(vo)),Za.map(vo=>vt(vo))),yi(ho,"all"),pn(null)};let Ma,Na;if(gr!=="radio"){let Za;if(fr){const Ga={getPopupContainer:hn,items:fr.map((xo,so)=>{const{key:qo,text:No,onSelect:us}=xo;return{key:qo!=null?qo:so,onClick:()=>{us==null||us(Bi)},label:No}})};Za=te.createElement("div",{className:`${it}-selection-extra`},te.createElement(mi.Z,{menu:Ga,getPopupContainer:hn},te.createElement("span",null,te.createElement(Hr.Z,null))))}const ho=cr.map((Ga,xo)=>{const so=Nt(Ga,xo),qo=Tr.get(so)||{};return Object.assign({checked:Or.has(so)},qo)}).filter(Ga=>{let{disabled:xo}=Ga;return xo}),vo=!!ho.length&&ho.length===cr.length,ko=vo&&ho.every(Ga=>{let{checked:xo}=Ga;return xo}),Ao=vo&&ho.some(Ga=>{let{checked:xo}=Ga;return xo});Na=te.createElement(gn.default,{checked:vo?ko:!!cr.length&&na,indeterminate:vo?!ko&&Ao:!na&&Oi,onChange:Ea,disabled:cr.length===0||vo,"aria-label":Za?"Custom selection":"Select all",skipGroup:!0}),Ma=!Ve&&te.createElement("div",{className:`${it}-selection`},Na,Za)}let ji;gr==="radio"?ji=(Za,ho,vo)=>{const ko=Nt(ho,vo),Ao=Or.has(ko),Ga=Tr.get(ko);return{node:te.createElement(Nr.ZP,Object.assign({},Ga,{checked:Ao,onClick:xo=>{var so;xo.stopPropagation(),(so=Ga==null?void 0:Ga.onClick)===null||so===void 0||so.call(Ga,xo)},onChange:xo=>{var so;Or.has(ko)||zn(ko,!0,[ko],xo.nativeEvent),(so=Ga==null?void 0:Ga.onChange)===null||so===void 0||so.call(Ga,xo)}})),checked:Ao}}:ji=(Za,ho,vo)=>{var ko;const Ao=Nt(ho,vo),Ga=Or.has(Ao),xo=Vr.has(Ao),so=Tr.get(Ao);let qo;return Pt==="nest"?qo=xo:qo=(ko=so==null?void 0:so.indeterminate)!==null&&ko!==void 0?ko:xo,{node:te.createElement(gn.default,Object.assign({},so,{indeterminate:qo,checked:Ga,skipGroup:!0,onClick:No=>{var us;No.stopPropagation(),(us=so==null?void 0:so.onClick)===null||us===void 0||us.call(so,No)},onChange:No=>{var us;const{nativeEvent:ps}=No,{shiftKey:rl}=ps,mo=Bi.findIndex(cs=>cs===Ao),Nl=Ui.some(cs=>Bi.includes(cs));if(rl&&qe&&Nl){const cs=Dn(mo,Bi,Or),Ks=Array.from(Or);yr==null||yr(!Ga,Ks.map(Os=>vt(Os)),cs.map(Os=>vt(Os))),yi(Ks,"multiple")}else{const cs=Ui;if(qe){const Ks=Ga?(0,ri._5)(cs,Ao):(0,ri.L0)(cs,Ao);zn(Ao,!Ga,Ks,ps)}else{const Ks=(0,un.S)([].concat((0,Nn.Z)(cs),[Ao]),!0,ni,Si),{checkedKeys:Os,halfCheckedKeys:gs}=Ks;let po=Os;if(Ga){const Ps=new Set(Os);Ps.delete(Ao),po=(0,un.S)(Array.from(Ps),{checked:!1,halfCheckedKeys:gs},ni,Si).checkedKeys}zn(Ao,!Ga,po,ps)}}pn(Ga?null:mo),(us=so==null?void 0:so.onChange)===null||us===void 0||us.call(so,No)}})),checked:Ga}};const aa=(Za,ho,vo)=>{const{node:ko,checked:Ao}=ji(Za,ho,vo);return ke?ke(Ao,ho,vo,ko):ko};if(!Lr.includes(Ar))if(Lr.findIndex(Za=>{var ho;return((ho=Za[mr])===null||ho===void 0?void 0:ho.columnType)==="EXPAND_COLUMN"})===0){const[Za,...ho]=Lr;Lr=[Za,Ar].concat((0,Nn.Z)(ho))}else Lr=[Ar].concat((0,Nn.Z)(Lr));const Ua=Lr.indexOf(Ar);Lr=Lr.filter((Za,ho)=>Za!==Ar||ho===Ua);const oo=Lr[Ua-1],qa=Lr[Ua+1];let Ho=De;Ho===void 0&&((qa==null?void 0:qa.fixed)!==void 0?Ho=qa.fixed:(oo==null?void 0:oo.fixed)!==void 0&&(Ho=oo.fixed)),Ho&&oo&&((Yr=oo[mr])===null||Yr===void 0?void 0:Yr.columnType)==="EXPAND_COLUMN"&&oo.fixed===void 0&&(oo.fixed=Ho);const Po=Ae()(`${it}-selection-col`,{[`${it}-selection-col-with-dropdown`]:pr&&gr==="checkbox"}),ms=()=>xt!=null&&xt.columnTitle?typeof xt.columnTitle=="function"?xt.columnTitle(Na):xt.columnTitle:Ma,_o={fixed:Ho,width:br,className:`${it}-selection-column`,title:ms(),render:aa,onCell:xt.onCell,[mr]:{className:Po}};return Lr.map(Za=>Za===Ar?_o:Za)},[Nt,cr,xt,Ui,jr,Vr,br,fr,Pt,Tr,yr,zn,Si]),jr]},Vi=Ce(2738);function sa(_t,xt){return _t._antProxy=_t._antProxy||{},Object.keys(xt).forEach(Xt=>{if(!(Xt in _t._antProxy)){const cn=_t[Xt];_t._antProxy[Xt]=cn,_t[Xt]=xt[Xt]}}),_t}function vi(_t,xt){return(0,te.useImperativeHandle)(_t,()=>{const Xt=xt(),{nativeElement:cn}=Xt;return typeof Proxy!="undefined"?new Proxy(cn,{get(wn,Rn){return Xt[Rn]?Xt[Rn]:Reflect.get(wn,Rn)}}):sa(cn,Xt)})}var Ni=Ce(83010),Ii=Ce(48755),Mi=Ce(38406),fa=Ce(83397),ca=Ce(31756),la=Ce(13783),zi=Ce(85981),Da=Ce(31709),Ca=Ce(29787),Ra=Ce(57700);function to(_t){return xt=>{const{prefixCls:Xt,onExpand:cn,record:wn,expanded:Rn,expandable:qn}=xt,En=`${Xt}-row-expand-icon`;return te.createElement("button",{type:"button",onClick:er=>{cn(wn,er),er.stopPropagation()},className:Ae()(En,{[`${En}-spaced`]:!qn,[`${En}-expanded`]:qn&&Rn,[`${En}-collapsed`]:qn&&!Rn}),"aria-label":Rn?_t.collapse:_t.expand,"aria-expanded":Rn})}}var bi=to;function Yi(_t){return(Xt,cn)=>{const wn=Xt.querySelector(`.${_t}-container`);let Rn=cn;if(wn){const qn=getComputedStyle(wn),En=parseInt(qn.borderLeftWidth,10),er=parseInt(qn.borderRightWidth,10);Rn=cn-En-er}return Rn}}const Ei=(_t,xt)=>"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:xt;function Ci(_t,xt){return xt?`${xt}-${_t}`:`${_t}`}const kr=(_t,xt)=>typeof _t=="function"?_t(xt):_t,Zi=(_t,xt)=>{const Xt=kr(_t,xt);return Object.prototype.toString.call(Xt)==="[object Object]"?"":Xt};var ma={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"},ba=ma,ir=Ce(7657),Ji=function(xt,Xt){return te.createElement(ir.Z,(0,ae.Z)({},xt,{ref:Xt,icon:ba}))},Va=te.forwardRef(Ji),no=Va,Ya=Ce(9981),xi=Ce(40192);function pa(_t){const xt=te.useRef(_t),Xt=(0,xi.Z)();return[()=>xt.current,cn=>{xt.current=cn,Xt()}]}var _a=Ce(7939),oa=Ce(584),Wa=Ce(93041),Ka=Ce(78857),fo=Ce(18287),Eo=Ce(47472),io=Ce(49397),Ba=_t=>{const{value:xt,filterSearch:Xt,tablePrefixCls:cn,locale:wn,onChange:Rn}=_t;return Xt?te.createElement("div",{className:`${cn}-filter-dropdown-search`},te.createElement(io.Z,{prefix:te.createElement(Eo.Z,null),placeholder:wn.filterSearchPlaceholder,onChange:Rn,value:xt,htmlSize:1,className:`${cn}-filter-dropdown-search-input`})):null},Fa=Ce(10228);const Wo=_t=>{const{keyCode:xt}=_t;xt===Fa.Z.ENTER&&_t.stopPropagation()};var Oo=te.forwardRef((_t,xt)=>te.createElement("div",{className:_t.className,onClick:Xt=>Xt.stopPropagation(),onKeyDown:Wo,ref:xt},_t.children));function Do(_t){let xt=[];return(_t||[]).forEach(Xt=>{let{value:cn,children:wn}=Xt;xt.push(cn),wn&&(xt=[].concat((0,Nn.Z)(xt),(0,Nn.Z)(Do(wn))))}),xt}function Xi(_t){return _t.some(xt=>{let{children:Xt}=xt;return Xt})}function Pi(_t,xt){return typeof xt=="string"||typeof xt=="number"?xt==null?void 0:xt.toString().toLowerCase().includes(_t.trim().toLowerCase()):!1}function lo(_t){let{filters:xt,prefixCls:Xt,filteredKeys:cn,filterMultiple:wn,searchValue:Rn,filterSearch:qn}=_t;return xt.map((En,er)=>{const Xn=String(En.value);if(En.children)return{key:Xn||er,label:En.text,popupClassName:`${Xt}-dropdown-submenu`,children:lo({filters:En.children,prefixCls:Xt,filteredKeys:cn,filterMultiple:wn,searchValue:Rn,filterSearch:qn})};const Pr=wn?gn.default:Nr.ZP,yr={key:En.value!==void 0?Xn:er,label:te.createElement(te.Fragment,null,te.createElement(Pr,{checked:cn.includes(Xn)}),te.createElement("span",null,En.text))};return Rn.trim()?typeof qn=="function"?qn(Rn,En)?yr:null:Pi(Rn,En.text)?yr:null:yr})}function Qa(_t){return _t||[]}var zr=_t=>{var xt,Xt,cn,wn;const{tablePrefixCls:Rn,prefixCls:qn,column:En,dropdownPrefixCls:er,columnKey:Xn,filterOnClose:Pr,filterMultiple:yr,filterMode:br="menu",filterSearch:gr=!1,filterState:pr,triggerFilter:De,locale:ke,children:Ve,getPopupContainer:qe,rootClassName:it}=_t,{filterResetToDefaultFilteredValue:dt,defaultFilteredValue:bt,filterDropdownProps:vt={},filterDropdownOpen:Nt,filterDropdownVisible:Pt,onFilterDropdownVisibleChange:Ht,onFilterDropdownOpenChange:$t}=En,[hn,Pn]=te.useState(!1),Dn=!!(pr&&(!((xt=pr.filteredKeys)===null||xt===void 0)&&xt.length||pr.forceFiltered)),pn=ji=>{var aa;Pn(ji),(aa=vt.onOpenChange)===null||aa===void 0||aa.call(vt,ji),$t==null||$t(ji),Ht==null||Ht(ji)},bn=(wn=(cn=(Xt=vt.open)!==null&&Xt!==void 0?Xt:Nt)!==null&&cn!==void 0?cn:Pt)!==null&&wn!==void 0?wn:hn,Gn=pr==null?void 0:pr.filteredKeys,[Un,sr]=pa(Qa(Gn)),cr=ji=>{let{selectedKeys:aa}=ji;sr(aa)},ni=(ji,aa)=>{let{node:Ua,checked:oo}=aa;cr(yr?{selectedKeys:ji}:{selectedKeys:oo&&Ua.key?[Ua.key]:[]})};te.useEffect(()=>{hn&&cr({selectedKeys:Qa(Gn)})},[Gn]);const[Tr,Si]=te.useState([]),Ui=ji=>{Si(ji)},[Fi,jr]=te.useState(""),Vr=ji=>{const{value:aa}=ji.target;jr(aa)};te.useEffect(()=>{hn||jr("")},[hn]);const yi=ji=>{const aa=ji!=null&&ji.length?ji:null;if(aa===null&&(!pr||!pr.filteredKeys)||(0,ue.Z)(aa,pr==null?void 0:pr.filteredKeys,!0))return null;De({column:En,key:Xn,filteredKeys:aa})},zn=()=>{pn(!1),yi(Un())},fr=function(){let{confirm:ji,closeDropdown:aa}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ji&&yi([]),aa&&pn(!1),jr(""),sr(dt?(bt||[]).map(Ua=>String(Ua)):[])},$r=function(){let{closeDropdown:ji}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ji&&pn(!1),yi(Un())},xr=(ji,aa)=>{aa.source==="trigger"&&(ji&&Gn!==void 0&&sr(Qa(Gn)),pn(ji),!ji&&!En.filterDropdown&&Pr&&zn())},Yr=Ae()({[`${er}-menu-without-submenu`]:!Xi(En.filters||[])}),Lr=ji=>{if(ji.target.checked){const aa=Do(En==null?void 0:En.filters).map(Ua=>String(Ua));sr(aa)}else sr([])},Or=ji=>{let{filters:aa}=ji;return(aa||[]).map((Ua,oo)=>{const qa=String(Ua.value),Ho={title:Ua.text,key:Ua.value!==void 0?qa:String(oo)};return Ua.children&&(Ho.children=Or({filters:Ua.children})),Ho})},Bi=ji=>{var aa;return Object.assign(Object.assign({},ji),{text:ji.title,value:ji.key,children:((aa=ji.children)===null||aa===void 0?void 0:aa.map(Ua=>Bi(Ua)))||[]})};let na;const{direction:Oi,renderEmpty:Ea}=te.useContext(Ii.E_);if(typeof En.filterDropdown=="function")na=En.filterDropdown({prefixCls:`${er}-custom`,setSelectedKeys:ji=>cr({selectedKeys:ji}),selectedKeys:Un(),confirm:$r,clearFilters:fr,filters:En.filters,visible:bn,close:()=>{pn(!1)}});else if(En.filterDropdown)na=En.filterDropdown;else{const ji=Un()||[],aa=()=>{var oo,qa;const Ho=(oo=Ea==null?void 0:Ea("Table.filter"))!==null&&oo!==void 0?oo:te.createElement(oa.Z,{image:oa.Z.PRESENTED_IMAGE_SIMPLE,description:ke.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((En.filters||[]).length===0)return Ho;if(br==="tree")return te.createElement(te.Fragment,null,te.createElement(Ba,{filterSearch:gr,value:Fi,onChange:Vr,tablePrefixCls:Rn,locale:ke}),te.createElement("div",{className:`${Rn}-filter-dropdown-tree`},yr?te.createElement(gn.default,{checked:ji.length===Do(En.filters).length,indeterminate:ji.length>0&&ji.lengthtypeof gr=="function"?gr(Fi,Bi(_o)):Pi(Fi,_o.title):void 0})));const Po=lo({filters:En.filters||[],filterSearch:gr,prefixCls:qn,filteredKeys:Un(),filterMultiple:yr,searchValue:Fi}),ms=Po.every(_o=>_o===null);return te.createElement(te.Fragment,null,te.createElement(Ba,{filterSearch:gr,value:Fi,onChange:Vr,tablePrefixCls:Rn,locale:ke}),ms?Ho:te.createElement(Wa.default,{selectable:!0,multiple:yr,prefixCls:`${er}-menu`,className:Yr,onSelect:cr,onDeselect:cr,selectedKeys:ji,getPopupContainer:qe,openKeys:Tr,onOpenChange:Ui,items:Po}))},Ua=()=>dt?(0,ue.Z)((bt||[]).map(oo=>String(oo)),ji,!0):ji.length===0;na=te.createElement(te.Fragment,null,aa(),te.createElement("div",{className:`${qn}-dropdown-btns`},te.createElement(_a.ZP,{type:"link",size:"small",disabled:Ua(),onClick:()=>fr()},ke.filterReset),te.createElement(_a.ZP,{type:"primary",size:"small",onClick:zn},ke.filterConfirm)))}En.filterDropdown&&(na=te.createElement(Ka.J,{selectable:void 0},na)),na=te.createElement(Oo,{className:`${qn}-dropdown`},na);const Ma=()=>{let ji;return typeof En.filterIcon=="function"?ji=En.filterIcon(Dn):En.filterIcon?ji=En.filterIcon:ji=te.createElement(no,null),te.createElement("span",{role:"button",tabIndex:-1,className:Ae()(`${qn}-trigger`,{active:Dn}),onClick:aa=>{aa.stopPropagation()}},ji)},Na=(0,Ya.Z)({trigger:["click"],placement:Oi==="rtl"?"bottomLeft":"bottomRight",children:Ma(),getPopupContainer:qe},Object.assign(Object.assign({},vt),{rootClassName:Ae()(it,vt.rootClassName),open:bn,onOpenChange:xr,dropdownRender:()=>typeof(vt==null?void 0:vt.dropdownRender)=="function"?vt.dropdownRender(na):na}));return te.createElement("div",{className:`${qn}-column`},te.createElement("span",{className:`${Rn}-column-title`},Ve),te.createElement(mi.Z,Object.assign({},Na)))};const fi=(_t,xt,Xt)=>{let cn=[];return(_t||[]).forEach((wn,Rn)=>{var qn;const En=Ci(Rn,Xt);if(wn.filters||"filterDropdown"in wn||"onFilter"in wn)if("filteredValue"in wn){let er=wn.filteredValue;"filterDropdown"in wn||(er=(qn=er==null?void 0:er.map(String))!==null&&qn!==void 0?qn:er),cn.push({column:wn,key:Ei(wn,En),filteredKeys:er,forceFiltered:wn.filtered})}else cn.push({column:wn,key:Ei(wn,En),filteredKeys:xt&&wn.defaultFilteredValue?wn.defaultFilteredValue:void 0,forceFiltered:wn.filtered});"children"in wn&&(cn=[].concat((0,Nn.Z)(cn),(0,Nn.Z)(fi(wn.children,xt,En))))}),cn};function Sa(_t,xt,Xt,cn,wn,Rn,qn,En,er){return Xt.map((Xn,Pr)=>{const yr=Ci(Pr,En),{filterOnClose:br=!0,filterMultiple:gr=!0,filterMode:pr,filterSearch:De}=Xn;let ke=Xn;if(ke.filters||ke.filterDropdown){const Ve=Ei(ke,yr),qe=cn.find(it=>{let{key:dt}=it;return Ve===dt});ke=Object.assign(Object.assign({},ke),{title:it=>te.createElement(zr,{tablePrefixCls:_t,prefixCls:`${_t}-filter`,dropdownPrefixCls:xt,column:ke,columnKey:Ve,filterState:qe,filterOnClose:br,filterMultiple:gr,filterMode:pr,filterSearch:De,triggerFilter:Rn,locale:wn,getPopupContainer:qn,rootClassName:er},kr(Xn.title,it))})}return"children"in ke&&(ke=Object.assign(Object.assign({},ke),{children:Sa(_t,xt,ke.children,cn,wn,Rn,qn,yr,er)})),ke})}const Ri=_t=>{const xt={};return _t.forEach(Xt=>{let{key:cn,filteredKeys:wn,column:Rn}=Xt;const qn=cn,{filters:En,filterDropdown:er}=Rn;if(er)xt[qn]=wn||null;else if(Array.isArray(wn)){const Xn=Do(En);xt[qn]=Xn.filter(Pr=>wn.includes(String(Pr)))}else xt[qn]=null}),xt},hi=(_t,xt,Xt)=>xt.reduce((wn,Rn)=>{const{column:{onFilter:qn,filters:En},filteredKeys:er}=Rn;return qn&&er&&er.length?wn.map(Xn=>Object.assign({},Xn)).filter(Xn=>er.some(Pr=>{const yr=Do(En),br=yr.findIndex(pr=>String(pr)===String(Pr)),gr=br!==-1?yr[br]:Pr;return Xn[Xt]&&(Xn[Xt]=hi(Xn[Xt],xt,Xt)),qn(gr,Xn)})):wn},_t),wa=_t=>_t.flatMap(xt=>"children"in xt?[xt].concat((0,Nn.Z)(wa(xt.children||[]))):[xt]);var ga=_t=>{const{prefixCls:xt,dropdownPrefixCls:Xt,mergedColumns:cn,onFilterChange:wn,getPopupContainer:Rn,locale:qn,rootClassName:En}=_t,er=(0,ti.ln)("Table"),Xn=te.useMemo(()=>wa(cn||[]),[cn]),[Pr,yr]=te.useState(()=>fi(Xn,!0)),br=te.useMemo(()=>{const ke=fi(Xn,!1);if(ke.length===0)return ke;let Ve=!0,qe=!0;if(ke.forEach(it=>{let{filteredKeys:dt}=it;dt!==void 0?Ve=!1:qe=!1}),Ve){const it=(Xn||[]).map((dt,bt)=>Ei(dt,Ci(bt)));return Pr.filter(dt=>{let{key:bt}=dt;return it.includes(bt)}).map(dt=>{const bt=Xn[it.findIndex(vt=>vt===dt.key)];return Object.assign(Object.assign({},dt),{column:Object.assign(Object.assign({},dt.column),bt),forceFiltered:bt.filtered})})}return ke},[Xn,Pr]),gr=te.useMemo(()=>Ri(br),[br]),pr=ke=>{const Ve=br.filter(qe=>{let{key:it}=qe;return it!==ke.key});Ve.push(ke),yr(Ve),wn(Ri(Ve),Ve)};return[ke=>Sa(xt,Xt,ke,br,qn,pr,Rn,void 0,En),br,gr]},ka=(_t,xt,Xt)=>{const cn=te.useRef({});function wn(Rn){var qn;if(!cn.current||cn.current.data!==_t||cn.current.childrenColumnName!==xt||cn.current.getRowKey!==Xt){let er=function(Xn){Xn.forEach((Pr,yr)=>{const br=Xt(Pr,yr);En.set(br,Pr),Pr&&typeof Pr=="object"&&xt in Pr&&er(Pr[xt]||[])})};const En=new Map;er(_t),cn.current={data:_t,childrenColumnName:xt,kvMap:En,getRowKey:Xt}}return(qn=cn.current.kvMap)===null||qn===void 0?void 0:qn.get(Rn)}return[wn]},Co=function(_t,xt){var Xt={};for(var cn in _t)Object.prototype.hasOwnProperty.call(_t,cn)&&xt.indexOf(cn)<0&&(Xt[cn]=_t[cn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,cn=Object.getOwnPropertySymbols(_t);wn{const Rn=_t[wn];typeof Rn!="function"&&(Xt[wn]=Rn)}),Xt}function Jo(_t,xt,Xt){const cn=Xt&&typeof Xt=="object"?Xt:{},{total:wn=0}=cn,Rn=Co(cn,["total"]),[qn,En]=(0,te.useState)(()=>({current:"defaultCurrent"in Rn?Rn.defaultCurrent:1,pageSize:"defaultPageSize"in Rn?Rn.defaultPageSize:Qo})),er=(0,Ya.Z)(qn,Rn,{total:wn>0?wn:_t}),Xn=Math.ceil((wn||_t)/er.pageSize);er.current>Xn&&(er.current=Xn||1);const Pr=(br,gr)=>{En({current:br!=null?br:1,pageSize:gr||er.pageSize})},yr=(br,gr)=>{var pr;Xt&&((pr=Xt.onChange)===null||pr===void 0||pr.call(Xt,br,gr)),Pr(br,gr),xt(br,gr||(er==null?void 0:er.pageSize))};return Xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},er),{onChange:yr}),Pr]}var wo=Jo,Ns=Ce(89489),uo=Ce(59477),As=Ce(25399);const Ds="ascend",_s="descend",xs=_t=>typeof _t.sorter=="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1,To=_t=>typeof _t=="function"?_t:_t&&typeof _t=="object"&&_t.compare?_t.compare:!1,Ts=(_t,xt)=>xt?_t[_t.indexOf(xt)+1]:_t[0],ls=(_t,xt,Xt)=>{let cn=[];const wn=(Rn,qn)=>{cn.push({column:Rn,key:Ei(Rn,qn),multiplePriority:xs(Rn),sortOrder:Rn.sortOrder})};return(_t||[]).forEach((Rn,qn)=>{const En=Ci(qn,Xt);Rn.children?("sortOrder"in Rn&&wn(Rn,En),cn=[].concat((0,Nn.Z)(cn),(0,Nn.Z)(ls(Rn.children,xt,En)))):Rn.sorter&&("sortOrder"in Rn?wn(Rn,En):xt&&Rn.defaultSortOrder&&cn.push({column:Rn,key:Ei(Rn,En),multiplePriority:xs(Rn),sortOrder:Rn.defaultSortOrder}))}),cn},Qs=(_t,xt,Xt,cn,wn,Rn,qn,En)=>(xt||[]).map((Xn,Pr)=>{const yr=Ci(Pr,En);let br=Xn;if(br.sorter){const gr=br.sortDirections||wn,pr=br.showSorterTooltip===void 0?qn:br.showSorterTooltip,De=Ei(br,yr),ke=Xt.find(Ht=>{let{key:$t}=Ht;return $t===De}),Ve=ke?ke.sortOrder:null,qe=Ts(gr,Ve);let it;if(Xn.sortIcon)it=Xn.sortIcon({sortOrder:Ve});else{const Ht=gr.includes(Ds)&&te.createElement(uo.Z,{className:Ae()(`${_t}-column-sorter-up`,{active:Ve===Ds})}),$t=gr.includes(_s)&&te.createElement(Ns.Z,{className:Ae()(`${_t}-column-sorter-down`,{active:Ve===_s})});it=te.createElement("span",{className:Ae()(`${_t}-column-sorter`,{[`${_t}-column-sorter-full`]:!!(Ht&&$t)})},te.createElement("span",{className:`${_t}-column-sorter-inner`,"aria-hidden":"true"},Ht,$t))}const{cancelSort:dt,triggerAsc:bt,triggerDesc:vt}=Rn||{};let Nt=dt;qe===_s?Nt=vt:qe===Ds&&(Nt=bt);const Pt=typeof pr=="object"?Object.assign({title:Nt},pr):{title:Nt};br=Object.assign(Object.assign({},br),{className:Ae()(br.className,{[`${_t}-column-sort`]:Ve}),title:Ht=>{const $t=`${_t}-column-sorters`,hn=te.createElement("span",{className:`${_t}-column-title`},kr(Xn.title,Ht)),Pn=te.createElement("div",{className:$t},hn,it);return pr?typeof pr!="boolean"&&(pr==null?void 0:pr.target)==="sorter-icon"?te.createElement("div",{className:`${$t} ${_t}-column-sorters-tooltip-target-sorter`},hn,te.createElement(As.Z,Object.assign({},Pt),it)):te.createElement(As.Z,Object.assign({},Pt),Pn):Pn},onHeaderCell:Ht=>{var $t;const hn=(($t=Xn.onHeaderCell)===null||$t===void 0?void 0:$t.call(Xn,Ht))||{},Pn=hn.onClick,Dn=hn.onKeyDown;hn.onClick=Gn=>{cn({column:Xn,key:De,sortOrder:qe,multiplePriority:xs(Xn)}),Pn==null||Pn(Gn)},hn.onKeyDown=Gn=>{Gn.keyCode===Fa.Z.ENTER&&(cn({column:Xn,key:De,sortOrder:qe,multiplePriority:xs(Xn)}),Dn==null||Dn(Gn))};const pn=Zi(Xn.title,{}),bn=pn==null?void 0:pn.toString();return Ve&&(hn["aria-sort"]=Ve==="ascend"?"ascending":"descending"),hn["aria-label"]=bn||"",hn.className=Ae()(hn.className,`${_t}-column-has-sorters`),hn.tabIndex=0,Xn.ellipsis&&(hn.title=(pn!=null?pn:"").toString()),hn}})}return"children"in br&&(br=Object.assign(Object.assign({},br),{children:Qs(_t,br.children,Xt,cn,wn,Rn,qn,yr)})),br}),wl=_t=>{const{column:xt,sortOrder:Xt}=_t;return{column:xt,order:Xt,field:xt.dataIndex,columnKey:xt.key}},Js=_t=>{const xt=_t.filter(Xt=>{let{sortOrder:cn}=Xt;return cn}).map(wl);if(xt.length===0&&_t.length){const Xt=_t.length-1;return Object.assign(Object.assign({},wl(_t[Xt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return xt.length<=1?xt[0]||{}:xt},Es=(_t,xt,Xt)=>{const cn=xt.slice().sort((qn,En)=>En.multiplePriority-qn.multiplePriority),wn=_t.slice(),Rn=cn.filter(qn=>{let{column:{sorter:En},sortOrder:er}=qn;return To(En)&&er});return Rn.length?wn.sort((qn,En)=>{for(let er=0;er{const En=qn[Xt];return En?Object.assign(Object.assign({},qn),{[Xt]:Es(En,xt,Xt)}):qn}):wn};var Cs=_t=>{const{prefixCls:xt,mergedColumns:Xt,sortDirections:cn,tableLocale:wn,showSorterTooltip:Rn,onSorterChange:qn}=_t,[En,er]=te.useState(ls(Xt,!0)),Xn=(De,ke)=>{const Ve=[];return De.forEach((qe,it)=>{const dt=Ci(it,ke);if(Ve.push(Ei(qe,dt)),Array.isArray(qe.children)){const bt=Xn(qe.children,dt);Ve.push.apply(Ve,(0,Nn.Z)(bt))}}),Ve},Pr=te.useMemo(()=>{let De=!0;const ke=ls(Xt,!1);if(!ke.length){const dt=Xn(Xt);return En.filter(bt=>{let{key:vt}=bt;return dt.includes(vt)})}const Ve=[];function qe(dt){De?Ve.push(dt):Ve.push(Object.assign(Object.assign({},dt),{sortOrder:null}))}let it=null;return ke.forEach(dt=>{it===null?(qe(dt),dt.sortOrder&&(dt.multiplePriority===!1?De=!1:it=!0)):(it&&dt.multiplePriority!==!1||(De=!1),qe(dt))}),Ve},[Xt,En]),yr=te.useMemo(()=>{var De,ke;const Ve=Pr.map(qe=>{let{column:it,sortOrder:dt}=qe;return{column:it,order:dt}});return{sortColumns:Ve,sortColumn:(De=Ve[0])===null||De===void 0?void 0:De.column,sortOrder:(ke=Ve[0])===null||ke===void 0?void 0:ke.order}},[Pr]),br=De=>{let ke;De.multiplePriority===!1||!Pr.length||Pr[0].multiplePriority===!1?ke=[De]:ke=[].concat((0,Nn.Z)(Pr.filter(Ve=>{let{key:qe}=Ve;return qe!==De.key})),[De]),er(ke),qn(Js(ke),ke)};return[De=>Qs(xt,De,Pr,br,cn,wn,Rn),Pr,yr,()=>Js(Pr)]};const $s=(_t,xt)=>_t.map(cn=>{const wn=Object.assign({},cn);return wn.title=kr(cn.title,xt),"children"in wn&&(wn.children=$s(wn.children,xt)),wn});var Ms=_t=>[te.useCallback(Xt=>$s(Xt,_t),[_t])],fs=Li((_t,xt)=>{const{_renderTimes:Xt}=_t,{_renderTimes:cn}=xt;return Xt!==cn}),Fs=Dr((_t,xt)=>{const{_renderTimes:Xt}=_t,{_renderTimes:cn}=xt;return Xt!==cn}),xa=Ce(36237),ol=Ce(17835),ks=Ce(63356),bs=Ce(16931),cl=Ce(51636),Vs=_t=>{const{componentCls:xt,lineWidth:Xt,lineType:cn,tableBorderColor:wn,tableHeaderBg:Rn,tablePaddingVertical:qn,tablePaddingHorizontal:En,calc:er}=_t,Xn=`${(0,xa.unit)(Xt)} ${cn} ${wn}`,Pr=(yr,br,gr)=>({[`&${xt}-${yr}`]:{[`> ${xt}-container`]:{[`> ${xt}-content, > ${xt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(er(br).mul(-1).equal())} ${(0,xa.unit)(er(er(gr).add(Xt)).mul(-1).equal())}`}}}}}});return{[`${xt}-wrapper`]:{[`${xt}${xt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xt}-title`]:{border:Xn,borderBottom:0},[`> ${xt}-container`]:{borderInlineStart:Xn,borderTop:Xn,[` > ${xt}-content, > ${xt}-header, > ${xt}-body, > ${xt}-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:Xn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xt}-cell-fix-right-first::after`]:{borderInlineEnd:Xn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(er(qn).mul(-1).equal())} ${(0,xa.unit)(er(er(En).add(Xt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Xt,bottom:0,borderInlineEnd:Xn,content:'""'}}}}}},[`&${xt}-scroll-horizontal`]:{[`> ${xt}-container > ${xt}-body`]:{"> table > tbody":{[` > tr${xt}-expanded-row, > tr${xt}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},Pr("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle)),Pr("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall)),{[`> ${xt}-footer`]:{border:Xn,borderTop:0}}),[`${xt}-cell`]:{[`${xt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,xa.unit)(Xt)} 0 ${(0,xa.unit)(Xt)} ${Rn}`}},[`${xt}-bordered ${xt}-cell-scrollbar`]:{borderInlineEnd:Xn}}}},Us=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper`]:{[`${xt}-cell-ellipsis`]:Object.assign(Object.assign({},ks.vS),{wordBreak:"keep-all",[` &${xt}-cell-fix-left-last, &${xt}-cell-fix-right-first `]:{overflow:"visible",[`${xt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ll=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper`]:{[`${xt}-tbody > tr${xt}-placeholder`]:{textAlign:"center",color:_t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:_t.colorBgContainer}}}}},dl=_t=>{const{componentCls:xt,antCls:Xt,motionDurationSlow:cn,lineWidth:wn,paddingXS:Rn,lineType:qn,tableBorderColor:En,tableExpandIconBg:er,tableExpandColumnWidth:Xn,borderRadius:Pr,tablePaddingVertical:yr,tablePaddingHorizontal:br,tableExpandedRowBg:gr,paddingXXS:pr,expandIconMarginTop:De,expandIconSize:ke,expandIconHalfInner:Ve,expandIconScale:qe,calc:it}=_t,dt=`${(0,xa.unit)(wn)} ${qn} ${En}`,bt=it(pr).sub(wn).equal();return{[`${xt}-wrapper`]:{[`${xt}-expand-icon-col`]:{width:Xn},[`${xt}-row-expand-icon-cell`]:{textAlign:"center",[`${xt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${xt}-row-indent`]:{height:1,float:"left"},[`${xt}-row-expand-icon`]:Object.assign(Object.assign({},(0,ks.Nd)(_t)),{position:"relative",float:"left",width:ke,height:ke,color:"inherit",lineHeight:(0,xa.unit)(ke),background:er,border:dt,borderRadius:Pr,transform:`scale(${qe})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${cn} ease-out`,content:'""'},"&::before":{top:Ve,insetInlineEnd:bt,insetInlineStart:bt,height:wn},"&::after":{top:bt,bottom:bt,insetInlineStart:Ve,width:wn,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"}}),[`${xt}-row-indent + ${xt}-row-expand-icon`]:{marginTop:De,marginInlineEnd:Rn},[`tr${xt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:gr}},[`${Xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${xt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,xa.unit)(it(yr).mul(-1).equal())} ${(0,xa.unit)(it(br).mul(-1).equal())}`,padding:`${(0,xa.unit)(yr)} ${(0,xa.unit)(br)}`}}}},gl=_t=>{const{componentCls:xt,antCls:Xt,iconCls:cn,tableFilterDropdownWidth:wn,tableFilterDropdownSearchWidth:Rn,paddingXXS:qn,paddingXS:En,colorText:er,lineWidth:Xn,lineType:Pr,tableBorderColor:yr,headerIconColor:br,fontSizeSM:gr,tablePaddingHorizontal:pr,borderRadius:De,motionDurationSlow:ke,colorTextDescription:Ve,colorPrimary:qe,tableHeaderFilterActiveBg:it,colorTextDisabled:dt,tableFilterDropdownBg:bt,tableFilterDropdownHeight:vt,controlItemBgHover:Nt,controlItemBgActive:Pt,boxShadowSecondary:Ht,filterDropdownMenuBg:$t,calc:hn}=_t,Pn=`${Xt}-dropdown`,Dn=`${xt}-filter-dropdown`,pn=`${Xt}-tree`,bn=`${(0,xa.unit)(Xn)} ${Pr} ${yr}`;return[{[`${xt}-wrapper`]:{[`${xt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:hn(qn).mul(-1).equal(),marginInline:`${(0,xa.unit)(qn)} ${(0,xa.unit)(hn(pr).div(2).mul(-1).equal())}`,padding:`0 ${(0,xa.unit)(qn)}`,color:br,fontSize:gr,borderRadius:De,cursor:"pointer",transition:`all ${ke}`,"&:hover":{color:Ve,background:it},"&.active":{color:qe}}}},{[`${Xt}-dropdown`]:{[Dn]:Object.assign(Object.assign({},(0,ks.Wf)(_t)),{minWidth:wn,backgroundColor:bt,borderRadius:De,boxShadow:Ht,overflow:"hidden",[`${Pn}-menu`]:{maxHeight:vt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:$t,"&:empty::after":{display:"block",padding:`${(0,xa.unit)(En)} 0`,color:dt,fontSize:gr,textAlign:"center",content:'"Not Found"'}},[`${Dn}-tree`]:{paddingBlock:`${(0,xa.unit)(En)} 0`,paddingInline:En,[pn]:{padding:0},[`${pn}-treenode ${pn}-node-content-wrapper:hover`]:{backgroundColor:Nt},[`${pn}-treenode-checkbox-checked ${pn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Pt}}},[`${Dn}-search`]:{padding:En,borderBottom:bn,"&-input":{input:{minWidth:Rn},[cn]:{color:dt}}},[`${Dn}-checkall`]:{width:"100%",marginBottom:qn,marginInlineStart:qn},[`${Dn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,xa.unit)(hn(En).sub(Xn).equal())} ${(0,xa.unit)(En)}`,overflow:"hidden",borderTop:bn}})}},{[`${Xt}-dropdown ${Dn}, ${Dn}-submenu`]:{[`${Xt}-checkbox-wrapper + span`]:{paddingInlineStart:En,color:er},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tl=_t=>{const{componentCls:xt,lineWidth:Xt,colorSplit:cn,motionDurationSlow:wn,zIndexTableFixed:Rn,tableBg:qn,zIndexTableSticky:En,calc:er}=_t,Xn=cn;return{[`${xt}-wrapper`]:{[` ${xt}-cell-fix-left, ${xt}-cell-fix-right `]:{position:"sticky !important",zIndex:Rn,background:qn},[` ${xt}-cell-fix-left-first::after, ${xt}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:er(Xt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${xt}-cell-fix-left-all::after`]:{display:"none"},[` ${xt}-cell-fix-right-first::after, ${xt}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:er(Xt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${xt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:er(En).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${xt}-ping-left`]:{[`&:not(${xt}-has-fix-left) ${xt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Xn}`},[` ${xt}-cell-fix-left-first::after, ${xt}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Xn}`},[`${xt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xt}-ping-right`]:{[`&:not(${xt}-has-fix-right) ${xt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Xn}`},[` ${xt}-cell-fix-right-first::after, ${xt}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Xn}`}},[`${xt}-fixed-column-gapped`]:{[` ${xt}-cell-fix-left-first::after, ${xt}-cell-fix-left-last::after, ${xt}-cell-fix-right-first::after, ${xt}-cell-fix-right-last::after `]:{boxShadow:"none"}}}}},nl=_t=>{const{componentCls:xt,antCls:Xt,margin:cn}=_t;return{[`${xt}-wrapper`]:{[`${xt}-pagination${Xt}-pagination`]:{margin:`${(0,xa.unit)(cn)} 0`},[`${xt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:_t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},yl=_t=>{const{componentCls:xt,tableRadius:Xt}=_t;return{[`${xt}-wrapper`]:{[xt]:{[`${xt}-title, ${xt}-header`]:{borderRadius:`${(0,xa.unit)(Xt)} ${(0,xa.unit)(Xt)} 0 0`},[`${xt}-title + ${xt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xt}-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:Xt,borderStartEndRadius:Xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xt},"> *:last-child":{borderStartEndRadius:Xt}}},"&-footer":{borderRadius:`0 0 ${(0,xa.unit)(Xt)} ${(0,xa.unit)(Xt)}`}}}}},_l=_t=>{const{componentCls:xt}=_t;return{[`${xt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xt}-pagination-left`]:{justifyContent:"flex-end"},[`${xt}-pagination-right`]:{justifyContent:"flex-start"},[`${xt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xt}-row-indent`]:{float:"right"}}}}},vs=_t=>{const{componentCls:xt,antCls:Xt,iconCls:cn,fontSizeIcon:wn,padding:Rn,paddingXS:qn,headerIconColor:En,headerIconHoverColor:er,tableSelectionColumnWidth:Xn,tableSelectedRowBg:Pr,tableSelectedRowHoverBg:yr,tableRowHoverBg:br,tablePaddingHorizontal:gr,calc:pr}=_t;return{[`${xt}-wrapper`]:{[`${xt}-selection-col`]:{width:Xn,[`&${xt}-selection-col-with-dropdown`]:{width:pr(Xn).add(wn).add(pr(Rn).div(4)).equal()}},[`${xt}-bordered ${xt}-selection-col`]:{width:pr(Xn).add(pr(qn).mul(2)).equal(),[`&${xt}-selection-col-with-dropdown`]:{width:pr(Xn).add(wn).add(pr(Rn).div(4)).add(pr(qn).mul(2)).equal()}},[` table tr th${xt}-selection-column, table tr td${xt}-selection-column, ${xt}-selection-column `]:{paddingInlineEnd:_t.paddingXS,paddingInlineStart:_t.paddingXS,textAlign:"center",[`${Xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xt}-selection-column${xt}-cell-fix-left`]:{zIndex:pr(_t.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${xt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${_t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,xa.unit)(pr(gr).div(4).equal()),[cn]:{color:En,fontSize:wn,verticalAlign:"baseline","&:hover":{color:er}}},[`${xt}-tbody`]:{[`${xt}-row`]:{[`&${xt}-row-selected`]:{[`> ${xt}-cell`]:{background:Pr,"&-row-hover":{background:yr}}},[`> ${xt}-cell-row-hover`]:{background:br}}}}}},ts=_t=>{const{componentCls:xt,tableExpandColumnWidth:Xt,calc:cn}=_t,wn=(Rn,qn,En,er)=>({[`${xt}${xt}-${Rn}`]:{fontSize:er,[` ${xt}-title, ${xt}-footer, ${xt}-cell, ${xt}-thead > tr > th, ${xt}-tbody > tr > th, ${xt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${(0,xa.unit)(qn)} ${(0,xa.unit)(En)}`},[`${xt}-filter-trigger`]:{marginInlineEnd:(0,xa.unit)(cn(En).div(2).mul(-1).equal())},[`${xt}-expanded-row-fixed`]:{margin:`${(0,xa.unit)(cn(qn).mul(-1).equal())} ${(0,xa.unit)(cn(En).mul(-1).equal())}`},[`${xt}-tbody`]:{[`${xt}-wrapper:only-child ${xt}`]:{marginBlock:(0,xa.unit)(cn(qn).mul(-1).equal()),marginInline:`${(0,xa.unit)(cn(Xt).sub(En).equal())} ${(0,xa.unit)(cn(En).mul(-1).equal())}`}},[`${xt}-selection-extra`]:{paddingInlineStart:(0,xa.unit)(cn(En).div(4).equal())}}});return{[`${xt}-wrapper`]:Object.assign(Object.assign({},wn("middle",_t.tablePaddingVerticalMiddle,_t.tablePaddingHorizontalMiddle,_t.tableFontSizeMiddle)),wn("small",_t.tablePaddingVerticalSmall,_t.tablePaddingHorizontalSmall,_t.tableFontSizeSmall))}},xl=_t=>{const{componentCls:xt,marginXXS:Xt,fontSizeIcon:cn,headerIconColor:wn,headerIconHoverColor:Rn}=_t;return{[`${xt}-wrapper`]:{[`${xt}-thead th${xt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${_t.motionDurationSlow}, left 0s`,"&:hover":{background:_t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:_t.colorPrimary},[` &${xt}-cell-fix-left:hover, &${xt}-cell-fix-right:hover `]:{background:_t.tableFixedHeaderSortActiveBg}},[`${xt}-thead th${xt}-column-sort`]:{background:_t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xt}-column-sort`]:{background:_t.tableBodySortBg},[`${xt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${xt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${xt}-column-sorter`]:{marginInlineStart:Xt,color:wn,fontSize:0,transition:`color ${_t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:cn,"&.active":{color:_t.colorPrimary}},[`${xt}-column-sorter-up + ${xt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xt}-column-sorters:hover ${xt}-column-sorter`]:{color:Rn}}}},Rl=_t=>{const{componentCls:xt,opacityLoading:Xt,tableScrollThumbBg:cn,tableScrollThumbBgHover:wn,tableScrollThumbSize:Rn,tableScrollBg:qn,zIndexTableSticky:En,stickyScrollBarBorderRadius:er,lineWidth:Xn,lineType:Pr,tableBorderColor:yr}=_t,br=`${(0,xa.unit)(Xn)} ${Pr} ${yr}`;return{[`${xt}-wrapper`]:{[`${xt}-sticky`]:{"&-holder":{position:"sticky",zIndex:En,background:_t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,xa.unit)(Rn)} !important`,zIndex:En,display:"flex",alignItems:"center",background:qn,borderTop:br,opacity:Xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Rn,backgroundColor:cn,borderRadius:er,transition:`all ${_t.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:wn}}}}}}},Zo=_t=>{const{componentCls:xt,lineWidth:Xt,tableBorderColor:cn,calc:wn}=_t,Rn=`${(0,xa.unit)(Xt)} ${_t.lineType} ${cn}`;return{[`${xt}-wrapper`]:{[`${xt}-summary`]:{position:"relative",zIndex:_t.zIndexTableFixed,background:_t.tableBg,"> tr":{"> th, > td":{borderBottom:Rn}}},[`div${xt}-summary`]:{boxShadow:`0 ${(0,xa.unit)(wn(Xt).mul(-1).equal())} 0 ${cn}`}}}},zo=_t=>{const{componentCls:xt,motionDurationMid:Xt,lineWidth:cn,lineType:wn,tableBorderColor:Rn,calc:qn}=_t,En=`${(0,xa.unit)(cn)} ${wn} ${Rn}`,er=`${xt}-expanded-row-cell`;return{[`${xt}-wrapper`]:{[`${xt}-tbody-virtual`]:{[`${xt}-tbody-virtual-holder-inner`]:{[` & > ${xt}-row, & > div:not(${xt}-row) > ${xt}-row `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${xt}-cell`]:{borderBottom:En,transition:`background ${Xt}`},[`${xt}-expanded-row`]:{[`${er}${er}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,xa.unit)(cn)})`,borderInlineEnd:"none"}}},[`${xt}-bordered`]:{[`${xt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:En,position:"absolute"},[`${xt}-cell`]:{borderInlineEnd:En,[`&${xt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:qn(cn).mul(-1).equal(),borderInlineStart:En}}},[`&${xt}-virtual`]:{[`${xt}-placeholder ${xt}-cell`]:{borderInlineEnd:En,borderBottom:En}}}}}};const Mo=_t=>{const{componentCls:xt,fontWeightStrong:Xt,tablePaddingVertical:cn,tablePaddingHorizontal:wn,tableExpandColumnWidth:Rn,lineWidth:qn,lineType:En,tableBorderColor:er,tableFontSize:Xn,tableBg:Pr,tableRadius:yr,tableHeaderTextColor:br,motionDurationMid:gr,tableHeaderBg:pr,tableHeaderCellSplitColor:De,tableFooterTextColor:ke,tableFooterBg:Ve,calc:qe}=_t,it=`${(0,xa.unit)(qn)} ${En} ${er}`;return{[`${xt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ks.dF)()),{[xt]:Object.assign(Object.assign({},(0,ks.Wf)(_t)),{fontSize:Xn,background:Pr,borderRadius:`${(0,xa.unit)(yr)} ${(0,xa.unit)(yr)} 0 0`,scrollbarColor:`${_t.tableScrollThumbBg} ${_t.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,xa.unit)(yr)} ${(0,xa.unit)(yr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${xt}-cell, ${xt}-thead > tr > th, ${xt}-tbody > tr > th, ${xt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`,overflowWrap:"break-word"},[`${xt}-title`]:{padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`},[`${xt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:br,fontWeight:Xt,textAlign:"start",background:pr,borderBottom:it,transition:`background ${gr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xt}-selection-column):not(${xt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:De,transform:"translateY(-50%)",transition:`background-color ${gr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${gr}, border-color ${gr}`,borderBottom:it,[` > ${xt}-wrapper:only-child, > ${xt}-expanded-row-fixed > ${xt}-wrapper:only-child `]:{[xt]:{marginBlock:(0,xa.unit)(qe(cn).mul(-1).equal()),marginInline:`${(0,xa.unit)(qe(Rn).sub(wn).equal())} ${(0,xa.unit)(qe(wn).mul(-1).equal())}`,[`${xt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:br,fontWeight:Xt,textAlign:"start",background:pr,borderBottom:it,transition:`background ${gr} ease`}}},[`${xt}-footer`]:{padding:`${(0,xa.unit)(cn)} ${(0,xa.unit)(wn)}`,color:ke,background:Ve}})}},Xs=_t=>{const{colorFillAlter:xt,colorBgContainer:Xt,colorTextHeading:cn,colorFillSecondary:wn,colorFillContent:Rn,controlItemBgActive:qn,controlItemBgActiveHover:En,padding:er,paddingSM:Xn,paddingXS:Pr,colorBorderSecondary:yr,borderRadiusLG:br,controlHeight:gr,colorTextPlaceholder:pr,fontSize:De,fontSizeSM:ke,lineHeight:Ve,lineWidth:qe,colorIcon:it,colorIconHover:dt,opacityLoading:bt,controlInteractiveSize:vt}=_t,Nt=new ol.FastColor(wn).onBackground(Xt).toHexString(),Pt=new ol.FastColor(Rn).onBackground(Xt).toHexString(),Ht=new ol.FastColor(xt).onBackground(Xt).toHexString(),$t=new ol.FastColor(it),hn=new ol.FastColor(dt),Pn=vt/2-qe,Dn=Pn*2+qe*3;return{headerBg:Ht,headerColor:cn,headerSortActiveBg:Nt,headerSortHoverBg:Pt,bodySortBg:Ht,rowHoverBg:Ht,rowSelectedBg:qn,rowSelectedHoverBg:En,rowExpandedBg:xt,cellPaddingBlock:er,cellPaddingInline:er,cellPaddingBlockMD:Xn,cellPaddingInlineMD:Pr,cellPaddingBlockSM:Pr,cellPaddingInlineSM:Pr,borderColor:yr,headerBorderRadius:br,footerBg:Ht,footerColor:cn,cellFontSize:De,cellFontSizeMD:De,cellFontSizeSM:De,headerSplitColor:yr,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Rn,filterDropdownMenuBg:Xt,filterDropdownBg:Xt,expandIconBg:Xt,selectionColumnWidth:gr,stickyScrollBarBg:pr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(De*Ve-qe*3)/2-Math.ceil((ke*1.4-qe*3)/2),headerIconColor:$t.clone().setA($t.a*bt).toRgbString(),headerIconHoverColor:hn.clone().setA(hn.a*bt).toRgbString(),expandIconHalfInner:Pn,expandIconSize:Dn,expandIconScale:vt/Dn}},jn=2;var $i=(0,bs.I$)("Table",_t=>{const{colorTextHeading:xt,colorSplit:Xt,colorBgContainer:cn,controlInteractiveSize:wn,headerBg:Rn,headerColor:qn,headerSortActiveBg:En,headerSortHoverBg:er,bodySortBg:Xn,rowHoverBg:Pr,rowSelectedBg:yr,rowSelectedHoverBg:br,rowExpandedBg:gr,cellPaddingBlock:pr,cellPaddingInline:De,cellPaddingBlockMD:ke,cellPaddingInlineMD:Ve,cellPaddingBlockSM:qe,cellPaddingInlineSM:it,borderColor:dt,footerBg:bt,footerColor:vt,headerBorderRadius:Nt,cellFontSize:Pt,cellFontSizeMD:Ht,cellFontSizeSM:$t,headerSplitColor:hn,fixedHeaderSortActiveBg:Pn,headerFilterHoverBg:Dn,filterDropdownBg:pn,expandIconBg:bn,selectionColumnWidth:Gn,stickyScrollBarBg:Un,calc:sr}=_t,cr=(0,cl.mergeToken)(_t,{tableFontSize:Pt,tableBg:cn,tableRadius:Nt,tablePaddingVertical:pr,tablePaddingHorizontal:De,tablePaddingVerticalMiddle:ke,tablePaddingHorizontalMiddle:Ve,tablePaddingVerticalSmall:qe,tablePaddingHorizontalSmall:it,tableBorderColor:dt,tableHeaderTextColor:qn,tableHeaderBg:Rn,tableFooterTextColor:vt,tableFooterBg:bt,tableHeaderCellSplitColor:hn,tableHeaderSortBg:En,tableHeaderSortHoverBg:er,tableBodySortBg:Xn,tableFixedHeaderSortActiveBg:Pn,tableHeaderFilterActiveBg:Dn,tableFilterDropdownBg:pn,tableRowHoverBg:Pr,tableSelectedRowBg:yr,tableSelectedRowHoverBg:br,zIndexTableFixed:jn,zIndexTableSticky:sr(jn).add(1).equal({unit:!1}),tableFontSizeMiddle:Ht,tableFontSizeSmall:$t,tableSelectionColumnWidth:Gn,tableExpandIconBg:bn,tableExpandColumnWidth:sr(wn).add(sr(_t.padding).mul(2)).equal(),tableExpandedRowBg:gr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Un,tableScrollThumbBgHover:xt,tableScrollBg:Xt});return[Mo(cr),nl(cr),Zo(cr),xl(cr),gl(cr),Vs(cr),yl(cr),dl(cr),Zo(cr),Ll(cr),vs(cr),tl(cr),Rl(cr),Us(cr),ts(cr),_l(cr),zo(cr)]},Xs,{unitless:{expandIconScale:!0}});const va=[],ia=(_t,xt)=>{var Xt,cn;const{prefixCls:wn,className:Rn,rootClassName:qn,style:En,size:er,bordered:Xn,dropdownPrefixCls:Pr,dataSource:yr,pagination:br,rowSelection:gr,rowKey:pr="key",rowClassName:De,columns:ke,children:Ve,childrenColumnName:qe,onChange:it,getPopupContainer:dt,loading:bt,expandIcon:vt,expandable:Nt,expandedRowRender:Pt,expandIconColumnIndex:Ht,indentSize:$t,scroll:hn,sortDirections:Pn,locale:Dn,showSorterTooltip:pn={target:"full-header"},virtual:bn}=_t,Gn=(0,ti.ln)("Table"),Un=te.useMemo(()=>ke||sn(Ve),[ke,Ve]),sr=te.useMemo(()=>Un.some(Ia=>Ia.responsive),[Un]),cr=(0,la.Z)(sr),ni=te.useMemo(()=>{const Ia=new Set(Object.keys(cr).filter(Ha=>cr[Ha]));return Un.filter(Ha=>!Ha.responsive||Ha.responsive.some(bo=>Ia.has(bo)))},[Un,cr]),Tr=(0,Vi.Z)(_t,["className","style","columns"]),{locale:Si=zi.Z,direction:Ui,table:Fi,renderEmpty:jr,getPrefixCls:Vr,getPopupContainer:yi}=te.useContext(Ii.E_),zn=(0,ca.Z)(er),fr=Object.assign(Object.assign({},Si.Table),Dn),$r=yr||va,xr=Vr("table",wn),Yr=Vr("dropdown",Pr),[,Lr]=(0,Ra.ZP)(),Or=(0,fa.Z)(xr),[Bi,na,Oi]=$i(xr,Or),Ea=Object.assign(Object.assign({childrenColumnName:qe,expandIconColumnIndex:Ht},Nt),{expandIcon:(Xt=Nt==null?void 0:Nt.expandIcon)!==null&&Xt!==void 0?Xt:(cn=Fi==null?void 0:Fi.expandable)===null||cn===void 0?void 0:cn.expandIcon}),{childrenColumnName:Ma="children"}=Ea,Na=te.useMemo(()=>$r.some(Ia=>Ia==null?void 0:Ia[Ma])?"nest":Pt||Nt!=null&&Nt.expandedRowRender?"row":null,[$r]),ji={body:te.useRef(null)},aa=Yi(xr),Ua=te.useRef(null),oo=te.useRef(null);vi(xt,()=>Object.assign(Object.assign({},oo.current),{nativeElement:Ua.current}));const qa=te.useMemo(()=>typeof pr=="function"?pr:Ia=>Ia==null?void 0:Ia[pr],[pr]),[Ho]=ka($r,Ma,qa),Po={},ms=function(Ia,Ha){let bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Io,Go,Ko,Ys;const rs=Object.assign(Object.assign({},Po),Ia);bo&&((Io=Po.resetPagination)===null||Io===void 0||Io.call(Po),!((Go=rs.pagination)===null||Go===void 0)&&Go.current&&(rs.pagination.current=1),br&&((Ko=br.onChange)===null||Ko===void 0||Ko.call(br,1,(Ys=rs.pagination)===null||Ys===void 0?void 0:Ys.pageSize))),hn&&hn.scrollToFirstRowOnChange!==!1&&ji.body.current&&(0,Ni.Z)(0,{getContainer:()=>ji.body.current}),it==null||it(rs.pagination,rs.filters,rs.sorter,{currentDataSource:hi(Es($r,rs.sorterStates,Ma),rs.filterStates,Ma),action:Ha})},_o=(Ia,Ha)=>{ms({sorter:Ia,sorterStates:Ha},"sort",!1)},[Za,ho,vo,ko]=Cs({prefixCls:xr,mergedColumns:ni,onSorterChange:_o,sortDirections:Pn||["ascend","descend"],tableLocale:fr,showSorterTooltip:pn}),Ao=te.useMemo(()=>Es($r,ho,Ma),[$r,ho]);Po.sorter=ko(),Po.sorterStates=ho;const Ga=(Ia,Ha)=>{ms({filters:Ia,filterStates:Ha},"filter",!0)},[xo,so,qo]=ga({prefixCls:xr,locale:fr,dropdownPrefixCls:Yr,mergedColumns:ni,onFilterChange:Ga,getPopupContainer:dt||yi,rootClassName:Ae()(qn,Or)}),No=hi(Ao,so,Ma);Po.filters=qo,Po.filterStates=so;const us=te.useMemo(()=>{const Ia={};return Object.keys(qo).forEach(Ha=>{qo[Ha]!==null&&(Ia[Ha]=qo[Ha])}),Object.assign(Object.assign({},vo),{filters:Ia})},[vo,qo]),[ps]=Ms(us),rl=(Ia,Ha)=>{ms({pagination:Object.assign(Object.assign({},Po.pagination),{current:Ia,pageSize:Ha})},"paginate")},[mo,Nl]=wo(No.length,rl,br);Po.pagination=br===!1?{}:Ro(mo,br),Po.resetPagination=Nl;const cs=te.useMemo(()=>{if(br===!1||!mo.pageSize)return No;const{current:Ia=1,total:Ha,pageSize:bo=Qo}=mo;return No.lengthbo?No.slice((Ia-1)*bo,Ia*bo):No:No.slice((Ia-1)*bo,Ia*bo)},[!!br,No,mo==null?void 0:mo.current,mo==null?void 0:mo.pageSize,mo==null?void 0:mo.total]),[Ks,Os]=Zr({prefixCls:xr,data:No,pageData:cs,getRowKey:qa,getRecordByKey:Ho,expandType:Na,childrenColumnName:Ma,locale:fr,getPopupContainer:dt||yi},gr),gs=(Ia,Ha,bo)=>{let Io;return typeof De=="function"?Io=Ae()(De(Ia,Ha,bo)):Io=Ae()(De),Ae()({[`${xr}-row-selected`]:Os.has(qa(Ia,Ha))},Io)};Ea.__PARENT_RENDER_ICON__=Ea.expandIcon,Ea.expandIcon=Ea.expandIcon||vt||bi(fr),Na==="nest"&&Ea.expandIconColumnIndex===void 0?Ea.expandIconColumnIndex=gr?1:0:Ea.expandIconColumnIndex>0&&gr&&(Ea.expandIconColumnIndex-=1),typeof Ea.indentSize!="number"&&(Ea.indentSize=typeof $t=="number"?$t:15);const po=te.useCallback(Ia=>ps(Ks(xo(Za(Ia)))),[Za,xo,Ks]);let Ps,fl;if(br!==!1&&(mo!=null&&mo.total)){let Ia;mo.size?Ia=mo.size:Ia=zn==="small"||zn==="middle"?"small":void 0;const Ha=Go=>te.createElement(Da.Z,Object.assign({},mo,{className:Ae()(`${xr}-pagination ${xr}-pagination-${Go}`,mo.className),size:Ia})),bo=Ui==="rtl"?"left":"right",{position:Io}=mo;if(Io!==null&&Array.isArray(Io)){const Go=Io.find(rs=>rs.includes("top")),Ko=Io.find(rs=>rs.includes("bottom")),Ys=Io.every(rs=>`${rs}`=="none");!Go&&!Ko&&!Ys&&(fl=Ha(bo)),Go&&(Ps=Ha(Go.toLowerCase().replace("top",""))),Ko&&(fl=Ha(Ko.toLowerCase().replace("bottom","")))}else fl=Ha(bo)}let il;typeof bt=="boolean"?il={spinning:bt}:typeof bt=="object"&&(il=Object.assign({spinning:!0},bt));const al=Ae()(Oi,Or,`${xr}-wrapper`,Fi==null?void 0:Fi.className,{[`${xr}-wrapper-rtl`]:Ui==="rtl"},Rn,qn,na),jl=Object.assign(Object.assign({},Fi==null?void 0:Fi.style),En),Vl=typeof(Dn==null?void 0:Dn.emptyText)!="undefined"?Dn.emptyText:(jr==null?void 0:jr("Table"))||te.createElement(Mi.Z,{componentName:"Table"}),Zl=bn?Fs:fs,Gl={},tu=te.useMemo(()=>{const{fontSize:Ia,lineHeight:Ha,lineWidth:bo,padding:Io,paddingXS:Go,paddingSM:Ko}=Lr,Ys=Math.floor(Ia*Ha);switch(zn){case"middle":return Ko*2+Ys+bo;case"small":return Go*2+Ys+bo;default:return Io*2+Ys+bo}},[Lr,zn]);return bn&&(Gl.listItemHeight=tu),Bi(te.createElement("div",{ref:Ua,className:al,style:jl},te.createElement(Ca.Z,Object.assign({spinning:!1},il),Ps,te.createElement(Zl,Object.assign({},Gl,Tr,{ref:oo,columns:ni,direction:Ui,expandable:Ea,prefixCls:xr,className:Ae()({[`${xr}-middle`]:zn==="middle",[`${xr}-small`]:zn==="small",[`${xr}-bordered`]:Xn,[`${xr}-empty`]:$r.length===0},Oi,Or,na),data:cs,rowKey:qa,rowClassName:gs,emptyText:Vl,internalHooks:Me,internalRefs:ji,transformColumns:po,getContainerWidth:aa})),fl)))};var $a=te.forwardRef(ia);const La=(_t,xt)=>{const Xt=te.useRef(0);return Xt.current+=1,te.createElement($a,Object.assign({},_t,{ref:xt,_renderTimes:Xt.current}))},Pa=te.forwardRef(La);Pa.SELECTION_COLUMN=Ar,Pa.EXPAND_COLUMN=Ye,Pa.SELECTION_ALL=pi,Pa.SELECTION_INVERT=Gi,Pa.SELECTION_NONE=gi,Pa.Column=si,Pa.ColumnGroup=Ir,Pa.Summary=ct;var co=Pa,Bo=co},96599:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Ae}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(2738),Oe=Ce(29509),ve=Ce(78776),ue=Ce(22703),fe=Ce(12919),he=Ce(48755),le=Ce(36237),ae=Ce(17835),ie=Ce(63356),me=Ce(51636),E=Ce(16931);const b=we=>{const{paddingXXS:Ue,lineWidth:Pe,tagPaddingHorizontal:ze,componentCls:Ke,calc:Ne}=we,Re=Ne(ze).sub(Pe).equal(),$e=Ne(Ue).sub(Pe).equal();return{[Ke]:Object.assign(Object.assign({},(0,ie.Wf)(we)),{display:"inline-block",height:"auto",marginInlineEnd:we.marginXS,paddingInline:Re,fontSize:we.tagFontSize,lineHeight:we.tagLineHeight,whiteSpace:"nowrap",background:we.defaultBg,border:`${(0,le.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,opacity:1,transition:`all ${we.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ke}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:we.defaultColor},[`${Ke}-close-icon`]:{marginInlineStart:$e,fontSize:we.tagIconSize,color:we.colorTextDescription,cursor:"pointer",transition:`all ${we.motionDurationMid}`,"&:hover":{color:we.colorTextHeading}},[`&${Ke}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${we.iconCls}-close, ${we.iconCls}-close:hover`]:{color:we.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ke}-checkable-checked):hover`]:{color:we.colorPrimary,backgroundColor:we.colorFillSecondary},"&:active, &-checked":{color:we.colorTextLightSolid},"&-checked":{backgroundColor:we.colorPrimary,"&:hover":{backgroundColor:we.colorPrimaryHover}},"&:active":{backgroundColor:we.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${we.iconCls} + span, > span + ${we.iconCls}`]:{marginInlineStart:Re}}),[`${Ke}-borderless`]:{borderColor:"transparent",background:we.tagBorderlessBg}}},z=we=>{const{lineWidth:Ue,fontSizeIcon:Pe,calc:ze}=we,Ke=we.fontSizeSM;return(0,me.mergeToken)(we,{tagFontSize:Ke,tagLineHeight:(0,le.unit)(ze(we.lineHeightSM).mul(Ke).equal()),tagIconSize:ze(Pe).sub(ze(Ue).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:we.defaultBg})},ne=we=>({defaultBg:new ae.FastColor(we.colorFillQuaternary).onBackground(we.colorBgContainer).toHexString(),defaultColor:we.colorText});var oe=(0,E.I$)("Tag",we=>{const Ue=z(we);return b(Ue)},ne),se=function(we,Ue){var Pe={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&Ue.indexOf(ze)<0&&(Pe[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(we);Ke{const{prefixCls:Pe,style:ze,className:Ke,checked:Ne,onChange:Re,onClick:$e}=we,nt=se(we,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Qe}=te.useContext(he.E_),rt=Yt=>{Re==null||Re(!Ne),$e==null||$e(Yt)},pt=ut("tag",Pe),[At,gt,Ft]=oe(pt),Ct=Me()(pt,`${pt}-checkable`,{[`${pt}-checkable-checked`]:Ne},Qe==null?void 0:Qe.className,Ke,gt,Ft);return At(te.createElement("span",Object.assign({},nt,{ref:Ue,style:Object.assign(Object.assign({},ze),Qe==null?void 0:Qe.style),className:Ct,onClick:rt})))}),x=Ce(93427);const re=we=>(0,x.Z)(we,(Ue,Pe)=>{let{textColor:ze,lightBorderColor:Ke,lightColor:Ne,darkColor:Re}=Pe;return{[`${we.componentCls}${we.componentCls}-${Ue}`]:{color:ze,background:Ne,borderColor:Ke,"&-inverse":{color:we.colorTextLightSolid,background:Re,borderColor:Re},[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ce=(0,E.bk)(["Tag","preset"],we=>{const Ue=z(we);return re(Ue)},ne);function ge(we){return typeof we!="string"?we:we.charAt(0).toUpperCase()+we.slice(1)}const _e=(we,Ue,Pe)=>{const ze=ge(Pe);return{[`${we.componentCls}${we.componentCls}-${Ue}`]:{color:we[`color${Pe}`],background:we[`color${ze}Bg`],borderColor:we[`color${ze}Border`],[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ye=(0,E.bk)(["Tag","status"],we=>{const Ue=z(we);return[_e(Ue,"success","Success"),_e(Ue,"processing","Info"),_e(Ue,"error","Error"),_e(Ue,"warning","Warning")]},ne),be=function(we,Ue){var Pe={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&Ue.indexOf(ze)<0&&(Pe[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(we);Ke{const{prefixCls:Pe,className:ze,rootClassName:Ke,style:Ne,children:Re,icon:$e,color:nt,onClose:ut,bordered:Qe=!0,visible:rt}=we,pt=be(we,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:At,direction:gt,tag:Ft}=te.useContext(he.E_),[Ct,Yt]=te.useState(!0),zt=(0,pe.Z)(pt,["closeIcon","closable"]);te.useEffect(()=>{rt!==void 0&&Yt(rt)},[rt]);const Xe=(0,Oe.o2)(nt),Fe=(0,Oe.yT)(nt),Le=Xe||Fe,Ze=Object.assign(Object.assign({backgroundColor:nt&&!Le?nt:void 0},Ft==null?void 0:Ft.style),Ne),et=At("tag",Pe),[He,We,tt]=oe(et),at=Me()(et,Ft==null?void 0:Ft.className,{[`${et}-${nt}`]:Le,[`${et}-has-color`]:nt&&!Le,[`${et}-hidden`]:!Ct,[`${et}-rtl`]:gt==="rtl",[`${et}-borderless`]:!Qe},ze,Ke,We,tt),ot=St=>{St.stopPropagation(),ut==null||ut(St),!St.defaultPrevented&&Yt(!1)},[,ct]=(0,ve.Z)((0,ve.w)(we),(0,ve.w)(Ft),{closable:!1,closeIconRender:St=>{const nn=te.createElement("span",{className:`${et}-close-icon`,onClick:ot},St);return(0,ue.wm)(St,nn,on=>({onClick:yn=>{var xn;(xn=on==null?void 0:on.onClick)===null||xn===void 0||xn.call(on,yn),ot(yn)},className:Me()(on==null?void 0:on.className,`${et}-close-icon`)}))}}),lt=typeof pt.onClick=="function"||Re&&Re.type==="a",mt=$e||null,Lt=mt?te.createElement(te.Fragment,null,mt,Re&&te.createElement("span",null,Re)):Re,ft=te.createElement("span",Object.assign({},zt,{ref:Ue,className:at,style:Ze}),Lt,ct,Xe&&te.createElement(ce,{key:"preset",prefixCls:et}),Fe&&te.createElement(ye,{key:"status",prefixCls:et}));return He(lt?te.createElement(fe.Z,{component:"Tag"},ft):ft)});Be.CheckableTag=a;var Ae=Be},53420:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return dn}});var te=Ce(59301),Ye=Ce(92310),Me=Ce.n(Ye),pe=Ce(60499),Oe=Ce(77654),ve=Ce(85899),ue=Ce(72190),fe=Ce(42244),he=Ce(43749),le=Ce(37463),ae=Ce(6551),ie=Ce(34643),me=Ce(18929),E=Ce(48736),b=function(Ie){var je=te.useRef({valueLabels:new Map});return te.useMemo(function(){var Je=je.current.valueLabels,ht=new Map,Et=Ie.map(function(Qt){var fn=Qt.value,sn=Qt.label,mn=sn!=null?sn:Je.get(fn);return ht.set(fn,mn),(0,ve.Z)((0,ve.Z)({},Qt),{},{label:mn})});return je.current.valueLabels=ht,[Et]},[Ie])},z=function(je,Je,ht,Et){return te.useMemo(function(){var Qt=function(Rt){return Rt.map(function(jt){var Mt=jt.value;return Mt})},fn=Qt(je),sn=Qt(Je),mn=fn.filter(function(Gt){return!Et[Gt]}),Zn=fn,tr=sn;if(ht){var Vt=(0,ie.S)(fn,!0,Et);Zn=Vt.checkedKeys,tr=Vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Oe.Z)(mn),(0,Oe.Z)(Zn)))),tr]},[je,Je,ht,Et])},ne=z,oe=Ce(34061),se=function(Ie,je){return te.useMemo(function(){var Je=(0,oe.I8)(Ie,{fieldNames:je,initWrapper:function(Et){return(0,ve.Z)((0,ve.Z)({},Et),{},{valueEntities:new Map})},processEntity:function(Et,Qt){var fn=Et.node[je.value];if(0)var sn;Qt.valueEntities.set(fn,Et)}});return Je},[Ie,je])},de=Ce(18642),a=Ce(11592),x=function(){return null},re=x,ce=["children","value"];function ge(Ie){return(0,a.Z)(Ie).map(function(je){if(!te.isValidElement(je)||!je.type)return null;var Je=je,ht=Je.key,Et=Je.props,Qt=Et.children,fn=Et.value,sn=(0,fe.Z)(Et,ce),mn=(0,ve.Z)({key:ht,value:fn},sn),Zn=ge(Qt);return Zn.length&&(mn.children=Zn),mn}).filter(function(je){return je})}function _e(Ie){if(!Ie)return Ie;var je=(0,ve.Z)({},Ie);return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,E.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),je}}),je}function ye(Ie,je,Je,ht,Et,Qt){var fn=null,sn=null;function mn(){function Zn(tr){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return tr.map(function(Rt,jt){var Mt="".concat(Vt,"-").concat(jt),Kt=Rt[Qt.value],yt=Je.includes(Kt),qt=Zn(Rt[Qt.children]||[],Mt,yt),vn=te.createElement(re,Rt,qt.map(function(It){return It.node}));if(je===Kt&&(fn=vn),yt){var Tt={pos:Mt,node:vn,children:qt};return Gt||sn.push(Tt),Tt}return null}).filter(function(Rt){return Rt})}sn||(sn=[],Zn(ht),sn.sort(function(tr,Vt){var Gt=tr.node.props.value,Rt=Vt.node.props.value,jt=Je.indexOf(Gt),Mt=Je.indexOf(Rt);return jt-Mt}))}Object.defineProperty(Ie,"triggerNode",{get:function(){return(0,E.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),mn(),fn}}),Object.defineProperty(Ie,"allCheckedNodes",{get:function(){return(0,E.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),mn(),Et?sn:sn.map(function(tr){var Vt=tr.node;return Vt})}})}var be=function(je,Je,ht){var Et=ht.fieldNames,Qt=ht.treeNodeFilterProp,fn=ht.filterTreeNode,sn=Et.children;return te.useMemo(function(){if(!Je||fn===!1)return je;var mn=typeof fn=="function"?fn:function(tr,Vt){return String(Vt[Qt]).toUpperCase().includes(Je.toUpperCase())},Zn=function tr(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vt.reduce(function(Rt,jt){var Mt=jt[sn],Kt=Gt||mn(Je,_e(jt)),yt=tr(Mt||[],Kt);return(Kt||yt.length)&&Rt.push((0,ve.Z)((0,ve.Z)({},jt),{},(0,de.Z)({isLeaf:void 0},sn,yt))),Rt},[])};return Zn(je)},[je,Je,sn,Qt,fn])},Se=be;function Be(Ie){var je=te.useRef();je.current=Ie;var Je=te.useCallback(function(){return je.current.apply(je,arguments)},[]);return Je}function Ae(Ie,je){var Je=je.id,ht=je.pId,Et=je.rootPId,Qt=new Map,fn=[];return Ie.forEach(function(sn){var mn=sn[Je],Zn=(0,ve.Z)((0,ve.Z)({},sn),{},{key:sn.key||mn});Qt.set(mn,Zn)}),Qt.forEach(function(sn){var mn=sn[ht],Zn=Qt.get(mn);Zn?(Zn.children=Zn.children||[],Zn.children.push(sn)):(mn===Et||Et===null)&&fn.push(sn)}),fn}function we(Ie,je,Je){return te.useMemo(function(){if(Ie){if(Je){var ht=(0,ve.Z)({id:"id",pId:"pId",rootPId:null},(0,he.Z)(Je)==="object"?Je:{});return Ae(Ie,ht)}return Ie}return ge(je)},[je,Je,Ie])}var Ue=te.createContext(null),Pe=Ue,ze=Ce(72054),Ke=Ce(87632),Ne=Ce(10228),Re=Ce(80547),$e=te.createContext(null),nt=$e,ut=function(je){return Array.isArray(je)?je:je!==void 0?[je]:[]},Qe=function(je){var Je=je||{},ht=Je.label,Et=Je.value,Qt=Je.children;return{_title:ht?[ht]:["title","label"],value:Et||"value",key:Et||"value",children:Qt||"children"}},rt=function(je){return!je||je.disabled||je.disableCheckbox||je.checkable===!1},pt=function(je,Je){var ht=[],Et=function Qt(fn){fn.forEach(function(sn){var mn=sn[Je.children];mn&&(ht.push(sn[Je.value]),Qt(mn))})};return Et(je),ht},At=function(je){return je==null},gt=Ce(70425),Ft={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ct=function(je,Je){var ht=(0,le.lk)(),Et=ht.prefixCls,Qt=ht.multiple,fn=ht.searchValue,sn=ht.toggleOpen,mn=ht.open,Zn=ht.notFoundContent,tr=te.useContext(nt),Vt=tr.virtual,Gt=tr.listHeight,Rt=tr.listItemHeight,jt=tr.listItemScrollOffset,Mt=tr.treeData,Kt=tr.fieldNames,yt=tr.onSelect,qt=tr.dropdownMatchSelectWidth,vn=tr.treeExpandAction,Tt=tr.treeTitleRender,It=tr.onPopupScroll,Dt=tr.leftMaxCount,Bt=tr.leafCountOnly,Zt=tr.valueEntities,tn=te.useContext(Pe),Tn=tn.checkable,Fn=tn.checkedKeys,dr=tn.halfCheckedKeys,_r=tn.treeExpandedKeys,Kr=tn.treeDefaultExpandAll,Sr=tn.treeDefaultExpandedKeys,hr=tn.onTreeExpand,Mr=tn.treeIcon,Br=tn.showTreeIcon,Wr=tn.switcherIcon,Jn=tn.treeLine,ii=tn.treeNodeFilterProp,Ur=tn.loadData,Gr=tn.treeLoadedKeys,qr=tn.treeMotion,Li=tn.onTreeLoad,wi=tn.keyEntities,ui=te.useRef(),Qr=(0,Re.Z)(function(){return Mt},[mn,Mt],function(mi,Nr){return Nr[0]&&mi[1]!==Nr[1]}),Di=te.useMemo(function(){return Tn?{checked:Fn,halfChecked:dr}:null},[Tn,Fn,dr]);te.useEffect(function(){if(mn&&!Qt&&Fn.length){var mi;(mi=ui.current)===null||mi===void 0||mi.scrollTo({key:Fn[0]})}},[mn]);var oi=function(Nr){Nr.preventDefault()},di=function(Nr,Ar){var pi=Ar.node;Tn&&rt(pi)||(yt(pi.key,{selected:!Fn.includes(pi.key)}),Qt||sn(!1))},ci=te.useState(Sr),ki=(0,ue.Z)(ci,2),Ki=ki[0],ua=ki[1],kn=te.useState(null),qi=(0,ue.Z)(kn,2),Qi=qi[0],ra=qi[1],_i=te.useMemo(function(){return _r?(0,Oe.Z)(_r):fn?Qi:Ki},[Ki,Qi,_r,fn]),Ti=function(Nr){ua(Nr),ra(Nr),hr&&hr(Nr)},Xr=String(fn).toLowerCase(),rr=function(Nr){return Xr?String(Nr[ii]).toLowerCase().includes(Xr):!1};te.useEffect(function(){fn&&ra(pt(Mt,Kt))},[fn]);var Dr=te.useState(function(){return new Map}),Fr=(0,ue.Z)(Dr,2),or=Fr[0],ei=Fr[1];te.useEffect(function(){Dt&&ei(new Map)},[Dt]);function si(mi){var Nr=mi[Kt.value];if(!or.has(Nr)){var Ar=Zt.get(Nr),pi=(Ar.children||[]).length===0;if(pi)or.set(Nr,!1);else{var Gi=Ar.children.filter(function(Wi){return!Wi.node.disabled&&!Wi.node.disableCheckbox&&!Fn.includes(Wi.node[Kt.value])}),gi=Gi.length;or.set(Nr,gi>Dt)}}return or.get(Nr)}var wr=(0,gt.zX)(function(mi){var Nr=mi[Kt.value];return Fn.includes(Nr)||Dt===null?!1:Dt<=0?!0:Bt&&Dt?si(mi):!1}),Ir=function mi(Nr){var Ar=(0,ze.Z)(Nr),pi;try{for(Ar.s();!(pi=Ar.n()).done;){var Gi=pi.value;if(!(Gi.disabled||Gi.selectable===!1)){if(fn){if(rr(Gi))return Gi}else return Gi;if(Gi[Kt.children]){var gi=mi(Gi[Kt.children]);if(gi)return gi}}}}catch(Wi){Ar.e(Wi)}finally{Ar.f()}return null},Hr=te.useState(null),ri=(0,ue.Z)(Hr,2),un=ri[0],Vn=ri[1],Sn=wi[un];te.useEffect(function(){if(mn){var mi=null,Nr=function(){var pi=Ir(Qr);return pi?pi[Kt.value]:null};!Qt&&Fn.length&&!fn?mi=Fn[0]:mi=Nr(),Vn(mi)}},[mn,fn]),te.useImperativeHandle(Je,function(){var mi;return{scrollTo:(mi=ui.current)===null||mi===void 0?void 0:mi.scrollTo,onKeyDown:function(Ar){var pi,Gi=Ar.which;switch(Gi){case Ne.Z.UP:case Ne.Z.DOWN:case Ne.Z.LEFT:case Ne.Z.RIGHT:(pi=ui.current)===null||pi===void 0||pi.onKeyDown(Ar);break;case Ne.Z.ENTER:{if(Sn){var gi=wr(Sn.node),Wi=(Sn==null?void 0:Sn.node)||{},Jr=Wi.selectable,li=Wi.value,Zr=Wi.disabled;Jr!==!1&&!Zr&&!gi&&di(null,{node:{key:un},selected:!Fn.includes(li)})}break}case Ne.Z.ESC:sn(!1)}},onKeyUp:function(){}}});var Rr=(0,Re.Z)(function(){return!fn},[fn,_r||Ki],function(mi,Nr){var Ar=(0,ue.Z)(mi,1),pi=Ar[0],Gi=(0,ue.Z)(Nr,2),gi=Gi[0],Wi=Gi[1];return pi!==gi&&!!(gi||Wi)}),ti=Rr?Ur:null;if(Qr.length===0)return te.createElement("div",{role:"listbox",className:"".concat(Et,"-empty"),onMouseDown:oi},Zn);var gn={fieldNames:Kt};return Gr&&(gn.loadedKeys=Gr),_i&&(gn.expandedKeys=_i),te.createElement("div",{onMouseDown:oi},Sn&&mn&&te.createElement("span",{style:Ft,"aria-live":"assertive"},Sn.node.value),te.createElement(Ke.y6.Provider,{value:{nodeDisabled:wr}},te.createElement(Ke.ZP,(0,pe.Z)({ref:ui,focusable:!1,prefixCls:"".concat(Et,"-tree"),treeData:Qr,height:Gt,itemHeight:Rt,itemScrollOffset:jt,virtual:Vt!==!1&&qt!==!1,multiple:Qt,icon:Mr,showIcon:Br,switcherIcon:Wr,showLine:Jn,loadData:ti,motion:qr,activeKey:un,checkable:Tn,checkStrictly:!0,checkedKeys:Di,selectedKeys:Tn?[]:Fn,defaultExpandAll:Kr,titleRender:Tt},gn,{onActiveChange:Vn,onSelect:di,onCheck:di,onExpand:Ti,onLoad:Li,filterTreeNode:rr,expandAction:vn,onScroll:It}))))},Yt=te.forwardRef(Ct),zt=Yt,Xe="SHOW_ALL",Fe="SHOW_PARENT",Le="SHOW_CHILD";function Ze(Ie,je,Je,ht){var Et=new Set(Ie);return je===Le?Ie.filter(function(Qt){var fn=Je[Qt];return!fn||!fn.children||!fn.children.some(function(sn){var mn=sn.node;return Et.has(mn[ht.value])})||!fn.children.every(function(sn){var mn=sn.node;return rt(mn)||Et.has(mn[ht.value])})}):je===Fe?Ie.filter(function(Qt){var fn=Je[Qt],sn=fn?fn.parent:null;return!sn||rt(sn.node)||!Et.has(sn.key)}):Ie}function et(Ie){var je=Ie.searchPlaceholder,Je=Ie.treeCheckStrictly,ht=Ie.treeCheckable,Et=Ie.labelInValue,Qt=Ie.value,fn=Ie.multiple,sn=Ie.showCheckedStrategy,mn=Ie.maxCount;warning(!je,"`searchPlaceholder` has been removed."),Je&&Et===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Et||Je)&&warning(toArray(Qt).every(function(Zn){return Zn&&_typeof(Zn)==="object"&&"value"in Zn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Je||fn||ht?warning(!Qt||Array.isArray(Qt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Qt),"`value` should not be array when `TreeSelect` is single mode."),mn&&(sn==="SHOW_ALL"&&!Je||sn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var He=null,We=["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 tt(Ie){return!Ie||(0,he.Z)(Ie)!=="object"}var at=te.forwardRef(function(Ie,je){var Je=Ie.id,ht=Ie.prefixCls,Et=ht===void 0?"rc-tree-select":ht,Qt=Ie.value,fn=Ie.defaultValue,sn=Ie.onChange,mn=Ie.onSelect,Zn=Ie.onDeselect,tr=Ie.searchValue,Vt=Ie.inputValue,Gt=Ie.onSearch,Rt=Ie.autoClearSearchValue,jt=Rt===void 0?!0:Rt,Mt=Ie.filterTreeNode,Kt=Ie.treeNodeFilterProp,yt=Kt===void 0?"value":Kt,qt=Ie.showCheckedStrategy,vn=Ie.treeNodeLabelProp,Tt=Ie.multiple,It=Ie.treeCheckable,Dt=Ie.treeCheckStrictly,Bt=Ie.labelInValue,Zt=Ie.maxCount,tn=Ie.fieldNames,Tn=Ie.treeDataSimpleMode,Fn=Ie.treeData,dr=Ie.children,_r=Ie.loadData,Kr=Ie.treeLoadedKeys,Sr=Ie.onTreeLoad,hr=Ie.treeDefaultExpandAll,Mr=Ie.treeExpandedKeys,Br=Ie.treeDefaultExpandedKeys,Wr=Ie.onTreeExpand,Jn=Ie.treeExpandAction,ii=Ie.virtual,Ur=Ie.listHeight,Gr=Ur===void 0?200:Ur,qr=Ie.listItemHeight,Li=qr===void 0?20:qr,wi=Ie.listItemScrollOffset,ui=wi===void 0?0:wi,Qr=Ie.onDropdownVisibleChange,Di=Ie.dropdownMatchSelectWidth,oi=Di===void 0?!0:Di,di=Ie.treeLine,ci=Ie.treeIcon,ki=Ie.showTreeIcon,Ki=Ie.switcherIcon,ua=Ie.treeMotion,kn=Ie.treeTitleRender,qi=Ie.onPopupScroll,Qi=(0,fe.Z)(Ie,We),ra=(0,ae.ZP)(Je),_i=It&&!Dt,Ti=It||Dt,Xr=Dt||Bt,rr=Ti||Tt,Dr=(0,me.Z)(fn,{value:Qt}),Fr=(0,ue.Z)(Dr,2),or=Fr[0],ei=Fr[1],si=te.useMemo(function(){return It?qt||Le:Xe},[qt,It]),wr=te.useMemo(function(){return Qe(tn)},[JSON.stringify(tn)]),Ir=(0,me.Z)("",{value:tr!==void 0?tr:Vt,postState:function(Ci){return Ci||""}}),Hr=(0,ue.Z)(Ir,2),ri=Hr[0],un=Hr[1],Vn=function(Ci){un(Ci),Gt==null||Gt(Ci)},Sn=we(Fn,dr,Tn),Rr=se(Sn,wr),ti=Rr.keyEntities,gn=Rr.valueEntities,mi=te.useCallback(function(Ei){var Ci=[],kr=[];return Ei.forEach(function(Zi){gn.has(Zi)?kr.push(Zi):Ci.push(Zi)}),{missingRawValues:Ci,existRawValues:kr}},[gn]),Nr=Se(Sn,ri,{fieldNames:wr,treeNodeFilterProp:yt,filterTreeNode:Mt}),Ar=te.useCallback(function(Ei){if(Ei){if(vn)return Ei[vn];for(var Ci=wr._title,kr=0;krzi)){var ma=Gi(Ei);if(ei(ma),jt&&un(""),sn){var ba=Ei;_i&&(ba=Zi.map(function(Wa){var Ka=gn.get(Wa);return Ka?Ka.node[wr.value]:Wa}));var ir=Ci||{triggerValue:void 0,selected:void 0},Ji=ir.triggerValue,Va=ir.selected,no=ba;if(Dt){var Ya=Zr.filter(function(Wa){return!ba.includes(Wa.value)});no=[].concat((0,Oe.Z)(no),(0,Oe.Z)(Ya))}var xi=Gi(no),pa={preValue:li,triggerValue:Ji},_a=!0;(Dt||kr==="selection"&&!Va)&&(_a=!1),ye(pa,Ji,Ei,Sn,_a,wr),Ti?pa.checked=Va:pa.selected=Va;var oa=Xr?xi:xi.map(function(Wa){return Wa.value});sn(rr?oa:oa[0],Xr?null:xi.map(function(Wa){return Wa.label}),pa)}}}),Ca=te.useCallback(function(Ei,Ci){var kr,Zi=Ci.selected,ma=Ci.source,ba=ti[Ei],ir=ba==null?void 0:ba.node,Ji=(kr=ir==null?void 0:ir[wr.value])!==null&&kr!==void 0?kr:Ei;if(!rr)Da([Ji],{selected:!0,triggerValue:Ji},"option");else{var Va=Zi?[].concat((0,Oe.Z)(Vi),[Ji]):Ni.filter(function(Ka){return Ka!==Ji});if(_i){var no=mi(Va),Ya=no.missingRawValues,xi=no.existRawValues,pa=xi.map(function(Ka){return gn.get(Ka).key}),_a;if(Zi){var oa=(0,ie.S)(pa,!0,ti);_a=oa.checkedKeys}else{var Wa=(0,ie.S)(pa,{checked:!1,halfCheckedKeys:Ii},ti);_a=Wa.checkedKeys}Va=[].concat((0,Oe.Z)(Ya),(0,Oe.Z)(_a.map(function(Ka){return ti[Ka].node[wr.value]})))}Da(Va,{selected:Zi,triggerValue:Ji},ma||"option")}Zi||!rr?mn==null||mn(Ji,_e(ir)):Zn==null||Zn(Ji,_e(ir))},[mi,gn,ti,wr,rr,Vi,Da,_i,mn,Zn,Ni,Ii,Zt]),Ra=te.useCallback(function(Ei){if(Qr){var Ci={};Object.defineProperty(Ci,"documentClickClose",{get:function(){return(0,E.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Qr(Ei,Ci)}},[Qr]),to=Be(function(Ei,Ci){var kr=Ei.map(function(Zi){return Zi.value});if(Ci.type==="clear"){Da(kr,{},"selection");return}Ci.values.length&&Ca(Ci.values[0].value,{selected:!1,source:"selection"})}),bi=te.useMemo(function(){return{virtual:ii,dropdownMatchSelectWidth:oi,listHeight:Gr,listItemHeight:Li,listItemScrollOffset:ui,treeData:Nr,fieldNames:wr,onSelect:Ca,treeExpandAction:Jn,treeTitleRender:kn,onPopupScroll:qi,leftMaxCount:Zt===void 0?null:Zt-la.length,leafCountOnly:si==="SHOW_CHILD"&&!Dt&&!!It,valueEntities:gn}},[ii,oi,Gr,Li,ui,Nr,wr,Ca,Jn,kn,qi,Zt,la.length,si,Dt,It,gn]),Yi=te.useMemo(function(){return{checkable:Ti,loadData:_r,treeLoadedKeys:Kr,onTreeLoad:Sr,checkedKeys:Ni,halfCheckedKeys:Ii,treeDefaultExpandAll:hr,treeExpandedKeys:Mr,treeDefaultExpandedKeys:Br,onTreeExpand:Wr,treeIcon:ci,treeMotion:ua,showTreeIcon:ki,switcherIcon:Ki,treeLine:di,treeNodeFilterProp:yt,keyEntities:ti}},[Ti,_r,Kr,Sr,Ni,Ii,hr,Mr,Br,Wr,ci,ua,ki,Ki,di,yt,ti]);return te.createElement(nt.Provider,{value:bi},te.createElement(Pe.Provider,{value:Yi},te.createElement(le.Ac,(0,pe.Z)({ref:je},Qi,{id:ra,prefixCls:Et,mode:rr?"multiple":void 0,displayValues:la,onDisplayValuesChange:to,searchValue:ri,onSearch:Vn,OptionList:zt,emptyOptions:!Sn.length,onDropdownVisibleChange:Ra,dropdownMatchSelectWidth:oi}))))}),ot=at;ot.TreeNode=re,ot.SHOW_ALL=Xe,ot.SHOW_PARENT=Fe,ot.SHOW_CHILD=Le;var ct=ot,lt=ct,mt=Ce(2738),Lt=Ce(75030),ft=Ce(86641),St=Ce(45915),nn=Ce(82855),on=Ce(48755),yn=Ce(38406),xn=Ce(2171),an=Ce(83397),An=Ce(31756),Jt=Ce(56553),Ut=Ce(24971),rn=Ce(1722),_n=Ce(90376),Bn=Ce(68525),kt=Ce(90005),ln=Ce(70045),Cn=Ce(57700),Mn=Ce(85278),Qn=Ce(36237),mr=Ce(36170),lr=Ce(51636),Cr=Ce(16931),nr=Ce(12425);const ur=Ie=>{const{componentCls:je,treePrefixCls:Je,colorBgElevated:ht}=Ie,Et=`.${Je}`;return[{[`${je}-dropdown`]:[{padding:`${(0,Qn.unit)(Ie.paddingXS)} ${(0,Qn.unit)(Ie.calc(Ie.paddingXS).div(2).equal())}`},(0,nr.Yk)(Je,(0,lr.mergeToken)(Ie,{colorBgContainer:ht}),!1),{[Et]:{borderRadius:0,[`${Et}-list-holder-inner`]:{alignItems:"stretch",[`${Et}-treenode`]:{[`${Et}-node-content-wrapper`]:{flex:"auto"}}}}},(0,mr.C2)(`${Je}-checkbox`,Ie),{"&-rtl":{direction:"rtl",[`${Et}-switcher${Et}-switcher_close`]:{[`${Et}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Nn=null;function In(Ie,je,Je){return(0,Cr.I$)("TreeSelect",ht=>{const Et=(0,lr.mergeToken)(ht,{treePrefixCls:je});return[ur(Et)]},nr.TM)(Ie,Je)}var Wn=function(Ie,je){var Je={};for(var ht in Ie)Object.prototype.hasOwnProperty.call(Ie,ht)&&je.indexOf(ht)<0&&(Je[ht]=Ie[ht]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ht=Object.getOwnPropertySymbols(Ie);Et{var Je;const{prefixCls:ht,size:Et,disabled:Qt,bordered:fn=!0,className:sn,rootClassName:mn,treeCheckable:Zn,multiple:tr,listHeight:Vt=256,listItemHeight:Gt,placement:Rt,notFoundContent:jt,switcherIcon:Mt,treeLine:Kt,getPopupContainer:yt,popupClassName:qt,dropdownClassName:vn,treeIcon:Tt=!1,transitionName:It,choiceTransitionName:Dt="",status:Bt,treeExpandAction:Zt,builtinPlacements:tn,dropdownMatchSelectWidth:Tn,popupMatchSelectWidth:Fn,allowClear:dr,variant:_r,dropdownStyle:Kr,tagRender:Sr,maxCount:hr,showCheckedStrategy:Mr,treeCheckStrictly:Br}=Ie,Wr=Wn(Ie,["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:Jn,getPrefixCls:ii,renderEmpty:Ur,direction:Gr,virtual:qr,popupMatchSelectWidth:Li,popupOverflow:wi}=te.useContext(on.E_),[,ui]=(0,Cn.ZP)(),Qr=Gt!=null?Gt:(ui==null?void 0:ui.controlHeightSM)+(ui==null?void 0:ui.paddingXXS),Di=ii(),oi=ii("select",ht),di=ii("select-tree",ht),ci=ii("tree-select",ht),{compactSize:ki,compactItemClassnames:Ki}=(0,ln.ri)(oi,Gr),ua=(0,an.Z)(oi),kn=(0,an.Z)(ci),[qi,Qi,ra]=(0,_n.Z)(oi,ua),[_i]=In(ci,di,kn),[Ti,Xr]=(0,Ut.Z)("treeSelect",_r,fn),rr=Me()(qt||vn,`${ci}-dropdown`,{[`${ci}-dropdown-rtl`]:Gr==="rtl"},mn,ra,ua,kn,Qi),Dr=!!(Zn||tr),Fr=te.useMemo(()=>{if(!(hr&&(Mr==="SHOW_ALL"&&!Br||Mr==="SHOW_PARENT")))return hr},[hr,Mr,Br]),or=(0,kt.Z)(Ie.suffixIcon,Ie.showArrow),ei=(Je=Fn!=null?Fn:Tn)!==null&&Je!==void 0?Je:Li,{status:si,hasFeedback:wr,isFormItemInput:Ir,feedbackIcon:Hr}=te.useContext(Jt.aM),ri=(0,nn.F)(si,Bt),{suffixIcon:un,removeIcon:Vn,clearIcon:Sn}=(0,Bn.Z)(Object.assign(Object.assign({},Wr),{multiple:Dr,showSuffixIcon:or,hasFeedback:wr,feedbackIcon:Hr,prefixCls:oi,componentName:"TreeSelect"})),Rr=dr===!0?{clearIcon:Sn}:dr;let ti;jt!==void 0?ti=jt:ti=(Ur==null?void 0:Ur("Select"))||te.createElement(yn.Z,{componentName:"Select"});const gn=(0,mt.Z)(Wr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),mi=te.useMemo(()=>Rt!==void 0?Rt:Gr==="rtl"?"bottomRight":"bottomLeft",[Rt,Gr]),Nr=(0,An.Z)(li=>{var Zr;return(Zr=Et!=null?Et:ki)!==null&&Zr!==void 0?Zr:li}),Ar=te.useContext(xn.Z),pi=Qt!=null?Qt:Ar,Gi=Me()(!ht&&ci,{[`${oi}-lg`]:Nr==="large",[`${oi}-sm`]:Nr==="small",[`${oi}-rtl`]:Gr==="rtl",[`${oi}-${Ti}`]:Xr,[`${oi}-in-form-item`]:Ir},(0,nn.Z)(oi,ri,wr),Ki,sn,mn,ra,ua,kn,Qi),gi=li=>te.createElement(Mn.Z,{prefixCls:di,switcherIcon:Mt,treeNodeProps:li,showLine:Kt}),[Wi]=(0,Lt.Cn)("SelectLike",Kr==null?void 0:Kr.zIndex),Jr=te.createElement(lt,Object.assign({virtual:qr,disabled:pi},gn,{dropdownMatchSelectWidth:ei,builtinPlacements:(0,rn.Z)(tn,wi),ref:je,prefixCls:oi,className:Gi,listHeight:Vt,listItemHeight:Qr,treeCheckable:Zn&&te.createElement("span",{className:`${oi}-tree-checkbox-inner`}),treeLine:!!Kt,suffixIcon:un,multiple:Dr,placement:mi,removeIcon:Vn,allowClear:Rr,switcherIcon:gi,showTreeIcon:Tt,notFoundContent:ti,getPopupContainer:yt||Jn,treeMotion:null,dropdownClassName:rr,dropdownStyle:Object.assign(Object.assign({},Kr),{zIndex:Wi}),choiceTransitionName:(0,ft.m)(Di,"",Dt),transitionName:(0,ft.m)(Di,"slide-up",It),treeExpandAction:Zt,tagRender:Dr?Sr:void 0,maxCount:Fr,showCheckedStrategy:Mr,treeCheckStrictly:Br}));return qi(_i(Jr))},$n=te.forwardRef(Kn),ar=(0,St.Z)($n,"dropdownAlign",Ie=>(0,mt.Z)(Ie,["visible"]));$n.TreeNode=re,$n.SHOW_ALL=Xe,$n.SHOW_PARENT=Fe,$n.SHOW_CHILD=Le,$n._InternalPanelDoNotUseOrYouWillBeFired=ar;var dn=$n},18287:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return ut}});var te=Ce(87632),Ye=Ce(77654),Me=Ce(59301),pe=Ce(52671),Oe=Ce(8657),ve=Ce(60499),ue={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"},fe=ue,he=Ce(7657),le=function(rt,pt){return Me.createElement(he.Z,(0,ve.Z)({},rt,{ref:pt,icon:fe}))},ae=Me.forwardRef(le),ie=ae,me=Ce(92310),E=Ce.n(me),b=Ce(82661),z=Ce(34061),ne=Ce(48755),oe=Ce(56082),se=Ce(86641),de=Ce(57700),a=Ce(12425);const x=4;function re(Qe){const{dropPosition:rt,dropLevelOffset:pt,prefixCls:At,indent:gt,direction:Ft="ltr"}=Qe,Ct=Ft==="ltr"?"left":"right",Yt=Ft==="ltr"?"right":"left",zt={[Ct]:-pt*gt+x,[Yt]:0};switch(rt){case-1:zt.top=-3;break;case 1:zt.bottom=-3;break;default:zt.bottom=-3,zt[Ct]=gt+x;break}return Me.createElement("div",{style:zt,className:`${At}-drop-indicator`})}var ce=re,ge=Ce(85278),ye=Me.forwardRef((Qe,rt)=>{var pt;const{getPrefixCls:At,direction:gt,virtual:Ft,tree:Ct}=Me.useContext(ne.E_),{prefixCls:Yt,className:zt,showIcon:Xe=!1,showLine:Fe,switcherIcon:Le,switcherLoadingIcon:Ze,blockNode:et=!1,children:He,checkable:We=!1,selectable:tt=!0,draggable:at,motion:ot,style:ct}=Qe,lt=At("tree",Yt),mt=At(),Lt=ot!=null?ot:Object.assign(Object.assign({},(0,se.Z)(mt)),{motionAppear:!1}),ft=Object.assign(Object.assign({},Qe),{checkable:We,selectable:tt,showIcon:Xe,motion:Lt,blockNode:et,showLine:!!Fe,dropIndicatorRender:ce}),[St,nn,on]=(0,a.ZP)(lt),[,yn]=(0,de.ZP)(),xn=yn.paddingXS/2+(((pt=yn.Tree)===null||pt===void 0?void 0:pt.titleHeight)||yn.controlHeightSM),an=Me.useMemo(()=>{if(!at)return!1;let Jt={};switch(typeof at){case"function":Jt.nodeDraggable=at;break;case"object":Jt=Object.assign({},at);break;default:break}return Jt.icon!==!1&&(Jt.icon=Jt.icon||Me.createElement(oe.Z,null)),Jt},[at]),An=Jt=>Me.createElement(ge.Z,{prefixCls:lt,switcherIcon:Le,switcherLoadingIcon:Ze,treeNodeProps:Jt,showLine:Fe});return St(Me.createElement(te.ZP,Object.assign({itemHeight:xn,ref:rt,virtual:Ft},ft,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),ct),prefixCls:lt,className:E()({[`${lt}-icon-hide`]:!Xe,[`${lt}-block-node`]:et,[`${lt}-unselectable`]:!tt,[`${lt}-rtl`]:gt==="rtl"},Ct==null?void 0:Ct.className,zt,nn,on),direction:gt,checkable:We&&Me.createElement("span",{className:`${lt}-checkbox-inner`}),selectable:tt,switcherIcon:An,draggable:an}),He))});const be=0,Se=1,Be=2;function Ae(Qe,rt,pt){const{key:At,children:gt}=pt;function Ft(Ct){const Yt=Ct[At],zt=Ct[gt];rt(Yt,Ct)!==!1&&Ae(zt||[],rt,pt)}Qe.forEach(Ft)}function we(Qe){let{treeData:rt,expandedKeys:pt,startKey:At,endKey:gt,fieldNames:Ft}=Qe;const Ct=[];let Yt=be;if(At&&At===gt)return[At];if(!At||!gt)return[];function zt(Xe){return Xe===At||Xe===gt}return Ae(rt,Xe=>{if(Yt===Be)return!1;if(zt(Xe)){if(Ct.push(Xe),Yt===be)Yt=Se;else if(Yt===Se)return Yt=Be,!1}else Yt===Se&&Ct.push(Xe);return pt.includes(Xe)},(0,z.w$)(Ft)),Ct}function Ue(Qe,rt,pt){const At=(0,Ye.Z)(rt),gt=[];return Ae(Qe,(Ft,Ct)=>{const Yt=At.indexOf(Ft);return Yt!==-1&&(gt.push(Ct),At.splice(Yt,1)),!!At.length},(0,z.w$)(pt)),gt}var Pe=function(Qe,rt){var pt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&rt.indexOf(At)<0&&(pt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,At=Object.getOwnPropertySymbols(Qe);gt{var{defaultExpandAll:pt,defaultExpandParent:At,defaultExpandedKeys:gt}=Qe,Ft=Pe(Qe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=Me.useRef(null),Yt=Me.useRef(null),zt=()=>{const{keyEntities:St}=(0,z.I8)(Ke(Ft));let nn;return pt?nn=Object.keys(St):At?nn=(0,b.r7)(Ft.expandedKeys||gt||[],St):nn=Ft.expandedKeys||gt||[],nn},[Xe,Fe]=Me.useState(Ft.selectedKeys||Ft.defaultSelectedKeys||[]),[Le,Ze]=Me.useState(()=>zt());Me.useEffect(()=>{"selectedKeys"in Ft&&Fe(Ft.selectedKeys)},[Ft.selectedKeys]),Me.useEffect(()=>{"expandedKeys"in Ft&&Ze(Ft.expandedKeys)},[Ft.expandedKeys]);const et=(St,nn)=>{var on;return"expandedKeys"in Ft||Ze(St),(on=Ft.onExpand)===null||on===void 0?void 0:on.call(Ft,St,nn)},He=(St,nn)=>{var on;const{multiple:yn,fieldNames:xn}=Ft,{node:an,nativeEvent:An}=nn,{key:Jt=""}=an,Ut=Ke(Ft),rn=Object.assign(Object.assign({},nn),{selected:!0}),_n=(An==null?void 0:An.ctrlKey)||(An==null?void 0:An.metaKey),Bn=An==null?void 0:An.shiftKey;let kt;yn&&_n?(kt=St,Ct.current=Jt,Yt.current=kt,rn.selectedNodes=Ue(Ut,kt,xn)):yn&&Bn?(kt=Array.from(new Set([].concat((0,Ye.Z)(Yt.current||[]),(0,Ye.Z)(we({treeData:Ut,expandedKeys:Le,startKey:Jt,endKey:Ct.current,fieldNames:xn}))))),rn.selectedNodes=Ue(Ut,kt,xn)):(kt=[Jt],Ct.current=Jt,Yt.current=kt,rn.selectedNodes=Ue(Ut,kt,xn)),(on=Ft.onSelect)===null||on===void 0||on.call(Ft,kt,rn),"selectedKeys"in Ft||Fe(kt)},{getPrefixCls:We,direction:tt}=Me.useContext(ne.E_),{prefixCls:at,className:ot,showIcon:ct=!0,expandAction:lt="click"}=Ft,mt=Pe(Ft,["prefixCls","className","showIcon","expandAction"]),Lt=We("tree",at),ft=E()(`${Lt}-directory`,{[`${Lt}-directory-rtl`]:tt==="rtl"},ot);return Me.createElement(ye,Object.assign({icon:ze,ref:rt,blockNode:!0},mt,{showIcon:ct,expandAction:lt,prefixCls:Lt,className:ft,expandedKeys:Le,selectedKeys:Xe,onSelect:He,onExpand:et}))};var $e=Me.forwardRef(Ne);const nt=ye;nt.DirectoryTree=$e,nt.TreeNode=te.OF;var ut=nt},12425:function(Yn,en,Ce){"use strict";Ce.d(en,{ZP:function(){return b},Yk:function(){return ie},TM:function(){return me}});var te=Ce(36237),Ye=Ce(36170),Me=Ce(63356),pe=Ce(34961),Oe=Ce(51636),ve=Ce(16931);const ue=z=>{let{treeCls:ne,treeNodeCls:oe,directoryNodeSelectedBg:se,directoryNodeSelectedColor:de,motionDurationMid:a,borderRadius:x,controlItemBgHover:re}=z;return{[`${ne}${ne}-directory ${oe}`]:{[`${ne}-node-content-wrapper`]:{position:"static",[`> *:not(${ne}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:x},"&:hover:before":{background:re}},[`${ne}-switcher, ${ne}-checkbox, ${ne}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ne}-switcher, ${ne}-draggable-icon`]:{color:de},[`${ne}-node-content-wrapper`]:{color:de,background:"transparent","&:before, &:hover:before":{background:se}}}}}},fe=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(z,ne)=>({[`.${z}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ne.motionDurationSlow}`}}}),le=(z,ne)=>({[`.${z}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,te.unit)(ne.lineWidthBold)} solid ${ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ae=(z,ne)=>{const{treeCls:oe,treeNodeCls:se,treeNodePadding:de,titleHeight:a,indentSize:x,nodeSelectedBg:re,nodeHoverBg:ce,colorTextQuaternary:ge,controlItemBgActiveDisabled:_e}=ne;return{[oe]:Object.assign(Object.assign({},(0,Me.Wf)(ne)),{background:ne.colorBgContainer,borderRadius:ne.borderRadius,transition:`background-color ${ne.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${oe}-rtl ${oe}-switcher_close ${oe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${oe}-active-focused)`]:Object.assign({},(0,Me.oN)(ne)),[`${oe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${oe}-block-node`]:{[`${oe}-list-holder-inner`]:{alignItems:"stretch",[`${oe}-node-content-wrapper`]:{flex:"auto"},[`${se}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ne.colorPrimary}`,opacity:0,animationName:fe,animationDuration:ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ne.borderRadius}}},[se]:{display:"flex",alignItems:"flex-start",marginBottom:de,lineHeight:(0,te.unit)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:de},[`&-disabled ${oe}-node-content-wrapper`]:{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${oe}-checkbox-disabled + ${oe}-node-selected,&${se}-disabled${se}-selected ${oe}-node-content-wrapper`]:{backgroundColor:_e},[`${oe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${se}-disabled)`]:{[`${oe}-node-content-wrapper`]:{"&:hover":{color:ne.nodeHoverColor}}},[`&-active ${oe}-node-content-wrapper`]:{background:ne.controlItemBgHover},[`&:not(${se}-disabled).filter-node ${oe}-title`]:{color:ne.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${oe}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:ge},[`&${se}-disabled ${oe}-draggable-icon`]:{visibility:"hidden"}}},[`${oe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${oe}-draggable-icon`]:{visibility:"hidden"},[`${oe}-switcher, ${oe}-checkbox`]:{marginInlineEnd:ne.calc(ne.calc(a).sub(ne.controlInteractiveSize)).div(2).equal()},[`${oe}-switcher`]:Object.assign(Object.assign({},he(z,ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ne.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ne.borderRadius,transition:`all ${ne.motionDurationSlow}`},[`&:not(${oe}-switcher-noop):hover:before`]:{backgroundColor:ne.colorBgTextHover},[`&_close ${oe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ne.calc(a).div(2).equal(),bottom:ne.calc(de).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ne.calc(ne.calc(a).div(2).equal()).mul(.8).equal(),height:ne.calc(a).div(2).equal(),borderBottom:`1px solid ${ne.colorBorder}`,content:'""'}}}),[`${oe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:ne.paddingXS,background:"transparent",borderRadius:ne.borderRadius,cursor:"pointer",transition:`all ${ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},le(z,ne)),{"&:hover":{backgroundColor:ce},[`&${oe}-node-selected`]:{color:ne.nodeSelectedColor,backgroundColor:re},[`${oe}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${oe}-unselectable ${oe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${se}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ne.colorPrimary}`},"&-show-line":{[`${oe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ne.calc(a).div(2).equal(),bottom:ne.calc(de).mul(-1).equal(),borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${oe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${se}-leaf-last ${oe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,te.unit)(ne.calc(a).div(2).equal())} !important`}})}},ie=function(z,ne){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const se=`.${z}`,de=`${se}-treenode`,a=ne.calc(ne.paddingXS).div(2).equal(),x=(0,Oe.mergeToken)(ne,{treeCls:se,treeNodeCls:de,treeNodePadding:a});return[ae(z,x),oe&&ue(x)].filter(Boolean)},me=z=>{const{controlHeightSM:ne,controlItemBgHover:oe,controlItemBgActive:se}=z,de=ne;return{titleHeight:de,indentSize:de,nodeHoverBg:oe,nodeHoverColor:z.colorText,nodeSelectedBg:se,nodeSelectedColor:z.colorText}},E=z=>{const{colorTextLightSolid:ne,colorPrimary:oe}=z;return Object.assign(Object.assign({},me(z)),{directoryNodeSelectedColor:ne,directoryNodeSelectedBg:oe})};var b=(0,ve.I$)("Tree",(z,ne)=>{let{prefixCls:oe}=ne;return[{[z.componentCls]:(0,Ye.C2)(`${oe}-checkbox`,z)},ie(oe,z),(0,pe.Z)(z)]},E)},85278:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return ne}});var te=Ce(59301),Ye=Ce(60499),Me={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"},pe=Me,Oe=Ce(7657),ve=function(se,de){return te.createElement(Oe.Z,(0,Ye.Z)({},se,{ref:de,icon:pe}))},ue=te.forwardRef(ve),fe=ue,he=Ce(52671),le=Ce(58617),ae=Ce(15075),ie=Ce(43531),me=Ce(92310),E=Ce.n(me),b=Ce(22703),ne=oe=>{const{prefixCls:se,switcherIcon:de,treeNodeProps:a,showLine:x,switcherLoadingIcon:re}=oe,{isLeaf:ce,expanded:ge,loading:_e}=a;if(_e)return te.isValidElement(re)?re:te.createElement(le.Z,{className:`${se}-switcher-loading-icon`});let ye;if(x&&typeof x=="object"&&(ye=x.showLeafIcon),ce){if(!x)return null;if(typeof ye!="boolean"&&ye){const Be=typeof ye=="function"?ye(a):ye,Ae=`${se}-switcher-line-custom-icon`;return te.isValidElement(Be)?(0,b.Tm)(Be,{className:E()(Be.props.className||"",Ae)}):Be}return ye?te.createElement(he.Z,{className:`${se}-switcher-line-icon`}):te.createElement("span",{className:`${se}-switcher-leaf-line`})}const be=`${se}-switcher-icon`,Se=typeof de=="function"?de(a):de;return te.isValidElement(Se)?(0,b.Tm)(Se,{className:E()(Se.props.className||"",be)}):Se!==void 0?Se:x?ge?te.createElement(ae.Z,{className:`${se}-switcher-line-icon`}):te.createElement(ie.Z,{className:`${se}-switcher-line-icon`}):te.createElement(fe,{className:be})}},94968:function(Yn,en,Ce){"use strict";Ce.d(en,{default:function(){return Kt}});var te=Ce(59301),Ye=Ce(77654),Me=Ce(4676),pe=Ce(92310),Oe=Ce.n(pe),ve=Ce(60499),ue=Ce(38705),fe=Ce(17212),he=Ce(15793),le=Ce(39153),ae=Ce(55401),ie=Ce(18642),me=Ce(85899),E=Ce(42244),b=Ce(43749),z=Ce(73001),ne=Ce(11576),oe=Ce(26112),se=Ce(48736),de=function(yt,qt){if(yt&&qt){var vn=Array.isArray(qt)?qt:qt.split(","),Tt=yt.name||"",It=yt.type||"",Dt=It.replace(/\/.*$/,"");return vn.some(function(Bt){var Zt=Bt.trim();if(/^\*(\/\*)?$/.test(Bt))return!0;if(Zt.charAt(0)==="."){var tn=Tt.toLowerCase(),Tn=Zt.toLowerCase(),Fn=[Tn];return(Tn===".jpg"||Tn===".jpeg")&&(Fn=[".jpg",".jpeg"]),Fn.some(function(dr){return tn.endsWith(dr)})}return/\/\*$/.test(Zt)?Dt===Zt.replace(/\/.*$/,""):It===Zt?!0:/^\w+$/.test(Zt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Zt,"'.Skip for check.")),!0):!1})}return!0};function a(yt,qt){var vn="cannot ".concat(yt.method," ").concat(yt.action," ").concat(qt.status,"'"),Tt=new Error(vn);return Tt.status=qt.status,Tt.method=yt.method,Tt.url=yt.action,Tt}function x(yt){var qt=yt.responseText||yt.response;if(!qt)return qt;try{return JSON.parse(qt)}catch(vn){return qt}}function re(yt){var qt=new XMLHttpRequest;yt.onProgress&&qt.upload&&(qt.upload.onprogress=function(Dt){Dt.total>0&&(Dt.percent=Dt.loaded/Dt.total*100),yt.onProgress(Dt)});var vn=new FormData;yt.data&&Object.keys(yt.data).forEach(function(It){var Dt=yt.data[It];if(Array.isArray(Dt)){Dt.forEach(function(Bt){vn.append("".concat(It,"[]"),Bt)});return}vn.append(It,Dt)}),yt.file instanceof Blob?vn.append(yt.filename,yt.file,yt.file.name):vn.append(yt.filename,yt.file),qt.onerror=function(Dt){yt.onError(Dt)},qt.onload=function(){return qt.status<200||qt.status>=300?yt.onError(a(yt,qt),x(qt)):yt.onSuccess(x(qt),qt)},qt.open(yt.method,yt.action,!0),yt.withCredentials&&"withCredentials"in qt&&(qt.withCredentials=!0);var Tt=yt.headers||{};return Tt["X-Requested-With"]!==null&&qt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Tt).forEach(function(It){Tt[It]!==null&&qt.setRequestHeader(It,Tt[It])}),qt.send(vn),{abort:function(){qt.abort()}}}var ce=function(){var yt=(0,ne.Z)((0,z.Z)().mark(function qt(vn,Tt){var It,Dt,Bt,Zt,tn,Tn,Fn,dr;return(0,z.Z)().wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:Tn=function(){return Tn=(0,ne.Z)((0,z.Z)().mark(function hr(Mr){return(0,z.Z)().wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.abrupt("return",new Promise(function(Jn){Mr.file(function(ii){Tt(ii)?(Mr.fullPath&&!ii.webkitRelativePath&&(Object.defineProperties(ii,{webkitRelativePath:{writable:!0}}),ii.webkitRelativePath=Mr.fullPath.replace(/^\//,""),Object.defineProperties(ii,{webkitRelativePath:{writable:!1}})),Jn(ii)):Jn(null)})}));case 1:case"end":return Wr.stop()}},hr)})),Tn.apply(this,arguments)},tn=function(hr){return Tn.apply(this,arguments)},Zt=function(){return Zt=(0,ne.Z)((0,z.Z)().mark(function hr(Mr){var Br,Wr,Jn,ii,Ur;return(0,z.Z)().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:Br=Mr.createReader(),Wr=[];case 2:return qr.next=5,new Promise(function(Li){Br.readEntries(Li,function(){return Li([])})});case 5:if(Jn=qr.sent,ii=Jn.length,ii){qr.next=9;break}return qr.abrupt("break",12);case 9:for(Ur=0;Ur{const{componentCls:qt,iconCls:vn}=yt;return{[`${qt}-wrapper`]:{[`${qt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yt.colorFillAlter,border:`${(0,At.unit)(yt.lineWidth)} dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[qt]:{padding:yt.padding},[`${qt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:yt.borderRadiusLG,"&:focus-visible":{outline:`${(0,At.unit)(yt.lineWidthFocus)} solid ${yt.colorPrimaryBorder}`}},[`${qt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${qt}-disabled):hover, &-hover:not(${qt}-disabled) `]:{borderColor:yt.colorPrimaryHover},[`p${qt}-drag-icon`]:{marginBottom:yt.margin,[vn]:{color:yt.colorPrimary,fontSize:yt.uploadThumbnailSize}},[`p${qt}-text`]:{margin:`0 0 ${(0,At.unit)(yt.marginXXS)}`,color:yt.colorTextHeading,fontSize:yt.fontSizeLG},[`p${qt}-hint`]:{color:yt.colorTextDescription,fontSize:yt.fontSize},[`&${qt}-disabled`]:{[`p${qt}-drag-icon ${vn}, p${qt}-text, p${qt}-hint `]:{color:yt.colorTextDisabled}}}}}},Yt=yt=>{const{componentCls:qt,iconCls:vn,fontSize:Tt,lineHeight:It,calc:Dt}=yt,Bt=`${qt}-list-item`,Zt=`${Bt}-actions`,tn=`${Bt}-action`;return{[`${qt}-wrapper`]:{[`${qt}-list`]:Object.assign(Object.assign({},(0,ut.dF)()),{lineHeight:yt.lineHeight,[Bt]:{position:"relative",height:Dt(yt.lineHeight).mul(Tt).equal(),marginTop:yt.marginXS,fontSize:Tt,display:"flex",alignItems:"center",transition:`background-color ${yt.motionDurationSlow}`,borderRadius:yt.borderRadiusSM,"&:hover":{backgroundColor:yt.controlItemBgHover},[`${Bt}-name`]:Object.assign(Object.assign({},ut.vS),{padding:`0 ${(0,At.unit)(yt.paddingXS)}`,lineHeight:It,flex:"auto",transition:`all ${yt.motionDurationSlow}`}),[Zt]:{whiteSpace:"nowrap",[tn]:{opacity:0},[vn]:{color:yt.actionsColor,transition:`all ${yt.motionDurationSlow}`},[` ${tn}:focus-visible, &.picture ${tn} `]:{opacity:1}},[`${qt}-icon ${vn}`]:{color:yt.colorTextDescription,fontSize:Tt},[`${Bt}-progress`]:{position:"absolute",bottom:yt.calc(yt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Dt(Tt).add(yt.paddingXS).equal(),fontSize:Tt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Bt}:hover ${tn}`]:{opacity:1},[`${Bt}-error`]:{color:yt.colorError,[`${Bt}-name, ${qt}-icon ${vn}`]:{color:yt.colorError},[Zt]:{[`${vn}, ${vn}:hover`]:{color:yt.colorError},[tn]:{opacity:1}}},[`${qt}-list-item-container`]:{transition:`opacity ${yt.motionDurationSlow}, height ${yt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zt=Ce(99495),Fe=yt=>{const{componentCls:qt}=yt,vn=new At.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:yt.calc(yt.marginXS).div(-2).equal()}}),Tt=new At.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:yt.calc(yt.marginXS).div(-2).equal()}}),It=`${qt}-animate-inline`;return[{[`${qt}-wrapper`]:{[`${It}-appear, ${It}-enter, ${It}-leave`]:{animationDuration:yt.motionDurationSlow,animationTimingFunction:yt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${It}-appear, ${It}-enter`]:{animationName:vn},[`${It}-leave`]:{animationName:Tt}}},{[`${qt}-wrapper`]:(0,zt.J$)(yt)},vn,Tt]},Le=Ce(68361);const Ze=yt=>{const{componentCls:qt,iconCls:vn,uploadThumbnailSize:Tt,uploadProgressOffset:It,calc:Dt}=yt,Bt=`${qt}-list`,Zt=`${Bt}-item`;return{[`${qt}-wrapper`]:{[` ${Bt}${Bt}-picture, ${Bt}${Bt}-picture-card, ${Bt}${Bt}-picture-circle `]:{[Zt]:{position:"relative",height:Dt(Tt).add(Dt(yt.lineWidth).mul(2)).add(Dt(yt.paddingXS).mul(2)).equal(),padding:yt.paddingXS,border:`${(0,At.unit)(yt.lineWidth)} ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Zt}-thumbnail`]:Object.assign(Object.assign({},ut.vS),{width:Tt,height:Tt,lineHeight:(0,At.unit)(Dt(Tt).add(yt.paddingSM).equal()),textAlign:"center",flex:"none",[vn]:{fontSize:yt.fontSizeHeading2,color:yt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Zt}-progress`]:{bottom:It,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Dt(Tt).add(yt.paddingXS).equal()}},[`${Zt}-error`]:{borderColor:yt.colorError,[`${Zt}-thumbnail ${vn}`]:{[`svg path[fill='${Le.blue[0]}']`]:{fill:yt.colorErrorBg},[`svg path[fill='${Le.blue.primary}']`]:{fill:yt.colorError}}},[`${Zt}-uploading`]:{borderStyle:"dashed",[`${Zt}-name`]:{marginBottom:It}}},[`${Bt}${Bt}-picture-circle ${Zt}`]:{[`&, &::before, ${Zt}-thumbnail`]:{borderRadius:"50%"}}}}},et=yt=>{const{componentCls:qt,iconCls:vn,fontSizeLG:Tt,colorTextLightSolid:It,calc:Dt}=yt,Bt=`${qt}-list`,Zt=`${Bt}-item`,tn=yt.uploadPicCardSize;return{[` ${qt}-wrapper${qt}-picture-card-wrapper, ${qt}-wrapper${qt}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,ut.dF)()),{display:"block",[`${qt}${qt}-select`]:{width:tn,height:tn,textAlign:"center",verticalAlign:"top",backgroundColor:yt.colorFillAlter,border:`${(0,At.unit)(yt.lineWidth)} dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[`> ${qt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${qt}-disabled):hover`]:{borderColor:yt.colorPrimary}},[`${Bt}${Bt}-picture-card, ${Bt}${Bt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:yt.marginXS,marginInlineEnd:yt.marginXS}},"@supports (gap: 1px)":{gap:yt.marginXS},[`${Bt}-item-container`]:{display:"inline-block",width:tn,height:tn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Zt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,backgroundColor:yt.colorBgMask,opacity:0,transition:`all ${yt.motionDurationSlow}`,content:'" "'}},[`${Zt}:hover`]:{[`&::before, ${Zt}-actions`]:{opacity:1}},[`${Zt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yt.motionDurationSlow}`,[` ${vn}-eye, ${vn}-download, ${vn}-delete `]:{zIndex:10,width:Tt,margin:`0 ${(0,At.unit)(yt.marginXXS)}`,fontSize:Tt,cursor:"pointer",transition:`all ${yt.motionDurationSlow}`,color:It,"&:hover":{color:It},svg:{verticalAlign:"baseline"}}},[`${Zt}-thumbnail, ${Zt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Zt}-name`]:{display:"none",textAlign:"center"},[`${Zt}-file + ${Zt}-name`]:{position:"absolute",bottom:yt.margin,display:"block",width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`},[`${Zt}-uploading`]:{[`&${Zt}`]:{backgroundColor:yt.colorFillAlter},[`&::before, ${vn}-eye, ${vn}-download, ${vn}-delete`]:{display:"none"}},[`${Zt}-progress`]:{bottom:yt.marginXL,width:`calc(100% - ${(0,At.unit)(Dt(yt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${qt}-wrapper${qt}-picture-circle-wrapper`]:{[`${qt}${qt}-select`]:{borderRadius:"50%"}}}};var We=yt=>{const{componentCls:qt}=yt;return{[`${qt}-rtl`]:{direction:"rtl"}}};const tt=yt=>{const{componentCls:qt,colorTextDisabled:vn}=yt;return{[`${qt}-wrapper`]:Object.assign(Object.assign({},(0,ut.Wf)(yt)),{[qt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${qt}-select`]:{display:"inline-block"},[`${qt}-hidden`]:{display:"none"},[`${qt}-disabled`]:{color:vn,cursor:"not-allowed"}})}},at=yt=>({actionsColor:yt.colorTextDescription});var ot=(0,rt.I$)("Upload",yt=>{const{fontSizeHeading3:qt,fontHeight:vn,lineWidth:Tt,controlHeightLG:It,calc:Dt}=yt,Bt=(0,pt.mergeToken)(yt,{uploadThumbnailSize:Dt(qt).mul(2).equal(),uploadProgressOffset:Dt(Dt(vn).div(2)).add(Tt).equal(),uploadPicCardSize:Dt(It).mul(2.55).equal()});return[tt(Bt),Ft(Bt),Ze(Bt),et(Bt),Yt(Bt),Fe(Bt),We(Bt),(0,Qe.Z)(Bt)]},at),ct={icon:function(qt,vn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:vn}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:qt}}]}},name:"file",theme:"twotone"},lt=ct,mt=Ce(7657),Lt=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:lt}))},ft=te.forwardRef(Lt),St=ft,nn=Ce(58617),on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},yn=on,xn=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:yn}))},an=te.forwardRef(xn),An=an,Jt={icon:function(qt,vn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:qt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:vn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:vn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:vn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:qt}}]}},name:"picture",theme:"twotone"},Ut=Jt,rn=function(qt,vn){return te.createElement(mt.Z,(0,ve.Z)({},qt,{ref:vn,icon:Ut}))},_n=te.forwardRef(rn),Bn=_n,kt=Ce(77900),ln=Ce(2738),Cn=Ce(40192),Mn=Ce(86641),Qn=Ce(22703),mr=Ce(7939);function lr(yt){return Object.assign(Object.assign({},yt),{lastModified:yt.lastModified,lastModifiedDate:yt.lastModifiedDate,name:yt.name,size:yt.size,type:yt.type,uid:yt.uid,percent:0,originFileObj:yt})}function Cr(yt,qt){const vn=(0,Ye.Z)(qt),Tt=vn.findIndex(It=>{let{uid:Dt}=It;return Dt===yt.uid});return Tt===-1?vn.push(yt):vn[Tt]=yt,vn}function nr(yt,qt){const vn=yt.uid!==void 0?"uid":"name";return qt.filter(Tt=>Tt[vn]===yt[vn])[0]}function ur(yt,qt){const vn=yt.uid!==void 0?"uid":"name",Tt=qt.filter(It=>It[vn]!==yt[vn]);return Tt.length===qt.length?null:Tt}const Nn=function(){const qt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Tt=qt[qt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Tt)||[""])[0]},In=yt=>yt.indexOf("image/")===0,Wn=yt=>{if(yt.type&&!yt.thumbUrl)return In(yt.type);const qt=yt.thumbUrl||yt.url||"",vn=Nn(qt);return/^data:image\//.test(qt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(vn)?!0:!(/^data:/.test(qt)||vn)},Kn=200;function Ln(yt){return new Promise(qt=>{if(!yt.type||!In(yt.type)){qt("");return}const vn=document.createElement("canvas");vn.width=Kn,vn.height=Kn,vn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Kn}px; height: ${Kn}px; z-index: 9999; display: none;`,document.body.appendChild(vn);const Tt=vn.getContext("2d"),It=new Image;if(It.onload=()=>{const{width:Dt,height:Bt}=It;let Zt=Kn,tn=Kn,Tn=0,Fn=0;Dt>Bt?(tn=Bt*(Kn/Dt),Fn=-(tn-Zt)/2):(Zt=Dt*(Kn/Bt),Tn=-(Zt-tn)/2),Tt.drawImage(It,Tn,Fn,Zt,tn);const dr=vn.toDataURL();document.body.removeChild(vn),window.URL.revokeObjectURL(It.src),qt(dr)},It.crossOrigin="anonymous",yt.type.startsWith("image/svg+xml")){const Dt=new FileReader;Dt.onload=()=>{Dt.result&&typeof Dt.result=="string"&&(It.src=Dt.result)},Dt.readAsDataURL(yt)}else if(yt.type.startsWith("image/gif")){const Dt=new FileReader;Dt.onload=()=>{Dt.result&&qt(Dt.result)},Dt.readAsDataURL(yt)}else It.src=window.URL.createObjectURL(yt)})}var $n=Ce(26227),ar=Ce(41464),dn=Ce(15277),Ie=Ce(89787),je=Ce(25399),ht=te.forwardRef((yt,qt)=>{let{prefixCls:vn,className:Tt,style:It,locale:Dt,listType:Bt,file:Zt,items:tn,progress:Tn,iconRender:Fn,actionIconRender:dr,itemRender:_r,isImgUrl:Kr,showPreviewIcon:Sr,showRemoveIcon:hr,showDownloadIcon:Mr,previewIcon:Br,removeIcon:Wr,downloadIcon:Jn,extra:ii,onPreview:Ur,onDownload:Gr,onClose:qr}=yt;var Li,wi;const{status:ui}=Zt,[Qr,Di]=te.useState(ui);te.useEffect(()=>{ui!=="removed"&&Di(ui)},[ui]);const[oi,di]=te.useState(!1);te.useEffect(()=>{const Ir=setTimeout(()=>{di(!0)},300);return()=>{clearTimeout(Ir)}},[]);const ci=Fn(Zt);let ki=te.createElement("div",{className:`${vn}-icon`},ci);if(Bt==="picture"||Bt==="picture-card"||Bt==="picture-circle")if(Qr==="uploading"||!Zt.thumbUrl&&!Zt.url){const Ir=Oe()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:Qr!=="uploading"});ki=te.createElement("div",{className:Ir},ci)}else{const Ir=Kr!=null&&Kr(Zt)?te.createElement("img",{src:Zt.thumbUrl||Zt.url,alt:Zt.name,className:`${vn}-list-item-image`,crossOrigin:Zt.crossOrigin}):ci,Hr=Oe()(`${vn}-list-item-thumbnail`,{[`${vn}-list-item-file`]:Kr&&!Kr(Zt)});ki=te.createElement("a",{className:Hr,onClick:ri=>Ur(Zt,ri),href:Zt.url||Zt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ir)}const Ki=Oe()(`${vn}-list-item`,`${vn}-list-item-${Qr}`),ua=typeof Zt.linkProps=="string"?JSON.parse(Zt.linkProps):Zt.linkProps,kn=(typeof hr=="function"?hr(Zt):hr)?dr((typeof Wr=="function"?Wr(Zt):Wr)||te.createElement($n.Z,null),()=>qr(Zt),vn,Dt.removeFile,!0):null,qi=(typeof Mr=="function"?Mr(Zt):Mr)&&Qr==="done"?dr((typeof Jn=="function"?Jn(Zt):Jn)||te.createElement(ar.Z,null),()=>Gr(Zt),vn,Dt.downloadFile):null,Qi=Bt!=="picture-card"&&Bt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Oe()(`${vn}-list-item-actions`,{picture:Bt==="picture"})},qi,kn),ra=typeof ii=="function"?ii(Zt):ii,_i=ra&&te.createElement("span",{className:`${vn}-list-item-extra`},ra),Ti=Oe()(`${vn}-list-item-name`),Xr=Zt.url?te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ti,title:Zt.name},ua,{href:Zt.url,onClick:Ir=>Ur(Zt,Ir)}),Zt.name,_i):te.createElement("span",{key:"view",className:Ti,onClick:Ir=>Ur(Zt,Ir),title:Zt.name},Zt.name,_i),rr=(typeof Sr=="function"?Sr(Zt):Sr)&&(Zt.url||Zt.thumbUrl)?te.createElement("a",{href:Zt.url||Zt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Ir=>Ur(Zt,Ir),title:Dt.previewFile},typeof Br=="function"?Br(Zt):Br||te.createElement(dn.Z,null)):null,Dr=(Bt==="picture-card"||Bt==="picture-circle")&&Qr!=="uploading"&&te.createElement("span",{className:`${vn}-list-item-actions`},rr,Qr==="done"&&qi,kn),{getPrefixCls:Fr}=te.useContext(Ne.E_),or=Fr(),ei=te.createElement("div",{className:Ki},ki,Xr,Qi,Dr,oi&&te.createElement(kt.default,{motionName:`${or}-fade`,visible:Qr==="uploading",motionDeadline:2e3},Ir=>{let{className:Hr}=Ir;const ri="percent"in Zt?te.createElement(Ie.Z,Object.assign({},Tn,{type:"line",percent:Zt.percent,"aria-label":Zt["aria-label"],"aria-labelledby":Zt["aria-labelledby"]})):null;return te.createElement("div",{className:Oe()(`${vn}-list-item-progress`,Hr)},ri)})),si=Zt.response&&typeof Zt.response=="string"?Zt.response:((Li=Zt.error)===null||Li===void 0?void 0:Li.statusText)||((wi=Zt.error)===null||wi===void 0?void 0:wi.message)||Dt.uploadError,wr=Qr==="error"?te.createElement(je.Z,{title:si,getPopupContainer:Ir=>Ir.parentNode},ei):ei;return te.createElement("div",{className:Oe()(`${vn}-list-item-container`,Tt),style:It,ref:qt},_r?_r(wr,Zt,tn,{download:Gr.bind(null,Zt),preview:Ur.bind(null,Zt),remove:qr.bind(null,Zt)}):wr)});const Et=(yt,qt)=>{const{listType:vn="text",previewFile:Tt=Ln,onPreview:It,onDownload:Dt,onRemove:Bt,locale:Zt,iconRender:tn,isImageUrl:Tn=Wn,prefixCls:Fn,items:dr=[],showPreviewIcon:_r=!0,showRemoveIcon:Kr=!0,showDownloadIcon:Sr=!1,removeIcon:hr,previewIcon:Mr,downloadIcon:Br,extra:Wr,progress:Jn={size:[-1,2],showInfo:!1},appendAction:ii,appendActionVisible:Ur=!0,itemRender:Gr,disabled:qr}=yt,Li=(0,Cn.Z)(),[wi,ui]=te.useState(!1),Qr=["picture-card","picture-circle"].includes(vn);te.useEffect(()=>{vn.startsWith("picture")&&(dr||[]).forEach(_i=>{!(_i.originFileObj instanceof File||_i.originFileObj instanceof Blob)||_i.thumbUrl!==void 0||(_i.thumbUrl="",Tt==null||Tt(_i.originFileObj).then(Ti=>{_i.thumbUrl=Ti||"",Li()}))})},[vn,dr,Tt]),te.useEffect(()=>{ui(!0)},[]);const Di=(_i,Ti)=>{if(It)return Ti==null||Ti.preventDefault(),It(_i)},oi=_i=>{typeof Dt=="function"?Dt(_i):_i.url&&window.open(_i.url)},di=_i=>{Bt==null||Bt(_i)},ci=_i=>{if(tn)return tn(_i,vn);const Ti=_i.status==="uploading";if(vn.startsWith("picture")){const Xr=vn==="picture"?te.createElement(nn.Z,null):Zt.uploading,rr=Tn!=null&&Tn(_i)?te.createElement(Bn,null):te.createElement(St,null);return Ti?Xr:rr}return Ti?te.createElement(nn.Z,null):te.createElement(An,null)},ki=(_i,Ti,Xr,rr,Dr)=>{const Fr={type:"text",size:"small",title:rr,onClick:or=>{var ei,si;Ti(),te.isValidElement(_i)&&((si=(ei=_i.props).onClick)===null||si===void 0||si.call(ei,or))},className:`${Xr}-list-item-action`};return Dr&&(Fr.disabled=qr),te.isValidElement(_i)?te.createElement(mr.ZP,Object.assign({},Fr,{icon:(0,Qn.Tm)(_i,Object.assign(Object.assign({},_i.props),{onClick:()=>{}}))})):te.createElement(mr.ZP,Object.assign({},Fr),te.createElement("span",null,_i))};te.useImperativeHandle(qt,()=>({handlePreview:Di,handleDownload:oi}));const{getPrefixCls:Ki}=te.useContext(Ne.E_),ua=Ki("upload",Fn),kn=Ki(),qi=Oe()(`${ua}-list`,`${ua}-list-${vn}`),Qi=te.useMemo(()=>(0,ln.Z)((0,Mn.Z)(kn),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[kn]),ra=Object.assign(Object.assign({},Qr?{}:Qi),{motionDeadline:2e3,motionName:`${ua}-${Qr?"animate-inline":"animate"}`,keys:(0,Ye.Z)(dr.map(_i=>({key:_i.uid,file:_i}))),motionAppear:wi});return te.createElement("div",{className:qi},te.createElement(kt.CSSMotionList,Object.assign({},ra,{component:!1}),_i=>{let{key:Ti,file:Xr,className:rr,style:Dr}=_i;return te.createElement(ht,{key:Ti,locale:Zt,prefixCls:ua,className:rr,style:Dr,file:Xr,items:dr,progress:Jn,listType:vn,isImgUrl:Tn,showPreviewIcon:_r,showRemoveIcon:Kr,showDownloadIcon:Sr,removeIcon:hr,previewIcon:Mr,downloadIcon:Br,extra:Wr,iconRender:ci,actionIconRender:ki,itemRender:Gr,onPreview:Di,onDownload:oi,onClose:di})}),ii&&te.createElement(kt.default,Object.assign({},ra,{visible:Ur,forceRender:!0}),_i=>{let{className:Ti,style:Xr}=_i;return(0,Qn.Tm)(ii,rr=>({className:Oe()(rr.className,Ti),style:Object.assign(Object.assign(Object.assign({},Xr),{pointerEvents:Ti?"none":void 0}),rr.style)}))}))};var fn=te.forwardRef(Et),sn=function(yt,qt,vn,Tt){function It(Dt){return Dt instanceof vn?Dt:new vn(function(Bt){Bt(Dt)})}return new(vn||(vn=Promise))(function(Dt,Bt){function Zt(Fn){try{Tn(Tt.next(Fn))}catch(dr){Bt(dr)}}function tn(Fn){try{Tn(Tt.throw(Fn))}catch(dr){Bt(dr)}}function Tn(Fn){Fn.done?Dt(Fn.value):It(Fn.value).then(Zt,tn)}Tn((Tt=Tt.apply(yt,qt||[])).next())})};const mn=`__LIST_IGNORE_${Date.now()}__`,Zn=(yt,qt)=>{const{fileList:vn,defaultFileList:Tt,onRemove:It,showUploadList:Dt=!0,listType:Bt="text",onPreview:Zt,onDownload:tn,onChange:Tn,onDrop:Fn,previewFile:dr,disabled:_r,locale:Kr,iconRender:Sr,isImageUrl:hr,progress:Mr,prefixCls:Br,className:Wr,type:Jn="select",children:ii,style:Ur,itemRender:Gr,maxCount:qr,data:Li={},multiple:wi=!1,hasControlInside:ui=!0,action:Qr="",accept:Di="",supportServerRender:oi=!0,rootClassName:di}=yt,ci=te.useContext(Re.Z),ki=_r!=null?_r:ci,[Ki,ua]=(0,Ke.Z)(Tt||[],{value:vn,postState:vi=>vi!=null?vi:[]}),[kn,qi]=te.useState("drop"),Qi=te.useRef(null),ra=te.useRef(null);te.useMemo(()=>{const vi=Date.now();(vn||[]).forEach((Ni,Ii)=>{!Ni.uid&&!Object.isFrozen(Ni)&&(Ni.uid=`__AUTO__${vi}_${Ii}__`)})},[vn]);const _i=(vi,Ni,Ii)=>{let Mi=(0,Ye.Z)(Ni),fa=!1;qr===1?Mi=Mi.slice(-1):qr&&(fa=Mi.length>qr,Mi=Mi.slice(0,qr)),(0,Me.flushSync)(()=>{ua(Mi)});const ca={file:vi,fileList:Mi};Ii&&(ca.event=Ii),(!fa||vi.status==="removed"||Mi.some(la=>la.uid===vi.uid))&&(0,Me.flushSync)(()=>{Tn==null||Tn(ca)})},Ti=(vi,Ni)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:Ii,transformFile:Mi}=yt;let fa=vi;if(Ii){const ca=yield Ii(vi,Ni);if(ca===!1)return!1;if(delete vi[mn],ca===mn)return Object.defineProperty(vi,mn,{value:!0,configurable:!0}),!1;typeof ca=="object"&&ca&&(fa=ca)}return Mi&&(fa=yield Mi(fa)),fa}),Xr=vi=>{const Ni=vi.filter(fa=>!fa.file[mn]);if(!Ni.length)return;const Ii=Ni.map(fa=>lr(fa.file));let Mi=(0,Ye.Z)(Ki);Ii.forEach(fa=>{Mi=Cr(fa,Mi)}),Ii.forEach((fa,ca)=>{let la=fa;if(Ni[ca].parsedFile)fa.status="uploading";else{const{originFileObj:zi}=fa;let Da;try{Da=new File([zi],zi.name,{type:zi.type})}catch(Ca){Da=new Blob([zi],{type:zi.type}),Da.name=zi.name,Da.lastModifiedDate=new Date,Da.lastModified=new Date().getTime()}Da.uid=fa.uid,la=Da}_i(la,Mi)})},rr=(vi,Ni,Ii)=>{try{typeof vi=="string"&&(vi=JSON.parse(vi))}catch(ca){}if(!nr(Ni,Ki))return;const Mi=lr(Ni);Mi.status="done",Mi.percent=100,Mi.response=vi,Mi.xhr=Ii;const fa=Cr(Mi,Ki);_i(Mi,fa)},Dr=(vi,Ni)=>{if(!nr(Ni,Ki))return;const Ii=lr(Ni);Ii.status="uploading",Ii.percent=vi.percent;const Mi=Cr(Ii,Ki);_i(Ii,Mi,vi)},Fr=(vi,Ni,Ii)=>{if(!nr(Ii,Ki))return;const Mi=lr(Ii);Mi.error=vi,Mi.response=Ni,Mi.status="error";const fa=Cr(Mi,Ki);_i(Mi,fa)},or=vi=>{let Ni;Promise.resolve(typeof It=="function"?It(vi):It).then(Ii=>{var Mi;if(Ii===!1)return;const fa=ur(vi,Ki);fa&&(Ni=Object.assign(Object.assign({},vi),{status:"removed"}),Ki==null||Ki.forEach(ca=>{const la=Ni.uid!==void 0?"uid":"name";ca[la]===Ni[la]&&!Object.isFrozen(ca)&&(ca.status="removed")}),(Mi=Qi.current)===null||Mi===void 0||Mi.abort(Ni),_i(Ni,fa))})},ei=vi=>{qi(vi.type),vi.type==="drop"&&(Fn==null||Fn(vi))};te.useImperativeHandle(qt,()=>({onBatchStart:Xr,onSuccess:rr,onProgress:Dr,onError:Fr,fileList:Ki,upload:Qi.current,nativeElement:ra.current}));const{getPrefixCls:si,direction:wr,upload:Ir}=te.useContext(Ne.E_),Hr=si("upload",Br),ri=Object.assign(Object.assign({onBatchStart:Xr,onError:Fr,onProgress:Dr,onSuccess:rr},yt),{data:Li,multiple:wi,action:Qr,accept:Di,supportServerRender:oi,prefixCls:Hr,disabled:ki,beforeUpload:Ti,onChange:void 0,hasControlInside:ui});delete ri.className,delete ri.style,(!ii||ki)&&delete ri.id;const un=`${Hr}-wrapper`,[Vn,Sn,Rr]=ot(Hr,un),[ti]=(0,$e.Z)("Upload",nt.Z.Upload),{showRemoveIcon:gn,showPreviewIcon:mi,showDownloadIcon:Nr,removeIcon:Ar,previewIcon:pi,downloadIcon:Gi,extra:gi}=typeof Dt=="boolean"?{}:Dt,Wi=typeof gn=="undefined"?!ki:gn,Jr=(vi,Ni)=>Dt?te.createElement(fn,{prefixCls:Hr,listType:Bt,items:Ki,previewFile:dr,onPreview:Zt,onDownload:tn,onRemove:or,showRemoveIcon:Wi,showPreviewIcon:mi,showDownloadIcon:Nr,removeIcon:Ar,previewIcon:pi,downloadIcon:Gi,iconRender:Sr,extra:gi,locale:Object.assign(Object.assign({},ti),Kr),isImageUrl:hr,progress:Mr,appendAction:vi,appendActionVisible:Ni,itemRender:Gr,disabled:ki}):vi,li=Oe()(un,Wr,di,Sn,Rr,Ir==null?void 0:Ir.className,{[`${Hr}-rtl`]:wr==="rtl",[`${Hr}-picture-card-wrapper`]:Bt==="picture-card",[`${Hr}-picture-circle-wrapper`]:Bt==="picture-circle"}),Zr=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),Ur);if(Jn==="drag"){const vi=Oe()(Sn,Hr,`${Hr}-drag`,{[`${Hr}-drag-uploading`]:Ki.some(Ni=>Ni.status==="uploading"),[`${Hr}-drag-hover`]:kn==="dragover",[`${Hr}-disabled`]:ki,[`${Hr}-rtl`]:wr==="rtl"});return Vn(te.createElement("span",{className:li,ref:ra},te.createElement("div",{className:vi,style:Zr,onDrop:ei,onDragOver:ei,onDragLeave:ei},te.createElement(ze,Object.assign({},ri,{ref:Qi,className:`${Hr}-btn`}),te.createElement("div",{className:`${Hr}-drag-container`},ii))),Jr()))}const Vi=Oe()(Hr,`${Hr}-select`,{[`${Hr}-disabled`]:ki,[`${Hr}-hidden`]:!ii}),sa=te.createElement("div",{className:Vi},te.createElement(ze,Object.assign({},ri,{ref:Qi})));return Vn(Bt==="picture-card"||Bt==="picture-circle"?te.createElement("span",{className:li,ref:ra},Jr(sa,!!ii)):te.createElement("span",{className:li,ref:ra},sa,Jr()))};var Vt=te.forwardRef(Zn),Gt=function(yt,qt){var vn={};for(var Tt in yt)Object.prototype.hasOwnProperty.call(yt,Tt)&&qt.indexOf(Tt)<0&&(vn[Tt]=yt[Tt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Tt=Object.getOwnPropertySymbols(yt);It{var{style:vn,height:Tt,hasControlInside:It=!1}=yt,Dt=Gt(yt,["style","height","hasControlInside"]);return te.createElement(Vt,Object.assign({ref:qt,hasControlInside:It},Dt,{type:"drag",style:Object.assign(Object.assign({},vn),{height:Tt})}))});const Mt=Vt;Mt.Dragger=jt,Mt.LIST_IGNORE=mn;var Kt=Mt},99498:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){te.defineOption("placeholder","",function(fe,he,le){var ae=le&&le!=te.Init;if(he&&!ae)fe.on("blur",Oe),fe.on("change",ve),fe.on("swapDoc",ve),te.on(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose=function(){pe(fe)}),ve(fe);else if(!he&&ae){fe.off("blur",Oe),fe.off("change",ve),fe.off("swapDoc",ve),te.off(fe.getInputField(),"compositionupdate",fe.state.placeholderCompose),Ye(fe);var ie=fe.getWrapperElement();ie.className=ie.className.replace(" CodeMirror-empty","")}he&&!fe.hasFocus()&&Oe(fe)});function Ye(fe){fe.state.placeholder&&(fe.state.placeholder.parentNode.removeChild(fe.state.placeholder),fe.state.placeholder=null)}function Me(fe){Ye(fe);var he=fe.state.placeholder=document.createElement("pre");he.style.cssText="height: 0; overflow: visible",he.style.direction=fe.getOption("direction"),he.className="CodeMirror-placeholder CodeMirror-line-like";var le=fe.getOption("placeholder");typeof le=="string"&&(le=document.createTextNode(le)),he.appendChild(le),fe.display.lineSpace.insertBefore(he,fe.display.lineSpace.firstChild)}function pe(fe){setTimeout(function(){var he=!1,le=fe.getInputField();le.nodeName=="TEXTAREA"?he=!le.value:fe.lineCount()==1&&(he=!/[^\u200b]/.test(le.querySelector(".CodeMirror-line").textContent)),he?Me(fe):Ye(fe)},20)}function Oe(fe){ue(fe)&&Me(fe)}function ve(fe){var he=fe.getWrapperElement(),le=ue(fe);he.className=he.className.replace(" CodeMirror-empty","")+(le?" CodeMirror-empty":""),le?Me(fe):Ye(fe)}function ue(fe){return fe.lineCount()===1&&fe.getLine(0)===""}})},25717:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){var Ye={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=te.Pos;te.defineOption("autoCloseBrackets",!1,function(b,z,ne){ne&&ne!=te.Init&&(b.removeKeyMap(Oe),b.state.closeBrackets=null),z&&(ve(pe(z,"pairs")),b.state.closeBrackets=z,b.addKeyMap(Oe))});function pe(b,z){return z=="pairs"&&typeof b=="string"?b:typeof b=="object"&&b[z]!=null?b[z]:Ye[z]}var Oe={Backspace:he,Enter:le};function ve(b){for(var z=0;z=0;se--){var a=oe[se].head;b.replaceRange("",Me(a.line,a.ch-1),Me(a.line,a.ch+1),"+delete")}}function le(b){var z=fe(b),ne=z&&pe(z,"explode");if(!ne||b.getOption("disableInput"))return te.Pass;for(var oe=b.listSelections(),se=0;se0;return{anchor:new Me(b.anchor.line,b.anchor.ch+(z?-1:1)),head:new Me(b.head.line,b.head.ch+(z?1:-1))}}function ie(b,z){var ne=fe(b);if(!ne||b.getOption("disableInput"))return te.Pass;var oe=pe(ne,"pairs"),se=oe.indexOf(z);if(se==-1)return te.Pass;for(var de=pe(ne,"closeBefore"),a=pe(ne,"triples"),x=oe.charAt(se+1)==z,re=b.listSelections(),ce=se%2==0,ge,_e=0;_e=0&&b.getRange(be,Me(be.line,be.ch+3))==z+z+z?Se="skipThree":Se="skip";else if(x&&be.ch>1&&a.indexOf(z)>=0&&b.getRange(Me(be.line,be.ch-2),be)==z+z){if(be.ch>2&&/\bstring/.test(b.getTokenTypeAt(Me(be.line,be.ch-2))))return te.Pass;Se="addFour"}else if(x){var Ae=be.ch==0?" ":b.getRange(Me(be.line,be.ch-1),be);if(!te.isWordChar(Be)&&Ae!=z&&!te.isWordChar(Ae))Se="both";else return te.Pass}else if(ce&&(Be.length===0||/\s/.test(Be)||de.indexOf(Be)>-1))Se="both";else return te.Pass;if(!ge)ge=Se;else if(ge!=Se)return te.Pass}var we=se%2?oe.charAt(se-1):z,Ue=se%2?z:oe.charAt(se+1);b.operation(function(){if(ge=="skip")b.execCommand("goCharRight");else if(ge=="skipThree")for(var Pe=0;Pe<3;Pe++)b.execCommand("goCharRight");else if(ge=="surround"){for(var ze=b.getSelections(),Pe=0;Pe'"]=function(me){return pe(me)}),he.addKeyMap(ie)}});var Ye=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["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 pe(he){if(he.getOption("disableInput"))return te.Pass;for(var le=he.listSelections(),ae=[],ie=he.getOption("autoCloseTags"),me=0;meE.ch&&(se=se.slice(0,se.length-b.end+E.ch));var re=se.toLowerCase();if(!se||b.type=="string"&&(b.end!=E.ch||!/[\"\']/.test(b.string.charAt(b.string.length-1))||b.string.length==1)||b.type=="tag"&&oe.close||b.string.indexOf("/")==E.ch-b.start-1||a&&ue(a,re)>-1||fe(he,z.mode.xmlCurrentContext&&z.mode.xmlCurrentContext(ne)||[],se,E,!0))return te.Pass;var ce=typeof ie=="object"&&ie.emptyTags;if(ce&&ue(ce,se)>-1){ae[me]={text:"/>",newPos:te.Pos(E.line,E.ch+2)};continue}var ge=x&&ue(x,re)>-1;ae[me]={indent:ge,text:">"+(ge?` `:"")+"",newPos:ge?te.Pos(E.line+1,0):te.Pos(E.line,E.ch+1)}}for(var _e=typeof ie=="object"&&ie.dontIndentOnAutoClose,me=le.length-1;me>=0;me--){var ye=ae[me];he.replaceRange(ye.text,le[me].head,le[me].anchor,"+insert");var be=he.listSelections().slice(0);be[me]={head:ye.newPos,anchor:ye.newPos},he.setSelections(be),!_e&&ye.indent&&(he.indentLine(ye.newPos.line,null,!0),he.indentLine(ye.newPos.line+1,null,!0))}}function Oe(he,le){for(var ae=he.listSelections(),ie=[],me=le?"/":""&&(a+=">"),ie[z]=a}if(he.replaceSelections(ie),ae=he.listSelections(),!b)for(var z=0;z=0&&le[ne]==ae;ne--)++z;ie=b.to;for(var ne=1;ne=ne.max))return ne.ch=0,ne.text=ne.cm.getLine(++ne.line),!0}function le(ne){if(!(ne.line<=ne.min))return ne.text=ne.cm.getLine(--ne.line),ne.ch=ne.text.length,!0}function ae(ne){for(;;){var oe=ne.text.indexOf(">",ne.ch);if(oe==-1){if(he(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe+1;continue}var se=ne.text.lastIndexOf("/",oe),de=se>-1&&!/\S/.test(ne.text.slice(se+1,oe));return ne.ch=oe+1,de?"selfClose":"regular"}}function ie(ne){for(;;){var oe=ne.ch?ne.text.lastIndexOf("<",ne.ch-1):-1;if(oe==-1){if(le(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe;continue}ve.lastIndex=oe,ne.ch=oe;var se=ve.exec(ne.text);if(se&&se.index==oe)return se}}function me(ne){for(;;){ve.lastIndex=ne.ch;var oe=ve.exec(ne.text);if(!oe){if(he(ne))continue;return}if(!fe(ne,oe.index+1)){ne.ch=oe.index+1;continue}return ne.ch=oe.index+oe[0].length,oe}}function E(ne){for(;;){var oe=ne.ch?ne.text.lastIndexOf(">",ne.ch-1):-1;if(oe==-1){if(le(ne))continue;return}if(!fe(ne,oe+1)){ne.ch=oe;continue}var se=ne.text.lastIndexOf("/",oe),de=se>-1&&!/\S/.test(ne.text.slice(se+1,oe));return ne.ch=oe+1,de?"selfClose":"regular"}}function b(ne,oe){for(var se=[];;){var de=me(ne),a,x=ne.line,re=ne.ch-(de?de[0].length:0);if(!de||!(a=ae(ne)))return;if(a!="selfClose")if(de[1]){for(var ce=se.length-1;ce>=0;--ce)if(se[ce]==de[2]){se.length=ce;break}if(ce<0&&(!oe||oe==de[2]))return{tag:de[2],from:Ye(x,re),to:Ye(ne.line,ne.ch)}}else se.push(de[2])}}function z(ne,oe){for(var se=[];;){var de=E(ne);if(!de)return;if(de=="selfClose"){ie(ne);continue}var a=ne.line,x=ne.ch,re=ie(ne);if(!re)return;if(re[1])se.push(re[2]);else{for(var ce=se.length-1;ce>=0;--ce)if(se[ce]==re[2]){se.length=ce;break}if(ce<0&&(!oe||oe==re[2]))return{tag:re[2],from:Ye(ne.line,ne.ch),to:Ye(a,x)}}}}te.registerHelper("fold","xml",function(ne,oe){for(var se=new ue(ne,oe.line,0);;){var de=me(se);if(!de||se.line!=oe.line)return;var a=ae(se);if(!a)return;if(!de[1]&&a!="selfClose"){var x=Ye(se.line,se.ch),re=b(se,de[2]);return re&&Me(re.from,x)>0?{from:x,to:re.from}:null}}}),te.findMatchingTag=function(ne,oe,se){var de=new ue(ne,oe.line,oe.ch,se);if(!(de.text.indexOf(">")==-1&&de.text.indexOf("<")==-1)){var a=ae(de),x=a&&Ye(de.line,de.ch),re=a&&ie(de);if(!(!a||!re||Me(de,oe)>0)){var ce={from:Ye(de.line,de.ch),to:x,tag:re[2]};return a=="selfClose"?{open:ce,close:null,at:"open"}:re[1]?{open:z(de,re[2]),close:ce,at:"close"}:(de=new ue(ne,x.line,x.ch,se),{open:ce,close:b(de,re[2]),at:"open"})}}},te.findEnclosingTag=function(ne,oe,se,de){for(var a=new ue(ne,oe.line,oe.ch,se);;){var x=z(a,de);if(!x)break;var re=new ue(ne,oe.line,oe.ch,se),ce=b(re,x.tag);if(ce)return{open:x,close:ce}}},te.scanForClosingTag=function(ne,oe,se,de){var a=new ue(ne,oe.line,oe.ch,de?{from:0,to:de}:null);return b(a,se)}})},89780:function(Yn){(function(en,Ce){Yn.exports=Ce()})(this,function(){"use strict";var en=navigator.userAgent,Ce=navigator.platform,te=/gecko\/\d/i.test(en),Ye=/MSIE \d/.test(en),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),pe=/Edge\/(\d+)/.exec(en),Oe=Ye||Me||pe,ve=Oe&&(Ye?document.documentMode||6:+(pe||Me)[1]),ue=!pe&&/WebKit\//.test(en),fe=ue&&/Qt\/\d+\.\d+/.test(en),he=!pe&&/Chrome\//.test(en),le=/Opera\//.test(en),ae=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),me=/PhantomJS/.test(en),E=!pe&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),b=/Android/.test(en),z=E||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),ne=E||/Mac/.test(Ce),oe=/\bCrOS\b/.test(en),se=/win/i.test(Ce),de=le&&en.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(le=!1,ue=!0);var a=ne&&(fe||le&&(de==null||de<12.11)),x=te||Oe&&ve>=9;function re(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var ce=function(y,ee){var Ee=y.className,xe=re(ee).exec(Ee);if(xe){var Te=Ee.slice(xe.index+xe[0].length);y.className=Ee.slice(0,xe.index)+(Te?xe[1]+Te:"")}};function ge(y){for(var ee=y.childNodes.length;ee>0;--ee)y.removeChild(y.firstChild);return y}function _e(y,ee){return ge(y).appendChild(ee)}function ye(y,ee,Ee,xe){var Te=document.createElement(y);if(Ee&&(Te.className=Ee),xe&&(Te.style.cssText=xe),typeof ee=="string")Te.appendChild(document.createTextNode(ee));else if(ee)for(var Ge=0;Ge=ee)return st+(ee-Ge);st+=wt-Ge,st+=Ee-st%Ee,Ge=wt+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(this.onTimeout,this)};Re.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},Re.prototype.set=function(y,ee){this.f=ee;var Ee=+new Date+y;(!this.id||Ee=ee)return xe+Math.min(st,ee-Te);if(Te+=Ge-xe,Te+=Ee-Te%Ee,xe=Ge+1,Te>=ee)return xe}}var gt=[""];function Ft(y){for(;gt.length<=y;)gt.push(Ct(gt)+" ");return gt[y]}function Ct(y){return y[y.length-1]}function Yt(y,ee){for(var Ee=[],xe=0;xe"\x80"&&(y.toUpperCase()!=y.toLowerCase()||Le.test(y))}function et(y,ee){return ee?ee.source.indexOf("\\w")>-1&&Ze(y)?!0:ee.test(y):Ze(y)}function He(y){for(var ee in y)if(y.hasOwnProperty(ee)&&y[ee])return!1;return!0}var We=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function tt(y){return y.charCodeAt(0)>=768&&We.test(y)}function at(y,ee,Ee){for(;(Ee<0?ee>0:eeEe?-1:1;;){if(ee==Ee)return ee;var Te=(ee+Ee)/2,Ge=xe<0?Math.ceil(Te):Math.floor(Te);if(Ge==ee)return y(Ge)?ee:Ee;y(Ge)?Ee=Ge:ee=Ge+xe}}function ct(y,ee,Ee,xe){if(!y)return xe(ee,Ee,"ltr",0);for(var Te=!1,Ge=0;Geee||ee==Ee&&st.to==ee)&&(xe(Math.max(st.from,ee),Math.min(st.to,Ee),st.level==1?"rtl":"ltr",Ge),Te=!0)}Te||xe(ee,Ee,"ltr")}var lt=null;function mt(y,ee,Ee){var xe;lt=null;for(var Te=0;Teee)return Te;Ge.to==ee&&(Ge.from!=Ge.to&&Ee=="before"?xe=Te:lt=Te),Ge.from==ee&&(Ge.from!=Ge.to&&Ee!="before"?xe=Te:lt=Te)}return xe!=null?xe:lt}var Lt=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ee(Wt){return Wt<=247?y.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?ee.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var xe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Te=/[stwN]/,Ge=/[LRr]/,st=/[Lb1n]/,wt=/[1n]/;function Ot(Wt,On,Hn){this.level=Wt,this.from=On,this.to=Hn}return function(Wt,On){var Hn=On=="ltr"?"L":"R";if(Wt.length==0||On=="ltr"&&!xe.test(Wt))return!1;for(var Er=Wt.length,vr=[],ai=0;ai-1&&(xe[ee]=Te.slice(0,Ge).concat(Te.slice(Ge+1)))}}}function xn(y,ee){var Ee=on(y,ee);if(Ee.length)for(var xe=Array.prototype.slice.call(arguments,2),Te=0;Te0}function Ut(y){y.prototype.on=function(ee,Ee){nn(this,ee,Ee)},y.prototype.off=function(ee,Ee){yn(this,ee,Ee)}}function rn(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function _n(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function Bn(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function kt(y){rn(y),_n(y)}function ln(y){return y.target||y.srcElement}function Cn(y){var ee=y.which;return ee==null&&(y.button&1?ee=1:y.button&2?ee=3:y.button&4&&(ee=2)),ne&&y.ctrlKey&&ee==1&&(ee=3),ee}var Mn=function(){if(Oe&&ve<9)return!1;var y=ye("div");return"draggable"in y||"dragDrop"in y}(),Qn;function mr(y){if(Qn==null){var ee=ye("span","\u200B");_e(y,ye("span",[ee,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(Qn=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(Oe&&ve<8))}var Ee=Qn?ye("span","\u200B"):ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ee.setAttribute("cm-text",""),Ee}var lr;function Cr(y){if(lr!=null)return lr;var ee=_e(y,document.createTextNode("A\u062EA")),Ee=Se(ee,0,1).getBoundingClientRect(),xe=Se(ee,1,2).getBoundingClientRect();return ge(y),!Ee||Ee.left==Ee.right?!1:lr=xe.right-Ee.right<3}var nr=` b`.split(/\n/).length!=3?function(y){for(var ee=0,Ee=[],xe=y.length;ee<=xe;){var Te=y.indexOf(` `,ee);Te==-1&&(Te=y.length);var Ge=y.slice(ee,y.charAt(Te-1)=="\r"?Te-1:Te),st=Ge.indexOf("\r");st!=-1?(Ee.push(Ge.slice(0,st)),ee+=st+1):(Ee.push(Ge),ee=Te+1)}return Ee}:function(y){return y.split(/\r\n?|\n/)},ur=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(ee){return!1}}:function(y){var ee;try{ee=y.ownerDocument.selection.createRange()}catch(Ee){}return!ee||ee.parentElement()!=y?!1:ee.compareEndPoints("StartToEnd",ee)!=0},Nn=function(){var y=ye("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),In=null;function Wn(y){if(In!=null)return In;var ee=_e(y,ye("span","x")),Ee=ee.getBoundingClientRect(),xe=Se(ee,0,1).getBoundingClientRect();return In=Math.abs(Ee.left-xe.left)>1}var Kn={},Ln={};function $n(y,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),Kn[y]=ee}function ar(y,ee){Ln[y]=ee}function dn(y){if(typeof y=="string"&&Ln.hasOwnProperty(y))y=Ln[y];else if(y&&typeof y.name=="string"&&Ln.hasOwnProperty(y.name)){var ee=Ln[y.name];typeof ee=="string"&&(ee={name:ee}),y=Fe(ee,y),y.name=ee.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return dn("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return dn("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function Ie(y,ee){ee=dn(ee);var Ee=Kn[ee.name];if(!Ee)return Ie(y,"text/plain");var xe=Ee(y,ee);if(je.hasOwnProperty(ee.name)){var Te=je[ee.name];for(var Ge in Te)Te.hasOwnProperty(Ge)&&(xe.hasOwnProperty(Ge)&&(xe["_"+Ge]=xe[Ge]),xe[Ge]=Te[Ge])}if(xe.name=ee.name,ee.helperType&&(xe.helperType=ee.helperType),ee.modeProps)for(var st in ee.modeProps)xe[st]=ee.modeProps[st];return xe}var je={};function Je(y,ee){var Ee=je.hasOwnProperty(y)?je[y]:je[y]={};Ke(ee,Ee)}function ht(y,ee){if(ee===!0)return ee;if(y.copyState)return y.copyState(ee);var Ee={};for(var xe in ee){var Te=ee[xe];Te instanceof Array&&(Te=Te.concat([])),Ee[xe]=Te}return Ee}function Et(y,ee){for(var Ee;y.innerMode&&(Ee=y.innerMode(ee),!(!Ee||Ee.mode==y));)ee=Ee.state,y=Ee.mode;return Ee||{mode:y,state:ee}}function Qt(y,ee,Ee){return y.startState?y.startState(ee,Ee):!0}var fn=function(y,ee,Ee){this.pos=this.start=0,this.string=y,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ee};fn.prototype.eol=function(){return this.pos>=this.string.length},fn.prototype.sol=function(){return this.pos==this.lineStart},fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fn.prototype.next=function(){if(this.posee},fn.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},fn.prototype.skipToEnd=function(){this.pos=this.string.length},fn.prototype.skipTo=function(y){var ee=this.string.indexOf(y,this.pos);if(ee>-1)return this.pos=ee,!0},fn.prototype.backUp=function(y){this.pos-=y},fn.prototype.column=function(){return this.lastColumnPos0?null:(Ge&&ee!==!1&&(this.pos+=Ge[0].length),Ge)}},fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},fn.prototype.hideFirstChars=function(y,ee){this.lineStart+=y;try{return ee()}finally{this.lineStart-=y}},fn.prototype.lookAhead=function(y){var ee=this.lineOracle;return ee&&ee.lookAhead(y)},fn.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function sn(y,ee){if(ee-=y.first,ee<0||ee>=y.size)throw new Error("There is no line "+(ee+y.first)+" in the document.");for(var Ee=y;!Ee.lines;)for(var xe=0;;++xe){var Te=Ee.children[xe],Ge=Te.chunkSize();if(ee=y.first&&eeEe?Mt(Ee,sn(y,Ee).text.length):Bt(ee,sn(y,ee.line).text.length)}function Bt(y,ee){var Ee=y.ch;return Ee==null||Ee>ee?Mt(y.line,ee):Ee<0?Mt(y.line,0):y}function Zt(y,ee){for(var Ee=[],xe=0;xethis.maxLookAhead&&(this.maxLookAhead=y),ee},Tn.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(y,ee,Ee){return ee instanceof tn?new Tn(y,ht(y.mode,ee.state),Ee,ee.lookAhead):new Tn(y,ht(y.mode,ee),Ee)},Tn.prototype.save=function(y){var ee=y!==!1?ht(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tn(ee,this.maxLookAhead):ee};function Fn(y,ee,Ee,xe){var Te=[y.state.modeGen],Ge={};Jn(y,ee.text,y.doc.mode,Ee,function(Wt,On){return Te.push(Wt,On)},Ge,xe);for(var st=Ee.state,wt=function(Wt){Ee.baseTokens=Te;var On=y.state.overlays[Wt],Hn=1,Er=0;Ee.state=!0,Jn(y,ee.text,On.mode,Ee,function(vr,ai){for(var Ai=Hn;Ervr&&Te.splice(Hn,1,vr,Te[Hn+1],Hi),Hn+=2,Er=Math.min(vr,Hi)}if(ai)if(On.opaque)Te.splice(Ai,Hn-Ai,vr,"overlay "+ai),Hn=Ai+2;else for(;Aiy.options.maxHighlightLength&&ht(y.doc.mode,xe.state),Ge=Fn(y,ee,xe);Te&&(xe.state=Te),ee.stateAfter=xe.save(!Te),ee.styles=Ge.styles,Ge.classes?ee.styleClasses=Ge.classes:ee.styleClasses&&(ee.styleClasses=null),Ee===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return ee.styles}function _r(y,ee,Ee){var xe=y.doc,Te=y.display;if(!xe.mode.startState)return new Tn(xe,!0,ee);var Ge=ii(y,ee,Ee),st=Ge>xe.first&&sn(xe,Ge-1).stateAfter,wt=st?Tn.fromSaved(xe,st,Ge):new Tn(xe,Qt(xe.mode),Ge);return xe.iter(Ge,ee,function(Ot){Kr(y,Ot.text,wt);var Wt=wt.line;Ot.stateAfter=Wt==ee-1||Wt%5==0||Wt>=Te.viewFrom&&Wtee.start)return Ge}throw new Error("Mode "+y.name+" failed to advance stream.")}var Mr=function(y,ee,Ee){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=ee||null,this.state=Ee};function Br(y,ee,Ee,xe){var Te=y.doc,Ge=Te.mode,st;ee=Dt(Te,ee);var wt=sn(Te,ee.line),Ot=_r(y,ee.line,Ee),Wt=new fn(wt.text,y.options.tabSize,Ot),On;for(xe&&(On=[]);(xe||Wt.posy.options.maxHighlightLength?(wt=!1,st&&Kr(y,ee,xe,On.pos),On.pos=ee.length,Hn=null):Hn=Wr(hr(Ee,On,xe.state,Er),Ge),Er){var vr=Er[0].name;vr&&(Hn="m-"+(Hn?vr+" "+Hn:vr))}if(!wt||Wt!=Hn){for(;Otst;--wt){if(wt<=Ge.first)return Ge.first;var Ot=sn(Ge,wt-1),Wt=Ot.stateAfter;if(Wt&&(!Ee||wt+(Wt instanceof tn?Wt.lookAhead:0)<=Ge.modeFrontier))return wt;var On=Ne(Ot.text,null,y.options.tabSize);(Te==null||xe>On)&&(Te=wt-1,xe=On)}return Te}function Ur(y,ee){if(y.modeFrontier=Math.min(y.modeFrontier,ee),!(y.highlightFrontierEe;xe--){var Te=sn(y,xe).stateAfter;if(Te&&(!(Te instanceof tn)||xe+Te.lookAhead=ee:Ge.to>ee);(xe||(xe=[])).push(new ui(st,Ge.from,Ot?null:Ge.to))}}return xe}function ci(y,ee,Ee){var xe;if(y)for(var Te=0;Te=ee:Ge.to>ee);if(wt||Ge.from==ee&&st.type=="bookmark"&&(!Ee||Ge.marker.insertLeft)){var Ot=Ge.from==null||(st.inclusiveLeft?Ge.from<=ee:Ge.from0&&wt)for(var ya=0;ya0)){var On=[Ot,1],Hn=Kt(Wt.from,wt.from),Er=Kt(Wt.to,wt.to);(Hn<0||!st.inclusiveLeft&&!Hn)&&On.push({from:Wt.from,to:wt.from}),(Er>0||!st.inclusiveRight&&!Er)&&On.push({from:wt.to,to:Wt.to}),Te.splice.apply(Te,On),Ot+=On.length-3}}return Te}function kn(y){var ee=y.markedSpans;if(ee){for(var Ee=0;Eeee)&&(!xe||_i(xe,Ge.marker)<0)&&(xe=Ge.marker)}return xe}function Fr(y,ee,Ee,xe,Te){var Ge=sn(y,ee),st=qr&&Ge.markedSpans;if(st)for(var wt=0;wt=0&&Hn<=0||On<=0&&Hn>=0)&&(On<=0&&(Ot.marker.inclusiveRight&&Te.inclusiveLeft?Kt(Wt.to,Ee)>=0:Kt(Wt.to,Ee)>0)||On>=0&&(Ot.marker.inclusiveRight&&Te.inclusiveLeft?Kt(Wt.from,xe)<=0:Kt(Wt.from,xe)<0)))return!0}}}function or(y){for(var ee;ee=Xr(y);)y=ee.find(-1,!0).line;return y}function ei(y){for(var ee;ee=rr(y);)y=ee.find(1,!0).line;return y}function si(y){for(var ee,Ee;ee=rr(y);)y=ee.find(1,!0).line,(Ee||(Ee=[])).push(y);return Ee}function wr(y,ee){var Ee=sn(y,ee),xe=or(Ee);return Ee==xe?ee:Vt(xe)}function Ir(y,ee){if(ee>y.lastLine())return ee;var Ee=sn(y,ee),xe;if(!Hr(y,Ee))return ee;for(;xe=rr(Ee);)Ee=xe.find(1,!0).line;return Vt(Ee)+1}function Hr(y,ee){var Ee=qr&&ee.markedSpans;if(Ee){for(var xe=void 0,Te=0;Teee.maxLineLength&&(ee.maxLineLength=Te,ee.maxLine=xe)})}var Rr=function(y,ee,Ee){this.text=y,qi(this,ee),this.height=Ee?Ee(this):1};Rr.prototype.lineNo=function(){return Vt(this)},Ut(Rr);function ti(y,ee,Ee,xe){y.text=ee,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),kn(y),qi(y,Ee);var Te=xe?xe(y):1;Te!=y.height&&tr(y,Te)}function gn(y){y.parent=null,kn(y)}var mi={},Nr={};function Ar(y,ee){if(!y||/^\s*$/.test(y))return null;var Ee=ee.addModeClass?Nr:mi;return Ee[y]||(Ee[y]=y.replace(/\S+/g,"cm-$&"))}function pi(y,ee){var Ee=be("span",null,null,ue?"padding-right: .1px":null),xe={pre:be("pre",[Ee],"CodeMirror-line"),content:Ee,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};ee.measure={};for(var Te=0;Te<=(ee.rest?ee.rest.length:0);Te++){var Ge=Te?ee.rest[Te-1]:ee.line,st=void 0;xe.pos=0,xe.addToken=gi,Cr(y.display.measure)&&(st=ft(Ge,y.doc.direction))&&(xe.addToken=Jr(xe.addToken,st)),xe.map=[];var wt=ee!=y.display.externalMeasured&&Vt(Ge);Zr(Ge,xe,dr(y,Ge,wt)),Ge.styleClasses&&(Ge.styleClasses.bgClass&&(xe.bgClass=Ue(Ge.styleClasses.bgClass,xe.bgClass||"")),Ge.styleClasses.textClass&&(xe.textClass=Ue(Ge.styleClasses.textClass,xe.textClass||""))),xe.map.length==0&&xe.map.push(0,0,xe.content.appendChild(mr(y.display.measure))),Te==0?(ee.measure.map=xe.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(xe.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(ue){var Ot=xe.content.lastChild;(/\bcm-tab\b/.test(Ot.className)||Ot.querySelector&&Ot.querySelector(".cm-tab"))&&(xe.content.className="cm-tab-wrap-hack")}return xn(y,"renderLine",y,ee.line,xe.pre),xe.pre.className&&(xe.textClass=Ue(xe.pre.className,xe.textClass||"")),xe}function Gi(y){var ee=ye("span","\u2022","cm-invalidchar");return ee.title="\\u"+y.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function gi(y,ee,Ee,xe,Te,Ge,st){if(ee){var wt=y.splitSpaces?Wi(ee,y.trailingSpace):ee,Ot=y.cm.state.specialChars,Wt=!1,On;if(!Ot.test(ee))y.col+=ee.length,On=document.createTextNode(wt),y.map.push(y.pos,y.pos+ee.length,On),Oe&&ve<9&&(Wt=!0),y.pos+=ee.length;else{On=document.createDocumentFragment();for(var Hn=0;;){Ot.lastIndex=Hn;var Er=Ot.exec(ee),vr=Er?Er.index-Hn:ee.length-Hn;if(vr){var ai=document.createTextNode(wt.slice(Hn,Hn+vr));Oe&&ve<9?On.appendChild(ye("span",[ai])):On.appendChild(ai),y.map.push(y.pos,y.pos+vr,ai),y.col+=vr,y.pos+=vr}if(!Er)break;Hn+=vr+1;var Ai=void 0;if(Er[0]==" "){var Hi=y.cm.options.tabSize,ea=Hi-y.col%Hi;Ai=On.appendChild(ye("span",Ft(ea),"cm-tab")),Ai.setAttribute("role","presentation"),Ai.setAttribute("cm-text"," "),y.col+=ea}else Er[0]=="\r"||Er[0]==` `?(Ai=On.appendChild(ye("span",Er[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ai.setAttribute("cm-text",Er[0]),y.col+=1):(Ai=y.cm.options.specialCharPlaceholder(Er[0]),Ai.setAttribute("cm-text",Er[0]),Oe&&ve<9?On.appendChild(ye("span",[Ai])):On.appendChild(Ai),y.col+=1);y.map.push(y.pos,y.pos+1,Ai),y.pos++}}if(y.trailingSpace=wt.charCodeAt(ee.length-1)==32,Ee||xe||Te||Wt||Ge||st){var da=Ee||"";xe&&(da+=xe),Te&&(da+=Te);var ta=ye("span",[On],da,Ge);if(st)for(var ya in st)st.hasOwnProperty(ya)&&ya!="style"&&ya!="class"&&ta.setAttribute(ya,st[ya]);return y.content.appendChild(ta)}y.content.appendChild(On)}}function Wi(y,ee){if(y.length>1&&!/ /.test(y))return y;for(var Ee=ee,xe="",Te=0;TeWt&&Hn.from<=Wt));Er++);if(Hn.to>=On)return y(Ee,xe,Te,Ge,st,wt,Ot);y(Ee,xe.slice(0,Hn.to-Wt),Te,Ge,null,wt,Ot),Ge=null,xe=xe.slice(Hn.to-Wt),Wt=Hn.to}}}function li(y,ee,Ee,xe){var Te=!xe&&Ee.widgetNode;Te&&y.map.push(y.pos,y.pos+ee,Te),!xe&&y.cm.display.input.needsContentAttribute&&(Te||(Te=y.content.appendChild(document.createElement("span"))),Te.setAttribute("cm-marker",Ee.id)),Te&&(y.cm.display.input.setUneditable(Te),y.content.appendChild(Te)),y.pos+=ee,y.trailingSpace=!1}function Zr(y,ee,Ee){var xe=y.markedSpans,Te=y.text,Ge=0;if(!xe){for(var st=1;stOt||ja.collapsed&&Aa.to==Ot&&Aa.from==Ot)){if(Aa.to!=null&&Aa.to!=Ot&&vr>Aa.to&&(vr=Aa.to,Ai=""),ja.className&&(ai+=" "+ja.className),ja.css&&(Er=(Er?Er+";":"")+ja.css),ja.startStyle&&Aa.from==Ot&&(Hi+=" "+ja.startStyle),ja.endStyle&&Aa.to==vr&&(ya||(ya=[])).push(ja.endStyle,Aa.to),ja.title&&((da||(da={})).title=ja.title),ja.attributes)for(var So in ja.attributes)(da||(da={}))[So]=ja.attributes[So];ja.collapsed&&(!ea||_i(ea.marker,ja)<0)&&(ea=Aa)}else Aa.from>Ot&&vr>Aa.from&&(vr=Aa.from)}if(ya)for(var os=0;os=wt)break;for(var js=Math.min(wt,vr);;){if(On){var Ls=Ot+On.length;if(!ea){var Xo=Ls>js?On.slice(0,js-Ot):On;ee.addToken(ee,Xo,Hn?Hn+ai:ai,Hi,Ot+Xo.length==vr?Ai:"",Er,da)}if(Ls>=js){On=On.slice(js-Ot),Ot=js;break}Ot=Ls,Hi=""}On=Te.slice(Ge,Ge=Ee[Wt++]),Hn=Ar(Ee[Wt++],ee.cm.options)}}}function Vi(y,ee,Ee){this.line=ee,this.rest=si(ee),this.size=this.rest?Vt(Ct(this.rest))-Ee+1:1,this.node=this.text=null,this.hidden=Hr(y,ee)}function sa(y,ee,Ee){for(var xe=[],Te,Ge=ee;Ge2&&Ge.push((Ot.bottom+Wt.top)/2-Ee.top)}}Ge.push(Ee.bottom-Ee.top)}}function oa(y,ee,Ee){if(y.line==ee)return{map:y.measure.map,cache:y.measure.cache};for(var xe=0;xeEe)return{map:y.measure.maps[Te],cache:y.measure.caches[Te],before:!0}}function Wa(y,ee){ee=or(ee);var Ee=Vt(ee),xe=y.display.externalMeasured=new Vi(y.doc,ee,Ee);xe.lineN=Ee;var Te=xe.built=pi(y,xe);return xe.text=Te.pre,_e(y.display.lineMeasure,Te.pre),xe}function Ka(y,ee,Ee,xe){return io(y,Eo(y,ee),Ee,xe)}function fo(y,ee){if(ee>=y.display.viewFrom&&ee=Ee.lineN&&eeee)&&(Ge=Ot-wt,Te=Ge-1,ee>=Ot&&(st="right")),Te!=null){if(xe=y[Wt+2],wt==Ot&&Ee==(xe.insertLeft?"left":"right")&&(st=Ee),Ee=="left"&&Te==0)for(;Wt&&y[Wt-2]==y[Wt-3]&&y[Wt-1].insertLeft;)xe=y[(Wt-=3)+2],st="left";if(Ee=="right"&&Te==Ot-wt)for(;Wt=0&&(Ee=y[Te]).left==Ee.right;Te--);return Ee}function Wo(y,ee,Ee,xe){var Te=Ba(ee.map,Ee,xe),Ge=Te.node,st=Te.start,wt=Te.end,Ot=Te.collapse,Wt;if(Ge.nodeType==3){for(var On=0;On<4;On++){for(;st&&tt(ee.line.text.charAt(Te.coverStart+st));)--st;for(;Te.coverStart+wt0&&(Ot=xe="right");var Hn;y.options.lineWrapping&&(Hn=Ge.getClientRects()).length>1?Wt=Hn[xe=="right"?Hn.length-1:0]:Wt=Ge.getBoundingClientRect()}if(Oe&&ve<9&&!st&&(!Wt||!Wt.left&&!Wt.right)){var Er=Ge.parentNode.getClientRects()[0];Er?Wt={left:Er.left,right:Er.left+wo(y.display),top:Er.top,bottom:Er.bottom}:Wt=ao}for(var vr=Wt.top-ee.rect.top,ai=Wt.bottom-ee.rect.top,Ai=(vr+ai)/2,Hi=ee.view.measure.heights,ea=0;ea=xe.text.length?(Ot=xe.text.length,Wt="before"):Ot<=0&&(Ot=0,Wt="after"),!wt)return st(Wt=="before"?Ot-1:Ot,Wt=="before");function On(ai,Ai,Hi){var ea=wt[Ai],da=ea.level==1;return st(Hi?ai-1:ai,da!=Hi)}var Hn=mt(wt,Ot,Wt),Er=lt,vr=On(Ot,Hn,Wt=="before");return Er!=null&&(vr.other=On(Ot,Er,Wt!="before")),vr}function Ri(y,ee){var Ee=0;ee=Dt(y.doc,ee),y.options.lineWrapping||(Ee=wo(y.display)*ee.ch);var xe=sn(y.doc,ee.line),Te=un(xe)+Ji(y.display);return{left:Ee,right:Ee,top:Te,bottom:Te+xe.height}}function hi(y,ee,Ee,xe,Te){var Ge=Mt(y,ee,Ee);return Ge.xRel=Te,xe&&(Ge.outside=xe),Ge}function wa(y,ee,Ee){var xe=y.doc;if(Ee+=y.display.viewOffset,Ee<0)return hi(xe.first,0,null,-1,-1);var Te=Gt(xe,Ee),Ge=xe.first+xe.size-1;if(Te>Ge)return hi(xe.first+xe.size-1,sn(xe,Ge).text.length,null,1,1);ee<0&&(ee=0);for(var st=sn(xe,Te);;){var wt=ka(y,st,Te,ee,Ee),Ot=Dr(st,wt.ch+(wt.xRel>0||wt.outside>0?1:0));if(!Ot)return wt;var Wt=Ot.find(1);if(Wt.line==Te)return Wt;st=sn(xe,Te=Wt.line)}}function za(y,ee,Ee,xe){xe-=Qa(ee);var Te=ee.text.length,Ge=ot(function(st){return io(y,Ee,st-1).bottom<=xe},Te,0);return Te=ot(function(st){return io(y,Ee,st).top>xe},Ge,Te),{begin:Ge,end:Te}}function ga(y,ee,Ee,xe){Ee||(Ee=Eo(y,ee));var Te=Ja(y,ee,io(y,Ee,xe),"line").top;return za(y,ee,Ee,Te)}function ro(y,ee,Ee,xe){return y.bottom<=Ee?!1:y.top>Ee?!0:(xe?y.left:y.right)>ee}function ka(y,ee,Ee,xe,Te){Te-=un(ee);var Ge=Eo(y,ee),st=Qa(ee),wt=0,Ot=ee.text.length,Wt=!0,On=ft(ee,y.doc.direction);if(On){var Hn=(y.options.lineWrapping?Qo:Co)(y,ee,Ee,Ge,On,xe,Te);Wt=Hn.level!=1,wt=Wt?Hn.from:Hn.to-1,Ot=Wt?Hn.to:Hn.from-1}var Er=null,vr=null,ai=ot(function(Oa){var Aa=io(y,Ge,Oa);return Aa.top+=st,Aa.bottom+=st,ro(Aa,xe,Te,!1)?(Aa.top<=Te&&Aa.left<=xe&&(Er=Oa,vr=Aa),!0):!1},wt,Ot),Ai,Hi,ea=!1;if(vr){var da=xe-vr.left=ya.bottom?1:0}return ai=at(ee.text,ai,1),hi(Ee,ai,Hi,ea,xe-Ai)}function Co(y,ee,Ee,xe,Te,Ge,st){var wt=ot(function(Hn){var Er=Te[Hn],vr=Er.level!=1;return ro(Sa(y,Mt(Ee,vr?Er.to:Er.from,vr?"before":"after"),"line",ee,xe),Ge,st,!0)},0,Te.length-1),Ot=Te[wt];if(wt>0){var Wt=Ot.level!=1,On=Sa(y,Mt(Ee,Wt?Ot.from:Ot.to,Wt?"after":"before"),"line",ee,xe);ro(On,Ge,st,!0)&&On.top>st&&(Ot=Te[wt-1])}return Ot}function Qo(y,ee,Ee,xe,Te,Ge,st){var wt=za(y,ee,xe,st),Ot=wt.begin,Wt=wt.end;/\s/.test(ee.text.charAt(Wt-1))&&Wt--;for(var On=null,Hn=null,Er=0;Er=Wt||vr.to<=Ot)){var ai=vr.level!=1,Ai=io(y,xe,ai?Math.min(Wt,vr.to)-1:Math.max(Ot,vr.from)).right,Hi=AiHi)&&(On=vr,Hn=Hi)}}return On||(On=Te[Te.length-1]),On.fromWt&&(On={from:On.from,to:Wt,level:On.level}),On}var Ro;function Jo(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(Ro==null){Ro=ye("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)Ro.appendChild(document.createTextNode("x")),Ro.appendChild(ye("br"));Ro.appendChild(document.createTextNode("x"))}_e(y.measure,Ro);var Ee=Ro.offsetHeight/50;return Ee>3&&(y.cachedTextHeight=Ee),ge(y.measure),Ee||1}function wo(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var ee=ye("span","xxxxxxxxxx"),Ee=ye("pre",[ee],"CodeMirror-line-like");_e(y.measure,Ee);var xe=ee.getBoundingClientRect(),Te=(xe.right-xe.left)/10;return Te>2&&(y.cachedCharWidth=Te),Te||10}function Ns(y){for(var ee=y.display,Ee={},xe={},Te=ee.gutters.clientLeft,Ge=ee.gutters.firstChild,st=0;Ge;Ge=Ge.nextSibling,++st){var wt=y.display.gutterSpecs[st].className;Ee[wt]=Ge.offsetLeft+Ge.clientLeft+Te,xe[wt]=Ge.clientWidth}return{fixedPos:uo(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:Ee,gutterWidth:xe,wrapperWidth:ee.wrapper.clientWidth}}function uo(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function As(y){var ee=Jo(y.display),Ee=y.options.lineWrapping,xe=Ee&&Math.max(5,y.display.scroller.clientWidth/wo(y.display)-3);return function(Te){if(Hr(y.doc,Te))return 0;var Ge=0;if(Te.widgets)for(var st=0;st0&&(Wt=sn(y.doc,Ot.line).text).length==Ot.ch){var On=Ne(Wt,Wt.length,y.options.tabSize)-Wt.length;Ot=Mt(Ot.line,Math.max(0,Math.round((Ge-no(y.display).left)/wo(y.display))-On))}return Ot}function xs(y,ee){if(ee>=y.display.viewTo||(ee-=y.display.viewFrom,ee<0))return null;for(var Ee=y.display.view,xe=0;xeee)&&(Te.updateLineNumbers=ee),y.curOp.viewChanged=!0,ee>=Te.viewTo)qr&&wr(y.doc,ee)Te.viewFrom?ls(y):(Te.viewFrom+=xe,Te.viewTo+=xe);else if(ee<=Te.viewFrom&&Ee>=Te.viewTo)ls(y);else if(ee<=Te.viewFrom){var Ge=Qs(y,Ee,Ee+xe,1);Ge?(Te.view=Te.view.slice(Ge.index),Te.viewFrom=Ge.lineN,Te.viewTo+=xe):ls(y)}else if(Ee>=Te.viewTo){var st=Qs(y,ee,ee,-1);st?(Te.view=Te.view.slice(0,st.index),Te.viewTo=st.lineN):ls(y)}else{var wt=Qs(y,ee,ee,-1),Ot=Qs(y,Ee,Ee+xe,1);wt&&Ot?(Te.view=Te.view.slice(0,wt.index).concat(sa(y,wt.lineN,Ot.lineN)).concat(Te.view.slice(Ot.index)),Te.viewTo+=xe):ls(y)}var Wt=Te.externalMeasured;Wt&&(Ee=Te.lineN&&ee=xe.viewTo)){var Ge=xe.view[xs(y,ee)];if(Ge.node!=null){var st=Ge.changes||(Ge.changes=[]);$e(st,Ee)==-1&&st.push(Ee)}}}function ls(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Qs(y,ee,Ee,xe){var Te=xs(y,ee),Ge,st=y.display.view;if(!qr||Ee==y.doc.first+y.doc.size)return{index:Te,lineN:Ee};for(var wt=y.display.viewFrom,Ot=0;Ot0){if(Te==st.length-1)return null;Ge=wt+st[Te].size-ee,Te++}else Ge=wt-ee;ee+=Ge,Ee+=Ge}for(;wr(y.doc,Ee)!=Ee;){if(Te==(xe<0?0:st.length-1))return null;Ee+=xe*st[Te-(xe<0?1:0)].size,Te+=xe}return{index:Te,lineN:Ee}}function wl(y,ee,Ee){var xe=y.display,Te=xe.view;Te.length==0||ee>=xe.viewTo||Ee<=xe.viewFrom?(xe.view=sa(y,ee,Ee),xe.viewFrom=ee):(xe.viewFrom>ee?xe.view=sa(y,ee,xe.viewFrom).concat(xe.view):xe.viewFromEe&&(xe.view=xe.view.slice(0,xs(y,Ee)))),xe.viewTo=Ee}function Js(y){for(var ee=y.display.view,Ee=0,xe=0;xe=y.display.viewTo||wt.to().line0?ee.blinker=setInterval(function(){y.hasFocus()||Fs(y),ee.cursorDiv.style.visibility=(Ee=!Ee)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function Vo(y){y.state.focused||(y.display.input.focus(),ul(y))}function fs(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Fs(y))},100)}function ul(y,ee){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(xn(y,"focus",y,ee),y.state.focused=!0,we(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),ue&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),Ms(y))}function Fs(y,ee){y.state.delayingBlurEvent||(y.state.focused&&(xn(y,"blur",y,ee),y.state.focused=!1,ce(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function xa(y){for(var ee=y.display,Ee=ee.lineDiv.offsetTop,xe=0;xe.005||On<-.005)&&(tr(Te.line,st),ol(Te.line),Te.rest))for(var Hn=0;Hny.display.sizerWidth){var Er=Math.ceil(wt/wo(y.display));Er>y.display.maxLineLength&&(y.display.maxLineLength=Er,y.display.maxLine=Te.line,y.display.maxLineChanged=!0)}}}}function ol(y){if(y.widgets)for(var ee=0;ee=st&&(Ge=Gt(ee,un(sn(ee,Ot))-y.wrapper.clientHeight),st=Ot)}return{from:Ge,to:Math.max(st,Ge+1)}}function bs(y,ee){if(!an(y,"scrollCursorIntoView")){var Ee=y.display,xe=Ee.sizer.getBoundingClientRect(),Te=null;if(ee.top+xe.top<0?Te=!0:ee.bottom+xe.top>(window.innerHeight||document.documentElement.clientHeight)&&(Te=!1),Te!=null&&!me){var Ge=ye("div","\u200B",null,`position: absolute; top: `+(ee.top-Ee.viewOffset-Ji(y.display))+`px; height: `+(ee.bottom-ee.top+Ya(y)+Ee.barHeight)+`px; left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");y.display.lineSpace.appendChild(Ge),Ge.scrollIntoView(Te),y.display.lineSpace.removeChild(Ge)}}}function cl(y,ee,Ee,xe){xe==null&&(xe=0);var Te;!y.options.lineWrapping&&ee==Ee&&(ee=ee.ch?Mt(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,Ee=ee.sticky=="before"?Mt(ee.line,ee.ch+1,"before"):ee);for(var Ge=0;Ge<5;Ge++){var st=!1,wt=Sa(y,ee),Ot=!Ee||Ee==ee?wt:Sa(y,Ee);Te={left:Math.min(wt.left,Ot.left),top:Math.min(wt.top,Ot.top)-xe,right:Math.max(wt.left,Ot.left),bottom:Math.max(wt.bottom,Ot.bottom)+xe};var Wt=Vs(y,Te),On=y.doc.scrollTop,Hn=y.doc.scrollLeft;if(Wt.scrollTop!=null&&(el(y,Wt.scrollTop),Math.abs(y.doc.scrollTop-On)>1&&(st=!0)),Wt.scrollLeft!=null&&(zs(y,Wt.scrollLeft),Math.abs(y.doc.scrollLeft-Hn)>1&&(st=!0)),!st)break}return Te}function Al(y,ee){var Ee=Vs(y,ee);Ee.scrollTop!=null&&el(y,Ee.scrollTop),Ee.scrollLeft!=null&&zs(y,Ee.scrollLeft)}function Vs(y,ee){var Ee=y.display,xe=Jo(y.display);ee.top<0&&(ee.top=0);var Te=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:Ee.scroller.scrollTop,Ge=pa(y),st={};ee.bottom-ee.top>Ge&&(ee.bottom=ee.top+Ge);var wt=y.doc.height+Va(Ee),Ot=ee.topwt-xe;if(ee.topTe+Ge){var On=Math.min(ee.top,(Wt?wt:ee.bottom)-Ge);On!=Te&&(st.scrollTop=On)}var Hn=y.options.fixedGutter?0:Ee.gutters.offsetWidth,Er=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:Ee.scroller.scrollLeft-Hn,vr=xi(y)-Ee.gutters.offsetWidth,ai=ee.right-ee.left>vr;return ai&&(ee.right=ee.left+vr),ee.left<10?st.scrollLeft=0:ee.leftvr+Er-3&&(st.scrollLeft=ee.right+(ai?0:10)-vr),st}function Zs(y,ee){ee!=null&&($o(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+ee)}function Us(y){$o(y);var ee=y.getCursor();y.curOp.scrollToPos={from:ee,to:ee,margin:y.options.cursorScrollMargin}}function Ws(y,ee,Ee){(ee!=null||Ee!=null)&&$o(y),ee!=null&&(y.curOp.scrollLeft=ee),Ee!=null&&(y.curOp.scrollTop=Ee)}function Ll(y,ee){$o(y),y.curOp.scrollToPos=ee}function $o(y){var ee=y.curOp.scrollToPos;if(ee){y.curOp.scrollToPos=null;var Ee=Ri(y,ee.from),xe=Ri(y,ee.to);dl(y,Ee,xe,ee.margin)}}function dl(y,ee,Ee,xe){var Te=Vs(y,{left:Math.min(ee.left,Ee.left),top:Math.min(ee.top,Ee.top)-xe,right:Math.max(ee.right,Ee.right),bottom:Math.max(ee.bottom,Ee.bottom)+xe});Ws(y,Te.scrollLeft,Te.scrollTop)}function el(y,ee){Math.abs(y.doc.scrollTop-ee)<2||(te||co(y,{top:ee}),gl(y,ee,!0),te&&co(y),Xs(y,100))}function gl(y,ee,Ee){ee=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,ee)),!(y.display.scroller.scrollTop==ee&&!Ee)&&(y.doc.scrollTop=ee,y.display.scrollbars.setScrollTop(ee),y.display.scroller.scrollTop!=ee&&(y.display.scroller.scrollTop=ee))}function zs(y,ee,Ee,xe){ee=Math.max(0,Math.min(ee,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((Ee?ee==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-ee)<2)&&!xe)&&(y.doc.scrollLeft=ee,Xt(y),y.display.scroller.scrollLeft!=ee&&(y.display.scroller.scrollLeft=ee),y.display.scrollbars.setScrollLeft(ee))}function tl(y){var ee=y.display,Ee=ee.gutters.offsetWidth,xe=Math.round(y.doc.height+Va(y.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:y.options.fixedGutter?Ee:0,docHeight:xe,scrollHeight:xe+Ya(y)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:Ee}}var Gs=function(y,ee,Ee){this.cm=Ee;var xe=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Te=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");xe.tabIndex=Te.tabIndex=-1,y(xe),y(Te),nn(xe,"scroll",function(){xe.clientHeight&&ee(xe.scrollTop,"vertical")}),nn(Te,"scroll",function(){Te.clientWidth&&ee(Te.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Oe&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gs.prototype.update=function(y){var ee=y.scrollWidth>y.clientWidth+1,Ee=y.scrollHeight>y.clientHeight+1,xe=y.nativeBarWidth;if(Ee){this.vert.style.display="block",this.vert.style.bottom=ee?xe+"px":"0";var Te=y.viewHeight-(ee?xe:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+Te)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=Ee?xe+"px":"0",this.horiz.style.left=y.barLeft+"px";var Ge=y.viewWidth-y.barLeft-(Ee?xe:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+Ge)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(xe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ee?xe:0,bottom:ee?xe:0}},Gs.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gs.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gs.prototype.zeroWidthHack=function(){var y=ne&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Re,this.disableVert=new Re},Gs.prototype.enableZeroWidthBar=function(y,ee,Ee){y.style.pointerEvents="auto";function xe(){var Te=y.getBoundingClientRect(),Ge=Ee=="vert"?document.elementFromPoint(Te.right-1,(Te.top+Te.bottom)/2):document.elementFromPoint((Te.right+Te.left)/2,Te.bottom-1);Ge!=y?y.style.pointerEvents="none":ee.set(1e3,xe)}ee.set(1e3,xe)},Gs.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function hs(y,ee){ee||(ee=tl(y));var Ee=y.display.barWidth,xe=y.display.barHeight;yl(y,ee);for(var Te=0;Te<4&&Ee!=y.display.barWidth||xe!=y.display.barHeight;Te++)Ee!=y.display.barWidth&&y.options.lineWrapping&&xa(y),yl(y,tl(y)),Ee=y.display.barWidth,xe=y.display.barHeight}function yl(y,ee){var Ee=y.display,xe=Ee.scrollbars.update(ee);Ee.sizer.style.paddingRight=(Ee.barWidth=xe.right)+"px",Ee.sizer.style.paddingBottom=(Ee.barHeight=xe.bottom)+"px",Ee.heightForcer.style.borderBottom=xe.bottom+"px solid transparent",xe.right&&xe.bottom?(Ee.scrollbarFiller.style.display="block",Ee.scrollbarFiller.style.height=xe.bottom+"px",Ee.scrollbarFiller.style.width=xe.right+"px"):Ee.scrollbarFiller.style.display="",xe.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(Ee.gutterFiller.style.display="block",Ee.gutterFiller.style.height=xe.bottom+"px",Ee.gutterFiller.style.width=ee.gutterWidth+"px"):Ee.gutterFiller.style.display=""}var Hs={native:Gs,null:nl};function _l(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&ce(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new Hs[y.options.scrollbarStyle](function(ee){y.display.wrapper.insertBefore(ee,y.display.scrollbarFiller),nn(ee,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,Ee){Ee=="horizontal"?zs(y,ee):el(y,ee)},y),y.display.scrollbars.addClass&&we(y.display.wrapper,y.display.scrollbars.addClass)}var Ss=0;function vs(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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:++Ss},Ni(y.curOp)}function ha(y){var ee=y.curOp;ee&&Mi(ee,function(Ee){for(var xe=0;xe=Ee.viewTo)||Ee.maxLineChanged&&ee.options.lineWrapping,y.update=y.mustUpdate&&new $i(ee,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function xl(y){y.updatedDisplay=y.mustUpdate&&La(y.cm,y.update)}function ns(y){var ee=y.cm,Ee=ee.display;y.updatedDisplay&&xa(ee),y.barMeasure=tl(ee),Ee.maxLineChanged&&!ee.options.lineWrapping&&(y.adjustWidthTo=Ka(ee,Ee.maxLine,Ee.maxLine.text.length).left+3,ee.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(Ee.scroller.clientWidth,Ee.sizer.offsetLeft+y.adjustWidthTo+Ya(ee)+ee.display.barWidth),y.maxScrollLeft=Math.max(0,Ee.sizer.offsetLeft+y.adjustWidthTo-xi(ee))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=Ee.input.prepareSelection())}function Rl(y){var ee=y.cm;y.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft=y.display.viewTo)){var Ee=+new Date+y.options.workTime,xe=_r(y,ee.highlightFrontier),Te=[];ee.iter(xe.line,Math.min(ee.first+ee.size,y.display.viewTo+500),function(Ge){if(xe.line>=y.display.viewFrom){var st=Ge.styles,wt=Ge.text.length>y.options.maxHighlightLength?ht(ee.mode,xe.state):null,Ot=Fn(y,Ge,xe,!0);wt&&(xe.state=wt),Ge.styles=Ot.styles;var Wt=Ge.styleClasses,On=Ot.classes;On?Ge.styleClasses=On:Wt&&(Ge.styleClasses=null);for(var Hn=!st||st.length!=Ge.styles.length||Wt!=On&&(!Wt||!On||Wt.bgClass!=On.bgClass||Wt.textClass!=On.textClass),Er=0;!Hn&&ErEe)return Xs(y,y.options.workDelay),!0}),ee.highlightFrontier=xe.line,ee.modeFrontier=Math.max(ee.modeFrontier,xe.line),Te.length&&Zo(y,function(){for(var Ge=0;Ge=Ee.viewFrom&&ee.visible.to<=Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo)&&Ee.renderedView==Ee.view&&Js(y)==0)return!1;cn(y)&&(ls(y),ee.dims=Ns(y));var Te=xe.first+xe.size,Ge=Math.max(ee.visible.from-y.options.viewportMargin,xe.first),st=Math.min(Te,ee.visible.to+y.options.viewportMargin);Ee.viewFromst&&Ee.viewTo-st<20&&(st=Math.min(Te,Ee.viewTo)),qr&&(Ge=wr(y.doc,Ge),st=Ir(y.doc,st));var wt=Ge!=Ee.viewFrom||st!=Ee.viewTo||Ee.lastWrapHeight!=ee.wrapperHeight||Ee.lastWrapWidth!=ee.wrapperWidth;wl(y,Ge,st),Ee.viewOffset=un(sn(y.doc,Ee.viewFrom)),y.display.mover.style.top=Ee.viewOffset+"px";var Ot=Js(y);if(!wt&&Ot==0&&!ee.force&&Ee.renderedView==Ee.view&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo))return!1;var Wt=ia(y);return Ot>4&&(Ee.lineDiv.style.display="none"),Bo(y,Ee.updateLineNumbers,ee.dims),Ot>4&&(Ee.lineDiv.style.display=""),Ee.renderedView=Ee.view,$a(Wt),ge(Ee.cursorDiv),ge(Ee.selectionDiv),Ee.gutters.style.height=Ee.sizer.style.minHeight=0,wt&&(Ee.lastWrapHeight=ee.wrapperHeight,Ee.lastWrapWidth=ee.wrapperWidth,Xs(y,400)),Ee.updateLineNumbers=null,!0}function Pa(y,ee){for(var Ee=ee.viewport,xe=!0;;xe=!1){if(!xe||!y.options.lineWrapping||ee.oldDisplayWidth==xi(y)){if(Ee&&Ee.top!=null&&(Ee={top:Math.min(y.doc.height+Va(y.display)-pa(y),Ee.top)}),ee.visible=ks(y.display,y.doc,Ee),ee.visible.from>=y.display.viewFrom&&ee.visible.to<=y.display.viewTo)break}else xe&&(ee.visible=ks(y.display,y.doc,Ee));if(!La(y,ee))break;xa(y);var Te=tl(y);Es(y),hs(y,Te),xt(y,Te),ee.force=!1}ee.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(ee.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function co(y,ee){var Ee=new $i(y,ee);if(La(y,Ee)){xa(y),Pa(y,Ee);var xe=tl(y);Es(y),hs(y,xe),xt(y,xe),Ee.finish()}}function Bo(y,ee,Ee){var xe=y.display,Te=y.options.lineNumbers,Ge=xe.lineDiv,st=Ge.firstChild;function wt(ai){var Ai=ai.nextSibling;return ue&&ne&&y.display.currentWheelTarget==ai?ai.style.display="none":ai.parentNode.removeChild(ai),Ai}for(var Ot=xe.view,Wt=xe.viewFrom,On=0;On-1&&(vr=!1),zi(y,Hn,Wt,Ee)),vr&&(ge(Hn.lineNumber),Hn.lineNumber.appendChild(document.createTextNode(jt(y.options,Wt)))),st=Hn.node.nextSibling}Wt+=Hn.size}for(;st;)st=wt(st)}function _t(y){var ee=y.gutters.offsetWidth;y.sizer.style.marginLeft=ee+"px"}function xt(y,ee){y.display.sizer.style.minHeight=ee.docHeight+"px",y.display.heightForcer.style.top=ee.docHeight+"px",y.display.gutters.style.height=ee.docHeight+y.display.barHeight+Ya(y)+"px"}function Xt(y){var ee=y.display,Ee=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!y.options.fixedGutter))){for(var xe=uo(ee)-ee.scroller.scrollLeft+y.doc.scrollLeft,Te=ee.gutters.offsetWidth,Ge=xe+"px",st=0;stst.clientWidth,Ot=st.scrollHeight>st.clientHeight;if(xe&&wt||Te&&Ot){if(Te&&ne&&ue){e:for(var Wt=ee.target,On=Ge.view;Wt!=st;Wt=Wt.parentNode)for(var Hn=0;Hn=0&&Kt(y,xe.to())<=0)return Ee}return-1};var pr=function(y,ee){this.anchor=y,this.head=ee};pr.prototype.from=function(){return Tt(this.anchor,this.head)},pr.prototype.to=function(){return vn(this.anchor,this.head)},pr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function De(y,ee,Ee){var xe=y&&y.options.selectionsMayTouch,Te=ee[Ee];ee.sort(function(Er,vr){return Kt(Er.from(),vr.from())}),Ee=$e(ee,Te);for(var Ge=1;Ge0:Ot>=0){var Wt=Tt(wt.from(),st.from()),On=vn(wt.to(),st.to()),Hn=wt.empty()?st.from()==st.head:wt.from()==wt.head;Ge<=Ee&&--Ee,ee.splice(--Ge,2,new pr(Hn?On:Wt,Hn?Wt:On))}}return new gr(ee,Ee)}function ke(y,ee){return new gr([new pr(y,ee||y)],0)}function Ve(y){return y.text?Mt(y.from.line+y.text.length-1,Ct(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function qe(y,ee){if(Kt(y,ee.from)<0)return y;if(Kt(y,ee.to)<=0)return Ve(ee);var Ee=y.line+ee.text.length-(ee.to.line-ee.from.line)-1,xe=y.ch;return y.line==ee.to.line&&(xe+=Ve(ee).ch-ee.to.ch),Mt(Ee,xe)}function it(y,ee){for(var Ee=[],xe=0;xe1&&y.remove(wt.line+1,ai-1),y.insert(wt.line+1,ea)}ca(y,"change",y,ee)}function $t(y,ee,Ee){function xe(Te,Ge,st){if(Te.linked)for(var wt=0;wt1&&!y.done[y.done.length-2].ranges)return y.done.pop(),Ct(y.done)}function sr(y,ee,Ee,xe){var Te=y.history;Te.undone.length=0;var Ge=+new Date,st,wt;if((Te.lastOp==xe||Te.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&Te.lastModTime>Ge-(y.cm?y.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(st=Un(Te,Te.lastOp==xe)))wt=Ct(st.changes),Kt(ee.from,ee.to)==0&&Kt(ee.from,wt.to)==0?wt.to=Ve(ee):st.changes.push(bn(y,ee));else{var Ot=Ct(Te.done);for((!Ot||!Ot.ranges)&&Tr(y.sel,Te.done),st={changes:[bn(y,ee)],generation:Te.generation},Te.done.push(st);Te.done.length>Te.undoDepth;)Te.done.shift(),Te.done[0].ranges||Te.done.shift()}Te.done.push(Ee),Te.generation=++Te.maxGeneration,Te.lastModTime=Te.lastSelTime=Ge,Te.lastOp=Te.lastSelOp=xe,Te.lastOrigin=Te.lastSelOrigin=ee.origin,wt||xn(y,"historyAdded")}function cr(y,ee,Ee,xe){var Te=ee.charAt(0);return Te=="*"||Te=="+"&&Ee.ranges.length==xe.ranges.length&&Ee.somethingSelected()==xe.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function ni(y,ee,Ee,xe){var Te=y.history,Ge=xe&&xe.origin;Ee==Te.lastSelOp||Ge&&Te.lastSelOrigin==Ge&&(Te.lastModTime==Te.lastSelTime&&Te.lastOrigin==Ge||cr(y,Ge,Ct(Te.done),ee))?Te.done[Te.done.length-1]=ee:Tr(ee,Te.done),Te.lastSelTime=+new Date,Te.lastSelOrigin=Ge,Te.lastSelOp=Ee,xe&&xe.clearRedo!==!1&&Gn(Te.undone)}function Tr(y,ee){var Ee=Ct(ee);Ee&&Ee.ranges&&Ee.equals(y)||ee.push(y)}function Si(y,ee,Ee,xe){var Te=ee["spans_"+y.id],Ge=0;y.iter(Math.max(y.first,Ee),Math.min(y.first+y.size,xe),function(st){st.markedSpans&&((Te||(Te=ee["spans_"+y.id]={}))[Ge]=st.markedSpans),++Ge})}function Ui(y){if(!y)return null;for(var ee,Ee=0;Ee-1&&(Ct(wt)[Hn]=Wt[Hn],delete Wt[Hn])}}return xe}function yi(y,ee,Ee,xe){if(xe){var Te=y.anchor;if(Ee){var Ge=Kt(ee,Te)<0;Ge!=Kt(Ee,Te)<0?(Te=ee,ee=Ee):Ge!=Kt(ee,Ee)<0&&(ee=Ee)}return new pr(Te,ee)}else return new pr(Ee||ee,ee)}function zn(y,ee,Ee,xe,Te){Te==null&&(Te=y.cm&&(y.cm.display.shift||y.extend)),Or(y,new gr([yi(y.sel.primary(),ee,Ee,Te)],0),xe)}function fr(y,ee,Ee){for(var xe=[],Te=y.cm&&(y.cm.display.shift||y.extend),Ge=0;Ge=ee.ch:wt.to>ee.ch))){if(Te&&(xn(Ot,"beforeCursorEnter"),Ot.explicitlyCleared))if(Ge.markedSpans){--st;continue}else break;if(!Ot.atomic)continue;if(Ee){var Hn=Ot.find(xe<0?1:-1),Er=void 0;if((xe<0?On:Wt)&&(Hn=ji(y,Hn,-xe,Hn&&Hn.line==ee.line?Ge:null)),Hn&&Hn.line==ee.line&&(Er=Kt(Hn,Ee))&&(xe<0?Er<0:Er>0))return Ma(y,Hn,ee,xe,Te)}var vr=Ot.find(xe<0?-1:1);return(xe<0?Wt:On)&&(vr=ji(y,vr,xe,vr.line==ee.line?Ge:null)),vr?Ma(y,vr,ee,xe,Te):null}}return ee}function Na(y,ee,Ee,xe,Te){var Ge=xe||1,st=Ma(y,ee,Ee,Ge,Te)||!Te&&Ma(y,ee,Ee,Ge,!0)||Ma(y,ee,Ee,-Ge,Te)||!Te&&Ma(y,ee,Ee,-Ge,!0);return st||(y.cantEdit=!0,Mt(y.first,0))}function ji(y,ee,Ee,xe){return Ee<0&&ee.ch==0?ee.line>y.first?Dt(y,Mt(ee.line-1)):null:Ee>0&&ee.ch==(xe||sn(y,ee.line)).text.length?ee.line=0;--Te)qa(y,{from:xe[Te].from,to:xe[Te].to,text:Te?[""]:ee.text,origin:ee.origin});else qa(y,ee)}}function qa(y,ee){if(!(ee.text.length==1&&ee.text[0]==""&&Kt(ee.from,ee.to)==0)){var Ee=it(y,ee);sr(y,ee,Ee,y.cm?y.cm.curOp.id:NaN),ms(y,ee,Ee,ki(y,ee));var xe=[];$t(y,function(Te,Ge){!Ge&&$e(xe,Te.history)==-1&&(ko(Te.history,ee),xe.push(Te.history)),ms(Te,ee,null,ki(Te,ee))})}}function Ho(y,ee,Ee){var xe=y.cm&&y.cm.state.suppressEdits;if(!(xe&&!Ee)){for(var Te=y.history,Ge,st=y.sel,wt=ee=="undo"?Te.done:Te.undone,Ot=ee=="undo"?Te.undone:Te.done,Wt=0;Wt=0;--vr){var ai=Er(vr);if(ai)return ai.v}}}}function Po(y,ee){if(ee!=0&&(y.first+=ee,y.sel=new gr(Yt(y.sel.ranges,function(Te){return new pr(Mt(Te.anchor.line+ee,Te.anchor.ch),Mt(Te.head.line+ee,Te.head.ch))}),y.sel.primIndex),y.cm)){To(y.cm,y.first,y.first-ee,ee);for(var Ee=y.cm.display,xe=Ee.viewFrom;xey.lastLine())){if(ee.from.lineGe&&(ee={from:ee.from,to:Mt(Ge,sn(y,Ge).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=mn(y,ee.from,ee.to),Ee||(Ee=it(y,ee)),y.cm?_o(y.cm,ee,xe):Ht(y,ee,xe),Bi(y,Ee,Qe),y.cantEdit&&Na(y,Mt(y.firstLine(),0))&&(y.cantEdit=!1)}}function _o(y,ee,Ee){var xe=y.doc,Te=y.display,Ge=ee.from,st=ee.to,wt=!1,Ot=Ge.line;y.options.lineWrapping||(Ot=Vt(or(sn(xe,Ge.line))),xe.iter(Ot,st.line+1,function(vr){if(vr==Te.maxLine)return wt=!0,!0})),xe.sel.contains(ee.from,ee.to)>-1&&An(y),Ht(xe,ee,Ee,As(y)),y.options.lineWrapping||(xe.iter(Ot,Ge.line+ee.text.length,function(vr){var ai=Vn(vr);ai>Te.maxLineLength&&(Te.maxLine=vr,Te.maxLineLength=ai,Te.maxLineChanged=!0,wt=!1)}),wt&&(y.curOp.updateMaxLine=!0)),Ur(xe,Ge.line),Xs(y,400);var Wt=ee.text.length-(st.line-Ge.line)-1;ee.full?To(y):Ge.line==st.line&&ee.text.length==1&&!Pt(y.doc,ee)?Ts(y,Ge.line,"text"):To(y,Ge.line,st.line+1,Wt);var On=Jt(y,"changes"),Hn=Jt(y,"change");if(Hn||On){var Er={from:Ge,to:st,text:ee.text,removed:ee.removed,origin:ee.origin};Hn&&ca(y,"change",y,Er),On&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(Er)}y.display.selForContextMenu=null}function Za(y,ee,Ee,xe,Te){var Ge;xe||(xe=Ee),Kt(xe,Ee)<0&&(Ge=[xe,Ee],Ee=Ge[0],xe=Ge[1]),typeof ee=="string"&&(ee=y.splitLines(ee)),oo(y,{from:Ee,to:xe,text:ee,origin:Te})}function ho(y,ee,Ee,xe){Ee1||!(this.children[0]instanceof Ga))){var wt=[];this.collapse(wt),this.children=[new Ga(wt)],this.children[0].parent=this}},collapse:function(y){for(var ee=0;ee50){for(var st=Te.lines.length%25+25,wt=st;wt10);y.parent.maybeSpill()}},iterN:function(y,ee,Ee){for(var xe=0;xey.display.maxLineLength&&(y.display.maxLine=Wt,y.display.maxLineLength=On,y.display.maxLineChanged=!0)}xe!=null&&y&&this.collapsed&&To(y,xe,Te+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&Oi(y.doc)),y&&ca(y,"markerCleared",y,this,xe,Te),ee&&ha(y),this.parent&&this.parent.clear()}},ps.prototype.find=function(y,ee){y==null&&this.type=="bookmark"&&(y=1);for(var Ee,xe,Te=0;Te0||st==0&&Ge.clearWhenEmpty!==!1)return Ge;if(Ge.replacedWith&&(Ge.collapsed=!0,Ge.widgetNode=be("span",[Ge.replacedWith],"CodeMirror-widget"),xe.handleMouseEvents||Ge.widgetNode.setAttribute("cm-ignore-events","true"),xe.insertLeft&&(Ge.widgetNode.insertLeft=!0)),Ge.collapsed){if(Fr(y,ee.line,ee,Ee,Ge)||ee.line!=Ee.line&&Fr(y,Ee.line,ee,Ee,Ge))throw new Error("Inserting collapsed marker partially overlapping an existing one");wi()}Ge.addToHistory&&sr(y,{from:ee,to:Ee,origin:"markText"},y.sel,NaN);var wt=ee.line,Ot=y.cm,Wt;if(y.iter(wt,Ee.line+1,function(Hn){Ot&&Ge.collapsed&&!Ot.options.lineWrapping&&or(Hn)==Ot.display.maxLine&&(Wt=!0),Ge.collapsed&&wt!=ee.line&&tr(Hn,0),oi(Hn,new ui(Ge,wt==ee.line?ee.ch:null,wt==Ee.line?Ee.ch:null)),++wt}),Ge.collapsed&&y.iter(ee.line,Ee.line+1,function(Hn){Hr(y,Hn)&&tr(Hn,0)}),Ge.clearOnEnter&&nn(Ge,"beforeCursorEnter",function(){return Ge.clear()}),Ge.readOnly&&(Li(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),Ge.collapsed&&(Ge.id=++us,Ge.atomic=!0),Ot){if(Wt&&(Ot.curOp.updateMaxLine=!0),Ge.collapsed)To(Ot,ee.line,Ee.line+1);else if(Ge.className||Ge.startStyle||Ge.endStyle||Ge.css||Ge.attributes||Ge.title)for(var On=ee.line;On<=Ee.line;On++)Ts(Ot,On,"text");Ge.atomic&&Oi(Ot.doc),ca(Ot,"markerAdded",Ot,Ge)}return Ge}var mo=function(y,ee){this.markers=y,this.primary=ee;for(var Ee=0;Ee=0;Ot--)oo(this,xe[Ot]);wt?Lr(this,wt):this.cm&&Us(this.cm)}),undo:Mo(function(){Ho(this,"undo")}),redo:Mo(function(){Ho(this,"redo")}),undoSelection:Mo(function(){Ho(this,"undo",!0)}),redoSelection:Mo(function(){Ho(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,ee=0,Ee=0,xe=0;xe=y.ch)&&ee.push(Te.marker.parent||Te.marker)}return ee},findMarks:function(y,ee,Ee){y=Dt(this,y),ee=Dt(this,ee);var xe=[],Te=y.line;return this.iter(y.line,ee.line+1,function(Ge){var st=Ge.markedSpans;if(st)for(var wt=0;wt=Ot.to||Ot.from==null&&Te!=y.line||Ot.from!=null&&Te==ee.line&&Ot.from>=ee.ch)&&(!Ee||Ee(Ot.marker))&&xe.push(Ot.marker.parent||Ot.marker)}++Te}),xe},getAllMarks:function(){var y=[];return this.iter(function(ee){var Ee=ee.markedSpans;if(Ee)for(var xe=0;xey)return ee=y,!0;y-=Ge,++Ee}),Dt(this,Mt(Ee,ee))},indexFromPos:function(y){y=Dt(this,y);var ee=y.ch;if(y.lineee&&(ee=y.from),y.to!=null&&y.to-1){ee.state.draggingText(y),setTimeout(function(){return ee.display.input.focus()},20);return}try{var On=y.dataTransfer.getData("Text");if(On){var Hn;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(Hn=ee.listSelections()),Bi(ee.doc,ke(Ee,Ee)),Hn)for(var Er=0;Er=0;wt--)Za(y.doc,"",xe[wt].from,xe[wt].to,"+delete");Us(y)})}function ru(y,ee,Ee){var xe=at(y.text,ee+Ee,Ee);return xe<0||xe>y.text.length?null:xe}function Yl(y,ee,Ee){var xe=ru(y,ee.ch,Ee);return xe==null?null:new Mt(ee.line,xe,Ee<0?"after":"before")}function iu(y,ee,Ee,xe,Te){if(y){ee.doc.direction=="rtl"&&(Te=-Te);var Ge=ft(Ee,ee.doc.direction);if(Ge){var st=Te<0?Ct(Ge):Ge[0],wt=Te<0==(st.level==1),Ot=wt?"after":"before",Wt;if(st.level>0||ee.doc.direction=="rtl"){var On=Eo(ee,Ee);Wt=Te<0?Ee.text.length-1:0;var Hn=io(ee,On,Wt).top;Wt=ot(function(Er){return io(ee,On,Er).top==Hn},Te<0==(st.level==1)?st.from:st.to-1,Wt),Ot=="before"&&(Wt=ru(Ee,Wt,1))}else Wt=Te<0?st.to:st.from;return new Mt(xe,Wt,Ot)}}return new Mt(xe,Te<0?Ee.text.length:0,Te<0?"before":"after")}function pu(y,ee,Ee,xe){var Te=ft(ee,y.doc.direction);if(!Te)return Yl(ee,Ee,xe);Ee.ch>=ee.text.length?(Ee.ch=ee.text.length,Ee.sticky="before"):Ee.ch<=0&&(Ee.ch=0,Ee.sticky="after");var Ge=mt(Te,Ee.ch,Ee.sticky),st=Te[Ge];if(y.doc.direction=="ltr"&&st.level%2==0&&(xe>0?st.to>Ee.ch:st.from=st.from&&Er>=On.begin)){var vr=Hn?"before":"after";return new Mt(Ee.line,Er,vr)}}var ai=function(ea,da,ta){for(var ya=function(So,os){return os?new Mt(Ee.line,wt(So,1),"before"):new Mt(Ee.line,So,"after")};ea>=0&&ea0==(Oa.level!=1),ja=Aa?ta.begin:wt(ta.end,-1);if(Oa.from<=ja&&ja0?On.end:wt(On.begin,-1);return Hi!=null&&!(xe>0&&Hi==ee.text.length)&&(Ai=ai(xe>0?0:Te.length-1,xe,Wt(Hi)),Ai)?Ai:null}var hl={selectAll:aa,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),Qe)},killLine:function(y){return Cl(y,function(ee){if(ee.empty()){var Ee=sn(y.doc,ee.head.line).text.length;return ee.head.ch==Ee&&ee.head.line0)Te=new Mt(Te.line,Te.ch+1),y.replaceRange(Ge.charAt(Te.ch-1)+Ge.charAt(Te.ch-2),Mt(Te.line,Te.ch-2),Te,"+transpose");else if(Te.line>y.doc.first){var st=sn(y.doc,Te.line-1).text;st&&(Te=new Mt(Te.line,1),y.replaceRange(Ge.charAt(0)+y.doc.lineSeparator()+st.charAt(st.length-1),Mt(Te.line-1,st.length-1),Te,"+transpose"))}}Ee.push(new pr(Te,Te))}y.setSelections(Ee)})},newlineAndIndent:function(y){return Zo(y,function(){for(var ee=y.listSelections(),Ee=ee.length-1;Ee>=0;Ee--)y.replaceRange(y.doc.lineSeparator(),ee[Ee].anchor,ee[Ee].head,"+input");ee=y.listSelections();for(var xe=0;xey&&Kt(ee,this.pos)==0&&Ee==this.button};var bl,Ml;function fu(y,ee){var Ee=+new Date;return Ml&&Ml.compare(Ee,y,ee)?(bl=Ml=null,"triple"):bl&&bl.compare(Ee,y,ee)?(Ml=new Ql(Ee,y,ee),bl=null,"double"):(bl=new Ql(Ee,y,ee),Ml=null,"single")}function hu(y){var ee=this,Ee=ee.display;if(!(an(ee,y)||Ee.activeTouch&&Ee.input.supportsTouch())){if(Ee.input.ensurePolled(),Ee.shift=y.shiftKey,ir(Ee,y)){ue||(Ee.scroller.draggable=!1,setTimeout(function(){return Ee.scroller.draggable=!0},100));return}if(!sl(ee,y)){var xe=_s(ee,y),Te=Cn(y),Ge=xe?fu(xe,Te):"single";window.focus(),Te==1&&ee.state.selectingText&&ee.state.selectingText(y),!(xe&&Au(ee,Te,xe,Ge,y))&&(Te==1?xe?eo(ee,xe,Ge,y):ln(y)==Ee.scroller&&rn(y):Te==2?(xe&&zn(ee.doc,xe),setTimeout(function(){return Ee.input.focus()},20)):Te==3&&(x?ee.display.input.onContextMenu(y):fs(ee)))}}}function Au(y,ee,Ee,xe,Te){var Ge="Click";return xe=="double"?Ge="Double"+Ge:xe=="triple"&&(Ge="Triple"+Ge),Ge=(ee==1?"Left":ee==2?"Middle":"Right")+Ge,Ul(y,Fl(Ge,Te),Te,function(st){if(typeof st=="string"&&(st=hl[st]),!st)return!1;var wt=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),wt=st(y,Ee)!=ut}finally{y.state.suppressEdits=!1}return wt})}function Xa(y,ee,Ee){var xe=y.getOption("configureMouse"),Te=xe?xe(y,ee,Ee):{};if(Te.unit==null){var Ge=oe?Ee.shiftKey&&Ee.metaKey:Ee.altKey;Te.unit=Ge?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(Te.extend==null||y.doc.extend)&&(Te.extend=y.doc.extend||Ee.shiftKey),Te.addNew==null&&(Te.addNew=ne?Ee.metaKey:Ee.ctrlKey),Te.moveOnDrag==null&&(Te.moveOnDrag=!(ne?Ee.altKey:Ee.ctrlKey)),Te}function eo(y,ee,Ee,xe){Oe?setTimeout(ze(Vo,y),0):y.curOp.focus=Ae();var Te=Xa(y,Ee,xe),Ge=y.doc.sel,st;y.options.dragDrop&&Mn&&!y.isReadOnly()&&Ee=="single"&&(st=Ge.contains(ee))>-1&&(Kt((st=Ge.ranges[st]).from(),ee)<0||ee.xRel>0)&&(Kt(st.to(),ee)>0||ee.xRel<0)?is(y,xe,ee,Te):as(y,xe,ee,Te)}function is(y,ee,Ee,xe){var Te=y.display,Ge=!1,st=yo(y,function(Wt){ue&&(Te.scroller.draggable=!1),y.state.draggingText=!1,yn(Te.wrapper.ownerDocument,"mouseup",st),yn(Te.wrapper.ownerDocument,"mousemove",wt),yn(Te.scroller,"dragstart",Ot),yn(Te.scroller,"drop",st),Ge||(rn(Wt),xe.addNew||zn(y.doc,Ee,null,null,xe.extend),ue&&!ae||Oe&&ve==9?setTimeout(function(){Te.wrapper.ownerDocument.body.focus({preventScroll:!0}),Te.input.focus()},20):Te.input.focus())}),wt=function(Wt){Ge=Ge||Math.abs(ee.clientX-Wt.clientX)+Math.abs(ee.clientY-Wt.clientY)>=10},Ot=function(){return Ge=!0};ue&&(Te.scroller.draggable=!0),y.state.draggingText=st,st.copy=!xe.moveOnDrag,Te.scroller.dragDrop&&Te.scroller.dragDrop(),nn(Te.wrapper.ownerDocument,"mouseup",st),nn(Te.wrapper.ownerDocument,"mousemove",wt),nn(Te.scroller,"dragstart",Ot),nn(Te.scroller,"drop",st),fs(y),setTimeout(function(){return Te.input.focus()},20)}function Is(y,ee,Ee){if(Ee=="char")return new pr(ee,ee);if(Ee=="word")return y.findWordAt(ee);if(Ee=="line")return new pr(Mt(ee.line,0),Dt(y.doc,Mt(ee.line+1,0)));var xe=Ee(y,ee);return new pr(xe.from,xe.to)}function as(y,ee,Ee,xe){var Te=y.display,Ge=y.doc;rn(ee);var st,wt,Ot=Ge.sel,Wt=Ot.ranges;if(xe.addNew&&!xe.extend?(wt=Ge.sel.contains(Ee),wt>-1?st=Wt[wt]:st=new pr(Ee,Ee)):(st=Ge.sel.primary(),wt=Ge.sel.primIndex),xe.unit=="rectangle")xe.addNew||(st=new pr(Ee,Ee)),Ee=_s(y,ee,!0,!0),wt=-1;else{var On=Is(y,Ee,xe.unit);xe.extend?st=yi(st,On.anchor,On.head,xe.extend):st=On}xe.addNew?wt==-1?(wt=Wt.length,Or(Ge,De(y,Wt.concat([st]),wt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[wt].empty()&&xe.unit=="char"&&!xe.extend?(Or(Ge,De(y,Wt.slice(0,wt).concat(Wt.slice(wt+1)),0),{scroll:!1,origin:"*mouse"}),Ot=Ge.sel):$r(Ge,wt,st,rt):(wt=0,Or(Ge,new gr([st],0),rt),Ot=Ge.sel);var Hn=Ee;function Er(ta){if(Kt(Hn,ta)!=0)if(Hn=ta,xe.unit=="rectangle"){for(var ya=[],Oa=y.options.tabSize,Aa=Ne(sn(Ge,Ee.line).text,Ee.ch,Oa),ja=Ne(sn(Ge,ta.line).text,ta.ch,Oa),So=Math.min(Aa,ja),os=Math.max(Aa,ja),Fo=Math.min(Ee.line,ta.line),js=Math.min(y.lastLine(),Math.max(Ee.line,ta.line));Fo<=js;Fo++){var Ls=sn(Ge,Fo).text,Xo=At(Ls,So,Oa);So==os?ya.push(new pr(Mt(Fo,Xo),Mt(Fo,Xo))):Ls.length>Xo&&ya.push(new pr(Mt(Fo,Xo),Mt(Fo,At(Ls,os,Oa))))}ya.length||ya.push(new pr(Ee,Ee)),Or(Ge,De(y,Ot.ranges.slice(0,wt).concat(ya),wt),{origin:"*mouse",scroll:!1}),y.scrollIntoView(ta)}else{var Rs=st,ds=Is(y,ta,xe.unit),es=Rs.anchor,Yo;Kt(ds.anchor,es)>0?(Yo=ds.head,es=Tt(Rs.from(),ds.anchor)):(Yo=ds.anchor,es=vn(Rs.to(),ds.head));var Uo=Ot.ranges.slice(0);Uo[wt]=Ol(y,new pr(Dt(Ge,es),Yo)),Or(Ge,De(y,Uo,wt),rt)}}var vr=Te.wrapper.getBoundingClientRect(),ai=0;function Ai(ta){var ya=++ai,Oa=_s(y,ta,!0,xe.unit=="rectangle");if(Oa)if(Kt(Oa,Hn)!=0){y.curOp.focus=Ae(),Er(Oa);var Aa=ks(Te,Ge);(Oa.line>=Aa.to||Oa.linevr.bottom?20:0;ja&&setTimeout(yo(y,function(){ai==ya&&(Te.scroller.scrollTop+=ja,Ai(ta))}),50)}}function Hi(ta){y.state.selectingText=!1,ai=1/0,ta&&(rn(ta),Te.input.focus()),yn(Te.wrapper.ownerDocument,"mousemove",ea),yn(Te.wrapper.ownerDocument,"mouseup",da),Ge.history.lastSelOrigin=null}var ea=yo(y,function(ta){ta.buttons===0||!Cn(ta)?Hi(ta):Ai(ta)}),da=yo(y,Hi);y.state.selectingText=da,nn(Te.wrapper.ownerDocument,"mousemove",ea),nn(Te.wrapper.ownerDocument,"mouseup",da)}function Ol(y,ee){var Ee=ee.anchor,xe=ee.head,Te=sn(y.doc,Ee.line);if(Kt(Ee,xe)==0&&Ee.sticky==xe.sticky)return ee;var Ge=ft(Te);if(!Ge)return ee;var st=mt(Ge,Ee.ch,Ee.sticky),wt=Ge[st];if(wt.from!=Ee.ch&&wt.to!=Ee.ch)return ee;var Ot=st+(wt.from==Ee.ch==(wt.level!=1)?0:1);if(Ot==0||Ot==Ge.length)return ee;var Wt;if(xe.line!=Ee.line)Wt=(xe.line-Ee.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var On=mt(Ge,xe.ch,xe.sticky),Hn=On-st||(xe.ch-Ee.ch)*(wt.level==1?-1:1);On==Ot-1||On==Ot?Wt=Hn<0:Wt=Hn>0}var Er=Ge[Ot+(Wt?-1:0)],vr=Wt==(Er.level==1),ai=vr?Er.from:Er.to,Ai=vr?"after":"before";return Ee.ch==ai&&Ee.sticky==Ai?ee:new pr(new Mt(Ee.line,ai,Ai),xe)}function vl(y,ee,Ee,xe){var Te,Ge;if(ee.touches)Te=ee.touches[0].clientX,Ge=ee.touches[0].clientY;else try{Te=ee.clientX,Ge=ee.clientY}catch(Er){return!1}if(Te>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;xe&&rn(ee);var st=y.display,wt=st.lineDiv.getBoundingClientRect();if(Ge>wt.bottom||!Jt(y,Ee))return Bn(ee);Ge-=wt.top-st.viewOffset;for(var Ot=0;Ot=Te){var On=Gt(y.doc,Ge),Hn=y.display.gutterSpecs[Ot];return xn(y,Ee,y,On,Hn.className,ee),Bn(ee)}}}function sl(y,ee){return vl(y,ee,"gutterClick",!0)}function Pl(y,ee){ir(y.display,ee)||vu(y,ee)||an(y,ee,"contextmenu")||x||y.display.input.onContextMenu(ee)}function vu(y,ee){return Jt(y,"gutterContextMenu")?vl(y,ee,"gutterContextMenu",!1):!1}function Iu(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xi(y)}var Jl={toString:function(){return"CodeMirror.Init"}},Lu={},yu={};function Hu(y){var ee=y.optionHandlers;function Ee(xe,Te,Ge,st){y.defaults[xe]=Te,Ge&&(ee[xe]=st?function(wt,Ot,Wt){Wt!=Jl&&Ge(wt,Ot,Wt)}:Ge)}y.defineOption=Ee,y.Init=Jl,Ee("value","",function(xe,Te){return xe.setValue(Te)},!0),Ee("mode",null,function(xe,Te){xe.doc.modeOption=Te,vt(xe)},!0),Ee("indentUnit",2,vt,!0),Ee("indentWithTabs",!1),Ee("smartIndent",!0),Ee("tabSize",4,function(xe){Nt(xe),Xi(xe),To(xe)},!0),Ee("lineSeparator",null,function(xe,Te){if(xe.doc.lineSep=Te,!!Te){var Ge=[],st=xe.doc.first;xe.doc.iter(function(Ot){for(var Wt=0;;){var On=Ot.text.indexOf(Te,Wt);if(On==-1)break;Wt=On+Te.length,Ge.push(Mt(st,On))}st++});for(var wt=Ge.length-1;wt>=0;wt--)Za(xe.doc,Te,Ge[wt],Mt(Ge[wt].line,Ge[wt].ch+Te.length))}}),Ee("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(xe,Te,Ge){xe.state.specialChars=new RegExp(Te.source+(Te.test(" ")?"":"| "),"g"),Ge!=Jl&&xe.refresh()}),Ee("specialCharPlaceholder",Gi,function(xe){return xe.refresh()},!0),Ee("electricChars",!0),Ee("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ee("spellcheck",!1,function(xe,Te){return xe.getInputField().spellcheck=Te},!0),Ee("autocorrect",!1,function(xe,Te){return xe.getInputField().autocorrect=Te},!0),Ee("autocapitalize",!1,function(xe,Te){return xe.getInputField().autocapitalize=Te},!0),Ee("rtlMoveVisually",!se),Ee("wholeLineUpdateBefore",!0),Ee("theme","default",function(xe){Iu(xe),qn(xe)},!0),Ee("keyMap","default",function(xe,Te,Ge){var st=Xl(Te),wt=Ge!=Jl&&Xl(Ge);wt&&wt.detach&&wt.detach(xe,st),st.attach&&st.attach(xe,wt||null)}),Ee("extraKeys",null),Ee("configureMouse",null),Ee("lineWrapping",!1,ju,!0),Ee("gutters",[],function(xe,Te){xe.display.gutterSpecs=wn(Te,xe.options.lineNumbers),qn(xe)},!0),Ee("fixedGutter",!0,function(xe,Te){xe.display.gutters.style.left=Te?uo(xe.display)+"px":"0",xe.refresh()},!0),Ee("coverGutterNextToScrollbar",!1,function(xe){return hs(xe)},!0),Ee("scrollbarStyle","native",function(xe){_l(xe),hs(xe),xe.display.scrollbars.setScrollTop(xe.doc.scrollTop),xe.display.scrollbars.setScrollLeft(xe.doc.scrollLeft)},!0),Ee("lineNumbers",!1,function(xe,Te){xe.display.gutterSpecs=wn(xe.options.gutters,Te),qn(xe)},!0),Ee("firstLineNumber",1,qn,!0),Ee("lineNumberFormatter",function(xe){return xe},qn,!0),Ee("showCursorWhenSelecting",!1,Es,!0),Ee("resetSelectionOnContextMenu",!0),Ee("lineWiseCopyCut",!0),Ee("pasteLinesPerSelection",!0),Ee("selectionsMayTouch",!1),Ee("readOnly",!1,function(xe,Te){Te=="nocursor"&&(Fs(xe),xe.display.input.blur()),xe.display.input.readOnlyChanged(Te)}),Ee("screenReaderLabel",null,function(xe,Te){Te=Te===""?null:Te,xe.display.input.screenReaderLabelChanged(Te)}),Ee("disableInput",!1,function(xe,Te){Te||xe.display.input.reset()},!0),Ee("dragDrop",!0,Ku),Ee("allowDropFileTypes",null),Ee("cursorBlinkRate",530),Ee("cursorScrollMargin",0),Ee("cursorHeight",1,Es,!0),Ee("singleCursorHeightPerLine",!0,Es,!0),Ee("workTime",100),Ee("workDelay",100),Ee("flattenSpans",!0,Nt,!0),Ee("addModeClass",!1,Nt,!0),Ee("pollInterval",100),Ee("undoDepth",200,function(xe,Te){return xe.doc.history.undoDepth=Te}),Ee("historyEventDelay",1250),Ee("viewportMargin",10,function(xe){return xe.refresh()},!0),Ee("maxHighlightLength",1e4,Nt,!0),Ee("moveInputWithCursor",!0,function(xe,Te){Te||xe.display.input.resetPosition()}),Ee("tabindex",null,function(xe,Te){return xe.display.input.getField().tabIndex=Te||""}),Ee("autofocus",null),Ee("direction","ltr",function(xe,Te){return xe.doc.setDirection(Te)},!0),Ee("phrases",null)}function Ku(y,ee,Ee){var xe=Ee&&Ee!=Jl;if(!ee!=!xe){var Te=y.display.dragFunctions,Ge=ee?nn:yn;Ge(y.display.scroller,"dragstart",Te.start),Ge(y.display.scroller,"dragenter",Te.enter),Ge(y.display.scroller,"dragover",Te.over),Ge(y.display.scroller,"dragleave",Te.leave),Ge(y.display.scroller,"drop",Te.drop)}}function ju(y){y.options.lineWrapping?(we(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(ce(y.display.wrapper,"CodeMirror-wrap"),Sn(y)),Ds(y),To(y),Xi(y),setTimeout(function(){return hs(y)},100)}function Lo(y,ee){var Ee=this;if(!(this instanceof Lo))return new Lo(y,ee);this.options=ee=ee?Ke(ee):{},Ke(Lu,ee,!1);var xe=ee.value;typeof xe=="string"?xe=new po(xe,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(xe.modeOption=ee.mode),this.doc=xe;var Te=new Lo.inputStyles[ee.inputStyle](this),Ge=this.display=new En(y,xe,Te,ee);Ge.wrapper.CodeMirror=this,Iu(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_l(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 Re,keySeq:null,specialChars:null},ee.autofocus&&!z&&Ge.input.focus(),Oe&&ve<11&&setTimeout(function(){return Ee.display.input.reset(!0)},20),Vu(this),Gl(),vs(this),this.curOp.forceUpdate=!0,hn(this,xe),ee.autofocus&&!z||this.hasFocus()?setTimeout(function(){Ee.hasFocus()&&!Ee.state.focused&&ul(Ee)},20):Fs(this);for(var st in yu)yu.hasOwnProperty(st)&&yu[st](this,ee[st],Jl);cn(this),ee.finishInit&&ee.finishInit(this);for(var wt=0;wt20*20}nn(ee.scroller,"touchstart",function(Ot){if(!an(y,Ot)&&!Ge(Ot)&&!sl(y,Ot)){ee.input.ensurePolled(),clearTimeout(Ee);var Wt=+new Date;ee.activeTouch={start:Wt,moved:!1,prev:Wt-xe.end<=300?xe:null},Ot.touches.length==1&&(ee.activeTouch.left=Ot.touches[0].pageX,ee.activeTouch.top=Ot.touches[0].pageY)}}),nn(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),nn(ee.scroller,"touchend",function(Ot){var Wt=ee.activeTouch;if(Wt&&!ir(ee,Ot)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var On=y.coordsChar(ee.activeTouch,"page"),Hn;!Wt.prev||st(Wt,Wt.prev)?Hn=new pr(On,On):!Wt.prev.prev||st(Wt,Wt.prev.prev)?Hn=y.findWordAt(On):Hn=new pr(Mt(On.line,0),Dt(y.doc,Mt(On.line+1,0))),y.setSelection(Hn.anchor,Hn.head),y.focus(),rn(Ot)}Te()}),nn(ee.scroller,"touchcancel",Te),nn(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(el(y,ee.scroller.scrollTop),zs(y,ee.scroller.scrollLeft,!0),xn(y,"scroll",y))}),nn(ee.scroller,"mousewheel",function(Ot){return br(y,Ot)}),nn(ee.scroller,"DOMMouseScroll",function(Ot){return br(y,Ot)}),nn(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(Ot){an(y,Ot)||kt(Ot)},over:function(Ot){an(y,Ot)||(al(y,Ot),kt(Ot))},start:function(Ot){return il(y,Ot)},drop:yo(y,fl),leave:function(Ot){an(y,Ot)||jl(y)}};var wt=ee.input.getField();nn(wt,"keyup",function(Ot){return cu.call(y,Ot)}),nn(wt,"keydown",yo(y,uu)),nn(wt,"keypress",yo(y,du)),nn(wt,"focus",function(Ot){return ul(y,Ot)}),nn(wt,"blur",function(Ot){return Fs(y,Ot)})}var Du=[];Lo.defineInitHook=function(y){return Du.push(y)};function mu(y,ee,Ee,xe){var Te=y.doc,Ge;Ee==null&&(Ee="add"),Ee=="smart"&&(Te.mode.indent?Ge=_r(y,ee).state:Ee="prev");var st=y.options.tabSize,wt=sn(Te,ee),Ot=Ne(wt.text,null,st);wt.stateAfter&&(wt.stateAfter=null);var Wt=wt.text.match(/^\s*/)[0],On;if(!xe&&!/\S/.test(wt.text))On=0,Ee="not";else if(Ee=="smart"&&(On=Te.mode.indent(Ge,wt.text.slice(Wt.length),wt.text),On==ut||On>150)){if(!xe)return;Ee="prev"}Ee=="prev"?ee>Te.first?On=Ne(sn(Te,ee-1).text,null,st):On=0:Ee=="add"?On=Ot+y.options.indentUnit:Ee=="subtract"?On=Ot-y.options.indentUnit:typeof Ee=="number"&&(On=Ot+Ee),On=Math.max(0,On);var Hn="",Er=0;if(y.options.indentWithTabs)for(var vr=Math.floor(On/st);vr;--vr)Er+=st,Hn+=" ";if(Erst,Ot=nr(ee),Wt=null;if(wt&&xe.ranges.length>1)if(ll&&ll.text.join(` `)==ee){if(xe.ranges.length%ll.text.length==0){Wt=[];for(var On=0;On=0;Er--){var vr=xe.ranges[Er],ai=vr.from(),Ai=vr.to();vr.empty()&&(Ee&&Ee>0?ai=Mt(ai.line,ai.ch-Ee):y.state.overwrite&&!wt?Ai=Mt(Ai.line,Math.min(sn(Ge,Ai.line).text.length,Ai.ch+Ct(Ot).length)):wt&&ll&&ll.lineWise&&ll.text.join(` `)==Ot.join(` `)&&(ai=Ai=Mt(ai.line,0)));var Hi={from:ai,to:Ai,text:Wt?Wt[Er%Wt.length]:Ot,origin:Te||(wt?"paste":y.state.cutIncoming>st?"cut":"+input")};oo(y.doc,Hi),ca(y,"inputRead",y,Hi)}ee&&!wt&&Bu(y,ee),Us(y),y.curOp.updateInput<2&&(y.curOp.updateInput=Hn),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function Ru(y,ee){var Ee=y.clipboardData&&y.clipboardData.getData("Text");if(Ee)return y.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&Zo(ee,function(){return Tu(ee,Ee,0,null,"paste")}),!0}function Bu(y,ee){if(!(!y.options.electricChars||!y.options.smartIndent))for(var Ee=y.doc.sel,xe=Ee.ranges.length-1;xe>=0;xe--){var Te=Ee.ranges[xe];if(!(Te.head.ch>100||xe&&Ee.ranges[xe-1].head.line==Te.head.line)){var Ge=y.getModeAt(Te.head),st=!1;if(Ge.electricChars){for(var wt=0;wt-1){st=mu(y,Te.head.line,"smart");break}}else Ge.electricInput&&Ge.electricInput.test(sn(y.doc,Te.head.line).text.slice(0,Te.head.ch))&&(st=mu(y,Te.head.line,"smart"));st&&ca(y,"electricInput",y,Te.head.line)}}}function Nu(y){for(var ee=[],Ee=[],xe=0;xeGe&&(mu(this,wt.head.line,xe,!0),Ge=wt.head.line,st==this.doc.sel.primIndex&&Us(this));else{var Ot=wt.from(),Wt=wt.to(),On=Math.max(Ge,Ot.line);Ge=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var Hn=On;Hn0&&$r(this.doc,st,new pr(Ot,Er[st].to()),Qe)}}}),getTokenAt:function(xe,Te){return Br(this,xe,Te)},getLineTokens:function(xe,Te){return Br(this,Mt(xe),Te,!0)},getTokenTypeAt:function(xe){xe=Dt(this.doc,xe);var Te=dr(this,sn(this.doc,xe.line)),Ge=0,st=(Te.length-1)/2,wt=xe.ch,Ot;if(wt==0)Ot=Te[2];else for(;;){var Wt=Ge+st>>1;if((Wt?Te[Wt*2-1]:0)>=wt)st=Wt;else if(Te[Wt*2+1]Ot&&(xe=Ot,st=!0),wt=sn(this.doc,xe)}else wt=xe;return Ja(this,wt,{top:0,left:0},Te||"page",Ge||st).top+(st?this.doc.height-un(wt):0)},defaultTextHeight:function(){return Jo(this.display)},defaultCharWidth:function(){return wo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(xe,Te,Ge,st,wt){var Ot=this.display;xe=Sa(this,Dt(this.doc,xe));var Wt=xe.bottom,On=xe.left;if(Te.style.position="absolute",Te.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Te),Ot.sizer.appendChild(Te),st=="over")Wt=xe.top;else if(st=="above"||st=="near"){var Hn=Math.max(Ot.wrapper.clientHeight,this.doc.height),Er=Math.max(Ot.sizer.clientWidth,Ot.lineSpace.clientWidth);(st=="above"||xe.bottom+Te.offsetHeight>Hn)&&xe.top>Te.offsetHeight?Wt=xe.top-Te.offsetHeight:xe.bottom+Te.offsetHeight<=Hn&&(Wt=xe.bottom),On+Te.offsetWidth>Er&&(On=Er-Te.offsetWidth)}Te.style.top=Wt+"px",Te.style.left=Te.style.right="",wt=="right"?(On=Ot.sizer.clientWidth-Te.offsetWidth,Te.style.right="0px"):(wt=="left"?On=0:wt=="middle"&&(On=(Ot.sizer.clientWidth-Te.offsetWidth)/2),Te.style.left=On+"px"),Ge&&Al(this,{left:On,top:Wt,right:On+Te.offsetWidth,bottom:Wt+Te.offsetHeight})},triggerOnKeyDown:zo(uu),triggerOnKeyPress:zo(du),triggerOnKeyUp:cu,triggerOnMouseDown:zo(hu),execCommand:function(xe){if(hl.hasOwnProperty(xe))return hl[xe].call(null,this)},triggerElectric:zo(function(xe){Bu(this,xe)}),findPosH:function(xe,Te,Ge,st){var wt=1;Te<0&&(wt=-1,Te=-Te);for(var Ot=Dt(this.doc,xe),Wt=0;Wt0&&On(Ge.charAt(st-1));)--st;for(;wt.5||this.options.lineWrapping)&&Ds(this),xn(this,"refresh",this)}),swapDoc:zo(function(xe){var Te=this.doc;return Te.cm=null,this.state.selectingText&&this.state.selectingText(),hn(this,xe),Xi(this),this.display.input.reset(),Ws(this,xe.scrollLeft,xe.scrollTop),this.curOp.forceScroll=!0,ca(this,"swapDoc",this,Te),Te}),phrase:function(xe){var Te=this.options.phrases;return Te&&Object.prototype.hasOwnProperty.call(Te,xe)?Te[xe]:xe},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}},Ut(y),y.registerHelper=function(xe,Te,Ge){Ee.hasOwnProperty(xe)||(Ee[xe]=y[xe]={_global:[]}),Ee[xe][Te]=Ge},y.registerGlobalHelper=function(xe,Te,Ge,st){y.registerHelper(xe,Te,st),Ee[xe]._global.push({pred:Ge,val:st})}}function Mu(y,ee,Ee,xe,Te){var Ge=ee,st=Ee,wt=sn(y,ee.line),Ot=Te&&y.direction=="rtl"?-Ee:Ee;function Wt(){var da=ee.line+Ot;return da=y.first+y.size?!1:(ee=new Mt(da,ee.ch,ee.sticky),wt=sn(y,da))}function On(da){var ta;if(xe=="codepoint"){var ya=wt.text.charCodeAt(ee.ch+(xe>0?0:-1));isNaN(ya)?ta=null:ta=new Mt(ee.line,Math.max(0,Math.min(wt.text.length,ee.ch+Ee*(ya>=55296&&ya<56320?2:1))),-Ee)}else Te?ta=pu(y.cm,wt,ee,Ee):ta=Yl(wt,ee,Ee);if(ta==null)if(!da&&Wt())ee=iu(Te,y.cm,wt,ee.line,Ot);else return!1;else ee=ta;return!0}if(xe=="char"||xe=="codepoint")On();else if(xe=="column")On(!0);else if(xe=="word"||xe=="group")for(var Hn=null,Er=xe=="group",vr=y.cm&&y.cm.getHelper(ee,"wordChars"),ai=!0;!(Ee<0&&!On(!ai));ai=!1){var Ai=wt.text.charAt(ee.ch)||` `,Hi=et(Ai,vr)?"w":Er&&Ai==` `?"n":!Er||/\s/.test(Ai)?null:"p";if(Er&&!ai&&!Hi&&(Hi="s"),Hn&&Hn!=Hi){Ee<0&&(Ee=1,On(),ee.sticky="after");break}if(Hi&&(Hn=Hi),Ee>0&&!On(!ai))break}var ea=Na(y,ee,Ge,st,!0);return yt(Ge,ea)&&(ea.hitSide=!0),ea}function Uu(y,ee,Ee,xe){var Te=y.doc,Ge=ee.left,st;if(xe=="page"){var wt=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ot=Math.max(wt-.5*Jo(y.display),3);st=(Ee>0?ee.bottom:ee.top)+Ee*Ot}else xe=="line"&&(st=Ee>0?ee.bottom+3:ee.top-3);for(var Wt;Wt=wa(y,Ge,st),!!Wt.outside;){if(Ee<0?st<=0:st>=Te.height){Wt.hitSide=!0;break}st+=Ee*5}return Wt}var go=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};go.prototype.init=function(y){var ee=this,Ee=this,xe=Ee.cm,Te=Ee.div=y.lineDiv;Fu(Te,xe.options.spellcheck,xe.options.autocorrect,xe.options.autocapitalize);function Ge(wt){for(var Ot=wt.target;Ot;Ot=Ot.parentNode){if(Ot==Te)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ot.className))break}return!1}nn(Te,"paste",function(wt){!Ge(wt)||an(xe,wt)||Ru(wt,xe)||ve<=11&&setTimeout(yo(xe,function(){return ee.updateFromDOM()}),20)}),nn(Te,"compositionstart",function(wt){ee.composing={data:wt.data,done:!1}}),nn(Te,"compositionupdate",function(wt){ee.composing||(ee.composing={data:wt.data,done:!1})}),nn(Te,"compositionend",function(wt){ee.composing&&(wt.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),nn(Te,"touchstart",function(){return Ee.forceCompositionEnd()}),nn(Te,"input",function(){ee.composing||ee.readFromDOMSoon()});function st(wt){if(!(!Ge(wt)||an(xe,wt))){if(xe.somethingSelected())_u({lineWise:!1,text:xe.getSelections()}),wt.type=="cut"&&xe.replaceSelection("",null,"cut");else if(xe.options.lineWiseCopyCut){var Ot=Nu(xe);_u({lineWise:!0,text:Ot.text}),wt.type=="cut"&&xe.operation(function(){xe.setSelections(Ot.ranges,0,Qe),xe.replaceSelection("",null,"cut")})}else return;if(wt.clipboardData){wt.clipboardData.clearData();var Wt=ll.text.join(` `);if(wt.clipboardData.setData("Text",Wt),wt.clipboardData.getData("Text")==Wt){wt.preventDefault();return}}var On=ku(),Hn=On.firstChild;xe.display.lineSpace.insertBefore(On,xe.display.lineSpace.firstChild),Hn.value=ll.text.join(` `);var Er=document.activeElement;Pe(Hn),setTimeout(function(){xe.display.lineSpace.removeChild(On),Er.focus(),Er==Te&&Ee.showPrimarySelection()},50)}}nn(Te,"copy",st),nn(Te,"cut",st)},go.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},go.prototype.prepareSelection=function(){var y=pl(this.cm,!1);return y.focus=document.activeElement==this.div,y},go.prototype.showSelection=function(y,ee){!y||!this.cm.display.view.length||((y.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(y))},go.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},go.prototype.showPrimarySelection=function(){var y=this.getSelection(),ee=this.cm,Ee=ee.doc.sel.primary(),xe=Ee.from(),Te=Ee.to();if(ee.display.viewTo==ee.display.viewFrom||xe.line>=ee.display.viewTo||Te.line=ee.display.viewFrom&&Wu(ee,xe)||{node:wt[0].measure.map[2],offset:0},Wt=Te.liney.firstLine()&&(xe=Mt(xe.line-1,sn(y.doc,xe.line-1).length)),Te.ch==sn(y.doc,Te.line).text.length&&Te.lineee.viewTo-1)return!1;var Ge,st,wt;xe.line==ee.viewFrom||(Ge=xs(y,xe.line))==0?(st=Vt(ee.view[0].line),wt=ee.view[0].node):(st=Vt(ee.view[Ge].line),wt=ee.view[Ge-1].node.nextSibling);var Ot=xs(y,Te.line),Wt,On;if(Ot==ee.view.length-1?(Wt=ee.viewTo-1,On=ee.lineDiv.lastChild):(Wt=Vt(ee.view[Ot+1].line)-1,On=ee.view[Ot+1].node.previousSibling),!wt)return!1;for(var Hn=y.doc.splitLines(Xu(y,wt,On,st,Wt)),Er=mn(y.doc,Mt(st,0),Mt(Wt,sn(y.doc,Wt).text.length));Hn.length>1&&Er.length>1;)if(Ct(Hn)==Ct(Er))Hn.pop(),Er.pop(),Wt--;else if(Hn[0]==Er[0])Hn.shift(),Er.shift(),st++;else break;for(var vr=0,ai=0,Ai=Hn[0],Hi=Er[0],ea=Math.min(Ai.length,Hi.length);vrxe.ch&&da.charCodeAt(da.length-ai-1)==ta.charCodeAt(ta.length-ai-1);)vr--,ai++;Hn[Hn.length-1]=da.slice(0,da.length-ai).replace(/^\u200b+/,""),Hn[0]=Hn[0].slice(vr).replace(/\u200b+$/,"");var Oa=Mt(st,vr),Aa=Mt(Wt,Er.length?Ct(Er).length-ai:0);if(Hn.length>1||Hn[0]||Kt(Oa,Aa))return Za(y.doc,Hn,Oa,Aa,"+input"),!0},go.prototype.ensurePolled=function(){this.forceCompositionEnd()},go.prototype.reset=function(){this.forceCompositionEnd()},go.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},go.prototype.readFromDOMSoon=function(){var y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},go.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&Zo(this.cm,function(){return To(y.cm)})},go.prototype.setUneditable=function(y){y.contentEditable="false"},go.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||yo(this.cm,Tu)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},go.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},go.prototype.onContextMenu=function(){},go.prototype.resetPosition=function(){},go.prototype.needsContentAttribute=!0;function Wu(y,ee){var Ee=fo(y,ee.line);if(!Ee||Ee.hidden)return null;var xe=sn(y.doc,ee.line),Te=oa(Ee,xe,ee.line),Ge=ft(xe,y.doc.direction),st="left";if(Ge){var wt=mt(Ge,ee.ch);st=wt%2?"right":"left"}var Ot=Ba(Te.map,ee.ch,st);return Ot.offset=Ot.collapse=="right"?Ot.end:Ot.start,Ot}function Gu(y){for(var ee=y;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function $l(y,ee){return ee&&(y.bad=!0),y}function Xu(y,ee,Ee,xe,Te){var Ge="",st=!1,wt=y.doc.lineSeparator(),Ot=!1;function Wt(vr){return function(ai){return ai.id==vr}}function On(){st&&(Ge+=wt,Ot&&(Ge+=wt),st=Ot=!1)}function Hn(vr){vr&&(On(),Ge+=vr)}function Er(vr){if(vr.nodeType==1){var ai=vr.getAttribute("cm-text");if(ai){Hn(ai);return}var Ai=vr.getAttribute("cm-marker"),Hi;if(Ai){var ea=y.findMarks(Mt(xe,0),Mt(Te+1,0),Wt(+Ai));ea.length&&(Hi=ea[0].find(0))&&Hn(mn(y.doc,Hi.from,Hi.to).join(wt));return}if(vr.getAttribute("contenteditable")=="false")return;var da=/^(pre|div|p|li|table|br)$/i.test(vr.nodeName);if(!/^br$/i.test(vr.nodeName)&&vr.textContent.length==0)return;da&&On();for(var ta=0;ta=9&&ee.hasSelection&&(ee.hasSelection=null),Ee.poll()}),nn(Te,"paste",function(st){an(xe,st)||Ru(st,xe)||(xe.state.pasteIncoming=+new Date,Ee.fastPoll())});function Ge(st){if(!an(xe,st)){if(xe.somethingSelected())_u({lineWise:!1,text:xe.getSelections()});else if(xe.options.lineWiseCopyCut){var wt=Nu(xe);_u({lineWise:!0,text:wt.text}),st.type=="cut"?xe.setSelections(wt.ranges,null,Qe):(Ee.prevInput="",Te.value=wt.text.join(` `),Pe(Te))}else return;st.type=="cut"&&(xe.state.cutIncoming=+new Date)}}nn(Te,"cut",Ge),nn(Te,"copy",Ge),nn(y.scroller,"paste",function(st){if(!(ir(y,st)||an(xe,st))){if(!Te.dispatchEvent){xe.state.pasteIncoming=+new Date,Ee.focus();return}var wt=new Event("paste");wt.clipboardData=st.clipboardData,Te.dispatchEvent(wt)}}),nn(y.lineSpace,"selectstart",function(st){ir(y,st)||rn(st)}),nn(Te,"compositionstart",function(){var st=xe.getCursor("from");Ee.composing&&Ee.composing.range.clear(),Ee.composing={start:st,range:xe.markText(st,xe.getCursor("to"),{className:"CodeMirror-composing"})}}),nn(Te,"compositionend",function(){Ee.composing&&(Ee.poll(),Ee.composing.range.clear(),Ee.composing=null)})},jo.prototype.createField=function(y){this.wrapper=ku(),this.textarea=this.wrapper.firstChild},jo.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var y=this.cm,ee=y.display,Ee=y.doc,xe=pl(y);if(y.options.moveInputWithCursor){var Te=Sa(y,Ee.sel.primary().head,"div"),Ge=ee.wrapper.getBoundingClientRect(),st=ee.lineDiv.getBoundingClientRect();xe.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,Te.top+st.top-Ge.top)),xe.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,Te.left+st.left-Ge.left))}return xe},jo.prototype.showSelection=function(y){var ee=this.cm,Ee=ee.display;_e(Ee.cursorDiv,y.cursors),_e(Ee.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},jo.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var Ee=ee.getSelection();this.textarea.value=Ee,ee.state.focused&&Pe(this.textarea),Oe&&ve>=9&&(this.hasSelection=Ee)}else y||(this.prevInput=this.textarea.value="",Oe&&ve>=9&&(this.hasSelection=null))}},jo.prototype.getField=function(){return this.textarea},jo.prototype.supportsTouch=function(){return!1},jo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!z||Ae()!=this.textarea))try{this.textarea.focus()}catch(y){}},jo.prototype.blur=function(){this.textarea.blur()},jo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jo.prototype.receivedFocus=function(){this.slowPoll()},jo.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},jo.prototype.fastPoll=function(){var y=!1,ee=this;ee.pollingFast=!0;function Ee(){var xe=ee.poll();!xe&&!y?(y=!0,ee.polling.set(60,Ee)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,Ee)},jo.prototype.poll=function(){var y=this,ee=this.cm,Ee=this.textarea,xe=this.prevInput;if(this.contextMenuPending||!ee.state.focused||ur(Ee)&&!xe&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var Te=Ee.value;if(Te==xe&&!ee.somethingSelected())return!1;if(Oe&&ve>=9&&this.hasSelection===Te||ne&&/[\uf700-\uf7ff]/.test(Te))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var Ge=Te.charCodeAt(0);if(Ge==8203&&!xe&&(xe="\u200B"),Ge==8666)return this.reset(),this.cm.execCommand("undo")}for(var st=0,wt=Math.min(xe.length,Te.length);st1e3||Te.indexOf(` `)>-1?Ee.value=y.prevInput="":y.prevInput=Te,y.composing&&(y.composing.range.clear(),y.composing.range=ee.markText(y.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jo.prototype.onKeyPress=function(){Oe&&ve>=9&&(this.hasSelection=null),this.fastPoll()},jo.prototype.onContextMenu=function(y){var ee=this,Ee=ee.cm,xe=Ee.display,Te=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var Ge=_s(Ee,y),st=xe.scroller.scrollTop;if(!Ge||le)return;var wt=Ee.options.resetSelectionOnContextMenu;wt&&Ee.doc.sel.contains(Ge)==-1&&yo(Ee,Or)(Ee.doc,ke(Ge),Qe);var Ot=Te.style.cssText,Wt=ee.wrapper.style.cssText,On=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",Te.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(y.clientY-On.top-5)+"px; left: "+(y.clientX-On.left-5)+`px; z-index: 1000; background: `+(Oe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Hn;ue&&(Hn=window.scrollY),xe.input.focus(),ue&&window.scrollTo(null,Hn),xe.input.reset(),Ee.somethingSelected()||(Te.value=ee.prevInput=" "),ee.contextMenuPending=vr,xe.selForContextMenu=Ee.doc.sel,clearTimeout(xe.detectingSelectAll);function Er(){if(Te.selectionStart!=null){var Ai=Ee.somethingSelected(),Hi="\u200B"+(Ai?Te.value:"");Te.value="\u21DA",Te.value=Hi,ee.prevInput=Ai?"":"\u200B",Te.selectionStart=1,Te.selectionEnd=Hi.length,xe.selForContextMenu=Ee.doc.sel}}function vr(){if(ee.contextMenuPending==vr&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=Wt,Te.style.cssText=Ot,Oe&&ve<9&&xe.scrollbars.setScrollTop(xe.scroller.scrollTop=st),Te.selectionStart!=null)){(!Oe||Oe&&ve<9)&&Er();var Ai=0,Hi=function(){xe.selForContextMenu==Ee.doc.sel&&Te.selectionStart==0&&Te.selectionEnd>0&&ee.prevInput=="\u200B"?yo(Ee,aa)(Ee):Ai++<10?xe.detectingSelectAll=setTimeout(Hi,500):(xe.selForContextMenu=null,xe.input.reset())};xe.detectingSelectAll=setTimeout(Hi,200)}}if(Oe&&ve>=9&&Er(),x){kt(y);var ai=function(){yn(window,"mouseup",ai),setTimeout(vr,20)};nn(window,"mouseup",ai)}else setTimeout(vr,50)},jo.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},jo.prototype.setUneditable=function(){},jo.prototype.needsContentAttribute=!1;function Qu(y,ee){if(ee=ee?Ke(ee):{},ee.value=y.value,!ee.tabindex&&y.tabIndex&&(ee.tabindex=y.tabIndex),!ee.placeholder&&y.placeholder&&(ee.placeholder=y.placeholder),ee.autofocus==null){var Ee=Ae();ee.autofocus=Ee==y||y.getAttribute("autofocus")!=null&&Ee==document.body}function xe(){y.value=wt.getValue()}var Te;if(y.form&&(nn(y.form,"submit",xe),!ee.leaveSubmitMethodAlone)){var Ge=y.form;Te=Ge.submit;try{var st=Ge.submit=function(){xe(),Ge.submit=Te,Ge.submit(),Ge.submit=st}}catch(Ot){}}ee.finishInit=function(Ot){Ot.save=xe,Ot.getTextArea=function(){return y},Ot.toTextArea=function(){Ot.toTextArea=isNaN,xe(),y.parentNode.removeChild(Ot.getWrapperElement()),y.style.display="",y.form&&(yn(y.form,"submit",xe),!ee.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=Te))}},y.style.display="none";var wt=Lo(function(Ot){return y.parentNode.insertBefore(Ot,y.nextSibling)},ee);return wt}function Ju(y){y.off=yn,y.on=nn,y.wheelEventPixels=yr,y.Doc=po,y.splitLines=nr,y.countColumn=Ne,y.findColumn=At,y.isWordChar=Ze,y.Pass=ut,y.signal=xn,y.Line=Rr,y.changeEnd=Ve,y.scrollbarModel=Hs,y.Pos=Mt,y.cmpPos=Kt,y.modes=Kn,y.mimeModes=Ln,y.resolveMode=dn,y.getMode=Ie,y.modeExtensions=je,y.extendMode=Je,y.copyState=ht,y.startState=Qt,y.innerMode=Et,y.commands=hl,y.keyMap=Ko,y.keyName=El,y.isModifierKey=nu,y.lookupKey=Tl,y.normalizeKeyMap=rs,y.StringStream=fn,y.SharedTextMarker=mo,y.TextMarker=ps,y.LineWidget=so,y.e_preventDefault=rn,y.e_stopPropagation=_n,y.e_stop=kt,y.addClass=we,y.contains=Be,y.rmClass=ce,y.keyNames=Ha}Hu(Lo),Zu(Lo);var $u="iter insert remove copy getEditor constructor".split(" ");for(var Eu in po.prototype)po.prototype.hasOwnProperty(Eu)&&$e($u,Eu)<0&&(Lo.prototype[Eu]=function(y){return function(){return y.apply(this.doc,arguments)}}(po.prototype[Eu]));return Ut(po),Lo.inputStyles={textarea:jo,contenteditable:go},Lo.defineMode=function(y){!Lo.defaults.mode&&y!="null"&&(Lo.defaults.mode=y),$n.apply(this,arguments)},Lo.defineMIME=ar,Lo.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),Lo.defineMIME("text/plain","null"),Lo.defineExtension=function(y,ee){Lo.prototype[y]=ee},Lo.defineDocExtension=function(y,ee){po.prototype[y]=ee},Lo.fromTextArea=Qu,Ju(Lo),Lo.version="5.58.2",Lo})},25419:function(Yn,en,Ce){(function(te){te(Ce(89780),Ce(15525),Ce(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ye,Me){var pe=te.getMode(Ye,"text/html"),Oe=pe.name=="null";function ve(Ne){if(te.findModeByName){var Re=te.findModeByName(Ne);Re&&(Ne=Re.mime||Re.mimes[0])}var $e=te.getMode(Ye,Ne);return $e.name=="null"?null:$e}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var ue={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 fe in ue)ue.hasOwnProperty(fe)&&Me.tokenTypeOverrides[fe]&&(ue[fe]=Me.tokenTypeOverrides[fe]);var he=/^([*\-_])(?:\s*\1){2,}\s*$/,le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ae=/^\[(x| )\](?=\s)/i,ie=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,E=/^[^#!\[\]*_\\<>` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,z=/^\s*\[[^\]]+?\]:.*$/,ne=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,oe=" ";function se(Ne,Re,$e){return Re.f=Re.inline=$e,$e(Ne,Re)}function de(Ne,Re,$e){return Re.f=Re.block=$e,$e(Ne,Re)}function a(Ne){return!Ne||!/\S/.test(Ne.string)}function x(Ne){if(Ne.linkTitle=!1,Ne.linkHref=!1,Ne.linkText=!1,Ne.em=!1,Ne.strong=!1,Ne.strikethrough=!1,Ne.quote=0,Ne.indentedCode=!1,Ne.f==ce){var Re=Oe;if(!Re){var $e=te.innerMode(pe,Ne.htmlState);Re=$e.mode.name=="xml"&&$e.state.tagStart===null&&!$e.state.context&&$e.state.tokenize.isInText}Re&&(Ne.f=be,Ne.block=re,Ne.htmlState=null)}return Ne.trailingSpace=0,Ne.trailingSpaceNewLine=!1,Ne.prevLine=Ne.thisLine,Ne.thisLine={stream:null},null}function re(Ne,Re){var $e=Ne.column()===Re.indentation,nt=a(Re.prevLine.stream),ut=Re.indentedCode,Qe=Re.prevLine.hr,rt=Re.list!==!1,pt=(Re.listStack[Re.listStack.length-1]||0)+3;Re.indentedCode=!1;var At=Re.indentation;if(Re.indentationDiff===null&&(Re.indentationDiff=Re.indentation,rt)){for(Re.list=null;At=4&&(ut||Re.prevLine.fencedCodeEnd||Re.prevLine.header||nt))return Ne.skipToEnd(),Re.indentedCode=!0,ue.code;if(Ne.eatSpace())return null;if($e&&Re.indentation<=pt&&(Ct=Ne.match(ie))&&Ct[1].length<=6)return Re.quote=0,Re.header=Ct[1].length,Re.thisLine.header=!0,Me.highlightFormatting&&(Re.formatting="header"),Re.f=Re.inline,_e(Re);if(Re.indentation<=pt&&Ne.eat(">"))return Re.quote=$e?1:Re.quote+1,Me.highlightFormatting&&(Re.formatting="quote"),Ne.eatSpace(),_e(Re);if(!Ft&&!Re.setext&&$e&&Re.indentation<=pt&&(Ct=Ne.match(le))){var Yt=Ct[1]?"ol":"ul";return Re.indentation=At+Ne.current().length,Re.list=!0,Re.quote=0,Re.listStack.push(Re.indentation),Re.em=!1,Re.strong=!1,Re.code=!1,Re.strikethrough=!1,Me.taskLists&&Ne.match(ae,!1)&&(Re.taskList=!0),Re.f=Re.inline,Me.highlightFormatting&&(Re.formatting=["list","list-"+Yt]),_e(Re)}else{if($e&&Re.indentation<=pt&&(Ct=Ne.match(b,!0)))return Re.quote=0,Re.fencedEndRE=new RegExp(Ct[1]+"+ *$"),Re.localMode=Me.fencedCodeBlockHighlighting&&ve(Ct[2]||Me.fencedCodeBlockDefaultMode),Re.localMode&&(Re.localState=te.startState(Re.localMode)),Re.f=Re.block=ge,Me.highlightFormatting&&(Re.formatting="code-block"),Re.code=-1,_e(Re);if(Re.setext||(!gt||!rt)&&!Re.quote&&Re.list===!1&&!Re.code&&!Ft&&!z.test(Ne.string)&&(Ct=Ne.lookAhead(1))&&(Ct=Ct.match(me)))return Re.setext?(Re.header=Re.setext,Re.setext=0,Ne.skipToEnd(),Me.highlightFormatting&&(Re.formatting="header")):(Re.header=Ct[0].charAt(0)=="="?1:2,Re.setext=Re.header),Re.thisLine.header=!0,Re.f=Re.inline,_e(Re);if(Ft)return Ne.skipToEnd(),Re.hr=!0,Re.thisLine.hr=!0,ue.hr;if(Ne.peek()==="[")return se(Ne,Re,Ue)}return se(Ne,Re,Re.inline)}function ce(Ne,Re){var $e=pe.token(Ne,Re.htmlState);if(!Oe){var nt=te.innerMode(pe,Re.htmlState);(nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText||Re.md_inside&&Ne.current().indexOf(">")>-1)&&(Re.f=be,Re.block=re,Re.htmlState=null)}return $e}function ge(Ne,Re){var $e=Re.listStack[Re.listStack.length-1]||0,nt=Re.indentation<$e,ut=$e+3;if(Re.fencedEndRE&&Re.indentation<=ut&&(nt||Ne.match(Re.fencedEndRE))){Me.highlightFormatting&&(Re.formatting="code-block");var Qe;return nt||(Qe=_e(Re)),Re.localMode=Re.localState=null,Re.block=re,Re.f=be,Re.fencedEndRE=null,Re.code=0,Re.thisLine.fencedCodeEnd=!0,nt?de(Ne,Re,Re.block):Qe}else return Re.localMode?Re.localMode.token(Ne,Re.localState):(Ne.skipToEnd(),ue.code)}function _e(Ne){var Re=[];if(Ne.formatting){Re.push(ue.formatting),typeof Ne.formatting=="string"&&(Ne.formatting=[Ne.formatting]);for(var $e=0;$e=Ne.quote?Re.push(ue.formatting+"-"+Ne.formatting[$e]+"-"+Ne.quote):Re.push("error"))}if(Ne.taskOpen)return Re.push("meta"),Re.length?Re.join(" "):null;if(Ne.taskClosed)return Re.push("property"),Re.length?Re.join(" "):null;if(Ne.linkHref?Re.push(ue.linkHref,"url"):(Ne.strong&&Re.push(ue.strong),Ne.em&&Re.push(ue.em),Ne.strikethrough&&Re.push(ue.strikethrough),Ne.emoji&&Re.push(ue.emoji),Ne.linkText&&Re.push(ue.linkText),Ne.code&&Re.push(ue.code),Ne.image&&Re.push(ue.image),Ne.imageAltText&&Re.push(ue.imageAltText,"link"),Ne.imageMarker&&Re.push(ue.imageMarker)),Ne.header&&Re.push(ue.header,ue.header+"-"+Ne.header),Ne.quote&&(Re.push(ue.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=Ne.quote?Re.push(ue.quote+"-"+Ne.quote):Re.push(ue.quote+"-"+Me.maxBlockquoteDepth)),Ne.list!==!1){var nt=(Ne.listStack.length-1)%3;nt?nt===1?Re.push(ue.list2):Re.push(ue.list3):Re.push(ue.list1)}return Ne.trailingSpaceNewLine?Re.push("trailing-space-new-line"):Ne.trailingSpace&&Re.push("trailing-space-"+(Ne.trailingSpace%2?"a":"b")),Re.length?Re.join(" "):null}function ye(Ne,Re){if(Ne.match(E,!0))return _e(Re)}function be(Ne,Re){var $e=Re.text(Ne,Re);if(typeof $e!="undefined")return $e;if(Re.list)return Re.list=null,_e(Re);if(Re.taskList){var nt=Ne.match(ae,!0)[1]===" ";return nt?Re.taskOpen=!0:Re.taskClosed=!0,Me.highlightFormatting&&(Re.formatting="task"),Re.taskList=!1,_e(Re)}if(Re.taskOpen=!1,Re.taskClosed=!1,Re.header&&Ne.match(/^#+$/,!0))return Me.highlightFormatting&&(Re.formatting="header"),_e(Re);var ut=Ne.next();if(Re.linkTitle){Re.linkTitle=!1;var Qe=ut;ut==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(Ne.match(new RegExp(rt),!0))return ue.linkHref}if(ut==="`"){var pt=Re.formatting;Me.highlightFormatting&&(Re.formatting="code"),Ne.eatWhile("`");var At=Ne.current().length;if(Re.code==0&&(!Re.quote||At==1))return Re.code=At,_e(Re);if(At==Re.code){var gt=_e(Re);return Re.code=0,gt}else return Re.formatting=pt,_e(Re)}else if(Re.code)return _e(Re);if(ut==="\\"&&(Ne.next(),Me.highlightFormatting)){var Ft=_e(Re),Ct=ue.formatting+"-escape";return Ft?Ft+" "+Ct:Ct}if(ut==="!"&&Ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Re.imageMarker=!0,Re.image=!0,Me.highlightFormatting&&(Re.formatting="image"),_e(Re);if(ut==="["&&Re.imageMarker&&Ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Re.imageMarker=!1,Re.imageAltText=!0,Me.highlightFormatting&&(Re.formatting="image"),_e(Re);if(ut==="]"&&Re.imageAltText){Me.highlightFormatting&&(Re.formatting="image");var Ft=_e(Re);return Re.imageAltText=!1,Re.image=!1,Re.inline=Re.f=Be,Ft}if(ut==="["&&!Re.image)return Re.linkText&&Ne.match(/^.*?\]/)||(Re.linkText=!0,Me.highlightFormatting&&(Re.formatting="link")),_e(Re);if(ut==="]"&&Re.linkText){Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Re.linkText=!1,Re.inline=Re.f=Ne.match(/\(.*?\)| ?\[.*?\]/,!1)?Be:be,Ft}if(ut==="<"&&Ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Se,Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Ft?Ft+=" ":Ft="",Ft+ue.linkInline}if(ut==="<"&&Ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Se,Me.highlightFormatting&&(Re.formatting="link");var Ft=_e(Re);return Ft?Ft+=" ":Ft="",Ft+ue.linkEmail}if(Me.xml&&ut==="<"&&Ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Yt=Ne.string.indexOf(">",Ne.pos);if(Yt!=-1){var zt=Ne.string.substring(Ne.start,Yt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(zt)&&(Re.md_inside=!0)}return Ne.backUp(1),Re.htmlState=te.startState(pe),de(Ne,Re,ce)}if(Me.xml&&ut==="<"&&Ne.match(/^\/\w*?>/))return Re.md_inside=!1,"tag";if(ut==="*"||ut==="_"){for(var Xe=1,Fe=Ne.pos==1?" ":Ne.string.charAt(Ne.pos-2);Xe<3&&Ne.eat(ut);)Xe++;var Le=Ne.peek()||" ",Ze=!/\s/.test(Le)&&(!ne.test(Le)||/\s/.test(Fe)||ne.test(Fe)),et=!/\s/.test(Fe)&&(!ne.test(Fe)||/\s/.test(Le)||ne.test(Le)),He=null,We=null;if(Xe%2&&(!Re.em&&Ze&&(ut==="*"||!et||ne.test(Fe))?He=!0:Re.em==ut&&et&&(ut==="*"||!Ze||ne.test(Le))&&(He=!1)),Xe>1&&(!Re.strong&&Ze&&(ut==="*"||!et||ne.test(Fe))?We=!0:Re.strong==ut&&et&&(ut==="*"||!Ze||ne.test(Le))&&(We=!1)),We!=null||He!=null){Me.highlightFormatting&&(Re.formatting=He==null?"strong":We==null?"em":"strong em"),He===!0&&(Re.em=ut),We===!0&&(Re.strong=ut);var gt=_e(Re);return He===!1&&(Re.em=!1),We===!1&&(Re.strong=!1),gt}}else if(ut===" "&&(Ne.eat("*")||Ne.eat("_"))){if(Ne.peek()===" ")return _e(Re);Ne.backUp(1)}if(Me.strikethrough){if(ut==="~"&&Ne.eatWhile(ut)){if(Re.strikethrough){Me.highlightFormatting&&(Re.formatting="strikethrough");var gt=_e(Re);return Re.strikethrough=!1,gt}else if(Ne.match(/^[^\s]/,!1))return Re.strikethrough=!0,Me.highlightFormatting&&(Re.formatting="strikethrough"),_e(Re)}else if(ut===" "&&Ne.match(/^~~/,!0)){if(Ne.peek()===" ")return _e(Re);Ne.backUp(2)}}if(Me.emoji&&ut===":"&&Ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Re.emoji=!0,Me.highlightFormatting&&(Re.formatting="emoji");var tt=_e(Re);return Re.emoji=!1,tt}return ut===" "&&(Ne.match(/^ +$/,!1)?Re.trailingSpace++:Re.trailingSpace&&(Re.trailingSpaceNewLine=!0)),_e(Re)}function Se(Ne,Re){var $e=Ne.next();if($e===">"){Re.f=Re.inline=be,Me.highlightFormatting&&(Re.formatting="link");var nt=_e(Re);return nt?nt+=" ":nt="",nt+ue.linkInline}return Ne.match(/^[^>]+/,!0),ue.linkInline}function Be(Ne,Re){if(Ne.eatSpace())return null;var $e=Ne.next();return $e==="("||$e==="["?(Re.f=Re.inline=we($e==="("?")":"]"),Me.highlightFormatting&&(Re.formatting="link-string"),Re.linkHref=!0,_e(Re)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function we(Ne){return function(Re,$e){var nt=Re.next();if(nt===Ne){$e.f=$e.inline=be,Me.highlightFormatting&&($e.formatting="link-string");var ut=_e($e);return $e.linkHref=!1,ut}return Re.match(Ae[Ne]),$e.linkHref=!0,_e($e)}}function Ue(Ne,Re){return Ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(Re.f=Pe,Ne.next(),Me.highlightFormatting&&(Re.formatting="link"),Re.linkText=!0,_e(Re)):se(Ne,Re,be)}function Pe(Ne,Re){if(Ne.match(/^\]:/,!0)){Re.f=Re.inline=ze,Me.highlightFormatting&&(Re.formatting="link");var $e=_e(Re);return Re.linkText=!1,$e}return Ne.match(/^([^\]\\]|\\.)+/,!0),ue.linkText}function ze(Ne,Re){return Ne.eatSpace()?null:(Ne.match(/^[^\s]+/,!0),Ne.peek()===void 0?Re.linkTitle=!0:Ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Re.f=Re.inline=be,ue.linkHref+" url")}var Ke={startState:function(){return{f:re,prevLine:{stream:null},thisLine:{stream:null},block:re,htmlState:null,indentation:0,inline:be,text:ye,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(Ne){return{f:Ne.f,prevLine:Ne.prevLine,thisLine:Ne.thisLine,block:Ne.block,htmlState:Ne.htmlState&&te.copyState(pe,Ne.htmlState),indentation:Ne.indentation,localMode:Ne.localMode,localState:Ne.localMode?te.copyState(Ne.localMode,Ne.localState):null,inline:Ne.inline,text:Ne.text,formatting:!1,linkText:Ne.linkText,linkTitle:Ne.linkTitle,linkHref:Ne.linkHref,code:Ne.code,em:Ne.em,strong:Ne.strong,strikethrough:Ne.strikethrough,emoji:Ne.emoji,header:Ne.header,setext:Ne.setext,hr:Ne.hr,taskList:Ne.taskList,list:Ne.list,listStack:Ne.listStack.slice(0),quote:Ne.quote,indentedCode:Ne.indentedCode,trailingSpace:Ne.trailingSpace,trailingSpaceNewLine:Ne.trailingSpaceNewLine,md_inside:Ne.md_inside,fencedEndRE:Ne.fencedEndRE}},token:function(Ne,Re){if(Re.formatting=!1,Ne!=Re.thisLine.stream){if(Re.header=0,Re.hr=!1,Ne.match(/^\s*$/,!0))return x(Re),null;if(Re.prevLine=Re.thisLine,Re.thisLine={stream:Ne},Re.taskList=!1,Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,!Re.localState&&(Re.f=Re.block,Re.f!=ce)){var $e=Ne.match(/^\s*/,!0)[0].replace(/\t/g,oe).length;if(Re.indentation=$e,Re.indentationDiff=null,$e>0)return null}}return Re.f(Ne,Re)},innerMode:function(Ne){return Ne.block==ce?{state:Ne.htmlState,mode:pe}:Ne.localState?{state:Ne.localState,mode:Ne.localMode}:{state:Ne,mode:Ke}},indent:function(Ne,Re,$e){return Ne.block==ce&&pe.indent?pe.indent(Ne.htmlState,Re,$e):Ne.localState&&Ne.localMode.indent?Ne.localMode.indent(Ne.localState,Re,$e):te.Pass},blankLine:x,getType:_e,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ke},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";te.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 Ye=0;Ye-1&&pe.substring(ue+1,pe.length);if(fe)return te.findModeByExtension(fe)},te.findModeByName=function(pe){pe=pe.toLowerCase();for(var Oe=0;Oe0?E.cmdState[E.cmdState.length-1]:null}function ve(E){var b=E.cmdState.pop();b&&b.closeBracket()}function ue(E){for(var b=E.cmdState,z=b.length-1;z>=0;z--){var ne=b[z];if(ne.name!="DEFAULT")return ne}return{styleIdentifier:function(){return null}}}function fe(E,b,z){return function(){this.name=E,this.bracketNo=0,this.style=b,this.styles=z,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var he={};he.importmodule=fe("importmodule","tag",["string","builtin"]),he.documentclass=fe("documentclass","tag",["","atom"]),he.usepackage=fe("usepackage","tag",["atom"]),he.begin=fe("begin","tag",["atom"]),he.end=fe("end","tag",["atom"]),he.label=fe("label","tag",["atom"]),he.ref=fe("ref","tag",["atom"]),he.eqref=fe("eqref","tag",["atom"]),he.cite=fe("cite","tag",["atom"]),he.bibitem=fe("bibitem","tag",["atom"]),he.Bibitem=fe("Bibitem","tag",["atom"]),he.RBibitem=fe("RBibitem","tag",["atom"]),he.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function le(E,b){E.f=b}function ae(E,b){var z;if(E.match(/^\\[a-zA-Z@]+/)){var ne=E.current().slice(1);return z=he.hasOwnProperty(ne)?he[ne]:he.DEFAULT,z=new z,pe(b,z),le(b,me),z.style}if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/\\]/))return"tag";if(E.match("\\["))return le(b,function(se,de){return ie(se,de,"\\]")}),"keyword";if(E.match("\\("))return le(b,function(se,de){return ie(se,de,"\\)")}),"keyword";if(E.match("$$"))return le(b,function(se,de){return ie(se,de,"$$")}),"keyword";if(E.match("$"))return le(b,function(se,de){return ie(se,de,"$")}),"keyword";var oe=E.next();if(oe=="%")return E.skipToEnd(),"comment";if(oe=="}"||oe=="]"){if(z=Oe(b),z)z.closeBracket(oe),le(b,me);else return"error";return"bracket"}else return oe=="{"||oe=="["?(z=he.DEFAULT,z=new z,pe(b,z),"bracket"):/\d/.test(oe)?(E.eatWhile(/[\w.%]/),"atom"):(E.eatWhile(/[\w\-_]/),z=ue(b),z.name=="begin"&&(z.argument=E.current()),z.styleIdentifier())}function ie(E,b,z){if(E.eatSpace())return null;if(z&&E.match(z))return le(b,ae),"keyword";if(E.match(/^\\[a-zA-Z@]+/))return"tag";if(E.match(/^[a-zA-Z]+/))return"variable-2";if(E.match(/^\\[$&%#{}_]/)||E.match(/^\\[,;!\/]/)||E.match(/^[\^_&]/))return"tag";if(E.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(E.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ne=E.next();return ne=="{"||ne=="}"||ne=="["||ne=="]"||ne=="("||ne==")"?"bracket":ne=="%"?(E.skipToEnd(),"comment"):"error"}function me(E,b){var z=E.peek(),ne;return z=="{"||z=="["?(ne=Oe(b),ne.openBracket(z),E.eat(z),le(b,ae),"bracket"):/[ \t\r]/.test(z)?(E.eat(z),null):(le(b,ae),ve(b),ae(E,b))}return{startState:function(){var E=Me.inMathMode?function(b,z){return ie(b,z)}:ae;return{cmdState:[],f:E}},copyState:function(E){return{cmdState:E.cmdState.slice(),f:E.f}},token:function(E,b){return b.f(E,b)},blankLine:function(E){E.f=ae,E.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(Yn,en,Ce){(function(te){te(Ce(89780))})(function(te){"use strict";var Ye={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},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(pe,Oe){var ve=pe.indentUnit,ue={},fe=Oe.htmlMode?Ye:Me;for(var he in fe)ue[he]=fe[he];for(var he in Oe)ue[he]=Oe[he];var le,ae;function ie(Se,Be){function Ae(Pe){return Be.tokenize=Pe,Pe(Se,Be)}var we=Se.next();if(we=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Ae(b("atom","]]>")):null:Se.match("--")?Ae(b("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Ae(z(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),Be.tokenize=b("meta","?>"),"meta"):(le=Se.eat("/")?"closeTag":"openTag",Be.tokenize=me,"tag bracket");if(we=="&"){var Ue;return Se.eat("#")?Se.eat("x")?Ue=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):Ue=Se.eatWhile(/[\d]/)&&Se.eat(";"):Ue=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),Ue?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}ie.isInText=!0;function me(Se,Be){var Ae=Se.next();if(Ae==">"||Ae=="/"&&Se.eat(">"))return Be.tokenize=ie,le=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return le="equals",null;if(Ae=="<"){Be.tokenize=ie,Be.state=de,Be.tagName=Be.tagStart=null;var we=Be.tokenize(Se,Be);return we?we+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Be.tokenize=E(Ae),Be.stringStartCol=Se.column(),Be.tokenize(Se,Be)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(Se){var Be=function(Ae,we){for(;!Ae.eol();)if(Ae.next()==Se){we.tokenize=me;break}return"string"};return Be.isInAttribute=!0,Be}function b(Se,Be){return function(Ae,we){for(;!Ae.eol();){if(Ae.match(Be)){we.tokenize=ie;break}Ae.next()}return Se}}function z(Se){return function(Be,Ae){for(var we;(we=Be.next())!=null;){if(we=="<")return Ae.tokenize=z(Se+1),Ae.tokenize(Be,Ae);if(we==">")if(Se==1){Ae.tokenize=ie;break}else return Ae.tokenize=z(Se-1),Ae.tokenize(Be,Ae)}return"meta"}}function ne(Se,Be,Ae){this.prev=Se.context,this.tagName=Be,this.indent=Se.indented,this.startOfLine=Ae,(ue.doNotIndent.hasOwnProperty(Be)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function oe(Se){Se.context&&(Se.context=Se.context.prev)}function se(Se,Be){for(var Ae;;){if(!Se.context||(Ae=Se.context.tagName,!ue.contextGrabbers.hasOwnProperty(Ae)||!ue.contextGrabbers[Ae].hasOwnProperty(Be)))return;oe(Se)}}function de(Se,Be,Ae){return Se=="openTag"?(Ae.tagStart=Be.column(),a):Se=="closeTag"?x:de}function a(Se,Be,Ae){return Se=="word"?(Ae.tagName=Be.current(),ae="tag",ge):ue.allowMissingTagName&&Se=="endTag"?(ae="tag bracket",ge(Se,Be,Ae)):(ae="error",a)}function x(Se,Be,Ae){if(Se=="word"){var we=Be.current();return Ae.context&&Ae.context.tagName!=we&&ue.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&oe(Ae),Ae.context&&Ae.context.tagName==we||ue.matchClosing===!1?(ae="tag",re):(ae="tag error",ce)}else return ue.allowMissingTagName&&Se=="endTag"?(ae="tag bracket",re(Se,Be,Ae)):(ae="error",ce)}function re(Se,Be,Ae){return Se!="endTag"?(ae="error",re):(oe(Ae),de)}function ce(Se,Be,Ae){return ae="error",re(Se,Be,Ae)}function ge(Se,Be,Ae){if(Se=="word")return ae="attribute",_e;if(Se=="endTag"||Se=="selfcloseTag"){var we=Ae.tagName,Ue=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Se=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(we)?se(Ae,we):(se(Ae,we),Ae.context=new ne(Ae,we,Ue==Ae.indented)),de}return ae="error",ge}function _e(Se,Be,Ae){return Se=="equals"?ye:(ue.allowMissing||(ae="error"),ge(Se,Be,Ae))}function ye(Se,Be,Ae){return Se=="string"?be:Se=="word"&&ue.allowUnquoted?(ae="string",ge):(ae="error",ge(Se,Be,Ae))}function be(Se,Be,Ae){return Se=="string"?be:ge(Se,Be,Ae)}return{startState:function(Se){var Be={tokenize:ie,state:de,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(Be.baseIndent=Se),Be},token:function(Se,Be){if(!Be.tagName&&Se.sol()&&(Be.indented=Se.indentation()),Se.eatSpace())return null;le=null;var Ae=Be.tokenize(Se,Be);return(Ae||le)&&Ae!="comment"&&(ae=null,Be.state=Be.state(le||Ae,Se,Be),ae&&(Ae=ae=="error"?Ae+" error":ae)),Ae},indent:function(Se,Be,Ae){var we=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+ve;if(we&&we.noIndent)return te.Pass;if(Se.tokenize!=me&&Se.tokenize!=ie)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Se.tagName)return ue.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+ve*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/$/,blockCommentStart:"",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==ye&&(Se.state=ge)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var Be=[],Ae=Se.context;Ae;Ae=Ae.prev)Ae.tagName&&Be.push(Ae.tagName);return Be.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var te=Object.assign||function(z){for(var ne=1;ne0&&(ge=1/Math.sqrt(ge),a[0]=x[0]*ge,a[1]=x[1]*ge),a},me.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]},me.cross=function(a,x,re){var ce=x[0]*re[1]-x[1]*re[0];return a[0]=a[1]=0,a[2]=ce,a},me.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a},me.random=function(a,x){x=x||1;var re=le()*2*Math.PI;return a[0]=Math.cos(re)*x,a[1]=Math.sin(re)*x,a},me.transformMat2=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[2]*ge,a[1]=re[1]*ce+re[3]*ge,a},me.transformMat2d=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[2]*ge+re[4],a[1]=re[1]*ce+re[3]*ge+re[5],a},me.transformMat3=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[3]*ge+re[6],a[1]=re[1]*ce+re[4]*ge+re[7],a},me.transformMat4=function(a,x,re){var ce=x[0],ge=x[1];return a[0]=re[0]*ce+re[4]*ge+re[12],a[1]=re[1]*ce+re[5]*ge+re[13],a},me.forEach=function(){var a=me.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=2),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be0&&(_e=1/Math.sqrt(_e),a[0]=x[0]*_e,a[1]=x[1]*_e,a[2]=x[2]*_e),a},E.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]+a[2]*x[2]},E.cross=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2];return a[0]=ge*Se-_e*be,a[1]=_e*ye-ce*Se,a[2]=ce*be-ge*ye,a},E.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a[2]=ye+ce*(re[2]-ye),a},E.random=function(a,x){x=x||1;var re=le()*2*Math.PI,ce=le()*2-1,ge=Math.sqrt(1-ce*ce)*x;return a[0]=Math.cos(re)*ge,a[1]=Math.sin(re)*ge,a[2]=ce*x,a},E.transformMat4=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[3]*ce+re[7]*ge+re[11]*_e+re[15];return ye=ye||1,a[0]=(re[0]*ce+re[4]*ge+re[8]*_e+re[12])/ye,a[1]=(re[1]*ce+re[5]*ge+re[9]*_e+re[13])/ye,a[2]=(re[2]*ce+re[6]*ge+re[10]*_e+re[14])/ye,a},E.transformMat3=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2];return a[0]=ce*re[0]+ge*re[3]+_e*re[6],a[1]=ce*re[1]+ge*re[4]+_e*re[7],a[2]=ce*re[2]+ge*re[5]+_e*re[8],a},E.transformQuat=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2],Be=re[3],Ae=Be*ce+be*_e-Se*ge,we=Be*ge+Se*ce-ye*_e,Ue=Be*_e+ye*ge-be*ce,Pe=-ye*ce-be*ge-Se*_e;return a[0]=Ae*Be+Pe*-ye+we*-Se-Ue*-be,a[1]=we*Be+Pe*-be+Ue*-ye-Ae*-Se,a[2]=Ue*Be+Pe*-Se+Ae*-be-we*-ye,a},E.rotateX=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[0],_e[1]=ge[1]*Math.cos(ce)-ge[2]*Math.sin(ce),_e[2]=ge[1]*Math.sin(ce)+ge[2]*Math.cos(ce),a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.rotateY=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[2]*Math.sin(ce)+ge[0]*Math.cos(ce),_e[1]=ge[1],_e[2]=ge[2]*Math.cos(ce)-ge[0]*Math.sin(ce),a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.rotateZ=function(a,x,re,ce){var ge=[],_e=[];return ge[0]=x[0]-re[0],ge[1]=x[1]-re[1],ge[2]=x[2]-re[2],_e[0]=ge[0]*Math.cos(ce)-ge[1]*Math.sin(ce),_e[1]=ge[0]*Math.sin(ce)+ge[1]*Math.cos(ce),_e[2]=ge[2],a[0]=_e[0]+re[0],a[1]=_e[1]+re[1],a[2]=_e[2]+re[2],a},E.forEach=function(){var a=E.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=3),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be1?0:Math.acos(ge)},E.str=function(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"},typeof ue!="undefined"&&(ue.vec3=E);var b={};b.create=function(){var a=new he(4);return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a},b.clone=function(a){var x=new he(4);return x[0]=a[0],x[1]=a[1],x[2]=a[2],x[3]=a[3],x},b.fromValues=function(a,x,re,ce){var ge=new he(4);return ge[0]=a,ge[1]=x,ge[2]=re,ge[3]=ce,ge},b.copy=function(a,x){return a[0]=x[0],a[1]=x[1],a[2]=x[2],a[3]=x[3],a},b.set=function(a,x,re,ce,ge){return a[0]=x,a[1]=re,a[2]=ce,a[3]=ge,a},b.add=function(a,x,re){return a[0]=x[0]+re[0],a[1]=x[1]+re[1],a[2]=x[2]+re[2],a[3]=x[3]+re[3],a},b.subtract=function(a,x,re){return a[0]=x[0]-re[0],a[1]=x[1]-re[1],a[2]=x[2]-re[2],a[3]=x[3]-re[3],a},b.sub=b.subtract,b.multiply=function(a,x,re){return a[0]=x[0]*re[0],a[1]=x[1]*re[1],a[2]=x[2]*re[2],a[3]=x[3]*re[3],a},b.mul=b.multiply,b.divide=function(a,x,re){return a[0]=x[0]/re[0],a[1]=x[1]/re[1],a[2]=x[2]/re[2],a[3]=x[3]/re[3],a},b.div=b.divide,b.min=function(a,x,re){return a[0]=Math.min(x[0],re[0]),a[1]=Math.min(x[1],re[1]),a[2]=Math.min(x[2],re[2]),a[3]=Math.min(x[3],re[3]),a},b.max=function(a,x,re){return a[0]=Math.max(x[0],re[0]),a[1]=Math.max(x[1],re[1]),a[2]=Math.max(x[2],re[2]),a[3]=Math.max(x[3],re[3]),a},b.scale=function(a,x,re){return a[0]=x[0]*re,a[1]=x[1]*re,a[2]=x[2]*re,a[3]=x[3]*re,a},b.scaleAndAdd=function(a,x,re,ce){return a[0]=x[0]+re[0]*ce,a[1]=x[1]+re[1]*ce,a[2]=x[2]+re[2]*ce,a[3]=x[3]+re[3]*ce,a},b.distance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2],_e=x[3]-a[3];return Math.sqrt(re*re+ce*ce+ge*ge+_e*_e)},b.dist=b.distance,b.squaredDistance=function(a,x){var re=x[0]-a[0],ce=x[1]-a[1],ge=x[2]-a[2],_e=x[3]-a[3];return re*re+ce*ce+ge*ge+_e*_e},b.sqrDist=b.squaredDistance,b.length=function(a){var x=a[0],re=a[1],ce=a[2],ge=a[3];return Math.sqrt(x*x+re*re+ce*ce+ge*ge)},b.len=b.length,b.squaredLength=function(a){var x=a[0],re=a[1],ce=a[2],ge=a[3];return x*x+re*re+ce*ce+ge*ge},b.sqrLen=b.squaredLength,b.negate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a[2]=-x[2],a[3]=-x[3],a},b.inverse=function(a,x){return a[0]=1/x[0],a[1]=1/x[1],a[2]=1/x[2],a[3]=1/x[3],a},b.normalize=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re*re+ce*ce+ge*ge+_e*_e;return ye>0&&(ye=1/Math.sqrt(ye),a[0]=x[0]*ye,a[1]=x[1]*ye,a[2]=x[2]*ye,a[3]=x[3]*ye),a},b.dot=function(a,x){return a[0]*x[0]+a[1]*x[1]+a[2]*x[2]+a[3]*x[3]},b.lerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2],be=x[3];return a[0]=ge+ce*(re[0]-ge),a[1]=_e+ce*(re[1]-_e),a[2]=ye+ce*(re[2]-ye),a[3]=be+ce*(re[3]-be),a},b.random=function(a,x){return x=x||1,a[0]=le(),a[1]=le(),a[2]=le(),a[3]=le(),b.normalize(a,a),b.scale(a,a,x),a},b.transformMat4=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3];return a[0]=re[0]*ce+re[4]*ge+re[8]*_e+re[12]*ye,a[1]=re[1]*ce+re[5]*ge+re[9]*_e+re[13]*ye,a[2]=re[2]*ce+re[6]*ge+re[10]*_e+re[14]*ye,a[3]=re[3]*ce+re[7]*ge+re[11]*_e+re[15]*ye,a},b.transformQuat=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=re[0],be=re[1],Se=re[2],Be=re[3],Ae=Be*ce+be*_e-Se*ge,we=Be*ge+Se*ce-ye*_e,Ue=Be*_e+ye*ge-be*ce,Pe=-ye*ce-be*ge-Se*_e;return a[0]=Ae*Be+Pe*-ye+we*-Se-Ue*-be,a[1]=we*Be+Pe*-be+Ue*-ye-Ae*-Se,a[2]=Ue*Be+Pe*-Se+Ae*-be-we*-ye,a},b.forEach=function(){var a=b.create();return function(x,re,ce,ge,_e,ye){var be,Se;for(re||(re=4),ce||(ce=0),ge?Se=Math.min(ge*re+ce,x.length):Se=x.length,be=ce;be.999999?(ce[0]=0,ce[1]=0,ce[2]=0,ce[3]=1,ce):(E.cross(a,ge,_e),ce[0]=a[0],ce[1]=a[1],ce[2]=a[2],ce[3]=1+ye,de.normalize(ce,ce))}}(),de.setAxes=function(){var a=oe.create();return function(x,re,ce,ge){return a[0]=ce[0],a[3]=ce[1],a[6]=ce[2],a[1]=ge[0],a[4]=ge[1],a[7]=ge[2],a[2]=-re[0],a[5]=-re[1],a[8]=-re[2],de.normalize(x,de.fromMat3(x,a))}}(),de.clone=b.clone,de.fromValues=b.fromValues,de.copy=b.copy,de.set=b.set,de.identity=function(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=1,a},de.setAxisAngle=function(a,x,re){re=re*.5;var ce=Math.sin(re);return a[0]=ce*x[0],a[1]=ce*x[1],a[2]=ce*x[2],a[3]=Math.cos(re),a},de.add=b.add,de.multiply=function(a,x,re){var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=re[0],Se=re[1],Be=re[2],Ae=re[3];return a[0]=ce*Ae+ye*be+ge*Be-_e*Se,a[1]=ge*Ae+ye*Se+_e*be-ce*Be,a[2]=_e*Ae+ye*Be+ce*Se-ge*be,a[3]=ye*Ae-ce*be-ge*Se-_e*Be,a},de.mul=de.multiply,de.scale=b.scale,de.rotateX=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se+ye*be,a[1]=ge*Se+_e*be,a[2]=_e*Se-ge*be,a[3]=ye*Se-ce*be,a},de.rotateY=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se-_e*be,a[1]=ge*Se+ye*be,a[2]=_e*Se+ce*be,a[3]=ye*Se-ge*be,a},de.rotateZ=function(a,x,re){re*=.5;var ce=x[0],ge=x[1],_e=x[2],ye=x[3],be=Math.sin(re),Se=Math.cos(re);return a[0]=ce*Se+ge*be,a[1]=ge*Se-ce*be,a[2]=_e*Se+ye*be,a[3]=ye*Se-_e*be,a},de.calculateW=function(a,x){var re=x[0],ce=x[1],ge=x[2];return a[0]=re,a[1]=ce,a[2]=ge,a[3]=Math.sqrt(Math.abs(1-re*re-ce*ce-ge*ge)),a},de.dot=b.dot,de.lerp=b.lerp,de.slerp=function(a,x,re,ce){var ge=x[0],_e=x[1],ye=x[2],be=x[3],Se=re[0],Be=re[1],Ae=re[2],we=re[3],Ue,Pe,ze,Ke,Ne;return Pe=ge*Se+_e*Be+ye*Ae+be*we,Pe<0&&(Pe=-Pe,Se=-Se,Be=-Be,Ae=-Ae,we=-we),1-Pe>1e-6?(Ue=Math.acos(Pe),ze=Math.sin(Ue),Ke=Math.sin((1-ce)*Ue)/ze,Ne=Math.sin(ce*Ue)/ze):(Ke=1-ce,Ne=ce),a[0]=Ke*ge+Ne*Se,a[1]=Ke*_e+Ne*Be,a[2]=Ke*ye+Ne*Ae,a[3]=Ke*be+Ne*we,a},de.invert=function(a,x){var re=x[0],ce=x[1],ge=x[2],_e=x[3],ye=re*re+ce*ce+ge*ge+_e*_e,be=ye?1/ye:0;return a[0]=-re*be,a[1]=-ce*be,a[2]=-ge*be,a[3]=_e*be,a},de.conjugate=function(a,x){return a[0]=-x[0],a[1]=-x[1],a[2]=-x[2],a[3]=x[3],a},de.length=b.length,de.len=de.length,de.squaredLength=b.squaredLength,de.sqrLen=de.squaredLength,de.normalize=b.normalize,de.fromMat3=function(a,x){var re=x[0]+x[4]+x[8],ce;if(re>0)ce=Math.sqrt(re+1),a[3]=.5*ce,ce=.5/ce,a[0]=(x[5]-x[7])*ce,a[1]=(x[6]-x[2])*ce,a[2]=(x[1]-x[3])*ce;else{var ge=0;x[4]>x[0]&&(ge=1),x[8]>x[ge*3+ge]&&(ge=2);var _e=(ge+1)%3,ye=(ge+2)%3;ce=Math.sqrt(x[ge*3+ge]-x[_e*3+_e]-x[ye*3+ye]+1),a[ge]=.5*ce,ce=.5/ce,a[3]=(x[_e*3+ye]-x[ye*3+_e])*ce,a[_e]=(x[_e*3+ge]+x[ge*3+_e])*ce,a[ye]=(x[ye*3+ge]+x[ge*3+ye])*ce}return a},de.str=function(a){return"quat("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},typeof ue!="undefined"&&(ue.quat=de)}(ve.exports)})(this)},function(Ye,Me,pe){"use strict";var Oe=pe(24),ve=pe(46),ue=pe(5),fe=pe(6),he=pe(7),le=pe(17),ae=pe(28),ie=pe(13),me=pe(0),E=pe.n(me),b=pe(29),z=pe(53),ne=pe.n(z),oe=pe(54),se=pe(106),de=pe(107),a=pe(113),x=pe(114),re=pe(3),ce=pe(68),ge=pe(37),_e=pe(69),ye=pe(116),be=pe(70),Se=pe(71),Be=pe(72),Ae=pe(36),we=pe(30),Ue=pe(23),Pe=pe(4),ze=pe(117),Ke=pe(50),Ne=pe(118),Re=pe(119),$e=pe(120),nt=pe(9),ut=pe(67),Qe=pe(49),rt=pe(15),pt=pe(52),At=pe(121),gt=pe(126),Ft=pe(63),Ct=pe(127),Yt=pe(128),zt=pe(129),Xe=pe(130),Fe=pe(131),Le=pe(132);E.a.util.extend(ae.a.prototype,At.a),he.a.import(gt.a),he.a.import(Ft.a),he.a.import(Ct.a),he.a.import(Yt.a),he.a.import(zt.a),he.a.import(Xe.a),he.a.import(Fe.a),he.a.import(Le.a);function Ze(mt){return!mt||mt==="none"}function et(mt){return mt instanceof HTMLCanvasElement||mt instanceof HTMLImageElement||mt instanceof Image}function He(mt){return mt.getZr&&mt.setOption}var We=b.a.prototype.addToScene,tt=b.a.prototype.removeFromScene;b.a.prototype.addToScene=function(mt){if(We.call(this,mt),this.__zr){var Lt=this.__zr;mt.traverse(function(ft){ft.__zr=Lt,ft.addAnimatorsToZr&&ft.addAnimatorsToZr(Lt)})}},b.a.prototype.removeFromScene=function(mt){tt.call(this,mt),mt.traverse(function(Lt){var ft=Lt.__zr;Lt.__zr=null,ft&&Lt.removeAnimatorsFromZr&&Lt.removeAnimatorsFromZr(ft)})},le.a.prototype.setTextureImage=function(mt,Lt,ft,St){if(this.shader){var nn=ft.getZr(),on=this,yn;return on.autoUpdateTextureStatus=!1,on.disableTexture(mt),Ze(Lt)||(yn=at.loadTexture(Lt,ft,St,function(xn){on.enableTexture(mt),nn&&nn.refresh()}),on.set(mt,yn)),yn}};var at={};at.Renderer=ve.a,at.Node=ae.a,at.Mesh=Oe.a,at.Shader=he.a,at.Material=le.a,at.Texture=fe.a,at.Texture2D=ue.a,at.Geometry=ie.a,at.SphereGeometry=ce.a,at.PlaneGeometry=ge.a,at.CubeGeometry=_e.a,at.AmbientLight=ye.a,at.DirectionalLight=be.a,at.PointLight=Se.a,at.SpotLight=Be.a,at.PerspectiveCamera=Ae.a,at.OrthographicCamera=we.a,at.Vector2=Ue.a,at.Vector3=Pe.a,at.Vector4=ze.a,at.Quaternion=Ke.a,at.Matrix2=Ne.a,at.Matrix2d=Re.a,at.Matrix3=$e.a,at.Matrix4=nt.a,at.Plane=ut.a,at.Ray=Qe.a,at.BoundingBox=rt.a,at.Frustum=pt.a;var ot=oe.a.createBlank("rgba(255,255,255,0)").image;function ct(mt){return Math.pow(2,Math.round(Math.log(mt)/Math.LN2))}function lt(mt){if((mt.wrapS===fe.a.REPEAT||mt.wrapT===fe.a.REPEAT)&&mt.image){var Lt=ct(mt.width),ft=ct(mt.height);if(Lt!==mt.width||ft!==mt.height){var St=document.createElement("canvas");St.width=Lt,St.height=ft;var nn=St.getContext("2d");nn.drawImage(mt.image,0,0,Lt,ft),mt.image=St}}}at.loadTexture=function(mt,Lt,ft,St){typeof ft=="function"&&(St=ft,ft={}),ft=ft||{};for(var nn=Object.keys(ft).sort(),on="",yn=0;yn3?Lt[3]=mt[3]:Lt[3]=1,Lt):(Lt=E.a.color.parse(mt||"#000",Lt)||[0,0,0,0],Lt[0]/=255,Lt[1]/=255,Lt[2]/=255,Lt)},at.directionFromAlphaBeta=function(mt,Lt){var ft=mt/180*Math.PI+Math.PI/2,St=-Lt/180*Math.PI+Math.PI/2,nn=[],on=Math.sin(ft);return nn[0]=on*Math.cos(St),nn[1]=-Math.cos(ft),nn[2]=on*Math.sin(St),nn},at.getShadowResolution=function(mt){var Lt=1024;switch(mt){case"low":Lt=512;break;case"medium":break;case"high":Lt=2048;break;case"ultra":Lt=4096;break}return Lt},at.COMMON_SHADERS=["lambert","color","realistic","hatching"],at.createShader=function(mt){var Lt=he.a.source(mt+".vertex"),ft=he.a.source(mt+".fragment");Lt||console.error("Vertex shader of '%s' not exits",mt),ft||console.error("Fragment shader of '%s' not exits",mt);var St=new he.a(Lt,ft);return St.name=mt,St},at.createMaterial=function(mt,Lt){Lt instanceof Array||(Lt=[Lt]);var ft=at.createShader(mt),St=new le.a({shader:ft});return Lt.forEach(function(nn){typeof nn=="string"&&St.define(nn)}),St},at.setMaterialFromModel=function(mt,Lt,ft,St){Lt.autoUpdateTextureStatus=!1;var nn=ft.getModel(mt+"Material"),on=nn.get("detailTexture"),yn=re.a.firstNotNull(nn.get("textureTiling"),1),xn=re.a.firstNotNull(nn.get("textureOffset"),0);typeof yn=="number"&&(yn=[yn,yn]),typeof xn=="number"&&(xn=[xn,xn]);var an=yn[0]>1||yn[1]>1?at.Texture.REPEAT:at.Texture.CLAMP_TO_EDGE,An={anisotropic:8,wrapS:an,wrapT:an};if(mt==="realistic"){var Jt=nn.get("roughness"),Ut=nn.get("metalness");Ut!=null?isNaN(Ut)&&(Lt.setTextureImage("metalnessMap",Ut,St,An),Ut=re.a.firstNotNull(nn.get("metalnessAdjust"),.5)):Ut=0,Jt!=null?isNaN(Jt)&&(Lt.setTextureImage("roughnessMap",Jt,St,An),Jt=re.a.firstNotNull(nn.get("roughnessAdjust"),.5)):Jt=.5;var rn=nn.get("normalTexture");Lt.setTextureImage("detailMap",on,St,An),Lt.setTextureImage("normalMap",rn,St,An),Lt.set({roughness:Jt,metalness:Ut,detailUvRepeat:yn,detailUvOffset:xn})}else if(mt==="lambert")Lt.setTextureImage("detailMap",on,St,An),Lt.set({detailUvRepeat:yn,detailUvOffset:xn});else if(mt==="color")Lt.setTextureImage("detailMap",on,St,An),Lt.set({detailUvRepeat:yn,detailUvOffset:xn});else if(mt==="hatching"){var _n=nn.get("hatchingTextures")||[];_n.length<6&&console.error("Invalid hatchingTextures.");for(var Bn=0;Bn<6;Bn++)Lt.setTextureImage("hatch"+(Bn+1),_n[Bn],St,{anisotropic:8,wrapS:at.Texture.REPEAT,wrapT:at.Texture.REPEAT});Lt.set({detailUvRepeat:yn,detailUvOffset:xn})}},at.updateVertexAnimation=function(mt,Lt,ft,St){var nn=St.get("animation"),on=St.get("animationDurationUpdate"),yn=St.get("animationEasingUpdate"),xn=ft.shadowDepthMaterial;if(nn&&Lt&&on>0&&Lt.geometry.vertexCount===ft.geometry.vertexCount){ft.material.define("vertex","VERTEX_ANIMATION"),ft.ignorePreZ=!0,xn&&xn.define("vertex","VERTEX_ANIMATION");for(var an=0;anne?ne:b}var ie=Math.atan2,me=Math.asin,E=Math.abs;fe.eulerFromQuat=function(b,z,ye){b._dirty=!0,z=z.array;var oe=b.array,se=z[0],de=z[1],a=z[2],x=z[3],re=se*se,ce=de*de,ge=a*a,_e=x*x,ye=(ye||"XYZ").toUpperCase();switch(ye){case"XYZ":oe[0]=ie(2*(se*x-de*a),_e-re-ce+ge),oe[1]=me(ae(2*(se*a+de*x),-1,1)),oe[2]=ie(2*(a*x-se*de),_e+re-ce-ge);break;case"YXZ":oe[0]=me(ae(2*(se*x-de*a),-1,1)),oe[1]=ie(2*(se*a+de*x),_e-re-ce+ge),oe[2]=ie(2*(se*de+a*x),_e-re+ce-ge);break;case"ZXY":oe[0]=me(ae(2*(se*x+de*a),-1,1)),oe[1]=ie(2*(de*x-a*se),_e-re-ce+ge),oe[2]=ie(2*(a*x-se*de),_e-re+ce-ge);break;case"ZYX":oe[0]=ie(2*(se*x+a*de),_e-re-ce+ge),oe[1]=me(ae(2*(de*x-se*a),-1,1)),oe[2]=ie(2*(se*de+a*x),_e+re-ce-ge);break;case"YZX":oe[0]=ie(2*(se*x-a*de),_e-re+ce-ge),oe[1]=ie(2*(de*x-se*a),_e+re-ce-ge),oe[2]=me(ae(2*(se*de+a*x),-1,1));break;case"XZY":oe[0]=ie(2*(se*x+de*a),_e-re+ce-ge),oe[1]=ie(2*(se*a+de*x),_e+re-ce-ge),oe[2]=me(ae(2*(a*x-se*de),-1,1));break;default:console.warn("Unkown order: "+ye)}return b},fe.eulerFromMat3=function(b,z,Se){var oe=z.array,se=oe[0],de=oe[3],a=oe[6],x=oe[1],re=oe[4],ce=oe[7],ge=oe[2],_e=oe[5],ye=oe[8],be=b.array,Se=(Se||"XYZ").toUpperCase();switch(Se){case"XYZ":be[1]=me(ae(a,-1,1)),E(a)<.99999?(be[0]=ie(-ce,ye),be[2]=ie(-de,se)):(be[0]=ie(_e,re),be[2]=0);break;case"YXZ":be[0]=me(-ae(ce,-1,1)),E(ce)<.99999?(be[1]=ie(a,ye),be[2]=ie(x,re)):(be[1]=ie(-ge,se),be[2]=0);break;case"ZXY":be[0]=me(ae(_e,-1,1)),E(_e)<.99999?(be[1]=ie(-ge,ye),be[2]=ie(-de,re)):(be[1]=0,be[2]=ie(x,se));break;case"ZYX":be[1]=me(-ae(ge,-1,1)),E(ge)<.99999?(be[0]=ie(_e,ye),be[2]=ie(x,se)):(be[0]=0,be[2]=ie(-de,re));break;case"YZX":be[2]=me(ae(x,-1,1)),E(x)<.99999?(be[0]=ie(-ce,re),be[1]=ie(-ge,se)):(be[0]=0,be[1]=ie(a,ye));break;case"XZY":be[2]=me(-ae(de,-1,1)),E(de)<.99999?(be[0]=ie(_e,re),be[1]=ie(a,se)):(be[0]=ie(-ce,ye),be[1]=0);break;default:console.warn("Unkown order: "+Se)}return b._dirty=!0,b},fe.POSITIVE_X=new fe(1,0,0),fe.NEGATIVE_X=new fe(-1,0,0),fe.POSITIVE_Y=new fe(0,1,0),fe.NEGATIVE_Y=new fe(0,-1,0),fe.POSITIVE_Z=new fe(0,0,1),fe.NEGATIVE_Z=new fe(0,0,-1),fe.UP=new fe(0,1,0),fe.ZERO=new fe(0,0,0),Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(11),ue=pe(66),fe=ue.a.isPowerOfTwo,he=Oe.a.extend(function(){return{image:null,pixels:null,mipmaps:[]}},{update:function(le){var ae=le.gl;ae.bindTexture(ae.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(le);var ie=this.format,me=this.type;ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_WRAP_S,this.getAvailableWrapS()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_WRAP_T,this.getAvailableWrapT()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),ae.texParameteri(ae.TEXTURE_2D,ae.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var E=le.getGLExtension("EXT_texture_filter_anisotropic");if(E&&this.anisotropic>1&&ae.texParameterf(ae.TEXTURE_2D,E.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),me===36193){var b=le.getGLExtension("OES_texture_half_float");b||(me=ve.a.FLOAT)}if(this.mipmaps.length)for(var z=this.width,ne=this.height,oe=0;oe=Oe.a.COMPRESSED_RGB_S3TC_DXT1_EXT?le.compressedTexImage2D(le.TEXTURE_2D,ie,b,me,E,0,ae.pixels):le.texImage2D(le.TEXTURE_2D,ie,b,me,E,0,b,z,ae.pixels)},generateMipmap:function(le){var ae=le.gl;this.useMipmap&&!this.NPOT&&(ae.bindTexture(ae.TEXTURE_2D,this._cache.get("webgl_texture")),ae.generateMipmap(ae.TEXTURE_2D))},isPowerOfTwo:function(){var le,ae;return this.image?(le=this.image.width,ae=this.image.height):(le=this.width,ae=this.height),fe(le)&&fe(ae)},isRenderable:function(){return this.image?this.image.nodeName==="CANVAS"||this.image.nodeName==="VIDEO"||this.image.complete:!!(this.width&&this.height)},bind:function(le){le.gl.bindTexture(le.gl.TEXTURE_2D,this.getWebGLTexture(le))},unbind:function(le){le.gl.bindTexture(le.gl.TEXTURE_2D,null)},load:function(le,ae){var ie=new Image;ae&&(ie.crossOrigin=ae);var me=this;return ie.onload=function(){me.dirty(),me.trigger("success",me),ie.onload=null},ie.onerror=function(){me.trigger("error",me),ie.onerror=null},ie.src=le,this.image=ie,this}});Object.defineProperty(he.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(le){this.image?console.warn("Texture from image can't set width"):(this._width!==le&&this.dirty(),this._width=le)}}),Object.defineProperty(he.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(le){this.image?console.warn("Texture from image can't set height"):(this._height!==le&&this.dirty(),this._height=le)}}),Me.a=he},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(11),ue=pe(48),fe=Oe.a.extend({width:512,height:512,type:ve.a.UNSIGNED_BYTE,format:ve.a.RGBA,wrapS:ve.a.REPEAT,wrapT:ve.a.REPEAT,minFilter:ve.a.LINEAR_MIPMAP_LINEAR,magFilter:ve.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1},function(){this._cache=new ue.a},{getWebGLTexture:function(he){var le=he.gl,ae=this._cache;return ae.use(he.__uid__),ae.miss("webgl_texture")&&ae.put("webgl_texture",le.createTexture()),this.dynamic?this.update(he):ae.isDirty()&&(this.update(he),ae.fresh()),ae.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(he){},updateCommon:function(he){var le=he.gl;le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,this.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===ve.a.DEPTH_COMPONENT&&(this.useMipmap=!1);var ae=he.getGLExtension("EXT_sRGB");this.format===fe.SRGB&&!ae&&(this.format=fe.RGB),this.format===fe.SRGB_ALPHA&&!ae&&(this.format=fe.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?ve.a.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?ve.a.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var he=this.minFilter;return this.NPOT||!this.useMipmap?he==ve.a.NEAREST_MIPMAP_NEAREST||he==ve.a.NEAREST_MIPMAP_LINEAR?ve.a.NEAREST:he==ve.a.LINEAR_MIPMAP_LINEAR||he==ve.a.LINEAR_MIPMAP_NEAREST?ve.a.LINEAR:he:he},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(he){--he;for(var le=1;le<32;le<<=1)he=he|he>>le;return he+1},dispose:function(he){var le=this._cache;le.use(he.__uid__);var ae=le.get("webgl_texture");ae&&he.gl.deleteTexture(ae),le.deleteContext(he.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(fe.prototype,"width",{get:function(){return this._width},set:function(he){this._width=he}}),Object.defineProperty(fe.prototype,"height",{get:function(){return this._height},set:function(he){this._height=he}}),fe.BYTE=ve.a.BYTE,fe.UNSIGNED_BYTE=ve.a.UNSIGNED_BYTE,fe.SHORT=ve.a.SHORT,fe.UNSIGNED_SHORT=ve.a.UNSIGNED_SHORT,fe.INT=ve.a.INT,fe.UNSIGNED_INT=ve.a.UNSIGNED_INT,fe.FLOAT=ve.a.FLOAT,fe.HALF_FLOAT=36193,fe.UNSIGNED_INT_24_8_WEBGL=34042,fe.DEPTH_COMPONENT=ve.a.DEPTH_COMPONENT,fe.DEPTH_STENCIL=ve.a.DEPTH_STENCIL,fe.ALPHA=ve.a.ALPHA,fe.RGB=ve.a.RGB,fe.RGBA=ve.a.RGBA,fe.LUMINANCE=ve.a.LUMINANCE,fe.LUMINANCE_ALPHA=ve.a.LUMINANCE_ALPHA,fe.SRGB=35904,fe.SRGB_ALPHA=35906,fe.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,fe.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,fe.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,fe.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,fe.NEAREST=ve.a.NEAREST,fe.LINEAR=ve.a.LINEAR,fe.NEAREST_MIPMAP_NEAREST=ve.a.NEAREST_MIPMAP_NEAREST,fe.LINEAR_MIPMAP_NEAREST=ve.a.LINEAR_MIPMAP_NEAREST,fe.NEAREST_MIPMAP_LINEAR=ve.a.NEAREST_MIPMAP_LINEAR,fe.LINEAR_MIPMAP_LINEAR=ve.a.LINEAR_MIPMAP_LINEAR,fe.REPEAT=ve.a.REPEAT,fe.CLAMP_TO_EDGE=ve.a.CLAMP_TO_EDGE,fe.MIRRORED_REPEAT=ve.a.MIRRORED_REPEAT,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(21),ve=pe(18),ue=pe(1),fe=pe.n(ue),he=fe.a.mat2,le=fe.a.mat3,ae=fe.a.mat4,ie=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\w\,]+)?(\[.*?\])?\s*(:\s*([\S\s]+?))?;/g,me=/attribute\s+(float|int|vec2|vec3|vec4)\s+(\w*)\s*(:\s*(\w+))?;/g,E=/#define\s+(\w+)?(\s+[\w-.]+)?\s*;?\s*\n/g,b={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"},z={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return[0,0]},vec3:function(){return[0,0,0]},vec4:function(){return[0,0,0,0]},ivec2:function(){return[0,0]},ivec3:function(){return[0,0,0]},ivec4:function(){return[0,0,0,0]},mat2:function(){return he.create()},mat3:function(){return le.create()},mat4:function(){return ae.create()},array:function(){return[]}},ne=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],oe=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],se=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],de={},a={};function x(_e,ye){var be="vertex:"+_e+"fragment:"+ye;if(de[be])return de[be];var Se=Oe.a.genGUID();return de[be]=Se,a[Se]={vertex:_e,fragment:ye},Se}function re(_e,ye){typeof _e=="object"&&(ye=_e.fragment,_e=_e.vertex),this._shaderID=x(_e,ye),this._vertexCode=re.parseImport(_e),this._fragmentCode=re.parseImport(ye),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}re.prototype={constructor:re,createUniforms:function(){var _e={};for(var ye in this.uniformTemplates){var be=this.uniformTemplates[ye];_e[ye]={type:be.type,value:be.value()}}return _e},_parseImport:function(){this._vertexCode=re.parseImport(this.vertex),this._fragmentCode=re.parseImport(this.fragment)},_parseUniforms:function(){var _e={},ye=this,be="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(ie,Se),be="fragment",this._fragmentCode=this._fragmentCode.replace(ie,Se),ye.matrixSemanticKeys=Object.keys(this.matrixSemantics);function Se(Be,Ae,we,Ue,Pe,ze){if(Ae&&we){var Ke=b[Ae],Ne=!0,Re;if(Ke){if(ye._uniformList.push(we),(Ae==="sampler2D"||Ae==="samplerCube")&&(ye.textures[we]={shaderType:be,type:Ae}),Ue&&(Ke+="v"),ze)if(ne.indexOf(ze)>=0)ye.attributeSemantics[ze]={symbol:we,type:Ke},Ne=!1;else if(se.indexOf(ze)>=0){var $e=!1,nt=ze;ze.match(/TRANSPOSE$/)&&($e=!0,nt=ze.slice(0,-9)),ye.matrixSemantics[ze]={symbol:we,type:Ke,isTranspose:$e,semanticNoTranspose:nt},Ne=!1}else if(oe.indexOf(ze)>=0)ye.uniformSemantics[ze]={symbol:we,type:Ke},Ne=!1;else if(ze==="unconfigurable")Ne=!1;else if(Re=ye._parseDefaultValue(Ae,ze),Re)ze="";else throw new Error('Unkown semantic "'+ze+'"');Ne&&(_e[we]={type:Ke,value:Ue?z.array:Re||z[Ae],semantic:ze||null})}return["uniform",Ae,we,Ue].join(" ")+`; `}}this.uniformTemplates=_e},_parseDefaultValue:function(_e,ye){var be=/\[\s*(.*)\s*\]/;if(_e==="vec2"||_e==="vec3"||_e==="vec4"){var Se=be.exec(ye)[1];if(Se){var Be=Se.split(/\s*,\s*/);return function(){return new ve.a.Float32Array(Be)}}else return}else{if(_e==="bool")return function(){return ye.toLowerCase()==="true"};if(_e==="float")return function(){return parseFloat(ye)};if(_e==="int")return function(){return parseInt(ye)}}},_parseAttributes:function(){var _e={},ye=this;this._vertexCode=this._vertexCode.replace(me,be);function be(Se,Be,Ae,we,Ue){if(Be&&Ae){var Pe=1;switch(Be){case"vec4":Pe=4;break;case"vec3":Pe=3;break;case"vec2":Pe=2;break;case"float":Pe=1;break}if(_e[Ae]={type:"float",size:Pe,semantic:Ue||null},Ue){if(ne.indexOf(Ue)<0)throw new Error('Unkown semantic "'+Ue+'"');ye.attributeSemantics[Ue]={symbol:Ae,type:Be}}}return["attribute",Be,Ae].join(" ")+`; `}this.attributes=_e},_parseDefines:function(){var _e=this,ye="vertex";this._vertexCode=this._vertexCode.replace(E,be),ye="fragment",this._fragmentCode=this._fragmentCode.replace(E,be);function be(Se,Be,Ae){var we=ye==="vertex"?_e.vertexDefines:_e.fragmentDefines;return we[Be]||(Ae=="false"?we[Be]=!1:Ae=="true"?we[Be]=!0:we[Be]=Ae?isNaN(parseFloat(Ae))?Ae.trim():parseFloat(Ae):null),""}},clone:function(){var _e=a[this._shaderID],ye=new re(_e.vertex,_e.fragment);return ye}},Object.defineProperty&&(Object.defineProperty(re.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(re.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(re.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(re.prototype,"uniforms",{get:function(){return this._uniformList}}));var ce=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;re.parseImport=function(_e){return _e=_e.replace(ce,function(Be,be,Se){var Be=re.source(Se);return Be?re.parseImport(Be):(console.error('Shader chunk "'+Se+'" not existed in library'),"")}),_e};var ge=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;re.import=function(_e){_e.replace(ge,function(ye,be,Se,Ae){var Ae=Ae.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(Ae){for(var we=Se.split("."),Ue=re.codes,Pe=0,ze;Pebe[0]&&(be[0]=Be),Ae>be[1]&&(be[1]=Ae),we>be[2]&&(be[2]=we)}ge._dirty=!0,_e._dirty=!0}},dirty:function(){for(var re=this.getEnabledAttributes(),ce=0;ce=0){ce||(ce=E());var ge=this.indices;return ce[0]=ge[re*3],ce[1]=ge[re*3+1],ce[2]=ge[re*3+2],ce}},setTriangleIndices:function(re,ce){var ge=this.indices;ge[re*3]=ce[0],ge[re*3+1]=ce[1],ge[re*3+2]=ce[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(re){var ce,ge=this.vertexCount>65535?fe.a.Uint32Array:fe.a.Uint16Array;if(re[0]&&re[0].length){var _e=0,ye=3;ce=new ge(re.length*ye);for(var be=0;be=0?(ce.splice(ge,1),delete this.attributes[re],!0):!1},getAttribute:function(re){return this.attributes[re]},getEnabledAttributes:function(){var re=this._enabledAttributes,ce=this._attributeList;if(re)return re;for(var ge=[],_e=this.vertexCount,ye=0;ye65535&&(this.indices=new fe.a.Uint32Array(this.indices));for(var re=this.attributes,ce=this.indices,ge=this.getEnabledAttributes(),_e={},ye=0;ye=se.COLOR_ATTACHMENT0&&x<=se.COLOR_ATTACHMENT0+8&&a.push(x);de.drawBuffersEXT(a)}}this.trigger("beforerender",this,ne);var re=this.clearDepth?se.DEPTH_BUFFER_BIT:0;if(se.depthMask(!0),this.clearColor){re=re|se.COLOR_BUFFER_BIT,se.colorMask(!0,!0,!0,!0);var ce=this.clearColor;Array.isArray(ce)&&se.clearColor(ce[0],ce[1],ce[2],ce[3])}se.clear(re),this.blendWithPrevious?(se.enable(se.BLEND),this.material.transparent=!0):(se.disable(se.BLEND),this.material.transparent=!1),this.renderQuad(ne),this.trigger("afterrender",this,ne),oe&&this.unbind(ne,oe)},renderQuad:function(ne){E.material=this.material,ne.renderPass([E],b)},dispose:function(ne){}});Me.a=z},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=fe.copy,le=fe.set,ae=function(ie,me){this.min=ie||new Oe.a(1/0,1/0,1/0),this.max=me||new Oe.a(-1/0,-1/0,-1/0)};ae.prototype={constructor:ae,updateFromVertices:function(ie){if(ie.length>0){var me=this.min,E=this.max,b=me.array,z=E.array;he(b,ie[0]),he(z,ie[0]);for(var ne=1;nez[0]&&(z[0]=oe[0]),oe[1]>z[1]&&(z[1]=oe[1]),oe[2]>z[2]&&(z[2]=oe[2])}me._dirty=!0,E._dirty=!0}},union:function(ie){var me=this.min,E=this.max;return fe.min(me.array,me.array,ie.min.array),fe.max(E.array,E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},intersection:function(ie){var me=this.min,E=this.max;return fe.max(me.array,me.array,ie.min.array),fe.min(E.array,E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},intersectBoundingBox:function(ie){var me=this.min.array,E=this.max.array,b=ie.min.array,z=ie.max.array;return!(me[0]>z[0]||me[1]>z[1]||me[2]>z[2]||E[0]=z[0]&&E[1]>=z[1]&&E[2]>=z[2]},containPoint:function(ie){var me=this.min.array,E=this.max.array,b=ie.array;return me[0]<=b[0]&&me[1]<=b[1]&&me[2]<=b[2]&&E[0]>=b[0]&&E[1]>=b[1]&&E[2]>=b[2]},isFinite:function(){var ie=this.min.array,me=this.max.array;return isFinite(ie[0])&&isFinite(ie[1])&&isFinite(ie[2])&&isFinite(me[0])&&isFinite(me[1])&&isFinite(me[2])},applyTransform:function(){var ie=fe.create(),me=fe.create(),E=fe.create(),b=fe.create(),z=fe.create(),ne=fe.create();return function(oe){var se=this.min.array,de=this.max.array,a=oe.array;return ie[0]=a[0]*se[0],ie[1]=a[1]*se[0],ie[2]=a[2]*se[0],me[0]=a[0]*de[0],me[1]=a[1]*de[0],me[2]=a[2]*de[0],E[0]=a[4]*se[1],E[1]=a[5]*se[1],E[2]=a[6]*se[1],b[0]=a[4]*de[1],b[1]=a[5]*de[1],b[2]=a[6]*de[1],z[0]=a[8]*se[2],z[1]=a[9]*se[2],z[2]=a[10]*se[2],ne[0]=a[8]*de[2],ne[1]=a[9]*de[2],ne[2]=a[10]*de[2],se[0]=Math.min(ie[0],me[0])+Math.min(E[0],b[0])+Math.min(z[0],ne[0])+a[12],se[1]=Math.min(ie[1],me[1])+Math.min(E[1],b[1])+Math.min(z[1],ne[1])+a[13],se[2]=Math.min(ie[2],me[2])+Math.min(E[2],b[2])+Math.min(z[2],ne[2])+a[14],de[0]=Math.max(ie[0],me[0])+Math.max(E[0],b[0])+Math.max(z[0],ne[0])+a[12],de[1]=Math.max(ie[1],me[1])+Math.max(E[1],b[1])+Math.max(z[1],ne[1])+a[13],de[2]=Math.max(ie[2],me[2])+Math.max(E[2],b[2])+Math.max(z[2],ne[2])+a[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(ie){var me=this.min.array,E=this.max.array,b=ie.array,z=me[0],ne=me[1],oe=me[2],se=E[0],de=E[1],a=me[2],x=E[0],re=E[1],ce=E[2];if(b[15]===1)me[0]=b[0]*z+b[12],me[1]=b[5]*ne+b[13],E[2]=b[10]*oe+b[14],E[0]=b[0]*x+b[12],E[1]=b[5]*re+b[13],me[2]=b[10]*ce+b[14];else{var ge=-1/oe;me[0]=b[0]*z*ge,me[1]=b[5]*ne*ge,E[2]=(b[10]*oe+b[14])*ge,ge=-1/a,E[0]=b[0]*se*ge,E[1]=b[5]*de*ge,ge=-1/ce,me[2]=(b[10]*ce+b[14])*ge}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var ie=this.vertices;if(!ie){for(var ie=[],me=0;me<8;me++)ie[me]=fe.fromValues(0,0,0);this.vertices=ie}var E=this.min.array,b=this.max.array;return le(ie[0],E[0],E[1],E[2]),le(ie[1],E[0],b[1],E[2]),le(ie[2],b[0],E[1],E[2]),le(ie[3],b[0],b[1],E[2]),le(ie[4],E[0],E[1],b[2]),le(ie[5],E[0],b[1],b[2]),le(ie[6],b[0],E[1],b[2]),le(ie[7],b[0],b[1],b[2]),this},copy:function(ie){var me=this.min,E=this.max;return he(me.array,ie.min.array),he(E.array,ie.max.array),me._dirty=!0,E._dirty=!0,this},clone:function(){var ie=new ae;return ie.copy(this),ie}},Me.a=ae},function(Ye,Me,pe){"use strict";Me.a=function(Oe,ve,ue){return{seriesType:Oe,reset:function(fe,he){var le=fe.getData(),ae=fe.visualColorAccessPath.split(".");ae[ae.length-1]="opacity";var ie=fe.get(ae);le.setVisual("opacity",ie==null?1:ie);function me(E){var b=le.getItemModel(E),z=b.get(ae);z!=null&&le.setItemVisual(E,"opacity",z)}return{dataEach:le.hasItemOption?me:null}}}}},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(6),ue=pe(21),fe=pe(93),he=fe.a.parseToFloat,le={};function ae(E,b,z){var ne=Object.keys(E);ne.sort();for(var oe=[],se=0;se=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(E,b){if(typeof E=="object")for(var z in E){var ne=E[z];this.setUniform(z,ne)}else this.setUniform(E,b)},get:function(E){var b=this.uniforms[E];if(b)return b.value},attachShader:function(E,b){var z=this.uniforms;this.uniforms=E.createUniforms(),this.shader=E;var ne=this.uniforms;this._enabledUniforms=Object.keys(ne),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(re){var ce=this.uniforms[re].type;return ce==="t"||ce==="tv"},this);var oe=this.vertexDefines,se=this.fragmentDefines;if(this.vertexDefines=ue.a.clone(E.vertexDefines),this.fragmentDefines=ue.a.clone(E.fragmentDefines),b){for(var de in z)ne[de]&&(ne[de].value=z[de].value);ue.a.defaults(this.vertexDefines,oe),ue.a.defaults(this.fragmentDefines,se)}var a={};for(var x in E.textures)a[x]={shaderType:E.textures[x].shaderType,type:E.textures[x].type,enabled:b&&this._textureStatus[x]?this._textureStatus[x].enabled:!1};this._textureStatus=a,this._programKey=""},clone:function(){var E=new this.constructor({name:this.name,shader:this.shader});for(var b in this.uniforms)E.uniforms[b].value=this.uniforms[b].value;return E.depthTest=this.depthTest,E.depthMask=this.depthMask,E.transparent=this.transparent,E.blend=this.blend,E.vertexDefines=ue.a.clone(this.vertexDefines),E.fragmentDefines=ue.a.clone(this.fragmentDefines),E.enableTexture(this.getEnabledTextures()),E.precision=this.precision,E},define:function(E,b,z){var ne=this.vertexDefines,oe=this.fragmentDefines;E!=="vertex"&&E!=="fragment"&&E!=="both"&&arguments.length<3&&(z=b,b=E,E="both"),z=z!=null?z:null,(E==="vertex"||E==="both")&&ne[b]!==z&&(ne[b]=z,this._programKey=""),(E==="fragment"||E==="both")&&oe[b]!==z&&(oe[b]=z,E!=="both"&&(this._programKey=""))},undefine:function(E,b){E!=="vertex"&&E!=="fragment"&&E!=="both"&&arguments.length<2&&(b=E,E="both"),(E==="vertex"||E==="both")&&this.isDefined("vertex",b)&&(delete this.vertexDefines[b],this._programKey=""),(E==="fragment"||E==="both")&&this.isDefined("fragment",b)&&(delete this.fragmentDefines[b],E!=="both"&&(this._programKey=""))},isDefined:function(E,b){switch(E){case"vertex":return this.vertexDefines[b]!==void 0;case"fragment":return this.fragmentDefines[b]!==void 0}},getDefine:function(E,b){switch(E){case"vertex":return this.vertexDefines[b];case"fragment":return this.fragmentDefines[b]}},enableTexture:function(E){if(Array.isArray(E)){for(var b=0;b=x.x&&a>=x.y&&de<=x.x+x.width&&a<=x.y+x.height};var se=new me.a;oe.prototype.castRay=function(de,a,x){var re=this.layer.renderer,ce=re.viewport;return re.viewport=this.viewport,re.screenToNDC(de,a,se),this.camera.castRay(se,x),re.viewport=ce,x},oe.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this._needsSortProgressively=!1;for(var de=0;de30},oe.prototype._doRender=function(de,a,x){var re=this.scene,ce=this.camera;if(x=x||0,this._updateTransparent(de,re,ce,x),a||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(de,re,ce,!0)),this._updateShadowPCFKernel(x),de.gl.clearColor(0,0,0,0),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(de,ce),this._compositor.updateNormal(de,re,ce,this._temporalSS.getFrame())),this._updateSSAO(de,re,ce,this._temporalSS.getFrame()),this._enablePostEffect){var ge=this._compositor.getSourceFrameBuffer();ge.bind(de),de.gl.clear(de.gl.DEPTH_BUFFER_BIT|de.gl.COLOR_BUFFER_BIT),de.render(re,ce,!0,!0),ge.unbind(de),this.needsTemporalSS()&&a?(this._compositor.composite(de,ce,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),de.setViewport(this.viewport),this._temporalSS.render(de)):(de.setViewport(this.viewport),this._compositor.composite(de,ce,null,0))}else if(this.needsTemporalSS()&&a){var ge=this._temporalSS.getSourceFrameBuffer();ge.bind(de),de.saveClear(),de.clearBit=de.gl.DEPTH_BUFFER_BIT|de.gl.COLOR_BUFFER_BIT,de.render(re,ce,!0,!0),de.restoreClear(),ge.unbind(de),de.setViewport(this.viewport),this._temporalSS.render(de)}else de.setViewport(this.viewport),de.render(re,ce,!0,!0)},oe.prototype._updateTransparent=function(de,a,x,re){for(var ce=new ie.a,ge=new ae.a,_e=x.getWorldPosition(),ye=0;yethis.camera.far||de65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(E){this.triangleCount!==E&&(E===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(E*3):new Uint16Array(E*3))},_getCubicCurveApproxStep:function(E,b,z,ne){var oe=ae.dist(E,b)+ae.dist(z,b)+ae.dist(ne,z),se=1/(oe+1)*this.segmentScale;return se},getCubicCurveVertexCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?se*2:se*2+2},getCubicCurveTriangleCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?0:se*2},getLineVertexCount:function(){return this.getPolylineVertexCount(ie)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ie)},getPolylineVertexCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/3}return this.useNativeLine?(b-1)*2:(b-1)*2+2},getPolylineTriangleCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/3}return this.useNativeLine?0:Math.max(b-1,0)*2},addCubicCurve:function(E,b,z,ne,oe,se){se==null&&(se=1);for(var de=E[0],a=E[1],x=E[2],re=b[0],ce=b[1],ge=b[2],_e=z[0],ye=z[1],be=z[2],Se=ne[0],Be=ne[1],Ae=ne[2],we=this._getCubicCurveApproxStep(E,b,z,ne),Ue=we*we,Pe=Ue*we,ze=3*we,Ke=3*Ue,Ne=6*Ue,Re=6*Pe,$e=de-re*2+_e,nt=a-ce*2+ye,ut=x-ge*2+be,Qe=(re-_e)*3-de+Se,rt=(ce-ye)*3-a+Be,pt=(ge-be)*3-x+Ae,At=de,gt=a,Ft=x,Ct=(re-de)*ze+$e*Ke+Qe*Pe,Yt=(ce-a)*ze+nt*Ke+rt*Pe,zt=(ge-x)*ze+ut*Ke+pt*Pe,Xe=$e*Ne+Qe*Re,Fe=nt*Ne+rt*Re,Le=ut*Ne+pt*Re,Ze=Qe*Re,et=rt*Re,He=pt*Re,We=0,tt=0,at=Math.ceil(1/we),ot=new Float32Array((at+1)*3),ot=[],ct=0,tt=0;tt1&&(At=Ct>0?Math.min(At,Se):Math.max(At,Se),gt=Yt>0?Math.min(gt,Be):Math.max(gt,Be),Ft=zt>0?Math.min(Ft,Ae):Math.max(Ft,Ae));return this.addPolyline(ot,oe,se)},addLine:function(E,b,z,ne){return this.addPolyline([E,b],z,ne)},addPolyline:function(E,b,z,ne,oe){if(E.length){var se=typeof E[0]!="number";if(oe==null&&(oe=se?E.length:E.length/3),!(oe<2)){ne==null&&(ne=0),z==null&&(z=1),this._itemVertexOffsets.push(this._vertexOffset);var se=typeof E[0]!="number",de=se?typeof b[0]!="number":b.length/4===oe,a=this.attributes.position,x=this.attributes.positionPrev,re=this.attributes.positionNext,ce=this.attributes.color,ge=this.attributes.offset,_e=this.indices,ye=this._vertexOffset,be,Se;z=Math.max(z,.01);for(var Be=ne;Be1&&(a.copy(ye,ye-1),ce.copy(ye,ye-1),ye++):(Be0&&(re.set(ye-2,be),re.set(ye-1,be)),a.set(ye,be),a.set(ye+1,be),ce.set(ye,Se),ce.set(ye+1,Se),ge.set(ye,z/2),ge.set(ye+1,-z/2),ye+=2),this.useNativeLine)ce.set(ye,Se),a.set(ye,be),ye++;else if(Be>0){var Ue=this._triangleOffset*3,_e=this.indices;_e[Ue]=ye-4,_e[Ue+1]=ye-3,_e[Ue+2]=ye-2,_e[Ue+3]=ye-3,_e[Ue+4]=ye-1,_e[Ue+5]=ye-2,this._triangleOffset+=2}}if(!this.useNativeLine){var Pe=this._vertexOffset,ze=this._vertexOffset+oe*2;x.copy(Pe,Pe+2),x.copy(Pe+1,Pe+3),re.copy(ze-1,ze-3),re.copy(ze-2,ze-4)}return this._vertexOffset=ye,this._vertexOffset}}},setItemColor:function(E,b){for(var z=this._itemVertexOffsets[E],ne=E0)},render:function(he,le,ae){var ie=he.gl;if(this.skeleton){this.skeleton.update();var me=this.skeleton.getSubSkinMatrices(this.__uid__,this.joints);ae.setUniformOfSemantic(ie,"SKIN_MATRIX",me)}return Oe.a.prototype.render.call(this,he,le,ae)},getSkinMatricesTexture:function(){return this._skinMatricesTexture=this._skinMatricesTexture||new ue.a({type:ve.a.FLOAT,minFilter:ve.a.NEAREST,magFilter:ve.a.NEAREST,useMipmap:!1,flipY:!1}),this._skinMatricesTexture}});fe.POINTS=ve.a.POINTS,fe.LINES=ve.a.LINES,fe.LINE_LOOP=ve.a.LINE_LOOP,fe.LINE_STRIP=ve.a.LINE_STRIP,fe.TRIANGLES=ve.a.TRIANGLES,fe.TRIANGLE_STRIP=ve.a.TRIANGLE_STRIP,fe.TRIANGLE_FAN=ve.a.TRIANGLE_FAN,fe.BACK=ve.a.BACK,fe.FRONT=ve.a.FRONT,fe.FRONT_AND_BACK=ve.a.FRONT_AND_BACK,fe.CW=ve.a.CW,fe.CCW=ve.a.CCW,Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(11),ue=pe(21),fe=pe(66),he=fe.a.isPowerOfTwo,le=["px","nx","py","ny","pz","nz"],ae=Oe.a.extend(function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}},{update:function(me){var E=me.gl;E.bindTexture(E.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(me);var b=this.format,z=this.type;E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_WRAP_S,this.getAvailableWrapS()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_WRAP_T,this.getAvailableWrapT()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),E.texParameteri(E.TEXTURE_CUBE_MAP,E.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var ne=me.getGLExtension("EXT_texture_filter_anisotropic");if(ne&&this.anisotropic>1&&E.texParameterf(E.TEXTURE_CUBE_MAP,ne.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),z===36193){var oe=me.getGLExtension("OES_texture_half_float");oe||(z=ve.a.FLOAT)}if(this.mipmaps.length)for(var se=this.width,de=this.height,a=0;a0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(E)),E.name&&(this._nodeRepository[E.name]=E)},removeFromScene:function(E){if(E instanceof ue.a){var b=this._cameraList.indexOf(E);b>=0&&this._cameraList.splice(b,1)}E.name&&delete this._nodeRepository[E.name]},getNode:function(E){return this._nodeRepository[E]},cloneNode:function(E){var b=E.clone(),z={},ne=function(se,de){se.skeleton&&(de.skeleton=se.skeleton.clone(E,b),de.joints=se.joints.slice()),se.material&&(z[se.material.__uid__]={oldMat:se.material});for(var a=0;a0&&this._updateRenderList(ne)}},_updateLightUniforms:function(){var E=this.lights;E.sort(me);var b=this._lightUniforms;for(var z in b)for(var ne in b[z])b[z][ne].value.length=0;for(var oe=0;oe0?Oe[ve].value=new Float32Array(Oe[ve].value):Oe[ve].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}}},function(Ye,Me,pe){"use strict";var Oe=pe(2),ve=pe(57),ue=pe(56),fe=pe(0),he=pe.n(fe);function le(){}le.prototype={constructor:le,setScene:function(ae){this._scene=ae,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(ae){this._lightRoot=ae,this.mainLight=new Oe.a.DirectionalLight({shadowBias:.005}),this.ambientLight=new Oe.a.AmbientLight,ae.add(this.mainLight),ae.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(ae){var ie=this.mainLight,me=this.ambientLight,E=ae.getModel("light"),b=E.getModel("main"),z=E.getModel("ambient");ie.intensity=b.get("intensity"),me.intensity=z.get("intensity"),ie.color=Oe.a.parseColor(b.get("color")).slice(0,3),me.color=Oe.a.parseColor(z.get("color")).slice(0,3);var ne=b.get("alpha")||0,oe=b.get("beta")||0;ie.position.setArray(Oe.a.directionFromAlphaBeta(ne,oe)),ie.lookAt(Oe.a.Vector3.ZERO),ie.castShadow=b.get("shadow"),ie.shadowResolution=Oe.a.getShadowResolution(b.get("shadowQuality"))},updateAmbientCubemap:function(ae,ie,me){var E=ie.getModel("light.ambientCubemap"),b=E.get("texture");if(b){this._cubemapLightsCache=this._cubemapLightsCache||{};var z=this._cubemapLightsCache[b];if(!z){var ne=this;z=this._cubemapLightsCache[b]=Oe.a.createAmbientCubemap(E.option,ae,me,function(){ne._skybox instanceof ve.a&&ne._skybox.setEnvironmentMap(z.specular.cubemap),me.getZr().refresh()})}this._lightRoot.add(z.diffuse),this._lightRoot.add(z.specular),this._currentCubemapLights=z}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(ae,ie,me){var E=ie.get("environment"),b=this;function z(){return b._skybox instanceof ve.a||(b._skybox&&b._skybox.dispose(ae),b._skybox=new ve.a),b._skybox}function ne(){return b._skybox instanceof ue.a||(b._skybox&&b._skybox.dispose(ae),b._skybox=new ue.a),b._skybox}if(E&&E!=="none")if(E==="auto")if(this._currentCubemapLights){var oe=z(),se=this._currentCubemapLights.specular.cubemap;oe.setEnvironmentMap(se),this._scene&&oe.attachScene(this._scene),oe.material.set("lod",2)}else this._skybox&&this._skybox.detachScene();else if(typeof E=="object"&&E.colorStops||typeof E=="string"&&he.a.color.parse(E)){var de=ne(),a=new Oe.a.Texture2D({anisotropic:8,flipY:!1});de.setEnvironmentMap(a);var x=a.image=document.createElement("canvas");x.width=x.height=16;var re=x.getContext("2d"),ce=new he.a.graphic.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:E}});ce.brush(re),de.attachScene(this._scene)}else{var de=ne(),a=Oe.a.loadTexture(E,me,{anisotropic:8,flipY:!1});de.setEnvironmentMap(a),de.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var ge=ie.coordinateSystem;if(this._skybox)if(ge&&ge.viewGL&&E!=="auto"&&!(E.match&&E.match(/.hdr$/))){var _e=ge.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[_e]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);function ue(fe,he){var le=[];return ve.a.util.each(fe.dimensions,function(ae){var ie=fe.getDimensionInfo(ae),me=ie.otherDims,E=me[he];E!=null&&E!==!1&&(le[E]=ie.name)}),le}Me.a=function(fe,he,le){function ae(se){var de=!0,a=[],x=ue(ie,"tooltip");x.length?ve.a.util.each(x,function(ce){re(ie.get(ce,he),ce)}):ve.a.util.each(se,re);function re(ce,ge){var _e=ie.getDimensionInfo(ge);if(!(!_e||_e.otherDims.tooltip===!1)){var ye=_e.type,be=(de?"- "+(_e.tooltipName||_e.name)+": ":"")+(ye==="ordinal"?ce+"":ye==="time"?le?"":ve.a.format.formatTime("yyyy/MM/dd hh:mm:ss",ce):ve.a.format.addCommas(ce));be&&a.push(ve.a.format.encodeHTML(be))}}return(de?"
    ":"")+a.join(de?"
    ":", ")}var ie=fe.getData(),me=fe.getRawValue(he),E=ve.a.util.isArray(me)?ae(me):ve.a.format.encodeHTML(ve.a.format.addCommas(me)),b=ie.getName(he),z=ie.getItemVisual(he,"color");ve.a.util.isObject(z)&&z.colorStops&&(z=(z.colorStops[0]||{}).color),z=z||"transparent";var ne=ve.a.format.getTooltipMarker(z),oe=fe.name;return oe==="\0-"&&(oe=""),oe=oe?ve.a.format.encodeHTML(oe)+(le?": ":"
    "):"",le?ne+oe+E:oe+ne+(b?ve.a.format.encodeHTML(b)+": "+E:E)}},function(Ye,Me,pe){"use strict";var Oe=pe(51),ve=Oe.a.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var ue=this.fov/180*Math.PI;this.projectionMatrix.perspective(ue,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var ue=this.projectionMatrix.array,fe=Math.atan(1/ue[5])*2;this.fov=fe/Math.PI*180,this.aspect=ue[5]/ue[0],this.near=ue[14]/(ue[10]-1),this.far=ue[14]/(ue[10]+1)},clone:function(){var ue=Oe.a.prototype.clone.call(this);return ue.fov=this.fov,ue.aspect=this.aspect,ue.near=this.near,ue.far=this.far,ue}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(15),ue=Oe.a.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var fe=this.heightSegments,he=this.widthSegments,le=this.attributes,ae=[],ie=[],me=[],E=[],b=0;b<=fe;b++)for(var z=b/fe,ne=0;ne<=he;ne++){var oe=ne/he;if(ae.push([2*oe-1,2*z-1,0]),ie&&ie.push([oe,z]),me&&me.push([0,0,1]),ne0&&this._notFirst?this.animateTo({alpha:re,beta:ce,center:ge,distance:se,targetOrthographicSize:de,easing:x.animationEasingUpdate,duration:x.animationDurationUpdate}):(this.setDistance(se),this.setAlpha(re),this.setBeta(ce),this.setCenter(ge),this.setOrthographicSize(de)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){ae[this.panMouseButton]==null&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),ae[this.rotateMouseButton]==null&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),this.autoRotateDirection!=="cw"&&this.autoRotateDirection!=="ccw"&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(E){var b=this.zr,z=this,ne={},oe={};return E.distance!=null&&(ne.distance=this.getDistance(),oe.distance=E.distance),E.orthographicSize!=null&&(ne.orthographicSize=this.getOrthographicSize(),oe.orthographicSize=E.orthographicSize),E.alpha!=null&&(ne.alpha=this.getAlpha(),oe.alpha=E.alpha),E.beta!=null&&(ne.beta=this.getBeta(),oe.beta=E.beta),E.center!=null&&(ne.center=this.getCenter(),oe.center=E.center),this._addAnimator(b.animation.animate(ne).when(E.duration||1e3,oe).during(function(){ne.alpha!=null&&z.setAlpha(ne.alpha),ne.beta!=null&&z.setBeta(ne.beta),ne.distance!=null&&z.setDistance(ne.distance),ne.center!=null&&z.setCenter(ne.center),ne.orthographicSize!=null&&z.setOrthographicSize(ne.orthographicSize),z._needsUpdate=!0})).start(E.easing||"linear")},stopAllAnimation:function(){for(var E=0;E0},_update:function(E){if(this._rotating){var b=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=b*E/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(E=Math.min(E,50),this._updateDistanceOrSize(E),this._updatePan(E),this._updateRotate(E),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(E){var b=this._rotateVelocity;this._phi=b.y*E/20+this._phi,this._theta=b.x*E/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(b,Math.pow(this.damping,E/16))},_updateDistanceOrSize:function(E){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*E/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*E/20),this._zoomSpeed*=Math.pow(this.damping,E/16)},_setDistance:function(E){this._distance=Math.max(Math.min(E,this.maxDistance),this.minDistance)},_setOrthoSize:function(E){this._orthoSize=Math.max(Math.min(E,this.maxOrthographicSize),this.minOrthographicSize);var b=this.getCamera(),z=this._orthoSize,ne=z/this.viewGL.viewport.height*this.viewGL.viewport.width;b.left=-ne/2,b.right=ne/2,b.top=z/2,b.bottom=-z/2},_updatePan:function(E){var b=this._panVelocity,z=this._distance,ne=this.getCamera(),oe=ne.worldTransform.y,se=ne.worldTransform.x;this._center.scaleAndAdd(se,-b.x*z/200).scaleAndAdd(oe,-b.y*z/200),this._vectorDamping(b,0)},_updateTransform:function(){var E=this.getCamera(),b=new ue.a,z=this._theta+Math.PI/2,ne=this._phi+Math.PI/2,oe=Math.sin(z);b.x=oe*Math.cos(ne),b.y=-Math.cos(z),b.z=oe*Math.sin(ne),E.position.copy(this._center).scaleAndAdd(b,this._distance),E.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var E=this.autoRotateAfterStill,b=this;!isNaN(E)&&E>0&&(this._stillTimeout=setTimeout(function(){b._rotating=!0},E*1e3))},_vectorDamping:function(E,b){var z=E.len();z=z*b,z<1e-4&&(z=0),E.normalize().scale(z)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var E=this.getCamera().worldTransform.z,b=Math.asin(E.y),z=Math.atan2(E.x,E.z);this._theta=b,this._phi=-z,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(E){if(!E.target&&!this._isAnimating()){var b=E.offsetX,z=E.offsetY;this.viewGL&&!this.viewGL.containPoint(b,z)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),E.event.targetTouches?E.event.targetTouches.length===1&&(this._mode="rotate"):E.event.button===ae[this.rotateMouseButton]?this._mode="rotate":E.event.button===ae[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=E.offsetX,this._mouseY=E.offsetY)}},_mouseMoveHandler:function(E){if(!(E.target&&E.target.__isGLToZRProxy)&&!this._isAnimating()){var b=ie(this.panSensitivity),z=ie(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(E.offsetX-this._mouseX)/this.zr.getHeight()*2*z[0],this._rotateVelocity.x=(E.offsetY-this._mouseY)/this.zr.getWidth()*2*z[1]):this._mode==="pan"&&(this._panVelocity.x=(E.offsetX-this._mouseX)/this.zr.getWidth()*b[0]*400,this._panVelocity.y=(-E.offsetY+this._mouseY)/this.zr.getHeight()*b[1]*400),this._mouseX=E.offsetX,this._mouseY=E.offsetY,E.event.preventDefault()}},_mouseWheelHandler:function(E){if(!this._isAnimating()){var b=E.event.wheelDelta||-E.event.detail;this._zoomHandler(E,b)}},_pinchHandler:function(E){this._isAnimating()||(this._zoomHandler(E,E.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(E,b){if(b!==0){var z=E.offsetX,ne=E.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(z,ne))){var oe;this._projection==="perspective"?oe=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):oe=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(b>0?-1:1)*oe*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),E.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(E){this._isRightMouseButtonUsed()&&E.preventDefault()},_addAnimator:function(E){var b=this._animators;return b.push(E),E.done(function(){var z=b.indexOf(E);z>=0&&b.splice(z,1)}),E}});Object.defineProperty(me.prototype,"autoRotate",{get:function(E){return this._autoRotate},set:function(E){this._autoRotate=E,this._rotating=E}}),Me.a=me},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.lines3D.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position: POSITION; attribute vec4 a_Color : COLOR; varying vec4 v_Color; void main() { gl_Position = worldViewProjection * vec4(position, 1.0); v_Color = a_Color; } @end @export ecgl.lines3D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif } @end @export ecgl.lines3D.clipNear vec4 clipNear(vec4 p1, vec4 p2) { float n = (p1.w - near) / (p1.w - p2.w); return vec4(mix(p1.xy, p2.xy, n), -near, near); } @end @export ecgl.lines3D.expandLine #ifdef VERTEX_ANIMATION vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0); vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0); vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0); #else vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0); vec4 currProj = worldViewProjection * vec4(position, 1.0); vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0); #endif if (currProj.w < 0.0) { if (nextProj.w > 0.0) { currProj = clipNear(currProj, nextProj); } else if (prevProj.w > 0.0) { currProj = clipNear(currProj, prevProj); } } vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw; vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw; vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw; vec2 dir; float len = offset; if (position == positionPrev) { dir = normalize(nextScreen - currScreen); } else if (position == positionNext) { dir = normalize(currScreen - prevScreen); } else { vec2 dirA = normalize(currScreen - prevScreen); vec2 dirB = normalize(nextScreen - currScreen); vec2 tanget = normalize(dirA + dirB); float miter = 1.0 / max(dot(tanget, dirA), 0.5); len *= miter; dir = tanget; } dir = vec2(-dir.y, dir.x) * len; currScreen += dir; currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w); @end @export ecgl.meshLines3D.vertex attribute vec3 position: POSITION; attribute vec3 positionPrev; attribute vec3 positionNext; attribute float offset; attribute vec4 a_Color : COLOR; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevPositionPrev; attribute vec3 prevPositionNext; uniform float percent : 1.0; #endif uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; uniform float near : NEAR; varying vec4 v_Color; @import ecgl.common.wireframe.vertexHeader @import ecgl.lines3D.clipNear void main() { @import ecgl.lines3D.expandLine gl_Position = currProj; v_Color = a_Color; @import ecgl.common.wireframe.vertexMain } @end @export ecgl.meshLines3D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain } @end`},function(Ye,Me,pe){var Oe=pe(12),ve=pe(75),ue=pe(78),fe=ue.parsePercent,he=pe(149),le=Oe.each,ae=["left","right","top","bottom","width","height"],ie=[["width","left","right"],["height","top","bottom"]];function me(ce,ge,_e,ye,be){var Se=0,Be=0;ye==null&&(ye=1/0),be==null&&(be=1/0);var Ae=0;ge.eachChild(function(we,Ue){var Pe=we.position,ze=we.getBoundingRect(),Ke=ge.childAt(Ue+1),Ne=Ke&&Ke.getBoundingRect(),Re,$e;if(ce==="horizontal"){var nt=ze.width+(Ne?-Ne.x+ze.x:0);Re=Se+nt,Re>ye||we.newline?(Se=0,Re=nt,Be+=Ae+_e,Ae=ze.height):Ae=Math.max(Ae,ze.height)}else{var ut=ze.height+(Ne?-Ne.y+ze.y:0);$e=Be+ut,$e>be||we.newline?(Se+=Ae+_e,Be=0,$e=ut,Ae=ze.width):Ae=Math.max(Ae,ze.width)}we.newline||(Pe[0]=Se,Pe[1]=Be,ce==="horizontal"?Se=Re+_e:Be=$e+_e)})}var E=me,b=Oe.curry(me,"vertical"),z=Oe.curry(me,"horizontal");function ne(ce,ge,_e){var ye=ge.width,be=ge.height,Se=fe(ce.x,ye),Be=fe(ce.y,be),Ae=fe(ce.x2,ye),we=fe(ce.y2,be);return(isNaN(Se)||isNaN(parseFloat(ce.x)))&&(Se=0),(isNaN(Ae)||isNaN(parseFloat(ce.x2)))&&(Ae=ye),(isNaN(Be)||isNaN(parseFloat(ce.y)))&&(Be=0),(isNaN(we)||isNaN(parseFloat(ce.y2)))&&(we=be),_e=he.normalizeCssArray(_e||0),{width:Math.max(Ae-Se-_e[1]-_e[3],0),height:Math.max(we-Be-_e[0]-_e[2],0)}}function oe(ce,ge,_e){_e=he.normalizeCssArray(_e||0);var ye=ge.width,be=ge.height,Se=fe(ce.left,ye),Be=fe(ce.top,be),Ae=fe(ce.right,ye),we=fe(ce.bottom,be),Ue=fe(ce.width,ye),Pe=fe(ce.height,be),ze=_e[2]+_e[0],Ke=_e[1]+_e[3],Ne=ce.aspect;switch(isNaN(Ue)&&(Ue=ye-Ae-Ke-Se),isNaN(Pe)&&(Pe=be-we-ze-Be),Ne!=null&&(isNaN(Ue)&&isNaN(Pe)&&(Ne>ye/be?Ue=ye*.8:Pe=be*.8),isNaN(Ue)&&(Ue=Ne*Pe),isNaN(Pe)&&(Pe=Ue/Ne)),isNaN(Se)&&(Se=ye-Ae-Ue-Ke),isNaN(Be)&&(Be=be-we-Pe-ze),ce.left||ce.right){case"center":Se=ye/2-Ue/2-_e[3];break;case"right":Se=ye-Ue-Ke;break}switch(ce.top||ce.bottom){case"middle":case"center":Be=be/2-Pe/2-_e[0];break;case"bottom":Be=be-Pe-ze;break}Se=Se||0,Be=Be||0,isNaN(Ue)&&(Ue=ye-Ke-Se-(Ae||0)),isNaN(Pe)&&(Pe=be-ze-Be-(we||0));var Re=new ve(Se+_e[3],Be+_e[0],Ue,Pe);return Re.margin=_e,Re}function se(ce,ge,_e,ye,be){var Se=!be||!be.hv||be.hv[0],Be=!be||!be.hv||be.hv[1],Ae=be&&be.boundingMode||"all";if(!(!Se&&!Be)){var we;if(Ae==="raw")we=ce.type==="group"?new ve(0,0,+ge.width||0,+ge.height||0):ce.getBoundingRect();else if(we=ce.getBoundingRect(),ce.needLocalTransform()){var Ue=ce.getLocalTransform();we=we.clone(),we.applyTransform(Ue)}ge=oe(Oe.defaults({width:we.width,height:we.height},ge),_e,ye);var Pe=ce.position,ze=Se?ge.x-we.x:0,Ke=Be?ge.y-we.y:0;ce.attr("position",Ae==="raw"?[ze,Ke]:[Pe[0]+ze,Pe[1]+Ke])}}function de(ce,ge){return ce[ie[ge][0]]!=null||ce[ie[ge][1]]!=null&&ce[ie[ge][2]]!=null}function a(ce,ge,_e){!Oe.isObject(_e)&&(_e={});var ye=_e.ignoreSize;!Oe.isArray(ye)&&(ye=[ye,ye]);var be=Be(ie[0],0),Se=Be(ie[1],1);Ue(ie[0],ce,be),Ue(ie[1],ce,Se);function Be(Pe,ze){var Ke={},Ne=0,Re={},$e=0,nt=2;if(le(Pe,function(rt){Re[rt]=ce[rt]}),le(Pe,function(rt){Ae(ge,rt)&&(Ke[rt]=Re[rt]=ge[rt]),we(Ke,rt)&&Ne++,we(Re,rt)&&$e++}),ye[ze])return we(ge,Pe[1])?Re[Pe[2]]=null:we(ge,Pe[2])&&(Re[Pe[1]]=null),Re;if($e===nt||!Ne)return Re;if(Ne>=nt)return Ke;for(var ut=0;ut0){var fe=this.outputs[ue];fe.keepLastFrame?(this._prevOutputTextures[ue]&&this._compositor.releaseTexture(this._prevOutputTextures[ue]),this._prevOutputTextures[ue]=this._outputTextures[ue]):this._compositor.releaseTexture(this._outputTextures[ue])}}});Me.a=ve},function(Ye,Me,pe){"use strict";function Oe(ve,ue){for(var fe=0,he=1/ue,le=ve;le>0;)fe=fe+he*(le%ue),le=Math.floor(le/ue),he=he/ue;return fe}Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);Me.a=function(ue,fe,he){he=he||ue.getSource();var le=fe||ve.a.getCoordinateSystemDimensions(ue.get("coordinateSystem"))||["x","y","z"],ae=ve.a.helper.createDimensions(he,{dimensionsDefine:he.dimensionsDefine||ue.get("dimensions"),encodeDefine:he.encodeDefine||ue.get("encode"),coordDimensions:le.map(function(me){var E=ue.getReferringComponents(me+"Axis3D")[0];return{type:E&&E.get("type")==="category"?"ordinal":"float",name:me,stackable:me==="z"}})});ue.get("coordinateSystem")==="cartesian3D"&&ae.forEach(function(me){if(le.indexOf(me.coordDim)>=0){var E=ue.getReferringComponents(me.coordDim+"Axis3D")[0];E&&E.get("type")==="category"&&(me.ordinalMeta=E.getOrdinalMeta())}});var ie=new ve.a.List(ae,ue);return ie.initData(he),ie}},function(Ye,Me){function pe(Oe,ve,ue){return{seriesType:Oe,performRawSeries:!0,reset:function(fe,he,le){var ae=fe.getData(),ie=fe.get("symbol")||ve,me=fe.get("symbolSize");if(ae.setVisual({legendSymbol:ue||ie,symbol:ie,symbolSize:me}),he.isSeriesFiltered(fe))return;var E=typeof me=="function";function b(z,ne){if(typeof me=="function"){var oe=fe.getRawValue(ne),se=fe.getDataParams(ne);z.setItemVisual(ne,"symbolSize",me(oe,se))}if(z.hasItemOption){var de=z.getItemModel(ne),a=de.getShallow("symbol",!0),x=de.getShallow("symbolSize",!0);a!=null&&z.setItemVisual(ne,"symbol",a),x!=null&&z.setItemVisual(ne,"symbolSize",x)}}return{dataEach:ae.hasItemOption||E?b:null}}}}Ye.exports=pe},function(Ye,Me,pe){"use strict";var Oe=pe(8),ve=pe(92),ue=pe(11),fe=pe(18),he=pe(15),le=pe(9),ae=pe(17),ie=pe(23),me=pe(96),E=pe(7),b=pe(98),z=pe(63),ne=pe(1),oe=pe.n(ne);E.a.import(b.a),E.a.import(z.a);var se=oe.a.mat4,de=oe.a.vec3,a=se.create,x={};function re(ye){return ye.material}function ce(){}var ge=Oe.a.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=document.createElement("canvas"));var ye=this.canvas;try{var be={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=ye.getContext("webgl",be)||ye.getContext("experimental-webgl",be),!this.gl)throw new Error;this._glinfo=new ve.a(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(Se){throw"Error creating WebGL Context "+Se}this._programMgr=new me.a(this)},{resize:function(ye,be){var Se=this.canvas,Be=this.devicePixelRatio;ye!=null?(Se.style.width=ye+"px",Se.style.height=be+"px",Se.width=ye*Be,Se.height=be*Be,this._width=ye,this._height=be):(this._width=Se.width/Be,this._height=Se.height/Be),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var ye=this.viewport;return ye.width/ye.height},setDevicePixelRatio:function(ye){this.devicePixelRatio=ye,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(ye){return this._glinfo.getExtension(ye)},getGLParameter:function(ye){return this._glinfo.getParameter(ye)},setViewport:function(ye,be,Se,Be,Ae){if(typeof ye=="object"){var we=ye;ye=we.x,be=we.y,Se=we.width,Be=we.height,Ae=we.devicePixelRatio}Ae=Ae||this.devicePixelRatio,this.gl.viewport(ye*Ae,be*Ae,Se*Ae,Be*Ae),this.viewport={x:ye,y:be,width:Se,height:Be,devicePixelRatio:Ae}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var ye=this._clearStack.pop();this.clearColor=ye.clearColor,this.clearBit=ye.clearBit}},bindSceneRendering:function(ye){this._sceneRendering=ye},render:function(ye,be,Se,Be){var Ae=this.gl,we=this.clearColor;if(this.clearBit){Ae.colorMask(!0,!0,!0,!0),Ae.depthMask(!0);var Ue=this.viewport,Pe=!1,ze=Ue.devicePixelRatio;(Ue.width!==this._width||Ue.height!==this._height||ze&&ze!==this.devicePixelRatio||Ue.x||Ue.y)&&(Pe=!0,Ae.enable(Ae.SCISSOR_TEST),Ae.scissor(Ue.x*ze,Ue.y*ze,Ue.width*ze,Ue.height*ze)),Ae.clearColor(we[0],we[1],we[2],we[3]),Ae.clear(this.clearBit),Pe&&Ae.disable(Ae.SCISSOR_TEST)}if(Se||ye.update(!1),be=be||ye.getMainCamera(),!be){console.error("Can't find camera in the scene.");return}be.getScene()||be.update(!0),this._sceneRendering=ye,ye.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),ye.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0);var Ke=this.cullRenderList(ye.opaqueList,ye,be),Ne=this.cullRenderList(ye.transparentList,ye,be),Re=ye.material;ye.trigger("beforerender",this,ye,be),Be?(this.renderPreZ(Ke,ye,be),Ae.depthFunc(Ae.LEQUAL)):Ae.depthFunc(Ae.LESS);for(var $e=a(),nt=de.create(),ut=0;ut0){var Pe=ye[Ae-1],ze=Pe.joints?Pe.joints.length:0,Ke=we.joints.length?we.joints.length:0;if(Ke===ze&&we.material===Pe.material&&we.lightGroup===Pe.lightGroup){we.__program=Pe.__program;continue}}var Ne=this._programMgr.getProgram(we,Ue,be);this.validateProgram(Ne),we.__program=Ne}},cullRenderList:function(ye,be,Se){for(var Be=[],Ae=0;Ae0&&ye.min.array[2]<0&&(ye.max.array[2]=-1e-20),ye.applyProjection(be);var ze=ye.min.array,Ke=ye.max.array;if(Ke[0]<-1||ze[0]>1||Ke[1]<-1||ze[1]>1||Ke[2]<-1||ze[2]>1)return!0}return!1}}(),disposeScene:function(ye){this.disposeNode(ye,!0,!0),ye.dispose()},disposeNode:function(ye,be,Se){ye.getParent()&&ye.getParent().remove(ye),ye.traverse(function(Be){Be.geometry&&be&&Be.geometry.dispose(this),Be.dispose&&Be.dispose(this)},this)},disposeGeometry:function(ye){ye.dispose(this)},disposeTexture:function(ye){ye.dispose(this)},disposeFrameBuffer:function(ye){ye.dispose(this)},dispose:function(){},screenToNDC:function(ye,be,Se){Se||(Se=new ie.a),be=this._height-be;var Be=this.viewport,Ae=Se.array;return Ae[0]=(ye-Be.x)/Be.width,Ae[0]=Ae[0]*2-1,Ae[1]=(be-Be.y)/Be.height,Ae[1]=Ae[1]*2-1,Se}});ge.opaqueSortCompare=ge.prototype.opaqueSortCompare=function(ye,be){return ye.renderOrder===be.renderOrder?ye.__program===be.__program?ye.material===be.material?ye.geometry.__uid__-be.geometry.__uid__:ye.material.__uid__-be.material.__uid__:ye.__program&&be.__program?ye.__program.__uid__-be.__program.__uid__:0:ye.renderOrder-be.renderOrder},ge.transparentSortCompare=ge.prototype.transparentSortCompare=function(ye,be){return ye.renderOrder===be.renderOrder?ye.__depth===be.__depth?ye.__program===be.__program?ye.material===be.material?ye.geometry.__uid__-be.geometry.__uid__:ye.material.__uid__-be.material.__uid__:ye.__program&&be.__program?ye.__program.__uid__-be.__program.__uid__:0:ye.__depth-be.__depth:ye.renderOrder-be.renderOrder};var _e={IDENTITY:a(),WORLD:a(),VIEW:a(),PROJECTION:a(),WORLDVIEW:a(),VIEWPROJECTION:a(),WORLDVIEWPROJECTION:a(),WORLDINVERSE:a(),VIEWINVERSE:a(),PROJECTIONINVERSE:a(),WORLDVIEWINVERSE:a(),VIEWPROJECTIONINVERSE:a(),WORLDVIEWPROJECTIONINVERSE:a(),WORLDTRANSPOSE:a(),VIEWTRANSPOSE:a(),PROJECTIONTRANSPOSE:a(),WORLDVIEWTRANSPOSE:a(),VIEWPROJECTIONTRANSPOSE:a(),WORLDVIEWPROJECTIONTRANSPOSE:a(),WORLDINVERSETRANSPOSE:a(),VIEWINVERSETRANSPOSE:a(),PROJECTIONINVERSETRANSPOSE:a(),WORLDVIEWINVERSETRANSPOSE:a(),VIEWPROJECTIONINVERSETRANSPOSE:a(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:a()};ge.COLOR_BUFFER_BIT=ue.a.COLOR_BUFFER_BIT,ge.DEPTH_BUFFER_BIT=ue.a.DEPTH_BUFFER_BIT,ge.STENCIL_BUFFER_BIT=ue.a.STENCIL_BUFFER_BIT,Me.a=ge},function(Ye,Me,pe){"use strict";function Oe(ue,fe){this.action=ue,this.context=fe}var ve={trigger:function(ue){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(ue)){var fe=this.__handlers__[ue],he=fe.length,le=-1,ae=arguments;switch(ae.length){case 1:for(;++lede)){var a=Math.sqrt(de-se),x=ne-a,re=ne+a;return E||(E=new Oe.a),x<0?re<0?null:(fe.scaleAndAdd(E.array,b,z,re),E):(fe.scaleAndAdd(E.array,b,z,x),E)}}}(),intersectBoundingBox:function(ae,ie){var me=this.direction.array,E=this.origin.array,b=ae.min.array,z=ae.max.array,ne=1/me[0],oe=1/me[1],se=1/me[2],de,a,x,re,ce,ge;if(ne>=0?(de=(b[0]-E[0])*ne,a=(z[0]-E[0])*ne):(a=(b[0]-E[0])*ne,de=(z[0]-E[0])*ne),oe>=0?(x=(b[1]-E[1])*oe,re=(z[1]-E[1])*oe):(re=(b[1]-E[1])*oe,x=(z[1]-E[1])*oe),de>re||x>a||((x>de||de!==de)&&(de=x),(re=0?(ce=(b[2]-E[2])*se,ge=(z[2]-E[2])*se):(ge=(b[2]-E[2])*se,ce=(z[2]-E[2])*se),de>ge||ce>a)||((ce>de||de!==de)&&(de=ce),(ge=0?de:a;return ie||(ie=new Oe.a),fe.scaleAndAdd(ie.array,E,me,_e),ie},intersectTriangle:function(){var ae=fe.create(),ie=fe.create(),me=fe.create(),E=fe.create();return function(b,z,ne,oe,se,de){var a=this.direction.array,x=this.origin.array;b=b.array,z=z.array,ne=ne.array,fe.sub(ae,z,b),fe.sub(ie,ne,b),fe.cross(E,ie,a);var re=fe.dot(ae,E);if(oe){if(re>-he)return null}else if(re>-he&&re1)return null;fe.cross(E,ae,me);var ge=fe.dot(a,E)/re;if(ge<0||ge>1||ce+ge>1)return null;fe.cross(E,ae,ie);var _e=-fe.dot(me,E)/re;return _e<0?null:(se||(se=new Oe.a),de&&Oe.a.set(de,1-ce-ge,ce,ge),fe.scaleAndAdd(se.array,x,a,_e),se)}}(),applyTransform:function(ae){Oe.a.add(this.direction,this.direction,this.origin),Oe.a.transformMat4(this.origin,this.origin,ae),Oe.a.transformMat4(this.direction,this.direction,ae),Oe.a.sub(this.direction,this.direction,this.origin),Oe.a.normalize(this.direction,this.direction)},copy:function(ae){Oe.a.copy(this.origin,ae.origin),Oe.a.copy(this.direction,ae.direction)},clone:function(){var ae=new le;return ae.copy(this),ae}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(1),ve=pe.n(Oe),ue=ve.a.quat,fe=function(ae,ie,me,E){ae=ae||0,ie=ie||0,me=me||0,E=E===void 0?1:E,this.array=ue.fromValues(ae,ie,me,E),this._dirty=!0};fe.prototype={constructor:fe,add:function(ae){return ue.add(this.array,this.array,ae.array),this._dirty=!0,this},calculateW:function(){return ue.calculateW(this.array,this.array),this._dirty=!0,this},set:function(ae,ie,me,E){return this.array[0]=ae,this.array[1]=ie,this.array[2]=me,this.array[3]=E,this._dirty=!0,this},setArray:function(ae){return this.array[0]=ae[0],this.array[1]=ae[1],this.array[2]=ae[2],this.array[3]=ae[3],this._dirty=!0,this},clone:function(){return new fe(this.x,this.y,this.z,this.w)},conjugate:function(){return ue.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(ae){return ue.copy(this.array,ae.array),this._dirty=!0,this},dot:function(ae){return ue.dot(this.array,ae.array)},fromMat3:function(ae){return ue.fromMat3(this.array,ae.array),this._dirty=!0,this},fromMat4:function(){var ae=ve.a.mat3,ie=ae.create();return function(me){return ae.fromMat4(ie,me.array),ae.transpose(ie,ie),ue.fromMat3(this.array,ie),this._dirty=!0,this}}(),identity:function(){return ue.identity(this.array),this._dirty=!0,this},invert:function(){return ue.invert(this.array,this.array),this._dirty=!0,this},len:function(){return ue.len(this.array)},length:function(){return ue.length(this.array)},lerp:function(ae,ie,me){return ue.lerp(this.array,ae.array,ie.array,me),this._dirty=!0,this},mul:function(ae){return ue.mul(this.array,this.array,ae.array),this._dirty=!0,this},mulLeft:function(ae){return ue.multiply(this.array,ae.array,this.array),this._dirty=!0,this},multiply:function(ae){return ue.multiply(this.array,this.array,ae.array),this._dirty=!0,this},multiplyLeft:function(ae){return ue.multiply(this.array,ae.array,this.array),this._dirty=!0,this},normalize:function(){return ue.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(ae){return ue.rotateX(this.array,this.array,ae),this._dirty=!0,this},rotateY:function(ae){return ue.rotateY(this.array,this.array,ae),this._dirty=!0,this},rotateZ:function(ae){return ue.rotateZ(this.array,this.array,ae),this._dirty=!0,this},rotationTo:function(ae,ie){return ue.rotationTo(this.array,ae.array,ie.array),this._dirty=!0,this},setAxes:function(ae,ie,me){return ue.setAxes(this.array,ae.array,ie.array,me.array),this._dirty=!0,this},setAxisAngle:function(ae,ie){return ue.setAxisAngle(this.array,ae.array,ie),this._dirty=!0,this},slerp:function(ae,ie,me){return ue.slerp(this.array,ae.array,ie.array,me),this._dirty=!0,this},sqrLen:function(){return ue.sqrLen(this.array)},squaredLength:function(){return ue.squaredLength(this.array)},fromEuler:function(ae,ie){return fe.fromEuler(this,ae,ie)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var he=Object.defineProperty;if(he){var le=fe.prototype;he(le,"x",{get:function(){return this.array[0]},set:function(ae){this.array[0]=ae,this._dirty=!0}}),he(le,"y",{get:function(){return this.array[1]},set:function(ae){this.array[1]=ae,this._dirty=!0}}),he(le,"z",{get:function(){return this.array[2]},set:function(ae){this.array[2]=ae,this._dirty=!0}}),he(le,"w",{get:function(){return this.array[3]},set:function(ae){this.array[3]=ae,this._dirty=!0}})}fe.add=function(ae,ie,me){return ue.add(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.set=function(ae,ie,me,E,b){ue.set(ae.array,ie,me,E,b),ae._dirty=!0},fe.copy=function(ae,ie){return ue.copy(ae.array,ie.array),ae._dirty=!0,ae},fe.calculateW=function(ae,ie){return ue.calculateW(ae.array,ie.array),ae._dirty=!0,ae},fe.conjugate=function(ae,ie){return ue.conjugate(ae.array,ie.array),ae._dirty=!0,ae},fe.identity=function(ae){return ue.identity(ae.array),ae._dirty=!0,ae},fe.invert=function(ae,ie){return ue.invert(ae.array,ie.array),ae._dirty=!0,ae},fe.dot=function(ae,ie){return ue.dot(ae.array,ie.array)},fe.len=function(ae){return ue.length(ae.array)},fe.lerp=function(ae,ie,me,E){return ue.lerp(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.slerp=function(ae,ie,me,E){return ue.slerp(ae.array,ie.array,me.array,E),ae._dirty=!0,ae},fe.mul=function(ae,ie,me){return ue.multiply(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.multiply=fe.mul,fe.rotateX=function(ae,ie,me){return ue.rotateX(ae.array,ie.array,me),ae._dirty=!0,ae},fe.rotateY=function(ae,ie,me){return ue.rotateY(ae.array,ie.array,me),ae._dirty=!0,ae},fe.rotateZ=function(ae,ie,me){return ue.rotateZ(ae.array,ie.array,me),ae._dirty=!0,ae},fe.setAxisAngle=function(ae,ie,me){return ue.setAxisAngle(ae.array,ie.array,me),ae._dirty=!0,ae},fe.normalize=function(ae,ie){return ue.normalize(ae.array,ie.array),ae._dirty=!0,ae},fe.sqrLen=function(ae){return ue.sqrLen(ae.array)},fe.squaredLength=fe.sqrLen,fe.fromMat3=function(ae,ie){return ue.fromMat3(ae.array,ie.array),ae._dirty=!0,ae},fe.setAxes=function(ae,ie,me,E){return ue.setAxes(ae.array,ie.array,me.array,E.array),ae._dirty=!0,ae},fe.rotationTo=function(ae,ie,me){return ue.rotationTo(ae.array,ie.array,me.array),ae._dirty=!0,ae},fe.fromEuler=function(ae,ie,a){ae._dirty=!0,ie=ie.array;var E=ae.array,b=Math.cos(ie[0]/2),z=Math.cos(ie[1]/2),ne=Math.cos(ie[2]/2),oe=Math.sin(ie[0]/2),se=Math.sin(ie[1]/2),de=Math.sin(ie[2]/2),a=(a||"XYZ").toUpperCase();switch(a){case"XYZ":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"YXZ":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne+oe*se*de;break;case"ZXY":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"ZYX":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne+oe*se*de;break;case"YZX":E[0]=oe*z*ne+b*se*de,E[1]=b*se*ne+oe*z*de,E[2]=b*z*de-oe*se*ne,E[3]=b*z*ne-oe*se*de;break;case"XZY":E[0]=oe*z*ne-b*se*de,E[1]=b*se*ne-oe*z*de,E[2]=b*z*de+oe*se*ne,E[3]=b*z*ne+oe*se*de;break}},Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=pe(9),ue=pe(52),fe=pe(49),he=pe(1),le=pe.n(he),ae=le.a.vec3,ie=le.a.vec4,me=Oe.a.extend(function(){return{projectionMatrix:new ve.a,invProjectionMatrix:new ve.a,viewMatrix:new ve.a,frustum:new ue.a}},function(){this.update(!0)},{update:function(E){Oe.a.prototype.update.call(this,E),ve.a.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),ve.a.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(E){ve.a.copy(this.viewMatrix,E),ve.a.invert(this.worldTransform,E),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(E){ve.a.copy(this.projectionMatrix,E),ve.a.invert(this.invProjectionMatrix,E),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var E=ie.create();return function(b,z){var ne=z!==void 0?z:new fe.a,oe=b.array[0],se=b.array[1];return ie.set(E,oe,se,-1,1),ie.transformMat4(E,E,this.invProjectionMatrix.array),ie.transformMat4(E,E,this.worldTransform.array),ae.scale(ne.origin.array,E,1/E[3]),ie.set(E,oe,se,1,1),ie.transformMat4(E,E,this.invProjectionMatrix.array),ie.transformMat4(E,E,this.worldTransform.array),ae.scale(E,E,1/E[3]),ae.sub(ne.direction.array,E,ne.origin.array),ae.normalize(ne.direction.array,ne.direction.array),ne.direction._dirty=!0,ne.origin._dirty=!0,ne}}()});Me.a=me},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(15),ue=pe(67),fe=pe(1),he=pe.n(fe),le=he.a.vec3,ae=le.set,ie=le.copy,me=le.transformMat4,E=Math.min,b=Math.max,z=function(){this.planes=[];for(var ne=0;ne<6;ne++)this.planes.push(new ue.a);this.boundingBox=new ve.a,this.vertices=[];for(var ne=0;ne<8;ne++)this.vertices[ne]=le.fromValues(0,0,0)};z.prototype={setFromProjection:function(ne){var oe=this.planes,se=ne.array,de=se[0],a=se[1],x=se[2],re=se[3],ce=se[4],ge=se[5],_e=se[6],ye=se[7],be=se[8],Se=se[9],Be=se[10],Ae=se[11],we=se[12],Ue=se[13],Pe=se[14],ze=se[15];ae(oe[0].normal.array,re-de,ye-ce,Ae-be),oe[0].distance=-(ze-we),oe[0].normalize(),ae(oe[1].normal.array,re+de,ye+ce,Ae+be),oe[1].distance=-(ze+we),oe[1].normalize(),ae(oe[2].normal.array,re+a,ye+ge,Ae+Se),oe[2].distance=-(ze+Ue),oe[2].normalize(),ae(oe[3].normal.array,re-a,ye-ge,Ae-Se),oe[3].distance=-(ze-Ue),oe[3].normalize(),ae(oe[4].normal.array,re-x,ye-_e,Ae-Be),oe[4].distance=-(ze-Pe),oe[4].normalize(),ae(oe[5].normal.array,re+x,ye+_e,Ae+Be),oe[5].distance=-(ze+Pe),oe[5].normalize();var Ke=this.boundingBox;if(ze===0){var Ne=ge/de,Re=-Pe/(Be-1),$e=-Pe/(Be+1),nt=-$e/ge,ut=-Re/ge;Ke.min.set(-nt*Ne,-nt,$e),Ke.max.set(nt*Ne,nt,Re);var Qe=this.vertices;ae(Qe[0],-nt*Ne,-nt,$e),ae(Qe[1],-nt*Ne,nt,$e),ae(Qe[2],nt*Ne,-nt,$e),ae(Qe[3],nt*Ne,nt,$e),ae(Qe[4],-ut*Ne,-ut,Re),ae(Qe[5],-ut*Ne,ut,Re),ae(Qe[6],ut*Ne,-ut,Re),ae(Qe[7],ut*Ne,ut,Re)}else{var rt=(-1-we)/de,pt=(1-we)/de,At=(1-Ue)/ge,gt=(-1-Ue)/ge,Ft=(-1-Pe)/Be,Ct=(1-Pe)/Be;Ke.min.set(Math.min(rt,pt),Math.min(gt,At),Math.min(Ct,Ft)),Ke.max.set(Math.max(pt,rt),Math.max(At,gt),Math.max(Ft,Ct));var Yt=Ke.min.array,zt=Ke.max.array,Qe=this.vertices;ae(Qe[0],Yt[0],Yt[1],Yt[2]),ae(Qe[1],Yt[0],zt[1],Yt[2]),ae(Qe[2],zt[0],Yt[1],Yt[2]),ae(Qe[3],zt[0],zt[1],Yt[2]),ae(Qe[4],Yt[0],Yt[1],zt[2]),ae(Qe[5],Yt[0],zt[1],zt[2]),ae(Qe[6],zt[0],Yt[1],zt[2]),ae(Qe[7],zt[0],zt[1],zt[2])}},getTransformedBoundingBox:function(){var ne=le.create();return function(oe,se){var de=this.vertices,a=se.array,x=oe.min,re=oe.max,ce=x.array,ge=re.array,_e=de[0];me(ne,_e,a),ie(ce,ne),ie(ge,ne);for(var ye=1;ye<8;ye++)_e=de[ye],me(ne,_e,a),ce[0]=E(ne[0],ce[0]),ce[1]=E(ne[1],ce[1]),ce[2]=E(ne[2],ce[2]),ge[0]=b(ne[0],ge[0]),ge[1]=b(ne[1],ge[1]),ge[2]=b(ne[2],ge[2]);return x._dirty=!0,re._dirty=!0,oe}}()},Me.a=z},function(Ye,Me){var pe=function(){this.head=null,this.tail=null,this._len=0},Oe=pe.prototype;Oe.insert=function(le){var ae=new ve(le);return this.insertEntry(ae),ae},Oe.insertEntry=function(le){this.head?(this.tail.next=le,le.prev=this.tail,le.next=null,this.tail=le):this.head=this.tail=le,this._len++},Oe.remove=function(le){var ae=le.prev,ie=le.next;ae?ae.next=ie:this.head=ie,ie?ie.prev=ae:this.tail=ae,le.next=le.prev=null,this._len--},Oe.len=function(){return this._len},Oe.clear=function(){this.head=this.tail=null,this._len=0};var ve=function(le){this.value=le,this.next,this.prev},ue=function(le){this._list=new pe,this._map={},this._maxSize=le||10,this._lastRemovedEntry=null},fe=ue.prototype;fe.put=function(le,ae){var ie=this._list,me=this._map,E=null;if(me[le]==null){var b=ie.len(),z=this._lastRemovedEntry;if(b>=this._maxSize&&b>0){var ne=ie.head;ie.remove(ne),delete me[ne.key],E=ne.value,this._lastRemovedEntry=ne}z?z.value=ae:z=new ve(ae),z.key=le,ie.insertEntry(z),me[le]=z}return E},fe.get=function(le){var ae=this._map[le],ie=this._list;if(ae!=null)return ae!==ie.tail&&(ie.remove(ae),ie.insertEntry(ae)),ae.value},fe.clear=function(){this._list.clear(),this._map={}};var he=ue;Ye.exports=he},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(25),ue=pe(102),fe=pe(55),he=pe(56),le=pe(29),ae=pe(104),ie=pe(105),me={loadTexture:function(E,b,z,ne){var oe;if(typeof b=="function"?(z=b,ne=z,b={}):b=b||{},typeof E=="string"){if(E.match(/.hdr$/)||b.fileType==="hdr")return oe=new Oe.a({width:0,height:0,sRGB:!1}),me._fetchTexture(E,function(se){ie.a.parseRGBE(se,oe,b.exposure),oe.dirty(),z&&z(oe)},ne),oe;E.match(/.dds$/)||b.fileType==="dds"?(oe=new Oe.a({width:0,height:0}),me._fetchTexture(E,function(se){ae.a.parse(se,oe),oe.dirty(),z&&z(oe)},ne)):(oe=new Oe.a,oe.load(E),oe.success(z),oe.error(ne))}else if(typeof E=="object"&&typeof E.px!="undefined"){var oe=new ve.a;oe.load(E),oe.success(z),oe.error(ne)}return oe},loadPanorama:function(E,b,z,ne,oe,se){var de=this;typeof ne=="function"?(oe=ne,se=oe,ne={}):ne=ne||{},me.loadTexture(b,ne,function(a){a.flipY=ne.flipY||!1,de.panoramaToCubeMap(E,a,z,ne),a.dispose(E),oe&&oe(z)},se)},panoramaToCubeMap:function(E,b,z,ne){var oe=new fe.a,se=new he.a({scene:new le.a});return se.material.set("diffuseMap",b),ne=ne||{},ne.encodeRGBM&&se.material.define("fragment","RGBM_ENCODE"),z.sRGB=b.sRGB,oe.texture=z,oe.render(E,se.scene),oe.texture=null,oe.dispose(E),z},heightToNormal:function(E,b){var z=document.createElement("canvas"),ne=z.width=E.width,oe=z.height=E.height,se=z.getContext("2d");se.drawImage(E,0,0,ne,oe),b=b||!1;for(var de=se.getImageData(0,0,ne,oe),a=se.createImageData(ne,oe),x=0;x20)return console.warn("Given image is not a height map"),E}var ye,be,Se,Be;x%(ne*4)===0?(ye=de.data[x],Se=de.data[x+4]):x%(ne*4)===(ne-1)*4?(ye=de.data[x-4],Se=de.data[x]):(ye=de.data[x-4],Se=de.data[x+4]),xne*(oe-1)*4?(be=de.data[x-ne*4],Be=de.data[x]):(be=de.data[x-ne*4],Be=de.data[x+ne*4]),a.data[x]=ye-Se+127,a.data[x+1]=be-Be+127,a.data[x+2]=255,a.data[x+3]=255}return se.putImageData(a,0,0),z},isHeightImage:function(E,b,z){if(!E||!E.width||!E.height)return!1;var ne=document.createElement("canvas"),oe=ne.getContext("2d"),se=b||32;z=z||20,ne.width=ne.height=se,oe.drawImage(E,0,0,se,se);for(var de=oe.getImageData(0,0,se,se),a=0;az)return!1}return!0},_fetchTexture:function(E,b,z){ue.a.get({url:E,responseType:"arraybuffer",onload:b,onerror:z})},createChessboard:function(E,b,z,ne){E=E||512,b=b||64,z=z||"black",ne=ne||"white";var oe=Math.ceil(E/b),se=document.createElement("canvas");se.width=E,se.height=E;var de=se.getContext("2d");de.fillStyle=ne,de.fillRect(0,0,E,E),de.fillStyle=z;for(var a=0;a0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),ae.renderPass([this],ie)}});Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(2),ve=pe(143),ue=pe(144);Oe.a.Shader.import(ue.a),Me.a=Oe.a.Mesh.extend(function(){var fe=new ve.a({dynamic:!0}),he=new Oe.a.Material({shader:Oe.a.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:fe,material:he,culling:!1,castShadow:!1,ignorePicking:!0}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(186),he=pe(22),le=pe(3),ae=pe(1),ie=pe.n(ae),me=pe(60),E=pe(61),b=pe(40),z=ie.a.vec3;ue.a.Shader.import(b.a);function ne(oe){this.rootNode=new ue.a.Node,this._triangulationResults={},this._shadersMap=ue.a.COMMON_SHADERS.reduce(function(de,a){return de[a]=ue.a.createShader("ecgl."+a),de},{}),this._linesShader=ue.a.createShader("ecgl.meshLines3D");var se={};ue.a.COMMON_SHADERS.forEach(function(de){se[de]=new ue.a.Material({shader:ue.a.createShader("ecgl."+de)})}),this._groundMaterials=se,this._groundMesh=new ue.a.Mesh({geometry:new ue.a.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new E.a(512,512,oe),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=oe}ne.prototype={constructor:ne,extrudeY:!0,update:function(oe,se,de,a,x){var re=oe.getData();a==null&&(a=0),x==null&&(x=re.count()),this._startIndex=a,this._endIndex=x-1,this._triangulation(oe,a,x);var ce=this._getShader(oe.get("shading"));this._prepareMesh(oe,ce,de,a,x),this.rootNode.updateWorldTransform(),this._updateRegionMesh(oe,de,a,x);var ge=oe.coordinateSystem;ge.type==="geo3D"&&this._updateGroundPlane(oe,ge,de);var _e=this;this._labelsBuilder.updateData(re,a,x),this._labelsBuilder.getLabelPosition=function(ye,be,Se){var Be=re.getName(ye),Ae,we=Se;if(ge.type==="geo3D"){var Ue=ge.getRegion(Be);return Ae=Ue.center,ge.dataToPoint([Ae[0],Ae[1],we])}else var Pe=_e._triangulationResults[ye-_e._startIndex],Ae=_e.extrudeY?[(Pe.max[0]+Pe.min[0])/2,Pe.max[1]+we,(Pe.max[2]+Pe.min[2])/2]:[(Pe.max[0]+Pe.min[0])/2,(Pe.max[1]+Pe.min[1])/2,Pe.max[2]+we]},this._data=re,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(oe),this._lastHoverDataIndex=0},_initMeshes:function(){this.rootNode.removeAll();var oe=this;function se(){var x=new ue.a.Mesh({name:"Polygon",material:new ue.a.Material({shader:oe._shadersMap.lambert}),culling:!1,geometry:new ue.a.Geometry({sortTriangles:!0,dynamic:!0}),ignorePicking:!0,renderNormal:!0});return ve.a.util.extend(x.geometry,me.a),x}var de=se(),a=new ue.a.Mesh({material:new ue.a.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new he.a({useNativeLine:!1})});this.rootNode.add(de),this.rootNode.add(a),de.material.define("both","VERTEX_COLOR"),de.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=de,this._linesMesh=a,this.rootNode.add(this._groundMesh)},_getShader:function(oe){var se=this._shadersMap[oe];return se||(console.warn("Unkown shading "+oe),se=this._shadersMap.lambert),se.__shading=oe,se},_prepareMesh:function(oe,se,de,a,x){for(var re=0,ce=0,ge=0,_e=0,ye=a;ye65535?new Uint32Array(ce*3):new Uint16Array(ce*3),Be.material.shader!==se&&Be.material.attachShader(se,!0),ue.a.setMaterialFromModel(se.__shading,Be.material,oe,de),ge>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(ge),this._linesMesh.geometry.setTriangleCount(_e)),this._dataIndexOfVertex=new Uint32Array(re),this._vertexRangeOfDataIndex=new Uint32Array((x-a)*2)},_updateRegionMesh:function(oe,se,de,a){for(var x=oe.getData(),re=0,ce=0,ge=!1,nt=this._polygonMesh,_e=this._linesMesh,ye=de;ye0;$e&&(Re*=se.getDevicePixelRatio(),this._updateLinesGeometry(_e.geometry,oe,ye,ze,Re,oe.coordinateSystem.transform)),_e.invisible=!$e,_e.material.set({color:Ue})}var nt=this._polygonMesh;nt.material.transparent=ge,nt.material.depthMask=!ge,nt.geometry.updateBoundingBox(),nt.material.get("normalMap")&&nt.geometry.generateTangents(),nt.seriesIndex=oe.seriesIndex,nt.on("mousemove",this._onmousemove,this),nt.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(oe){var se=oe.getModel("debug.wireframe");if(se.get("show")){var de=ue.a.parseColor(se.get("lineStyle.color")||"rgba(0,0,0,0.5)"),a=le.a.firstNotNull(se.get("lineStyle.width"),1),x=this._polygonMesh;x.geometry.generateBarycentric(),x.material.define("both","WIREFRAME_TRIANGLE"),x.material.set("wireframeLineColor",de),x.material.set("wireframeLineWidth",a)}},_onmousemove:function(oe){var se=this._dataIndexOfVertex[oe.triangle[0]];se==null&&(se=-1),se!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(se)),this._lastHoverDataIndex=se,this._polygonMesh.dataIndex=se},_onmouseover:function(oe){if(oe.target){var se=oe.target.eventData?this._data.indexOfName(oe.target.eventData.name):oe.target.dataIndex;se!=null&&(this.highlight(se),this._labelsBuilder.updateLabels([se]))}},_onmouseout:function(oe){oe.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1)},_updateGroundPlane:function(oe,se,de){var a=oe.getModel("groundPlane",oe);if(this._groundMesh.invisible=!a.get("show",!0),!this._groundMesh.invisible){var x=oe.get("shading"),re=this._groundMaterials[x];re||(console.warn("Unkown shading "+x),re=this._groundMaterials.lambert),ue.a.setMaterialFromModel(x,re,a,de),re.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=re,this._groundMesh.material.set("color",ue.a.parseColor(a.get("color"))),this._groundMesh.scale.set(se.size[0],se.size[2],1)}},_triangulation:function(oe,se,de){this._triangulationResults=[];for(var a=[1/0,1/0,1/0],x=[-1/0,-1/0,-1/0],re=oe.coordinateSystem,ce=se;ce1?a:0,Yt[at][Pe]=At.points[ct+2],_e.set(x+at,Yt[at]),ge?(Le[0]=(At.points[ct]*ze[0]-Ke[0])/Re,Le[1]=(At.points[ct+2]*ze[Pe]-Ke[Pe])/Re):(Le[0]=(ot?Ze:Ze+tt)/Re,Le[1]=(Yt[at][Ue]*ze[Ue]-Ke[Ue])/Re),be.set(x+at,Le)}z.sub(zt,Yt[1],Yt[0]),z.sub(Xe,Yt[3],Yt[0]),z.cross(Fe,zt,Xe),z.normalize(Fe,Fe);for(var at=0;at<4;at++)ye.set(x+at,Fe),Ae&&Se.set(x+at,ce);for(var at=0;at<6;at++)we[re*3+at]=Ct[at]+x;x+=4,re+=2,Ze+=tt}}return se.dirty(),{vertexOffset:x,triangleOffset:re}},_getRegionLinesInfo:function(oe,se,de){var a=0,x=0,re=se.getRegionModel(oe),ce=re.getModel("itemStyle"),ge=ce.get("borderWidth");if(ge>0){var _e=se.getRegionPolygonCoords(oe);_e.forEach(function(ye){var be=ye.exterior,Se=ye.interiors;a+=de.getPolylineVertexCount(be),x+=de.getPolylineTriangleCount(be);for(var Be=0;Bethis._endIndex)){se-=this._startIndex;for(var a=this._vertexRangeOfDataIndex[se*2];a=2e4},doSortTriangles:function(ie,me){var E=this.indices;if(me===0){var b=this.attributes.position,ie=ie.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new E.constructor(E.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var z=0,ne,oe=0;oe0,b={},z=0;z2?(Ae=this._updateSymbolSprite(ne,Se,ye,be),ce.enableTexture("sprite")):ce.disableTexture("sprite"),_e.position.init(a-de);var we=[];if(Be){ce.undefine("VERTEX_SIZE"),ce.undefine("VERTEX_COLOR");var Ue=re.getVisual("color"),Pe=re.getVisual("opacity");ue.a.parseColor(Ue,we),we[3]*=Pe,ce.set({color:we,u_Size:ye.maxSize*this._sizeScale})}else ce.set({color:[1,1,1,1]}),ce.define("VERTEX_SIZE"),ce.define("VERTEX_COLOR"),_e.size.init(a-de),_e.color.init(a-de),this._originalOpacity=new Float32Array(a-de);for(var ze=re.getLayout("points"),Ke=_e.position.value,Ne=!1,Re=0;Re1?(a[0]=se.maxSize,a[1]=se.maxSize/se.aspect):(a[1]=se.maxSize,a[0]=se.maxSize*se.aspect),a[0]=a[0]||1,a[1]=a[1]||1,(this._symbolType!==se.type||!b(this._symbolSize,a)||this._lineWidth!==oe.lineWidth)&&(fe.a.createSymbolSprite(se.type,a,{fill:"#fff",lineWidth:oe.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(a[0]/2,10)},this._spriteImageCanvas),fe.a.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),me,this._mesh.material.get("sprite").image),this._symbolType=se.type,this._symbolSize=a,this._lineWidth=oe.lineWidth),this._spriteImageCanvas.width/se.maxSize*de},_updateMaterial:function(ne,oe){var se=ne.get("blendMode")==="lighter"?ue.a.additiveBlend:null,de=this._mesh.material;de.blend=se,de.set("lineWidth",oe.lineWidth/me);var a=ue.a.parseColor(oe.stroke);de.set("strokeColor",a),de.transparent=!0,de.depthMask=!1,de.depthTest=!this.is2D,de.sortVertices=!this.is2D},_updateLabelBuilder:function(ne,re,se){var de=ne.getData(),a=this._mesh.geometry,x=a.attributes.position.value,re=this._startDataIndex,ce=this._mesh.sizeScale;this._labelsBuilder.updateData(de,re,se),this._labelsBuilder.getLabelPosition=function(ge,_e,ye){var be=(ge-re)*3;return[x[be],x[be+1],x[be+2]]},this._labelsBuilder.getLabelDistance=function(ge,_e,ye){var be=a.attributes.size.get(ge-re)/ce;return be/2+ye},this._labelsBuilder.updateLabels()},_updateAnimation:function(ne){ue.a.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,ne)},_updateHandler:function(ne,oe,se){var de=ne.getData(),a=this._mesh,x=this,re=-1,ce=ne.coordinateSystem&&ne.coordinateSystem.type==="cartesian3D",ge;ce&&(ge=ne.coordinateSystem.model),a.seriesIndex=ne.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(_e){var ye=_e.vertexIndex+x._startDataIndex;ye!==re&&(this.highlightOnMouseover&&(this.downplay(de,re),this.highlight(de,ye),this._labelsBuilder.updateLabels([ye])),ce&&se.dispatchAction({type:"grid3DShowAxisPointer",value:[de.get(ne.coordDimToDataDim("x")[0],ye),de.get(ne.coordDimToDataDim("y")[0],ye),de.get(ne.coordDimToDataDim("z")[0],ye)],grid3DIndex:ge.componentIndex})),a.dataIndex=ye,re=ye},this),a.on("mouseout",function(_e){var ye=_e.vertexIndex+x._startDataIndex;this.highlightOnMouseover&&(this.downplay(de,ye),this._labelsBuilder.updateLabels()),re=-1,a.dataIndex=-1,ce&&se.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:ge.componentIndex})},this)},updateLayout:function(ne,oe,se){var de=ne.getData();if(this._mesh){var a=this._mesh.geometry.attributes.position.value,x=de.getLayout("points");if(this.is2D)for(var re=0;rethis._endDataIndex||oethis._endDataIndex||oe.05&&(re=!0),be!==ce&&(ge=!0),ce=be,x=Se}return re&&console.warn("Different symbol width / height ratio will be ignored."),ge&&console.warn("Different symbol type will be ignored."),{maxSize:_e,type:ce,aspect:x}}},Me.a=z},function(Ye,Me,pe){"use strict";Me.a=`@export clay.prez.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; @import clay.chunk.skinning_header void main() { vec3 skinnedPosition = position; #ifdef SKINNING @import clay.chunk.skin_matrix skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz; #endif gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0); } @end @export clay.prez.fragment void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0); } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(28),ve=pe(11),ue=0,fe=null,he=!0,le,ae=function(){this.triangleCount=0,this.vertexCount=0,this.drawCallCount=0};function ie(E,b,z){this.availableAttributes=E,this.availableAttributeSymbols=b,this.indicesBuffer=z,this.vao=null}var me=Oe.a.extend({material:null,geometry:null,mode:ve.a.TRIANGLES,_drawCache:null,_renderInfo:null},function(){this._drawCache={},this._renderInfo=new ae},{__program:null,lightGroup:0,renderOrder:0,lineWidth:1,culling:!0,cullFace:ve.a.BACK,frontFace:ve.a.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(E){},afterRender:function(E,b){},getBoundingBox:function(E,b){return b=Oe.a.prototype.getBoundingBox.call(this,E,b),this.geometry&&this.geometry.boundingBox&&b.union(this.geometry.boundingBox),b},render:function(E,b,z){var ne=E.gl;b=b||this.material;var oe=b.shader,se=this.geometry,de=this.mode,a=se.vertexCount,x=se.isUseIndices(),re=E.getGLExtension("OES_element_index_uint"),ce=re&&a>65535,ge=ce?ne.UNSIGNED_INT:ne.UNSIGNED_SHORT,_e=E.getGLExtension("OES_vertex_array_object"),ye=!se.dynamic,be=this._renderInfo;be.vertexCount=a,be.triangleCount=0,be.drawCallCount=0;var Se=!1;if(le=E.__uid__+"-"+se.__uid__+"-"+z.__uid__,(le!==ue||_e&&ye||se._cache.isDirty("any"))&&(Se=!0),ue=le,!Se)he?(ne.drawElements(de,fe.count,ge,0),be.triangleCount=fe.count/3):ne.drawArrays(de,0,a),be.drawCallCount=1;else{var Be=this._drawCache[le];if(!Be){var Ae=se.getBufferChunks(E);if(!Ae)return;Be=[];for(var we=0;we>1,ve|=ve>>2,ve|=ve>>4,ve|=ve>>8,ve|=ve>>16,ve++,ve},Oe.nearestPowerOfTwo=function(ve){return Math.pow(2,Math.round(Math.log(ve)/Math.LN2))},Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(4),ve=pe(1),ue=pe.n(ve),fe=ue.a.vec3,he=ue.a.mat4,le=ue.a.vec4,ae=function(ie,me){this.normal=ie||new Oe.a(0,1,0),this.distance=me||0};ae.prototype={constructor:ae,distanceToPoint:function(ie){return fe.dot(ie.array,this.normal.array)-this.distance},projectPoint:function(ie,me){me||(me=new Oe.a);var E=this.distanceToPoint(ie);return fe.scaleAndAdd(me.array,ie.array,this.normal.array,-E),me._dirty=!0,me},normalize:function(){var ie=1/fe.len(this.normal.array);fe.scale(this.normal.array,ie),this.distance*=ie},intersectFrustum:function(ie){for(var me=ie.vertices,E=this.normal.array,b=fe.dot(me[0].array,E)>this.distance,z=1;z<8;z++)if(fe.dot(me[z].array,E)>this.distance!=b)return!0},intersectLine:function(){var ie=fe.create();return function(me,E,b){var z=this.distanceToPoint(me),ne=this.distanceToPoint(E);if(z>0&&ne>0||z<0&&ne<0)return null;var oe=this.normal.array,se=this.distance,de=me.array;fe.sub(ie,E.array,me.array),fe.normalize(ie,ie);var a=fe.dot(oe,ie);if(a===0)return null;b||(b=new Oe.a);var x=(fe.dot(oe,de)-se)/a;return fe.scaleAndAdd(b.array,de,ie,-x),b._dirty=!0,b}}(),applyTransform:function(){var ie=he.create(),me=le.create(),E=le.create();return E[3]=1,function(b){b=b.array,fe.scale(E,this.normal.array,this.distance),le.transformMat4(E,E,b),this.distance=fe.dot(E,this.normal.array),he.invert(ie,b),he.transpose(ie,ie),me[3]=0,fe.copy(me,this.normal.array),le.transformMat4(me,me,ie),fe.copy(this.normal.array,me)}}(),copy:function(ie){fe.copy(this.normal.array,ie.normal.array),this.normal._dirty=!0,this.distance=ie.distance},clone:function(){var ie=new ae;return ie.copy(this),ie}},Me.a=ae},function(Ye,Me,pe){"use strict";var Oe=pe(13),ve=pe(15),ue=Oe.a.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:Math.PI*2,thetaStart:0,thetaLength:Math.PI,radius:1},function(){this.build()},{build:function(){var fe=this.heightSegments,he=this.widthSegments,le=this.attributes.position,ae=this.attributes.texcoord0,ie=this.attributes.normal,me=(he+1)*(fe+1);le.init(me),ae.init(me),ie.init(me);var E=me>65535?Uint32Array:Uint16Array,b=this.indices=new E(he*fe*6),z,ne,oe,se,de,a,x,ye=this.radius,re=this.phiStart,ce=this.phiLength,ge=this.thetaStart,_e=this.thetaLength,ye=this.radius,be=[],Se=[],Be=0,Ae=1/ye;for(x=0;x<=fe;x++)for(a=0;a<=he;a++)se=a/he,de=x/fe,z=-ye*Math.cos(re+se*ce)*Math.sin(ge+de*_e),ne=ye*Math.cos(ge+de*_e),oe=ye*Math.sin(re+se*ce)*Math.sin(ge+de*_e),be[0]=z,be[1]=ne,be[2]=oe,Se[0]=se,Se[1]=de,le.set(Be,be),ae.set(Be,Se),be[0]*=Ae,be[1]*=Ae,be[2]*=Ae,ie.set(Be,be),Be++;var we,Ue,Pe,ze,Ke=he+1,Ne=0;for(x=0;xz&&(E=this._x=0,b+=this._rowHeight+oe,this._y=b,this._rowHeight=0),this._x+=ae+oe,this._rowHeight=Math.max(this._rowHeight,ie),b+ie+oe>ne)return null;le.position[0]+=this.offsetX*this.dpr+E,le.position[1]+=this.offsetY*this.dpr+b,this._zr.add(le);var se=[this.offsetX/this.width,this.offsetY/this.height],de=[[E/z+se[0],b/ne+se[1]],[(E+ae)/z+se[0],(b+ie)/ne+se[1]]];return de},_fitElement:function(le,ae,ie){var me=le.getBoundingRect(),E=ae/me.width,b=ie/me.height;le.position=[-me.x*E,-me.y*b],le.scale=[E,b],le.update()}};function he(le){le=le||{},le.width=le.width||512,le.height=le.height||512,le.devicePixelRatio=le.devicePixelRatio||1,le.gap=le.gap==null?2:le.gap;var ae=document.createElement("canvas");ae.width=le.width*le.devicePixelRatio,ae.height=le.height*le.devicePixelRatio,this._canvas=ae,this._texture=new ue.a({image:ae,flipY:!1});var ie=this;this._zr=ve.a.zrender.init(ae);var me=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){me.call(this),ie._texture.dirty(),ie.onupdate&&ie.onupdate()},this._dpr=le.devicePixelRatio,this._coords={},this.onupdate=le.onupdate,this._gap=le.gap,this._textureAtlasNodes=[new fe(this._zr,0,0,le.width,le.height,this._gap,this._dpr)],this._nodeWidth=le.width,this._nodeHeight=le.height,this._currentNodeIdx=0}he.prototype={clear:function(){for(var le=0;le=le){console.error("Too much labels. Some will be ignored.");return}var b=(me+this._nodeWidth)*this._dpr,z=(E+this._nodeHeight)*this._dpr;try{this._zr.resize({width:b,height:z})}catch(oe){this._canvas.width=b,this._canvas.height=z}var ne=new fe(this._zr,me,E,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(ne),ne},add:function(le,ae,ie){if(this._coords[le.id])return console.warn("Element already been add"),this._coords[le.id];var me=this._getCurrentNode().add(le,ae,ie);if(!me){var E=this._expand();if(!E)return;me=E.add(le,ae,ie)}return this._coords[le.id]=me,me},getCoordsScale:function(){var le=this._dpr;return[this._nodeWidth/this._canvas.width*le,this._nodeHeight/this._canvas.height*le]},getCoords:function(le){return this._coords[le]}},Me.a=he},function(Ye,Me,pe){"use strict";Me.a=Oe;function Oe(ve,ue,fe){var he,le=ve.scale;return le.type==="ordinal"&&(typeof fe=="function"?(he=le.getTicks()[ue],!fe(he,le.getLabel(he))):ue%(fe+1))}},function(Ye,Me,pe){var Oe=pe(76),ve=pe(77),ue=Oe.applyTransform,fe=Math.min,he=Math.max;function le(ie,me,E,b){E<0&&(ie=ie+E,E=-E),b<0&&(me=me+b,b=-b),this.x=ie,this.y=me,this.width=E,this.height=b}le.prototype={constructor:le,union:function(ie){var me=fe(ie.x,this.x),E=fe(ie.y,this.y);this.width=he(ie.x+ie.width,this.x+this.width)-me,this.height=he(ie.y+ie.height,this.y+this.height)-E,this.x=me,this.y=E},applyTransform:function(){var ie=[],me=[],E=[],b=[];return function(z){if(z){ie[0]=E[0]=this.x,ie[1]=b[1]=this.y,me[0]=b[0]=this.x+this.width,me[1]=E[1]=this.y+this.height,ue(ie,ie,z),ue(me,me,z),ue(E,E,z),ue(b,b,z),this.x=fe(ie[0],me[0],E[0],b[0]),this.y=fe(ie[1],me[1],E[1],b[1]);var ne=he(ie[0],me[0],E[0],b[0]),oe=he(ie[1],me[1],E[1],b[1]);this.width=ne-this.x,this.height=oe-this.y}}}(),calculateTransform:function(ie){var me=this,E=ie.width/me.width,b=ie.height/me.height,z=ve.create();return ve.translate(z,z,[-me.x,-me.y]),ve.scale(z,z,[E,b]),ve.translate(z,z,[ie.x,ie.y]),z},intersect:function(ie){if(!ie)return!1;ie instanceof le||(ie=le.create(ie));var me=this,E=me.x,b=me.x+me.width,z=me.y,ne=me.y+me.height,oe=ie.x,se=ie.x+ie.width,de=ie.y,a=ie.y+ie.height;return!(b=E.x&&ie<=E.x+E.width&&me>=E.y&&me<=E.y+E.height},clone:function(){return new le(this.x,this.y,this.width,this.height)},copy:function(ie){this.x=ie.x,this.y=ie.y,this.width=ie.width,this.height=ie.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},le.create=function(ie){return new le(ie.x,ie.y,ie.width,ie.height)};var ae=le;Ye.exports=ae},function(Ye,Me){var pe=typeof Float32Array=="undefined"?Array:Float32Array;function Oe(Be,Ae){var we=new pe(2);return Be==null&&(Be=0),Ae==null&&(Ae=0),we[0]=Be,we[1]=Ae,we}function ve(Be,Ae){return Be[0]=Ae[0],Be[1]=Ae[1],Be}function ue(Be){var Ae=new pe(2);return Ae[0]=Be[0],Ae[1]=Be[1],Ae}function fe(Be,Ae,we){return Be[0]=Ae,Be[1]=we,Be}function he(Be,Ae,we){return Be[0]=Ae[0]+we[0],Be[1]=Ae[1]+we[1],Be}function le(Be,Ae,we,Ue){return Be[0]=Ae[0]+we[0]*Ue,Be[1]=Ae[1]+we[1]*Ue,Be}function ae(Be,Ae,we){return Be[0]=Ae[0]-we[0],Be[1]=Ae[1]-we[1],Be}function ie(Be){return Math.sqrt(E(Be))}var me=ie;function E(Be){return Be[0]*Be[0]+Be[1]*Be[1]}var b=E;function z(Be,Ae,we){return Be[0]=Ae[0]*we[0],Be[1]=Ae[1]*we[1],Be}function ne(Be,Ae,we){return Be[0]=Ae[0]/we[0],Be[1]=Ae[1]/we[1],Be}function oe(Be,Ae){return Be[0]*Ae[0]+Be[1]*Ae[1]}function se(Be,Ae,we){return Be[0]=Ae[0]*we,Be[1]=Ae[1]*we,Be}function de(Be,Ae){var we=ie(Ae);return we===0?(Be[0]=0,Be[1]=0):(Be[0]=Ae[0]/we,Be[1]=Ae[1]/we),Be}function a(Be,Ae){return Math.sqrt((Be[0]-Ae[0])*(Be[0]-Ae[0])+(Be[1]-Ae[1])*(Be[1]-Ae[1]))}var x=a;function re(Be,Ae){return(Be[0]-Ae[0])*(Be[0]-Ae[0])+(Be[1]-Ae[1])*(Be[1]-Ae[1])}var ce=re;function ge(Be,Ae){return Be[0]=-Ae[0],Be[1]=-Ae[1],Be}function _e(Be,Ae,we,Ue){return Be[0]=Ae[0]+Ue*(we[0]-Ae[0]),Be[1]=Ae[1]+Ue*(we[1]-Ae[1]),Be}function ye(Be,Ae,we){var Ue=Ae[0],Pe=Ae[1];return Be[0]=we[0]*Ue+we[2]*Pe+we[4],Be[1]=we[1]*Ue+we[3]*Pe+we[5],Be}function be(Be,Ae,we){return Be[0]=Math.min(Ae[0],we[0]),Be[1]=Math.min(Ae[1],we[1]),Be}function Se(Be,Ae,we){return Be[0]=Math.max(Ae[0],we[0]),Be[1]=Math.max(Ae[1],we[1]),Be}Me.create=Oe,Me.copy=ve,Me.clone=ue,Me.set=fe,Me.add=he,Me.scaleAndAdd=le,Me.sub=ae,Me.len=ie,Me.length=me,Me.lenSquare=E,Me.lengthSquare=b,Me.mul=z,Me.div=ne,Me.dot=oe,Me.scale=se,Me.normalize=de,Me.distance=a,Me.dist=x,Me.distanceSquare=re,Me.distSquare=ce,Me.negate=ge,Me.lerp=_e,Me.applyTransform=ye,Me.min=be,Me.max=Se},function(Ye,Me){var pe=typeof Float32Array=="undefined"?Array:Float32Array;function Oe(){var E=new pe(6);return ve(E),E}function ve(E){return E[0]=1,E[1]=0,E[2]=0,E[3]=1,E[4]=0,E[5]=0,E}function ue(E,b){return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=b[3],E[4]=b[4],E[5]=b[5],E}function fe(E,b,z){var ne=b[0]*z[0]+b[2]*z[1],oe=b[1]*z[0]+b[3]*z[1],se=b[0]*z[2]+b[2]*z[3],de=b[1]*z[2]+b[3]*z[3],a=b[0]*z[4]+b[2]*z[5]+b[4],x=b[1]*z[4]+b[3]*z[5]+b[5];return E[0]=ne,E[1]=oe,E[2]=se,E[3]=de,E[4]=a,E[5]=x,E}function he(E,b,z){return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=b[3],E[4]=b[4]+z[0],E[5]=b[5]+z[1],E}function le(E,b,z){var ne=b[0],oe=b[2],se=b[4],de=b[1],a=b[3],x=b[5],re=Math.sin(z),ce=Math.cos(z);return E[0]=ne*ce+de*re,E[1]=-ne*re+de*ce,E[2]=oe*ce+a*re,E[3]=-oe*re+ce*a,E[4]=ce*se+re*x,E[5]=ce*x-re*se,E}function ae(E,b,z){var ne=z[0],oe=z[1];return E[0]=b[0]*ne,E[1]=b[1]*oe,E[2]=b[2]*ne,E[3]=b[3]*oe,E[4]=b[4]*ne,E[5]=b[5]*oe,E}function ie(E,b){var z=b[0],ne=b[2],oe=b[4],se=b[1],de=b[3],a=b[5],x=z*de-se*ne;return x?(x=1/x,E[0]=de*x,E[1]=-se*x,E[2]=-ne*x,E[3]=z*x,E[4]=(ne*a-de*oe)*x,E[5]=(se*oe-z*a)*x,E):null}function me(E){var b=Oe();return ue(b,E),b}Me.create=Oe,Me.identity=ve,Me.copy=ue,Me.mul=fe,Me.translate=he,Me.rotate=le,Me.scale=ae,Me.invert=ie,Me.clone=me},function(Ye,Me,pe){var Oe=pe(12),ve=1e-4;function ue(_e){return _e.replace(/^\s+/,"").replace(/\s+$/,"")}function fe(_e,ye,be,Se){var Be=ye[1]-ye[0],Ae=be[1]-be[0];if(Be===0)return Ae===0?be[0]:(be[0]+be[1])/2;if(Se)if(Be>0){if(_e<=ye[0])return be[0];if(_e>=ye[1])return be[1]}else{if(_e>=ye[0])return be[0];if(_e<=ye[1])return be[1]}else{if(_e===ye[0])return be[0];if(_e===ye[1])return be[1]}return(_e-ye[0])/Be*Ae+be[0]}function he(_e,ye){switch(_e){case"center":case"middle":_e="50%";break;case"left":case"top":_e="0%";break;case"right":case"bottom":_e="100%";break}return typeof _e=="string"?ue(_e).match(/%$/)?parseFloat(_e)/100*ye:parseFloat(_e):_e==null?NaN:+_e}function le(_e,ye,be){return ye==null&&(ye=10),ye=Math.min(Math.max(0,ye),20),_e=(+_e).toFixed(ye),be?_e:+_e}function ae(_e){return _e.sort(function(ye,be){return ye-be}),_e}function ie(_e){if(_e=+_e,isNaN(_e))return 0;for(var ye=1,be=0;Math.round(_e*ye)/ye!==_e;)ye*=10,be++;return be}function me(_e){var ye=_e.toString(),be=ye.indexOf("e");if(be>0){var Se=+ye.slice(be+1);return Se<0?-Se:0}else{var Be=ye.indexOf(".");return Be<0?0:ye.length-1-Be}}function E(_e,ye){var be=Math.log,Se=Math.LN10,Be=Math.floor(be(_e[1]-_e[0])/Se),Ae=Math.round(be(Math.abs(ye[1]-ye[0]))/Se),we=Math.min(Math.max(-Be+Ae,0),20);return isFinite(we)?we:20}function b(_e,ye,be){if(!_e[ye])return 0;var Se=Oe.reduce(_e,function(nt,ut){return nt+(isNaN(ut)?0:ut)},0);if(Se===0)return 0;for(var Be=Math.pow(10,be),Ae=Oe.map(_e,function(nt){return(isNaN(nt)?0:nt)/Se*Be*100}),we=Be*100,Ue=Oe.map(Ae,function(nt){return Math.floor(nt)}),Pe=Oe.reduce(Ue,function(nt,ut){return nt+ut},0),ze=Oe.map(Ae,function(nt,ut){return nt-Ue[ut]});PeKe&&(Ke=ze[Re],Ne=Re);++Ue[Ne],ze[Ne]=0,++Pe}return Ue[ye]/Be}var z=9007199254740991;function ne(_e){var ye=Math.PI*2;return(_e%ye+ye)%ye}function oe(_e){return _e>-ve&&_e=-20?+_e.toFixed(be<0?-be:0):_e}function ce(_e){_e.sort(function(Pe,ze){return Ue(Pe,ze,0)?-1:1});for(var ye=-1/0,be=1,Se=0;Se<_e.length;){for(var Be=_e[Se].interval,Ae=_e[Se].close,we=0;we<2;we++)Be[we]<=ye&&(Be[we]=ye,Ae[we]=we?1:1-be),ye=Be[we],be=Ae[we];Be[0]===Be[1]&&Ae[0]*Ae[1]!==1?_e.splice(Se,1):Se++}return _e;function Ue(Pe,ze,Ke){return Pe.interval[Ke]=0}Me.linearMap=fe,Me.parsePercent=he,Me.round=le,Me.asc=ae,Me.getPrecision=ie,Me.getPrecisionSafe=me,Me.getPixelPrecision=E,Me.getPercentWithPrecision=b,Me.MAX_SAFE_INTEGER=z,Me.remRadian=ne,Me.isRadianAroundZero=oe,Me.parseDate=de,Me.quantity=a,Me.nice=re,Me.reformIntervals=ce,Me.isNumeric=ge},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(11),ue=pe(21),fe=function(){this._pool={},this._allocatedTextures=[]};fe.prototype={constructor:fe,get:function(E){var b=ae(E);this._pool.hasOwnProperty(b)||(this._pool[b]=[]);var z=this._pool[b];if(!z.length){var ne=new Oe.a(E);return this._allocatedTextures.push(ne),ne}return z.pop()},put:function(E){var b=ae(E);this._pool.hasOwnProperty(b)||(this._pool[b]=[]);var z=this._pool[b];z.push(E)},clear:function(E){for(var b=0;bne&&z.push({pivot:Math.floor((oe+ne)/2),left:ne,right:oe});var ne=E[b].pivot+1,oe=E[b].right;oe>ne&&z.push({pivot:Math.floor((oe+ne)/2),left:ne,right:oe})}E=this._parts=z}else for(var b=0;b65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(E){this.triangleCount!==E&&(E===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(E*3):new Uint16Array(E*3))},_getCubicCurveApproxStep:function(E,b,z,ne){var oe=ae.dist(E,b)+ae.dist(z,b)+ae.dist(ne,z),se=1/(oe+1)*this.segmentScale;return se},getCubicCurveVertexCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?se*2:se*2+2},getCubicCurveTriangleCount:function(E,b,z,ne){var oe=this._getCubicCurveApproxStep(E,b,z,ne),se=Math.ceil(1/oe);return this.useNativeLine?0:se*2},getLineVertexCount:function(){return this.getPolylineVertexCount(ie)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ie)},getPolylineVertexCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/2}return this.useNativeLine?(b-1)*2:(b-1)*2+2},getPolylineTriangleCount:function(E){var b;if(typeof E=="number")b=E;else{var z=typeof E[0]!="number";b=z?E.length:E.length/2}return this.useNativeLine?0:(b-1)*2},addCubicCurve:function(E,b,z,ne,oe,se){se==null&&(se=1);for(var de=E[0],a=E[1],x=b[0],re=b[1],ce=z[0],ge=z[1],_e=ne[0],ye=ne[1],be=this._getCubicCurveApproxStep(E,b,z,ne),Se=be*be,Be=Se*be,Ae=3*be,we=3*Se,Ue=6*Se,Pe=6*Be,ze=de-x*2+ce,Ke=a-re*2+ge,Ne=(x-ce)*3-de+_e,Re=(re-ge)*3-a+ye,$e=de,nt=a,ut=(x-de)*Ae+ze*we+Ne*Be,Qe=(re-a)*Ae+Ke*we+Re*Be,rt=ze*Ue+Ne*Pe,pt=Ke*Ue+Re*Pe,At=Ne*Pe,gt=Re*Pe,Ft=0,Ct=0,Yt=Math.ceil(1/be),zt=new Float32Array((Yt+1)*3),zt=[],Xe=0,Ct=0;Ct1&&($e=ut>0?Math.min($e,_e):Math.max($e,_e),nt=Qe>0?Math.min(nt,ye):Math.max(nt,ye));this.addPolyline(zt,oe,se)},addLine:function(E,b,z,ne){this.addPolyline([E,b],z,ne)},addPolyline:function(){var E=ae.create(),b=ae.create(),z=ae.create(),ne=ae.create(),oe=[],se=[],de=[];return function(a,x,re,ce,ge){if(a.length){var _e=typeof a[0]!="number";if(ge==null&&(ge=_e?a.length:a.length/2),!(ge<2)){ce==null&&(ce=0),re==null&&(re=1),this._itemVertexOffsets.push(this._vertexOffset);for(var ye=_e?typeof x[0]!="number":x.length/4===ge,be=this.attributes.position,Se=this.attributes.color,Be=this.attributes.offset,Ae=this.attributes.normal,we=this.indices,Ue=this._vertexOffset,Pe,ze=0;ze1&&(be.copy(Ue,Ue-1),Se.copy(Ue,Ue-1),Ue++);else{var Re;if(ze0){ae.sub(E,oe,de),ae.sub(b,se,oe),ae.normalize(E,E),ae.normalize(b,b),ae.add(ne,E,b),ae.normalize(ne,ne);var $e=re/2*Math.min(1/ae.dot(E,ne),2);z[0]=-ne[1],z[1]=ne[0],Re=$e}else ae.sub(E,se,oe),ae.normalize(E,E),z[0]=-E[1],z[1]=E[0],Re=re/2}else ae.sub(E,oe,de),ae.normalize(E,E),z[0]=-E[1],z[1]=E[0],Re=re/2;Ae.set(Ue,z),Ae.set(Ue+1,z),Be.set(Ue,Re),Be.set(Ue+1,-Re),ae.copy(de,oe),be.set(Ue,oe),be.set(Ue+1,oe),Se.set(Ue,Pe),Se.set(Ue+1,Pe),Ue+=2}if(this.useNativeLine)Se.set(Ue,Pe),be.set(Ue,oe),Ue++;else if(ze>0){var nt=this._faceOffset*3,we=this.indices;we[nt]=Ue-4,we[nt+1]=Ue-3,we[nt+2]=Ue-2,we[nt+3]=Ue-3,we[nt+4]=Ue-1,we[nt+5]=Ue-2,this._faceOffset+=2}}this._vertexOffset=Ue}}}}(),setItemColor:function(E,b){for(var z=this._itemVertexOffsets[E],ne=EAe&&Ke=0&&this._viewsToDispose.splice(a,1),this.views.push(de),de.layer=this;var x=this.zr;de.scene.traverse(function(re){re.__zr=x,re.addAnimatorsToZr&&re.addAnimatorsToZr(x)})}};function E(de){var a=de.__zr;de.__zr=null,a&&de.removeAnimatorsFromZr&&de.removeAnimatorsFromZr(a)}me.prototype.removeView=function(de){if(de.layer===this){var a=this.views.indexOf(de);a>=0&&(this.views.splice(a,1),de.scene.traverse(E,this),de.layer=null,this._viewsToDispose.push(de))}},me.prototype.removeViewsAll=function(){this.views.forEach(function(de){de.scene.traverse(E,this),de.layer=null,this._viewsToDispose.push(de)},this),this.views.length=0},me.prototype.resize=function(de,a){var x=this.renderer;x.resize(de,a)},me.prototype.clear=function(){var de=this.renderer.gl;de.clearColor(0,0,0,0),de.depthMask(!0),de.colorMask(!0,!0,!0,!0),de.clear(de.DEPTH_BUFFER_BIT|de.COLOR_BUFFER_BIT)},me.prototype.clearDepth=function(){var de=this.renderer.gl;de.clear(de.DEPTH_BUFFER_BIT)},me.prototype.clearColor=function(){var de=this.renderer.gl;de.clearColor(0,0,0,0),de.clear(de.COLOR_BUFFER_BIT)},me.prototype.needsRefresh=function(){this.zr.refresh()},me.prototype.refresh=function(){for(var de=0;de20)){de=de.event;var re=this.pickObject(de.offsetX,de.offsetY);re&&(this._dispatchEvent(de.type,de,re),this._dispatchDataEvent(de.type,de,re));var ce=this._clickToSetFocusPoint(de);if(ce){var ge=ce.view.setDOFFocusOnPoint(ce.distance);ge&&this.zr.refresh()}}}},me.prototype._clickToSetFocusPoint=function(de){for(var a=this.renderer,x=a.viewport,re=this.views.length-1;re>=0;re--){var ce=this.views[re];if(ce.hasDOF()&&ce.containPoint(de.offsetX,de.offsetY)){this._picking.scene=ce.scene,this._picking.camera=ce.camera,a.viewport=ce.viewport;var ge=this._picking.pick(de.offsetX,de.offsetY,!0);if(ge)return ge.view=ce,ge}}a.viewport=x},me.prototype.onglobalout=function(de){var a=this._hovered;a&&this._dispatchEvent("mouseout",de,{target:a.target})},me.prototype.pickObject=function(de,a){for(var x=[],re=this.renderer,ce=re.viewport,ge=0;ge=0&&(be.dataIndex=this._lastDataIndex,be.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(Se,"mouseout",a)),ye=!0):_e!=null&&_e!==this._lastEventData&&(this._lastEventData!=null&&(be.eventData=this._lastEventData,this.zr.handler.dispatchToElement(Se,"mouseout",a)),ye=!0),this._lastEventData=_e,this._lastDataIndex=ce,this._lastSeriesIndex=ge),be.eventData=_e,be.dataIndex=ce,be.seriesIndex=ge,(_e!=null||parseInt(ce,10)>=0)&&(this.zr.handler.dispatchToElement(Se,de,a),ye&&this.zr.handler.dispatchToElement(Se,"mouseover",a))},me.prototype._dispatchToView=function(de,a){for(var x=0;x255?255:x}function he(x){return x=Math.round(x),x<0?0:x>360?360:x}function le(x){return x<0?0:x>1?1:x}function ae(x){return x.length&&x.charAt(x.length-1)==="%"?fe(parseFloat(x)/100*255):fe(parseInt(x,10))}function ie(x){return x.length&&x.charAt(x.length-1)==="%"?le(parseFloat(x)/100):le(parseFloat(x))}function me(x,re,ce){return ce<0?ce+=1:ce>1&&(ce-=1),ce*6<1?x+(re-x)*ce*6:ce*2<1?re:ce*3<2?x+(re-x)*(2/3-ce)*6:x}function E(x,re,ce){return x+(re-x)*ce}function b(x,re,ce,ge,_e){return x[0]=re,x[1]=ce,x[2]=ge,x[3]=_e,x}function z(x,re){return x[0]=re[0],x[1]=re[1],x[2]=re[2],x[3]=re[3],x}var ne=new Oe.a(20),oe=null;function se(x,re){oe&&z(oe,re),oe=ne.put(x,oe||re.slice())}ve.parse=function(x,re){if(x){re=re||[];var ce=ne.get(x);if(ce)return z(re,ce);x=x+"";var ge=x.replace(/ /g,"").toLowerCase();if(ge in ue)return z(re,ue[ge]),se(x,re),re;if(ge.charAt(0)==="#"){if(ge.length===4){var _e=parseInt(ge.substr(1),16);if(!(_e>=0&&_e<=4095)){b(re,0,0,0,1);return}return b(re,(_e&3840)>>4|(_e&3840)>>8,_e&240|(_e&240)>>4,_e&15|(_e&15)<<4,1),se(x,re),re}else if(ge.length===7){var _e=parseInt(ge.substr(1),16);if(!(_e>=0&&_e<=16777215)){b(re,0,0,0,1);return}return b(re,(_e&16711680)>>16,(_e&65280)>>8,_e&255,1),se(x,re),re}return}var ye=ge.indexOf("("),be=ge.indexOf(")");if(ye!==-1&&be+1===ge.length){var Se=ge.substr(0,ye),Be=ge.substr(ye+1,be-(ye+1)).split(","),Ae=1;switch(Se){case"rgba":if(Be.length!==4){b(re,0,0,0,1);return}Ae=ie(Be.pop());case"rgb":if(Be.length!==3){b(re,0,0,0,1);return}return b(re,ae(Be[0]),ae(Be[1]),ae(Be[2]),Ae),se(x,re),re;case"hsla":if(Be.length!==4){b(re,0,0,0,1);return}return Be[3]=ie(Be[3]),de(Be,re),se(x,re),re;case"hsl":if(Be.length!==3){b(re,0,0,0,1);return}return de(Be,re),se(x,re),re;default:return}}b(re,0,0,0,1)}},ve.parseToFloat=function(x,re){if(re=ve.parse(x,re),!!re)return re[0]/=255,re[1]/=255,re[2]/=255,re};function de(x,re){var ce=(parseFloat(x[0])%360+360)%360/360,ge=ie(x[1]),_e=ie(x[2]),ye=_e<=.5?_e*(ge+1):_e+ge-_e*ge,be=_e*2-ye;return re=re||[],b(re,fe(me(be,ye,ce+1/3)*255),fe(me(be,ye,ce)*255),fe(me(be,ye,ce-1/3)*255),1),x.length===4&&(re[3]=x[3]),re}function a(x){if(x){var re=x[0]/255,ce=x[1]/255,ge=x[2]/255,_e=Math.min(re,ce,ge),ye=Math.max(re,ce,ge),be=ye-_e,Se=(ye+_e)/2,Be,Ae;if(be===0)Be=0,Ae=0;else{Se<.5?Ae=be/(ye+_e):Ae=be/(2-ye-_e);var we=((ye-re)/6+be/2)/be,Ue=((ye-ce)/6+be/2)/be,Pe=((ye-ge)/6+be/2)/be;re===ye?Be=Pe-Ue:ce===ye?Be=1/3+we-Pe:ge===ye&&(Be=2/3+Ue-we),Be<0&&(Be+=1),Be>1&&(Be-=1)}var ze=[Be*360,Ae,Se];return x[3]!=null&&ze.push(x[3]),ze}}ve.lift=function(x,re){var ce=ve.parse(x);if(ce){for(var ge=0;ge<3;ge++)re<0?ce[ge]=ce[ge]*(1-re)|0:ce[ge]=(255-ce[ge])*re+ce[ge]|0;return ve.stringify(ce,ce.length===4?"rgba":"rgb")}},ve.toHex=function(x){var re=ve.parse(x);if(re)return((1<<24)+(re[0]<<16)+(re[1]<<8)+ +re[2]).toString(16).slice(1)},ve.fastLerp=function(x,re,ce){if(!(!(re&&re.length)||!(x>=0&&x<=1))){ce=ce||[];var ge=x*(re.length-1),_e=Math.floor(ge),ye=Math.ceil(ge),be=re[_e],Se=re[ye],Be=ge-_e;return ce[0]=fe(E(be[0],Se[0],Be)),ce[1]=fe(E(be[1],Se[1],Be)),ce[2]=fe(E(be[2],Se[2],Be)),ce[3]=le(E(be[3],Se[3],Be)),ce}},ve.fastMapToColor=ve.fastLerp,ve.lerp=function(x,re,ce){if(!(!(re&&re.length)||!(x>=0&&x<=1))){var ge=x*(re.length-1),_e=Math.floor(ge),ye=Math.ceil(ge),be=ve.parse(re[_e]),Se=ve.parse(re[ye]),Be=ge-_e,Ae=ve.stringify([fe(E(be[0],Se[0],Be)),fe(E(be[1],Se[1],Be)),fe(E(be[2],Se[2],Be)),le(E(be[3],Se[3],Be))],"rgba");return ce?{color:Ae,leftIndex:_e,rightIndex:ye,value:ge}:Ae}},ve.mapToColor=ve.lerp,ve.modifyHSL=function(x,re,ce,ge){if(x=ve.parse(x),x)return x=a(x),re!=null&&(x[0]=he(re)),ce!=null&&(x[1]=ie(ce)),ge!=null&&(x[2]=ie(ge)),ve.stringify(de(x),"rgba")},ve.modifyAlpha=function(x,re){if(x=ve.parse(x),x&&re!=null)return x[3]=le(re),ve.stringify(x,"rgba")},ve.stringify=function(x,re){if(!(!x||!x.length)){var ce=x[0]+","+x[1]+","+x[2];return(re==="rgba"||re==="hsva"||re==="hsla")&&(ce+=","+x[3]),re+"("+ce+")"}},Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(95),ve=function(ue){this._list=new Oe.a,this._map={},this._maxSize=ue||10};ve.prototype.setMaxSize=function(ue){this._maxSize=ue},ve.prototype.put=function(ue,fe){if(typeof this._map[ue]=="undefined"){var he=this._list.length();if(he>=this._maxSize&&he>0){var le=this._list.head;this._list.remove(le),delete this._map[le.key]}var ae=this._list.insert(fe);ae.key=ue,this._map[ue]=ae}},ve.prototype.get=function(ue){var fe=this._map[ue];if(typeof fe!="undefined")return fe!==this._list.tail&&(this._list.remove(fe),this._list.insertEntry(fe)),fe.value},ve.prototype.remove=function(ue){var fe=this._map[ue];typeof fe!="undefined"&&(delete this._map[ue],this._list.remove(fe))},ve.prototype.clear=function(){this._list.clear(),this._map={}},Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=function(){this.head=null,this.tail=null,this._length=0};Oe.prototype.insert=function(ve){var ue=new Oe.Entry(ve);return this.insertEntry(ue),ue},Oe.prototype.insertAt=function(ve,ue){if(!(ve<0)){for(var fe=this.head,he=0;fe&&he!=ve;)fe=fe.next,he++;if(fe){var le=new Oe.Entry(ue),ae=fe.prev;ae?(ae.next=le,le.prev=ae):this.head=le,le.next=fe,fe.prev=le}else this.insert(ue)}},Oe.prototype.insertBeforeEntry=function(ve,ue){var fe=new Oe.Entry(ve),he=ue.prev;he?(he.next=fe,fe.prev=he):this.head=fe,fe.next=ue,ue.prev=fe,this._length++},Oe.prototype.insertEntry=function(ve){this.head?(this.tail.next=ve,ve.prev=this.tail,this.tail=ve):this.head=this.tail=ve,this._length++},Oe.prototype.remove=function(ve){var ue=ve.prev,fe=ve.next;ue?ue.next=fe:this.head=fe,fe?fe.prev=ue:this.tail=ue,ve.next=ve.prev=null,this._length--},Oe.prototype.removeAt=function(ve){if(!(ve<0)){for(var ue=this.head,fe=0;ue&&fe!=ve;)ue=ue.next,fe++;if(ue)return this.remove(ue),ue.value}},Oe.prototype.getHead=function(){if(this.head)return this.head.value},Oe.prototype.getTail=function(){if(this.tail)return this.tail.value},Oe.prototype.getAt=function(ve){if(!(ve<0)){for(var ue=this.head,fe=0;ue&&fe!=ve;)ue=ue.next,fe++;return ue.value}},Oe.prototype.indexOf=function(ve){for(var ue=this.head,fe=0;ue;){if(ue.value===ve)return fe;ue=ue.next,fe++}},Oe.prototype.length=function(){return this._length},Oe.prototype.isEmpty=function(){return this._length===0},Oe.prototype.forEach=function(ve,ue){for(var fe=this.head,he=0,le=typeof ue!="undefined";fe;)le?ve.call(ue,fe.value,he):ve(fe.value,he),fe=fe.next,he++},Oe.prototype.clear=function(){this.tail=this.head=null,this._length=0},Oe.Entry=function(ve){this.value=ve,this.next=null,this.prev=null},Me.a=Oe},function(Ye,Me,pe){"use strict";var Oe=pe(97),ve=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function ue(ie,me,E){function b(oe,se,de,a){var x="";isNaN(se)&&(se in me?se=me[se]:se=z[se]),isNaN(de)&&(de in me?de=me[de]:de=z[de]);for(var re=parseInt(se);re0&&b.push("#define "+z.toUpperCase()+"_COUNT "+ne)}if(E)for(var oe=0;oe=0&&Ke[Pe]>1e-4&&(E.transformMat4($e,ze,we[Ne[Pe]]),E.scaleAndAdd(Re,Re,$e,Ke[Pe]));nt.set(Ue,Re)}}for(var Ue=0;Ue=0&&(he(ie),ie.coordinateSystem==="mapbox"&&(ie.coordinateSystem="mapbox3D",ae.mapbox3D=ae.mapbox))}),le(ae.xAxis3D),le(ae.yAxis3D),le(ae.zAxis3D),le(ae.grid3D),fe(ae.geo3D)}},function(Ye,Me,pe){"use strict";function Oe(ve){var ue=new XMLHttpRequest;ue.open("get",ve.url),ue.responseType=ve.responseType||"text",ve.onprogress&&(ue.onprogress=function(fe){if(fe.lengthComputable){var he=fe.loaded/fe.total;ve.onprogress(he,fe.loaded,fe.total)}else ve.onprogress(null)}),ue.onload=function(fe){ue.status>=400?ve.onerror&&ve.onerror():ve.onload&&ve.onload(ue.response)},ve.onerror&&(ue.onerror=ve.onerror),ue.send(null)}Me.a={get:Oe}},function(Ye,Me,pe){"use strict";Me.a=`@export clay.basic.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec2 uvRepeat : [1.0, 1.0]; uniform vec2 uvOffset : [0.0, 0.0]; attribute vec2 texcoord : TEXCOORD_0; attribute vec3 position : POSITION; attribute vec3 barycentric; @import clay.chunk.skinning_header varying vec2 v_Texcoord; varying vec3 v_Barycentric; #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif void main() { vec3 skinnedPosition = position; #ifdef SKINNING @import clay.chunk.skin_matrix skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz; #endif v_Texcoord = texcoord * uvRepeat + uvOffset; v_Barycentric = barycentric; gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0); #ifdef VERTEX_COLOR v_Color = a_Color; #endif } @end @export clay.basic.fragment varying vec2 v_Texcoord; uniform sampler2D diffuseMap; uniform vec3 color : [1.0, 1.0, 1.0]; uniform vec3 emission : [0.0, 0.0, 0.0]; uniform float alpha : 1.0; #ifdef ALPHA_TEST uniform float alphaCutoff: 0.9; #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif uniform float lineWidth : 0.0; uniform vec4 lineColor : [0.0, 0.0, 0.0, 0.6]; varying vec3 v_Barycentric; @import clay.util.edge_factor @import clay.util.rgbm @import clay.util.srgb @import clay.util.ACES void main() { #ifdef RENDER_TEXCOORD gl_FragColor = vec4(v_Texcoord, 1.0, 1.0); return; #endif gl_FragColor = vec4(color, alpha); #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif #ifdef DIFFUSEMAP_ENABLED vec4 tex = decodeHDR(texture2D(diffuseMap, v_Texcoord)); #ifdef SRGB_DECODE tex = sRGBToLinear(tex); #endif #if defined(DIFFUSEMAP_ALPHA_ALPHA) gl_FragColor.a = tex.a; #endif gl_FragColor.rgb *= tex.rgb; #endif gl_FragColor.rgb += emission; if( lineWidth > 0.) { gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor(lineWidth)) * lineColor.a); } #ifdef ALPHA_TEST if (gl_FragColor.a < alphaCutoff) { discard; } #endif #ifdef TONEMAPPING gl_FragColor.rgb = ACESToneMapping(gl_FragColor.rgb); #endif #ifdef SRGB_ENCODE gl_FragColor = linearTosRGB(gl_FragColor); #endif gl_FragColor = encodeHDR(gl_FragColor); } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(6),ve=pe(5),ue=pe(25),fe=542327876,he=1,le=2,ae=4,ie=8,me=4096,E=131072,b=524288,z=8388608,ne=8,oe=4194304,se=4096,de=512,a=1024,x=2048,re=4096,ce=8192,ge=16384,_e=32768,ye=2097152,be=1,Se=2,Be=4,Ae=64,we=512,Ue=131072;function Pe(Le){return Le.charCodeAt(0)+(Le.charCodeAt(1)<<8)+(Le.charCodeAt(2)<<16)+(Le.charCodeAt(3)<<24)}function ze(Le){return String.fromCharCode(Le&255,Le>>8&255,Le>>16&255,Le>>24&255)}var Ke=31,Ne=Pe("DXT1"),Re=Pe("DXT3"),$e=Pe("DXT5"),nt=0,ut=1,Qe=2,rt=3,pt=4,At=7,gt=20,Ft=21,Ct=27,Yt=28,zt=29,Xe=30,Fe={parse:function(Le,Ze){var et=new Int32Array(Le,0,Ke);if(et[nt]!==fe||!et(gt)&Be)return null;var He=et(Ft),We=et[pt],tt=et[rt],at=et[Yt]&de,ot=et[Qe]&E,ct,lt;switch(He){case Ne:ct=8,lt=Oe.a.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Re:ct=16,lt=Oe.a.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case $e:ct=16,lt=Oe.a.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var mt=et[ut]+4,Lt=at?6:1,ft=1;ot&&(ft=Math.max(1,et[At]));for(var St=[],nn=0;nn0){var de=Math.pow(2,z[3]-128-8+se);ne[oe+0]=z[0]*de,ne[oe+1]=z[1]*de,ne[oe+2]=z[2]*de}else ne[oe+0]=0,ne[oe+1]=0,ne[oe+2]=0;return ne[oe+3]=1,ne}function ae(z,ne,oe){for(var se="",de=ne;de0;)if(z[a][0]=ne[oe++],z[a][1]=ne[oe++],z[a][2]=ne[oe++],z[a][3]=ne[oe++],z[a][0]===1&&z[a][1]===1&&z[a][2]===1){for(var re=z[a][3]<>>0;re>0;re--)ie(z[a-1],z[a]),a++,x--;de+=8}else a++,x--,de=0;return oe}function E(z,ne,oe,se){if(sehe)return me(z,ne,oe,se);var de=ne[oe++];if(de!=2)return me(z,ne,oe-1,se);if(z[0][1]=ne[oe++],z[0][2]=ne[oe++],de=ne[oe++],(z[0][2]<<8>>>0|de)>>>0!==se)return null;for(var de=0;de<4;de++)for(var a=0;a128){x=(x&127)>>>0;for(var re=ne[oe++];x--;)z[a++][de]=re}else for(;x--;)z[a++][de]=ne[oe++]}return oe}var b={parseRGBE:function(z,ne,oe){oe==null&&(oe=0);var se=new Uint8Array(z),de=se.length;if(ae(se,0,2)==="#?"){for(var a=2;a=de)){a+=2;for(var x="";a=0||(fe.forEach(function(ie){ae.on(ie,this[he(ie)],this)},this),this._meshes.push(ae))},detachFromMesh:function(ae){var ie=this._meshes.indexOf(ae);ie>=0&&this._meshes.splice(ie,1),fe.forEach(function(me){ae.off(me,this[he(me)])},this)},dispose:function(){this._meshes.forEach(function(ae){this.detachFromMesh(ae)},this)}},Me.a=le},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(108),ue=Oe.a.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(fe,he){this._brdfLookup||(this._normalDistribution=ve.a.generateNormalDistribution(),this._brdfLookup=ve.a.integrateBRDF(fe,this._normalDistribution));var le=this.cubemap;if(!le.__prefiltered){var ae=ve.a.prefilterEnvironmentMap(fe,le,{encodeRGBM:!0,width:he,height:he},this._normalDistribution,this._brdfLookup);this.cubemap=ae.environmentMap,this.cubemap.__prefiltered=!0,le.dispose(fe)}},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}},ambientCubemapLightCubemap:{type:"t",value:function(fe){return fe.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(fe){return fe._brdfLookup}}}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(25),ue=pe(6),fe=pe(10),he=pe(14),le=pe(17),ae=pe(7),ie=pe(57),me=pe(29),E=pe(55),b=pe(18),z=pe(54),ne=pe(111),oe=pe(112),se={},de=["px","nx","py","ny","pz","nz"];se.prefilterEnvironmentMap=function(a,x,re,ce,ge){(!ge||!ce)&&(ce=se.generateNormalDistribution(),ge=se.integrateBRDF(a,ce)),re=re||{};var _e=re.width||64,ye=re.height||64,be=re.type||x.type,Se=new ve.a({width:_e,height:ye,type:be,flipY:!1,mipmaps:[]});Se.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var Be=Math.min(_e,ye),Ae=Math.log(Be)/Math.log(2)+1,we=new le.a({shader:new ae.a({vertex:ae.a.source("clay.skybox.vertex"),fragment:oe.a})});we.set("normalDistribution",ce),re.encodeRGBM&&we.define("fragment","RGBM_ENCODE"),re.decodeRGBM&&we.define("fragment","RGBM_DECODE");var Ue=new me.a,Pe;if(x instanceof Oe.a){var ze=new ve.a({width:_e,height:ye,type:be===ue.a.FLOAT?ue.a.HALF_FLOAT:be});z.a.panoramaToCubeMap(a,x,ze,{encodeRGBM:re.decodeRGBM}),x=ze}Pe=new ie.a({scene:Ue,material:we}),Pe.material.set("environmentMap",x);var Ke=new E.a({texture:Se});re.encodeRGBM&&(be=Se.type=ue.a.UNSIGNED_BYTE);for(var Ne=new Oe.a({width:_e,height:ye,type:be}),Re=new fe.a({depthBuffer:!1}),$e=b.a[be===ue.a.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],nt=0;nt>>16)>>>0;Se=((Se&1431655765)<<1|(Se&2863311530)>>>1)>>>0,Se=((Se&858993459)<<2|(Se&3435973836)>>>2)>>>0,Se=((Se&252645135)<<4|(Se&4042322160)>>>4)>>>0,Se=(((Se&16711935)<<8|(Se&4278255360)>>>8)>>>0)/4294967296;for(var Be=0;Be 0.0) { float G = G_Smith(roughness, NoV, NoL); float G_Vis = G * VoH / (NoH * NoV); float Fc = pow(1.0 - VoH, 5.0); A += (1.0 - Fc) * G_Vis; B += Fc * G_Vis; } } gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); } `},function(Ye,Me,pe){"use strict";Me.a=`#define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform mat4 viewInverse : VIEWINVERSE; uniform samplerCube environmentMap; uniform sampler2D normalDistribution; uniform float roughness : 0.5; varying vec2 v_Texcoord; varying vec3 v_WorldPosition; const float fSampleNumber = float(SAMPLE_NUMBER); @import clay.util.rgbm vec3 importanceSampleNormal(float i, float roughness, vec3 N) { vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; vec3 upVector = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); vec3 tangentX = normalize(cross(upVector, N)); vec3 tangentY = cross(N, tangentX); return tangentX * H.x + tangentY * H.y + N * H.z; } void main() { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(v_WorldPosition - eyePos); vec3 N = V; vec3 R = V; vec3 prefilteredColor = vec3(0.0); float totalWeight = 0.0; for (int i = 0; i < SAMPLE_NUMBER; i++) { vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N); vec3 L = reflect(-V, H); float NoL = clamp(dot(N, L), 0.0, 1.0); if (NoL > 0.0) { prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL; totalWeight += NoL; } } gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); } `},function(Ye,Me,pe){"use strict";var Oe=pe(19),ve=pe(18),ue=Oe.a.extend({castShadow:!1,coefficients:[]},function(){this._coefficientsTmpArr=new ve.a.Float32Array(9*3)},{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(fe){var he=fe.color,le=fe.intensity;return[he[0]*le,he[1]*le,he[2]*le]}},ambientSHLightCoefficients:{type:"3f",value:function(fe){for(var he=fe._coefficientsTmpArr,le=0;le=0&&z.splice(se,1)}),z.push(ne),this.__zr&&this.__zr.animation.addAnimator(ne),ne},stopAnimation:function(fe){this._animators=this._animators||[];for(var he=this._animators,le=he.length,ae=0;ae.5?_e:ge}function E(ge,_e,ye,be,Se){var Be=ge.length;if(Se==1)for(var Ae=0;AeSe;if(Be)ge.length=Se;else for(var Ae=be;Ae=0&&!(ut[lt]<=ct);lt--);lt=Math.min(lt,Pe-2)}else{for(lt=Yt;ltct);lt++);lt=Math.min(lt-1,Pe-2)}Yt=lt,zt=ct;var mt=ut[lt+1]-ut[lt];if(mt!==0)if(Fe=(ct-ut[lt])/mt,Ue)if(Ze=Qe[lt],Le=Qe[lt===0?lt:lt-1],et=Qe[lt>Pe-2?Pe-1:lt+1],He=Qe[lt>Pe-3?Pe-1:lt+2],Ke)ne(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe,Ae(ot,Se),$e);else{var Lt;if(Ne)Lt=ne(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe,We,1),Lt=de(We);else{if(Re)return me(Ze,et,Fe);Lt=oe(Le,Ze,et,He,Fe,Fe*Fe,Fe*Fe*Fe)}we(ot,Se,Lt)}else if(Ke)E(Qe[lt],Qe[lt+1],Fe,Ae(ot,Se),$e);else{var Lt;if(Ne)E(Qe[lt],Qe[lt+1],Fe,We,1),Lt=de(We);else{if(Re)return me(Qe[lt],Qe[lt+1],Fe);Lt=ie(Qe[lt],Qe[lt+1],Fe)}we(ot,Se,Lt)}},at=new Oe({target:ge._target,life:nt,loop:ge._loop,delay:ge._delay,onframe:tt,ondestroy:ye});return _e&&_e!=="spline"&&(at.easing=_e),at}}}var re=function(ge,_e,ye,be){this._tracks={},this._target=ge,this._loop=_e||!1,this._getter=ye||le,this._setter=be||ae,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};re.prototype={when:function(ge,_e){var ye=this._tracks;for(var be in _e)if(_e.hasOwnProperty(be)){if(!ye[be]){ye[be]=[];var Se=this._getter(this._target,be);if(Se==null)continue;ge!==0&&ye[be].push({time:0,value:se(Se)})}ye[be].push({time:ge,value:_e[be]})}return this},during:function(ge){return this._onframeList.push(ge),this},pause:function(){for(var ge=0;ge255?255:Ae}function fe(Ae){return Ae=Math.round(Ae),Ae<0?0:Ae>360?360:Ae}function he(Ae){return Ae<0?0:Ae>1?1:Ae}function le(Ae){return Ae.length&&Ae.charAt(Ae.length-1)==="%"?ue(parseFloat(Ae)/100*255):ue(parseInt(Ae,10))}function ae(Ae){return Ae.length&&Ae.charAt(Ae.length-1)==="%"?he(parseFloat(Ae)/100):he(parseFloat(Ae))}function ie(Ae,we,Ue){return Ue<0?Ue+=1:Ue>1&&(Ue-=1),Ue*6<1?Ae+(we-Ae)*Ue*6:Ue*2<1?we:Ue*3<2?Ae+(we-Ae)*(2/3-Ue)*6:Ae}function me(Ae,we,Ue){return Ae+(we-Ae)*Ue}function E(Ae,we,Ue,Pe,ze){return Ae[0]=we,Ae[1]=Ue,Ae[2]=Pe,Ae[3]=ze,Ae}function b(Ae,we){return Ae[0]=we[0],Ae[1]=we[1],Ae[2]=we[2],Ae[3]=we[3],Ae}var z=new Oe(20),ne=null;function oe(Ae,we){ne&&b(ne,we),ne=z.put(Ae,ne||we.slice())}function se(Ae,we){if(Ae){we=we||[];var Ue=z.get(Ae);if(Ue)return b(we,Ue);Ae=Ae+"";var Pe=Ae.replace(/ /g,"").toLowerCase();if(Pe in ve)return b(we,ve[Pe]),oe(Ae,we),we;if(Pe.charAt(0)==="#"){if(Pe.length===4){var ze=parseInt(Pe.substr(1),16);if(!(ze>=0&&ze<=4095)){E(we,0,0,0,1);return}return E(we,(ze&3840)>>4|(ze&3840)>>8,ze&240|(ze&240)>>4,ze&15|(ze&15)<<4,1),oe(Ae,we),we}else if(Pe.length===7){var ze=parseInt(Pe.substr(1),16);if(!(ze>=0&&ze<=16777215)){E(we,0,0,0,1);return}return E(we,(ze&16711680)>>16,(ze&65280)>>8,ze&255,1),oe(Ae,we),we}return}var Ke=Pe.indexOf("("),Ne=Pe.indexOf(")");if(Ke!==-1&&Ne+1===Pe.length){var Re=Pe.substr(0,Ke),$e=Pe.substr(Ke+1,Ne-(Ke+1)).split(","),nt=1;switch(Re){case"rgba":if($e.length!==4){E(we,0,0,0,1);return}nt=ae($e.pop());case"rgb":if($e.length!==3){E(we,0,0,0,1);return}return E(we,le($e[0]),le($e[1]),le($e[2]),nt),oe(Ae,we),we;case"hsla":if($e.length!==4){E(we,0,0,0,1);return}return $e[3]=ae($e[3]),de($e,we),oe(Ae,we),we;case"hsl":if($e.length!==3){E(we,0,0,0,1);return}return de($e,we),oe(Ae,we),we;default:return}}E(we,0,0,0,1)}}function de(Ae,we){var Ue=(parseFloat(Ae[0])%360+360)%360/360,Pe=ae(Ae[1]),ze=ae(Ae[2]),Ke=ze<=.5?ze*(Pe+1):ze+Pe-ze*Pe,Ne=ze*2-Ke;return we=we||[],E(we,ue(ie(Ne,Ke,Ue+1/3)*255),ue(ie(Ne,Ke,Ue)*255),ue(ie(Ne,Ke,Ue-1/3)*255),1),Ae.length===4&&(we[3]=Ae[3]),we}function a(Ae){if(Ae){var we=Ae[0]/255,Ue=Ae[1]/255,Pe=Ae[2]/255,ze=Math.min(we,Ue,Pe),Ke=Math.max(we,Ue,Pe),Ne=Ke-ze,Re=(Ke+ze)/2,$e,nt;if(Ne===0)$e=0,nt=0;else{Re<.5?nt=Ne/(Ke+ze):nt=Ne/(2-Ke-ze);var ut=((Ke-we)/6+Ne/2)/Ne,Qe=((Ke-Ue)/6+Ne/2)/Ne,rt=((Ke-Pe)/6+Ne/2)/Ne;we===Ke?$e=rt-Qe:Ue===Ke?$e=1/3+ut-rt:Pe===Ke&&($e=2/3+Qe-ut),$e<0&&($e+=1),$e>1&&($e-=1)}var pt=[$e*360,nt,Re];return Ae[3]!=null&&pt.push(Ae[3]),pt}}function x(Ae,we){var Ue=se(Ae);if(Ue){for(var Pe=0;Pe<3;Pe++)we<0?Ue[Pe]=Ue[Pe]*(1-we)|0:Ue[Pe]=(255-Ue[Pe])*we+Ue[Pe]|0;return Be(Ue,Ue.length===4?"rgba":"rgb")}}function re(Ae){var we=se(Ae);if(we)return((1<<24)+(we[0]<<16)+(we[1]<<8)+ +we[2]).toString(16).slice(1)}function ce(Ae,we,Ue){if(!(!(we&&we.length)||!(Ae>=0&&Ae<=1))){Ue=Ue||[];var Pe=Ae*(we.length-1),ze=Math.floor(Pe),Ke=Math.ceil(Pe),Ne=we[ze],Re=we[Ke],$e=Pe-ze;return Ue[0]=ue(me(Ne[0],Re[0],$e)),Ue[1]=ue(me(Ne[1],Re[1],$e)),Ue[2]=ue(me(Ne[2],Re[2],$e)),Ue[3]=he(me(Ne[3],Re[3],$e)),Ue}}var ge=ce;function _e(Ae,we,Ue){if(!(!(we&&we.length)||!(Ae>=0&&Ae<=1))){var Pe=Ae*(we.length-1),ze=Math.floor(Pe),Ke=Math.ceil(Pe),Ne=se(we[ze]),Re=se(we[Ke]),$e=Pe-ze,nt=Be([ue(me(Ne[0],Re[0],$e)),ue(me(Ne[1],Re[1],$e)),ue(me(Ne[2],Re[2],$e)),he(me(Ne[3],Re[3],$e))],"rgba");return Ue?{color:nt,leftIndex:ze,rightIndex:Ke,value:Pe}:nt}}var ye=_e;function be(Ae,we,Ue,Pe){if(Ae=se(Ae),Ae)return Ae=a(Ae),we!=null&&(Ae[0]=fe(we)),Ue!=null&&(Ae[1]=ae(Ue)),Pe!=null&&(Ae[2]=ae(Pe)),Be(de(Ae),"rgba")}function Se(Ae,we){if(Ae=se(Ae),Ae&&we!=null)return Ae[3]=he(we),Be(Ae,"rgba")}function Be(Ae,we){if(!(!Ae||!Ae.length)){var Ue=Ae[0]+","+Ae[1]+","+Ae[2];return(we==="rgba"||we==="hsva"||we==="hsla")&&(Ue+=","+Ae[3]),we+"("+Ue+")"}}Me.parse=se,Me.lift=x,Me.toHex=re,Me.fastLerp=ce,Me.fastMapToColor=ge,Me.lerp=_e,Me.mapToColor=ye,Me.modifyHSL=be,Me.modifyAlpha=Se,Me.stringify=Be},function(Ye,Me,pe){"use strict";Me.a=` @export clay.util.rand highp float rand(vec2 uv) { const highp float a = 12.9898, b = 78.233, c = 43758.5453; highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793); return fract(sin(sn) * c); } @end @export clay.util.calculate_attenuation uniform float attenuationFactor : 5.0; float lightAttenuation(float dist, float range) { float attenuation = 1.0; attenuation = dist*dist/(range*range+1.0); float att_s = attenuationFactor; attenuation = 1.0/(attenuation*att_s+1.0); att_s = 1.0/(att_s+1.0); attenuation = attenuation - att_s; attenuation /= 1.0 - att_s; return clamp(attenuation, 0.0, 1.0); } @end @export clay.util.edge_factor float edgeFactor(float width) { vec3 d = fwidth(v_Barycentric); vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric); return min(min(a3.x, a3.y), a3.z); } @end @export clay.util.encode_float vec4 encodeFloat(const in float depth) { const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0); vec4 res = fract(depth * bitShifts); res -= res.xxyz * bit_mask; return res; } @end @export clay.util.decode_float float decodeFloat(const in vec4 color) { const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0); return dot(color, bitShifts); } @end @export clay.util.float @import clay.util.encode_float @import clay.util.decode_float @end @export clay.util.rgbm_decode vec3 RGBMDecode(vec4 rgbm, float range) { return range * rgbm.rgb * rgbm.a; } @end @export clay.util.rgbm_encode vec4 RGBMEncode(vec3 color, float range) { if (dot(color, color) == 0.0) { return vec4(0.0); } vec4 rgbm; color /= range; rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0); rgbm.a = ceil(rgbm.a * 255.0) / 255.0; rgbm.rgb = color / rgbm.a; return rgbm; } @end @export clay.util.rgbm @import clay.util.rgbm_decode @import clay.util.rgbm_encode vec4 decodeHDR(vec4 color) { #if defined(RGBM_DECODE) || defined(RGBM) return vec4(RGBMDecode(color, 51.5), 1.0); #else return color; #endif } vec4 encodeHDR(vec4 color) { #if defined(RGBM_ENCODE) || defined(RGBM) return RGBMEncode(color.xyz, 51.5); #else return color; #endif } @end @export clay.util.srgb vec4 sRGBToLinear(in vec4 value) { return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w); } vec4 linearTosRGB(in vec4 value) { return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w); } @end @export clay.chunk.skinning_header #ifdef SKINNING attribute vec3 weight : WEIGHT; attribute vec4 joint : JOINT; uniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX; mat4 getSkinMatrix(float idx) { return skinMatrix[int(idx)]; } #endif @end @export clay.chunk.skin_matrix mat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x; if (weight.y > 1e-4) { skinMatrixWS += getSkinMatrix(joint.y) * weight.y; } if (weight.z > 1e-4) { skinMatrixWS += getSkinMatrix(joint.z) * weight.z; } float weightW = 1.0-weight.x-weight.y-weight.z; if (weightW > 1e-4) { skinMatrixWS += getSkinMatrix(joint.w) * weightW; } @end @export clay.util.parallax_correct vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) { vec3 first = (boxMax - pos) / dir; vec3 second = (boxMin - pos) / dir; vec3 further = max(first, second); float dist = min(further.x, min(further.y, further.z)); vec3 fixedPos = pos + dir * dist; vec3 boxCenter = (boxMax + boxMin) * 0.5; return normalize(fixedPos - boxCenter); } @end @export clay.util.clamp_sample vec4 clampSample(const in sampler2D texture, const in vec2 coord) { #ifdef STEREO float eye = step(0.5, coord.x) * 0.5; vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0)); #else vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0)); #endif return texture2D(texture, coordClamped); } @end @export clay.util.ACES vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } @end`},function(Ye,Me,pe){"use strict";Me.a=` @export ecgl.common.transformUniforms uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; uniform mat4 world : WORLD; @end @export ecgl.common.attributes attribute vec3 position : POSITION; attribute vec2 texcoord : TEXCOORD_0; attribute vec3 normal : NORMAL; @end @export ecgl.common.uv.header uniform vec2 uvRepeat : [1.0, 1.0]; uniform vec2 uvOffset : [0.0, 0.0]; uniform vec2 detailUvRepeat : [1.0, 1.0]; uniform vec2 detailUvOffset : [0.0, 0.0]; varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.uv.main v_Texcoord = texcoord * uvRepeat + uvOffset; v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset; @end @export ecgl.common.uv.fragmentHeader varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.albedo.main vec4 albedoTexel = vec4(1.0); #ifdef DIFFUSEMAP_ENABLED albedoTexel = texture2D(diffuseMap, v_Texcoord); #ifdef SRGB_DECODE albedoTexel = sRGBToLinear(albedoTexel); #endif #endif #ifdef DETAILMAP_ENABLED vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord); #ifdef SRGB_DECODE detailTexel = sRGBToLinear(detailTexel); #endif albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a); albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a; #endif @end @export ecgl.common.wireframe.vertexHeader #ifdef WIREFRAME_QUAD attribute vec4 barycentric; varying vec4 v_Barycentric; #elif defined(WIREFRAME_TRIANGLE) attribute vec3 barycentric; varying vec3 v_Barycentric; #endif @end @export ecgl.common.wireframe.vertexMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) v_Barycentric = barycentric; #endif @end @export ecgl.common.wireframe.fragmentHeader uniform float wireframeLineWidth : 1; uniform vec4 wireframeLineColor: [0, 0, 0, 0.5]; #ifdef WIREFRAME_QUAD varying vec4 v_Barycentric; float edgeFactor () { vec4 d = fwidth(v_Barycentric); vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(min(a4.x, a4.y), a4.z), a4.w); } #elif defined(WIREFRAME_TRIANGLE) varying vec3 v_Barycentric; float edgeFactor () { vec3 d = fwidth(v_Barycentric); vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(a3.x, a3.y), a3.z); } #endif @end @export ecgl.common.wireframe.fragmentMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) if (wireframeLineWidth > 0.) { vec4 lineColor = wireframeLineColor; #ifdef SRGB_DECODE lineColor = sRGBToLinear(lineColor); #endif gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a); } #endif @end @export ecgl.common.bumpMap.header #ifdef BUMPMAP_ENABLED uniform sampler2D bumpMap; uniform float bumpScale : 1.0; vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal) { vec2 dSTdx = dFdx(v_Texcoord); vec2 dSTdy = dFdy(v_Texcoord); float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x; float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll; float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll; vec3 vSigmaX = dFdx(surfPos); vec3 vSigmaY = dFdy(surfPos); vec3 vN = surfNormal; vec3 R1 = cross(vSigmaY, vN); vec3 R2 = cross(vN, vSigmaX); float fDet = dot(vSigmaX, R1); vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2); return normalize(abs(fDet) * baseNormal - vGrad); } #endif @end @export ecgl.common.normalMap.vertexHeader #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.vertexMain #ifdef NORMALMAP_ENABLED if (dot(tangent, tangent) > 0.0) { v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); } #endif @end @export ecgl.common.normalMap.fragmentHeader #ifdef NORMALMAP_ENABLED uniform sampler2D normalMap; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.fragmentMain #ifdef NORMALMAP_ENABLED if (dot(v_Tangent, v_Tangent) > 0.0) { vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz; if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0; mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal); N = normalize(tbn * N); } } #endif @end @export ecgl.common.vertexAnimation.header #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevNormal; uniform float percent; #endif @end @export ecgl.common.vertexAnimation.main #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); vec3 norm = mix(prevNormal, normal, percent); #else vec3 pos = position; vec3 norm = normal; #endif @end @export ecgl.common.ssaoMap.header #ifdef SSAOMAP_ENABLED uniform sampler2D ssaoMap; uniform vec4 viewport : VIEWPORT; #endif @end @export ecgl.common.ssaoMap.main float ao = 1.0; #ifdef SSAOMAP_ENABLED ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r; #endif @end @export ecgl.common.diffuseLayer.header #if (LAYER_DIFFUSEMAP_COUNT > 0) uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT]; uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT]; #endif @end @export ecgl.common.emissiveLayer.header #if (LAYER_EMISSIVEMAP_COUNT > 0) uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT]; uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT]; #endif @end @export ecgl.common.layers.header @import ecgl.common.diffuseLayer.header @import ecgl.common.emissiveLayer.header @end @export ecgl.common.diffuseLayer.main #if (LAYER_DIFFUSEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{ float intensity = layerDiffuseIntensity[_idx_]; vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord); #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a); albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a; }} #endif @end @export ecgl.common.emissiveLayer.main #if (LAYER_EMISSIVEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++) {{ vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_]; #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif float intensity = layerEmissionIntensity[_idx_]; gl_FragColor.rgb += texel2.rgb * texel2.a * intensity; }} #endif @end `},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.color.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; @import ecgl.common.uv.header attribute vec2 texcoord : TEXCOORD_0; attribute vec3 position: POSITION; @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif void main() { #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); @import ecgl.common.uv.main #ifdef VERTEX_COLOR v_Color = a_Color; #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.color.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.layers.header @import ecgl.common.uv.fragmentHeader @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(Ye,Me,pe){"use strict";Me.a=`/** * http: */ @export ecgl.lambert.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.lambert.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE gl_FragColor *= sRGBToLinear(v_Color); #else gl_FragColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseColor = vec3(0.0, 0.0, 0.0); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { diffuseColor += ambientLightColor[i] * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; vec3 lightColor = directionalLightColor[i]; float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; diffuseColor += lightColor * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor.rgb *= diffuseColor; @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.realistic.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif #ifdef NORMALMAP_ENABLED v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.realistic.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define PI 3.14159265358979 #define ROUGHNESS_CHANEL 0 #define METALNESS_CHANEL 1 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform sampler2D metalnessMap; uniform sampler2D roughnessMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform float metalness : 0.0; uniform float roughness : 0.5; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT @import clay.header.ambient_cubemap_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import clay.util.rgbm @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map vec3 F_Schlick(float ndv, vec3 spec) { return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); } float D_Phong(float g, float ndh) { float a = pow(8192.0, g); return (a + 2.0) / 8.0 * pow(ndh, a); } void main() { vec4 albedoColor = color; vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); #ifdef VERTEX_COLOR #ifdef SRGB_DECODE albedoColor *= sRGBToLinear(v_Color); #else albedoColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main albedoColor *= albedoTexel; float m = metalness; #ifdef METALNESSMAP_ENABLED float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL]; m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0); #endif vec3 baseColor = albedoColor.rgb; albedoColor.rgb = baseColor * (1.0 - m); vec3 specFactor = mix(vec3(0.04), baseColor, m); float g = 1.0 - roughness; #ifdef ROUGHNESSMAP_ENABLED float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif @import ecgl.common.normalMap.fragmentMain vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseTerm = vec3(0.0); vec3 specularTerm = vec3(0.0); float ndv = clamp(dot(N, V), 0.0, 1.0); vec3 fresnelTerm = F_Schlick(ndv, specFactor); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++) {{ diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao; }} #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ vec3 L = -directionalLightDirection[_idx_]; vec3 lc = directionalLightColor[_idx_]; vec3 H = normalize(L + V); float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0); float ndh = clamp(dot(N, H), 0.0, 1.0); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[_idx_]; } #endif vec3 li = lc * ndl * shadowContrib; diffuseTerm += li; specularTerm += li * fresnelTerm * D_Phong(g, ndh); }} #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT vec3 L = reflect(-V, N); L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]); float rough2 = clamp(1.0 - g, 0.0, 1.0); float bias2 = rough2 * 5.0; vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy; vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y; vec3 envTexel2; for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++) {{ envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 51.5); specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao; }} #endif gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm; gl_FragColor.a = albedoColor.a; #ifdef SRGB_ENCODE gl_FragColor = linearTosRGB(gl_FragColor); #endif @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.hatching.vertex @import ecgl.realistic.vertex @end @export ecgl.hatching.fragment #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform vec4 color : [0.0, 0.0, 0.0, 1.0]; uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map uniform sampler2D hatch1; uniform sampler2D hatch2; uniform sampler2D hatch3; uniform sampler2D hatch4; uniform sampler2D hatch5; uniform sampler2D hatch6; float shade(in float tone) { vec4 c = vec4(1. ,1., 1., 1.); float step = 1. / 6.; vec2 uv = v_DetailTexcoord; if (tone <= step / 2.0) { c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone); } else if (tone <= step) { c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone); } if(tone > step && tone <= 2. * step){ c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step)); } if(tone > 2. * step && tone <= 3. * step){ c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step)); } if(tone > 3. * step && tone <= 4. * step){ c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step)); } if(tone > 4. * step && tone <= 5. * step){ c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step)); } if(tone > 5. * step){ c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step)); } return c.r; } const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { #ifdef SRGB_DECODE vec4 inkColor = sRGBToLinear(color); #else vec4 inkColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE inkColor *= sRGBToLinear(v_Color); #else inkColor *= v_Color; #endif #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float tone = 0.0; float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { tone += dot(ambientLightColor[i], w) * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; float lightTone = dot(directionalLightColor[i], w); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; tone += lightTone * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0))); } @end `},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.sm.depth.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif varying vec4 v_ViewPosition; void main(){ #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif v_ViewPosition = worldViewProjection * vec4(pos, 1.0); gl_Position = v_ViewPosition; } @end @export ecgl.sm.depth.fragment @import clay.sm.depth.fragment @end`},function(Ye,Me,pe){"use strict";var Oe=pe(134),ve=pe(138),ue=pe(139),fe=pe(145),he=pe(0),le=pe.n(he);le.a.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},function(ae,ie){ie.eachComponent({mainType:"grid3D",query:ae},function(me){me.setView(ae)})}),le.a.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},function(ae,ie){}),le.a.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},function(ae,ie){})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(135),fe=ve.a.extendComponentModel({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});ve.a.helper.mixinAxisModelCommonMethods(fe);function he(le,ae){return ae.type||(ae.data?"category":"value")}Object(ue.a)("x",fe,he,{name:"X"}),Object(ue.a)("y",fe,he,{name:"Y"}),Object(ue.a)("z",fe,he,{name:"Z"})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(136),fe=pe(137),he=pe.n(fe),le=["value","category","time","log"];Me.a=function(ae,ie,me,E){ve.a.util.each(le,function(b){ie.extend({type:ae+"Axis3D."+b,__ordinalMeta:null,mergeDefaultAndTheme:function(z,ne){var oe=ne.getTheme();ve.a.util.merge(z,oe.get(b+"Axis3D")),ve.a.util.merge(z,this.getDefaultOption()),z.type=me(ae,z)},optionUpdated:function(){var z=this.option;z.type==="category"&&(this.__ordinalMeta=he.a.createByAxisModel(this))},getCategories:function(){if(this.option.type==="category")return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:ve.a.util.merge(ve.a.util.clone(ue.a[b+"Axis3D"]),E||{},!0)})}),ie.superClass.registerSubTypeDefaulter(ae+"Axis3D",ve.a.util.curry(me,ae))}},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},fe=ve.a.util.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},ue),he=ve.a.util.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},ue),le=ve.a.util.defaults({scale:!0,min:"dataMin",max:"dataMax"},he),ae=ve.a.util.defaults({logBase:10},he);ae.scale=!0,Me.a={categoryAxis3D:fe,valueAxis3D:he,timeAxis3D:le,logAxis3D:ae}},function(Ye,Me,pe){var Oe=pe(12),ve=Oe.createHashMap,ue=Oe.isObject,fe=Oe.map;function he(E){this.categories=E.categories||[],this._needCollect=E.needCollect,this._deduplication=E.deduplication,this._map}he.createByAxisModel=function(E){var b=E.option,z=b.data,ne=z&&fe(z,ie);return new he({categories:ne,needCollect:!ne,deduplication:b.dedplication!==!1})};var le=he.prototype;le.getOrdinal=function(E){return ae(this).get(E)},le.parseAndCollect=function(E){var b,z=this._needCollect;if(typeof E!="string"&&!z)return E;if(z&&!this._deduplication)return b=this.categories.length,this.categories[b]=E,b;var ne=ae(this);return b=ne.get(E),b==null&&(z?(b=this.categories.length,this.categories[b]=E,ne.set(E,b)):b=NaN),b};function ae(E){return E._map||(E._map=ve(E.categories))}function ie(E){return ue(E)&&E.value!=null?E.value:E+""}var me=he;Ye.exports=me},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=ve.a.extendComponentModel({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});ve.a.util.merge(le.prototype,ue.a),ve.a.util.merge(le.prototype,fe.a),ve.a.util.merge(le.prototype,he.a);var ae=le},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(39),he=pe(22),le=pe(3),ae=pe(73),ie=pe(34),me=pe(140),E=pe(142),b=pe(58),z=pe(40),ne=le.a.firstNotNull;ue.a.Shader.import(z.a),["x","y","z"].forEach(function(de){ve.a.extendComponentView({type:de+"Axis3D"})});var oe={x:0,y:2,z:1},se=ve.a.extendComponentView({type:"grid3D",__ecgl__:!0,init:function(de,a){var x=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],re=["x","y","z"],ce=new ue.a.Material({shader:ue.a.createShader("ecgl.color"),depthMask:!1,transparent:!0}),ge=new ue.a.Material({shader:ue.a.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});ce.define("fragment","DOUBLE_SIDED"),ce.define("both","VERTEX_COLOR"),this.groupGL=new ue.a.Node,this._control=new fe.a({zr:a.getZr()}),this._control.init(),this._faces=x.map(function(ye){var be=new me.a(ye,ge,ce);return this.groupGL.add(be.rootNode),be},this),this._axes=re.map(function(ye){var be=new E.a(ye,ge);return this.groupGL.add(be.rootNode),be},this);var _e=a.getDevicePixelRatio();this._axisLabelSurface=new ae.a({width:256,height:256,devicePixelRatio:_e}),this._axisLabelSurface.onupdate=function(){a.getZr().refresh()},this._axisPointerLineMesh=new ue.a.Mesh({geometry:new he.a({useNativeLine:!1}),material:ge,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new ae.a({width:128,height:128,devicePixelRatio:_e}),this._axisPointerLabelsMesh=new b.a({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ue.a.Node,this._sceneHelper=new ie.a,this._sceneHelper.initLight(this._lightRoot)},render:function(de,a,x){this._model=de,this._api=x;var re=de.coordinateSystem;re.viewGL.add(this._lightRoot),de.get("show")?re.viewGL.add(this.groupGL):re.viewGL.remove(this.groupGL);var ce=this._control;ce.setViewGL(re.viewGL);var ge=de.getModel("viewControl");ce.setFromViewControlModel(ge,0),this._axisLabelSurface.clear();var _e=["x","y","z"].reduce(function(ye,be){var Se=re.getAxis(be),Be=Se.model;return ye[be]=ne(Be.get("axisLabel.interval"),de.get("axisLabel.interval")),Se.scale.type==="ordinal"&&(ye[be]==null||ye[be]=="auto")&&(ye[be]=Math.floor(Se.scale.getTicks().length/8)),ye},{});ce.off("update"),de.get("show")&&(this._faces.forEach(function(ye){ye.update(_e,de,a,x)},this),this._axes.forEach(function(ye){ye.update(de,_e,this._axisLabelSurface,x)},this)),ce.on("update",this._onCameraChange.bind(this,de,x),this),this._sceneHelper.setScene(re.viewGL.scene),this._sceneHelper.updateLight(de),re.viewGL.setPostEffect(de.getModel("postEffect"),x),re.viewGL.setTemporalSuperSampling(de.getModel("temporalSuperSampling")),this._initMouseHandler(de)},afterRender:function(de,a,x,re){var ce=re.renderer;this._sceneHelper.updateAmbientCubemap(ce,de,x),this._sceneHelper.updateSkybox(ce,de,x)},showAxisPointer:function(de,a,x,re){this._doShowAxisPointer(),this._updateAxisPointer(re.value)},hideAxisPointer:function(de,a,x,re){this._doHideAxisPointer()},_initMouseHandler:function(de){var a=de.coordinateSystem,x=a.viewGL;de.get("show")&&de.get("axisPointer.show")?x.on("mousemove",this._updateAxisPointerOnMousePosition,this):x.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(de){if(!de.target){for(var a=this._model,x=a.coordinateSystem,re=x.viewGL,ce=re.castRay(de.offsetX,de.offsetY,new ue.a.Ray),ge,_e=0;_ere[1]?0:1,ye=this._faces[x*2+_e],be=this._faces[x*2+1-_e];ye.rootNode.invisible=!0,be.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var de=this._model.coordinateSystem,a=de.getAxis("x"),x=de.getAxis("y"),re=de.getAxis("z"),ce=re.getExtentMax(),ge=re.getExtentMin(),_e=a.getExtentMin(),ye=a.getExtentMax(),be=x.getExtentMax(),Se=x.getExtentMin(),Be=this._axes[0].rootNode,Ae=this._axes[1].rootNode,we=this._axes[2].rootNode,Ue=this._faces,Pe=Ue[4].rootNode.invisible?Se:be,ze=Ue[2].rootNode.invisible?ce:ge,Ke=Ue[0].rootNode.invisible?_e:ye,Ne=Ue[2].rootNode.invisible?ce:ge,Re=Ue[0].rootNode.invisible?ye:_e,$e=Ue[4].rootNode.invisible?Se:be;Be.rotation.identity(),Ae.rotation.identity(),we.rotation.identity(),Ue[4].rootNode.invisible&&(this._axes[0].flipped=!0,Be.rotation.rotateX(Math.PI)),Ue[0].rootNode.invisible&&(this._axes[1].flipped=!0,Ae.rotation.rotateZ(Math.PI)),Ue[4].rootNode.invisible&&(this._axes[2].flipped=!0,we.rotation.rotateY(Math.PI)),Be.position.set(0,ze,Pe),Ae.position.set(Ke,Ne,0),we.position.set(Re,0,$e),Be.update(),Ae.update(),we.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var de=this._control.getCamera(),a=[new ue.a.Vector4,new ue.a.Vector4],x=new ue.a.Vector4;this.groupGL.getWorldPosition(x),x.w=1,x.transformMat4(de.viewMatrix).transformMat4(de.projectionMatrix),x.x/=x.w,x.y/=x.w,this._axes.forEach(function(re){for(var ce=re.axisLineCoords,ge=re.labelsMesh.geometry,_e=0;_ex.y?"bottom":"top"):(we="middle",Ae=Se>x.x?"left":"right"),re.setSpriteAlign(Ae,we,this._api)},this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(de){var a=this._model.coordinateSystem,x=a.dataToPoint(de),re=this._axisPointerLineMesh,ce=re.geometry,ge=this._model.getModel("axisPointer"),_e=this._api.getDevicePixelRatio();ce.convertToDynamicArray(!0);function ye(pt){return le.a.firstNotNull(pt.model.get("axisPointer.show"),ge.get("show"))}function be(pt){var At=pt.model.getModel("axisPointer",ge),gt=At.getModel("lineStyle"),Ft=ue.a.parseColor(gt.get("color")),Ct=ne(gt.get("width"),1),Yt=ne(gt.get("opacity"),1);return Ft[3]*=Yt,{color:Ft,lineWidth:Ct}}for(var Se=0;Se0&&z.rotation.rotateY(Math.PI),ne.normal.z=-se)}function b(z,ne,oe){this.rootNode=new ue.a.Node;var se=new ue.a.Mesh({geometry:new he.a({useNativeLine:!1}),material:ne,castShadow:!1,ignorePicking:!0,renderOrder:1}),de=new ue.a.Mesh({geometry:new le.a,material:oe,castShadow:!1,culling:!1,ignorePicking:!0,renderOrder:0});this.rootNode.add(de),this.rootNode.add(se),this.faceInfo=z,this.plane=new ue.a.Plane,this.linesMesh=se,this.quadsMesh=de}b.prototype.update=function(z,ne,oe,se){var de=ne.coordinateSystem,a=[de.getAxis(this.faceInfo[0]),de.getAxis(this.faceInfo[1])],x=this.linesMesh.geometry,re=this.quadsMesh.geometry;x.convertToDynamicArray(!0),re.convertToDynamicArray(!0),this._updateSplitLines(x,a,ne,z,se),this._udpateSplitAreas(re,a,ne,z,se),x.convertToTypedArray(),re.convertToTypedArray();var ce=de.getAxis(this.faceInfo[2]);E(this.rootNode,this.plane,ce,this.faceInfo[3])},b.prototype._updateSplitLines=function(z,ne,oe,se,de){var a=de.getDevicePixelRatio();ne.forEach(function(x,re){var ce=x.model,ge=ne[1-re].getExtent();if(!x.scale.isBlank()){var _e=ce.getModel("splitLine",oe.getModel("splitLine"));if(_e.get("show")){var ye=_e.getModel("lineStyle"),be=ye.get("color"),Se=ie(ye.get("opacity"),1),Be=ie(ye.get("width"),1),Ae=_e.get("interval");(Ae==null||Ae==="auto")&&(Ae=se[x.dim]),be=ve.a.util.isArray(be)?be:[be];for(var we=x.getTicksCoords(),Ue=0,Pe=0;Pe65535?new Uint32Array(z*3):new Uint16Array(z*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var me=ae.create(),E=ae.create(),b=ae.create(),z=[0,3,1,3,2,1];return function(ne,oe){var se=this.attributes.position,de=this.attributes.normal,a=this.attributes.color;ae.sub(me,ne[1],ne[0]),ae.sub(E,ne[2],ne[1]),ae.cross(b,me,E),ae.normalize(b,b);for(var x=0;x<4;x++)se.set(this._vertexOffset+x,ne[x]),a.set(this._vertexOffset+x,oe),de.set(this._vertexOffset+x,b);for(var re=this._faceOffset*3,x=0;x<6;x++)this.indices[re+x]=z[x]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});ue.a.util.defaults(ie.prototype,fe.a),Me.a=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(22),he=pe(3),le=pe(58),ae=pe(74),ie=he.a.firstNotNull,me={x:0,y:2,z:1};function E(z,ne){var oe=new ue.a.Mesh({geometry:new fe.a({useNativeLine:!1}),material:ne,castShadow:!1,ignorePicking:!0,renderOrder:2}),se=new le.a;se.material.depthMask=!1;var de=new ue.a.Node;de.add(oe),de.add(se),this.rootNode=de,this.dim=z,this.linesMesh=oe,this.labelsMesh=se,this.axisLineCoords=null,this.labelElements=[]}var b={x:"y",y:"x",z:"y"};E.prototype.update=function(z,ne,oe,se){var de=z.coordinateSystem,a=de.getAxis(this.dim),x=ne[this.dim],re=this.linesMesh.geometry,ce=this.labelsMesh.geometry;re.convertToDynamicArray(!0),ce.convertToDynamicArray(!0);var ge=a.model,_e=a.getExtent(),gt=se.getDevicePixelRatio(),ye=ge.getModel("axisLine",z.getModel("axisLine")),be=ge.getModel("axisTick",z.getModel("axisTick")),Se=ge.getModel("axisLabel",z.getModel("axisLabel")),Be=ye.get("lineStyle.color");if(ye.get("show")){var Ae=ye.getModel("lineStyle"),we=[0,0,0],Ue=[0,0,0],Pe=me[a.dim];we[Pe]=_e[0],Ue[Pe]=_e[1],this.axisLineCoords=[we,Ue];var ze=ue.a.parseColor(Be),Ke=ie(Ae.get("width"),1),Ne=ie(Ae.get("opacity"),1);ze[3]*=Ne,re.addLine(we,Ue,ze,Ke*gt)}if(be.get("show")){var Re=be.getModel("lineStyle"),$e=ue.a.parseColor(ie(Re.get("color"),Be)),Ke=ie(Re.get("width"),1);$e[3]*=ie(Re.get("opacity"),1);var nt=a.getTicksCoords(),ut=be.get("interval");(ut==null||ut==="auto")&&(ut=x);for(var Qe=be.get("length"),rt=0;rt65535?new Uint32Array(me*3):new Uint16Array(me*3))},setSpriteAlign:function(ae,ie,me,E,b){me==null&&(me="left"),E==null&&(E="top");var z,ne,oe,se;switch(b=b||0,me){case"left":z=b,oe=ie[0]+b;break;case"center":case"middle":z=-ie[0]/2,oe=ie[0]/2;break;case"right":z=-ie[0]-b,oe=-b;break}switch(E){case"bottom":ne=b,se=ie[1]+b;break;case"middle":ne=-ie[1]/2,se=ie[1]/2;break;case"top":ne=-ie[1]-b,se=-b;break}var de=ae*4,a=this.attributes.offset;a.set(de,[z,se]),a.set(de+1,[oe,se]),a.set(de+2,[oe,ne]),a.set(de+3,[z,ne])},addSprite:function(ae,ie,me,E,b,z){var ne=this._vertexOffset;this.setSprite(this._vertexOffset/4,ae,ie,me,E,b,z);for(var oe=0;oe1?"."+x[1]:""))}function he(x,re){return x=(x||"").toLowerCase().replace(/-(.)/g,function(ce,ge){return ge.toUpperCase()}),re&&x&&(x=x.charAt(0).toUpperCase()+x.slice(1)),x}var le=Oe.normalizeCssArray;function ae(x){return String(x).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var ie=["a","b","c","d","e","f","g"],me=function(x,re){return"{"+x+(re==null?"":re)+"}"};function E(x,re,ce){Oe.isArray(re)||(re=[re]);var ge=re.length;if(!ge)return"";for(var _e=re[0].$vars||[],ye=0;ye<_e.length;ye++){var be=ie[ye];x=x.replace(me(be),me(be,0))}for(var Se=0;Se':'':""}var ne=function(x){return x<10?"0"+x:x};function oe(x,re,ce){(x==="week"||x==="month"||x==="quarter"||x==="half-year"||x==="year")&&(x=`MM-dd yyyy`);var ge=ue.parseDate(re),_e=ce?"UTC":"",ye=ge["get"+_e+"FullYear"](),be=ge["get"+_e+"Month"]()+1,Se=ge["get"+_e+"Date"](),Be=ge["get"+_e+"Hours"](),Ae=ge["get"+_e+"Minutes"](),we=ge["get"+_e+"Seconds"]();return x=x.replace("MM",ne(be)).replace("M",be).replace("yyyy",ye).replace("yy",ye%100).replace("dd",ne(Se)).replace("d",Se).replace("hh",ne(Be)).replace("h",Be).replace("mm",ne(Ae)).replace("m",Ae).replace("ss",ne(we)).replace("s",we),x}function se(x){return x&&x.charAt(0).toUpperCase()+x.substr(1)}var de=ve.truncateText,a=ve.getBoundingRect;Me.addCommas=fe,Me.toCamelCase=he,Me.normalizeCssArray=le,Me.encodeHTML=ae,Me.formatTpl=E,Me.formatTplSimple=b,Me.getTooltipMarker=z,Me.formatTime=oe,Me.capitalFirst=se,Me.truncateText=de,Me.getTextRect=a},function(Ye,Me,pe){var Oe=pe(75),ve=pe(151),ue=pe(12),fe=ue.getContext,he=ue.extend,le=ue.retrieve2,ae=ue.retrieve3,ie={},me=0,E=5e3,b=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,z="12px sans-serif",ne={};function oe(Ke,Ne){ne[Ke]=Ne}function se(Ke,Ne){Ne=Ne||z;var Re=Ke+":"+Ne;if(ie[Re])return ie[Re];for(var $e=(Ke+"").split(` `),nt=0,ut=0,Qe=$e.length;utE&&(me=0,ie={}),me++,ie[Re]=nt,nt}function de(Ke,Ne,Re,$e,nt,ut,Qe){return ut?x(Ke,Ne,Re,$e,nt,ut,Qe):a(Ke,Ne,Re,$e,nt,Qe)}function a(Ke,Ne,Re,$e,nt,ut){var Qe=we(Ke,Ne,nt,ut),rt=se(Ke,Ne);nt&&(rt+=nt[1]+nt[3]);var pt=Qe.outerHeight,At=re(0,rt,Re),gt=ce(0,pt,$e),Ft=new Oe(At,gt,rt,pt);return Ft.lineHeight=Qe.lineHeight,Ft}function x(Ke,Ne,Re,$e,nt,ut,Qe){var rt=Ue(Ke,{rich:ut,truncate:Qe,font:Ne,textAlign:Re,textPadding:nt}),pt=rt.outerWidth,At=rt.outerHeight,gt=re(0,pt,Re),Ft=ce(0,At,$e);return new Oe(gt,Ft,pt,At)}function re(Ke,Ne,Re){return Re==="right"?Ke-=Ne:Re==="center"&&(Ke-=Ne/2),Ke}function ce(Ke,Ne,Re){return Re==="middle"?Ke-=Ne/2:Re==="bottom"&&(Ke-=Ne),Ke}function ge(Ke,Ne,Re){var $e=Ne.x,nt=Ne.y,ut=Ne.height,Qe=Ne.width,rt=ut/2,pt="left",At="top";switch(Ke){case"left":$e-=Re,nt+=rt,pt="right",At="middle";break;case"right":$e+=Re+Qe,nt+=rt,At="middle";break;case"top":$e+=Qe/2,nt-=Re,pt="center",At="bottom";break;case"bottom":$e+=Qe/2,nt+=ut+Re,pt="center";break;case"inside":$e+=Qe/2,nt+=rt,pt="center",At="middle";break;case"insideLeft":$e+=Re,nt+=rt,At="middle";break;case"insideRight":$e+=Qe-Re,nt+=rt,pt="right",At="middle";break;case"insideTop":$e+=Qe/2,nt+=Re,pt="center";break;case"insideBottom":$e+=Qe/2,nt+=ut-Re,pt="center",At="bottom";break;case"insideTopLeft":$e+=Re,nt+=Re;break;case"insideTopRight":$e+=Qe-Re,nt+=Re,pt="right";break;case"insideBottomLeft":$e+=Re,nt+=ut-Re,At="bottom";break;case"insideBottomRight":$e+=Qe-Re,nt+=ut-Re,pt="right",At="bottom";break}return{x:$e,y:nt,textAlign:pt,textVerticalAlign:At}}function _e(Ke,Ne,Re,$e,nt){if(!Ne)return"";var ut=(Ke+"").split(` `);nt=ye(Ne,Re,$e,nt);for(var Qe=0,rt=ut.length;Qe=Qe;pt++)rt-=Qe;var At=se(nt);return At>rt&&(nt="",At=0),rt=Ke-At,$e.ellipsis=nt,$e.ellipsisWidth=At,$e.contentWidth=rt,$e.containerWidth=Ke,$e}function be(Ke,Ne){var Re=Ne.containerWidth,$e=Ne.font,nt=Ne.contentWidth;if(!Re)return"";var ut=se(Ke,$e);if(ut<=Re)return Ke;for(var Qe=0;;Qe++){if(ut<=nt||Qe>=Ne.maxIterations){Ke+=Ne.ellipsis;break}var rt=Qe===0?Se(Ke,nt,Ne.ascCharWidth,Ne.cnCharWidth):ut>0?Math.floor(Ke.length*nt/ut):0;Ke=Ke.substr(0,rt),ut=se(Ke,$e)}return Ke===""&&(Ke=Ne.placeholder),Ke}function Se(Ke,Ne,Re,$e){for(var nt=0,ut=0,Qe=Ke.length;utpt)Ke="",ut=[];else if(At!=null)for(var gt=ye(At-(Re?Re[1]+Re[3]:0),Ne,$e.ellipsis,{minChar:$e.minChar,placeholder:$e.placeholder}),Ft=0,Ct=ut.length;Ft$e&&Pe(Re,Ke.substring($e,ut)),Pe(Re,nt[2],nt[1]),$e=b.lastIndex}$eYt)return{lines:[],width:0,height:0};et.textWidth=se(et.text,tt);var ot=He.textWidth,ct=ot==null||ot==="auto";if(typeof ot=="string"&&ot.charAt(ot.length-1)==="%")et.percentWidth=ot,At.push(et),ot=0;else{if(ct){ot=et.textWidth;var lt=He.textBackgroundColor,mt=lt&<.image;mt&&(mt=ve.findExistImage(mt),ve.isImageReady(mt)&&(ot=Math.max(ot,mt.width*at/mt.height)))}var Lt=We?We[1]+We[3]:0;ot+=Lt;var ft=Ct!=null?Ct-Le:null;ft!=null&&ft4){console.warn("Support at most 4 cascade");continue}Yt.shadowCascade>1&&(Ft=Yt.shadowCascade),this.renderDirectionalLightShadow(ze,Ke,Ne,Yt,this._opaqueCasters,At,pt,rt)}else Yt instanceof b.a?this.renderSpotLightShadow(ze,Ke,Yt,this._opaqueCasters,Qe,ut):Yt instanceof ne.a&&this.renderPointLightShadow(ze,Ke,Yt,this._opaqueCasters,gt);this._shadowMapNumber[Yt.type]++}for(var zt in this._shadowMapNumber)for(var Xe=this._shadowMapNumber[zt],Fe=zt+"_SHADOWMAP_COUNT",Ct=0;Ct0?Ze.define("fragment",Fe,Xe):Ze.isDefined("fragment",Fe)&&Ze.undefine("fragment",Fe))}for(var Ct=0;Ct0){var We=rt.map(He);if(et.directionalLightShadowMaps={value:rt,type:"tv"},et.directionalLightMatrices={value:pt,type:"m4v"},et.directionalLightShadowMapSizes={value:We,type:"1fv"},Ft){var tt=At.slice(),at=At.slice();tt.pop(),at.shift(),tt.reverse(),at.reverse(),pt.reverse(),et.shadowCascadeClipsNear={value:tt,type:"1fv"},et.shadowCascadeClipsFar={value:at,type:"1fv"}}}if(ut.length>0){var ot=ut.map(He),et=Ke.shadowUniforms;et.spotLightShadowMaps={value:ut,type:"tv"},et.spotLightMatrices={value:Qe,type:"m4v"},et.spotLightShadowMapSizes={value:ot,type:"1fv"}}gt.length>0&&(et.pointLightShadowMaps={value:gt,type:"tv"})},renderDirectionalLightShadow:function(){var ze=new he.a,Ke=new le.a,Ne=new fe.a,Re=new le.a,$e=new le.a,nt=new le.a,ut=new le.a;return function(Qe,rt,pt,At,gt,Ft,Ct,Yt){var zt=this._getDepthMaterial(At),Xe={getMaterial:function(Ut){return Ut.shadowDepthMaterial||zt},sortCompare:ae.a.opaqueSortCompare};if(!rt.viewBoundingBoxLastFrame.isFinite()){var Fe=rt.getBoundingBox();rt.viewBoundingBoxLastFrame.copy(Fe).applyTransform(pt.viewMatrix)}var Le=Math.min(-rt.viewBoundingBoxLastFrame.min.z,pt.far),Ze=Math.max(-rt.viewBoundingBoxLastFrame.max.z,pt.near),et=this._getDirectionalLightCamera(At,rt,pt),He=nt.array;ut.copy(et.projectionMatrix),Ae.invert($e.array,et.worldTransform.array),Ae.multiply($e.array,$e.array,pt.worldTransform.array),Ae.multiply(He,ut.array,$e.array);for(var We=[],tt=pt instanceof ce.a,at=(pt.near+pt.far)/(pt.near-pt.far),ot=2*pt.near*pt.far/(pt.near-pt.far),ct=0;ct<=At.shadowCascade;ct++){var lt=Ze*Math.pow(Le/Ze,ct/At.shadowCascade),mt=Ze+(Le-Ze)*ct/At.shadowCascade,Lt=lt*At.cascadeSplitLogFactor+mt*(1-At.cascadeSplitLogFactor);We.push(Lt),Ft.push(-(-Lt*at+ot)/-Lt)}var ft=this._getTexture(At,At.shadowCascade);Yt.push(ft);var St=Qe.viewport,nn=Qe.gl;this._frameBuffer.attach(ft),this._frameBuffer.bind(Qe),nn.clear(nn.COLOR_BUFFER_BIT|nn.DEPTH_BUFFER_BIT);for(var ct=0;ct= shadowCascadeClipsNear[_idx_] && depth <= shadowCascadeClipsFar[_idx_] ) { shadowContrib = computeShadowContrib( directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[0], vec2(1.0 / float(SHADOW_CASCADE), 1.0), vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0) ); shadowContribs[0] = shadowContrib; } }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #else void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ float shadowContrib; for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ shadowContrib = computeShadowContrib( directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[_idx_] ); shadowContribs[_idx_] = shadowContrib; }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif #if defined(POINT_LIGHT_SHADOWMAP_COUNT) void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){ vec3 lightPosition; vec3 direction; for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ lightPosition = pointLightPosition[_idx_]; direction = position - lightPosition; shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]); }} for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif @end`},function(Ye,Me,pe){"use strict";var Oe=pe(7),ve=pe(5),ue=pe(6),fe=pe(10),he=pe(156),le=pe(162),ae=pe(164),ie=pe(166),me=pe(2),E=pe(167),b=pe(169),z=pe(9),ne=pe(170),oe=pe(171),se=pe(172),de=pe(173),a=pe(174),x=pe(175),re=pe(176),ce=pe(177),ge=pe(178),_e=pe(179),ye=pe(180),be=pe(181);Oe.a.import(oe.a),Oe.a.import(se.a),Oe.a.import(de.a),Oe.a.import(a.a),Oe.a.import(x.a),Oe.a.import(re.a),Oe.a.import(ce.a),Oe.a.import(ge.a),Oe.a.import(_e.a),Oe.a.import(ye.a),Oe.a.import(be.a);var Se={color:{parameters:{width:function(we){return we.getWidth()},height:function(we){return we.getHeight()}}}},Be=["composite","FXAA"];function Ae(){this._sourceTexture=new ve.a({type:ue.a.HALF_FLOAT}),this._depthTexture=new ve.a({format:ue.a.DEPTH_COMPONENT,type:ue.a.UNSIGNED_INT}),this._framebuffer=new fe.a,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,fe.a.DEPTH_ATTACHMENT),this._normalPass=new E.a,this._compositor=Object(he.a)(ne.a);var we=this._compositor.getNodeByName("source");we.texture=this._sourceTexture;var Ue=this._compositor.getNodeByName("coc");this._sourceNode=we,this._cocNode=Ue,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(ze){return this._compositor.getNodeByName(ze)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=Be.map(function(ze){return this._compositor.getNodeByName(ze)},this);var Pe={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new le.a(Pe),this._ssrPass=new ae.a(Pe),this._edgePass=new b.a(Pe)}Ae.prototype.resize=function(ze,Ke,Pe){Pe=Pe||1;var ze=ze*Pe,Ke=Ke*Pe,Ne=this._sourceTexture,Re=this._depthTexture;Ne.width=ze,Ne.height=Ke,Re.width=ze,Re.height=Ke},Ae.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},Ae.prototype._getPrevNode=function(we){for(var Ue=Be.indexOf(we.name)-1,Pe=this._finalNodesChain[Ue];Pe&&!this._compositor.getNodeByName(Pe.name);)Ue-=1,Pe=this._finalNodesChain[Ue];return Pe},Ae.prototype._getNextNode=function(we){for(var Ue=Be.indexOf(we.name)+1,Pe=this._finalNodesChain[Ue];Pe&&!this._compositor.getNodeByName(Pe.name);)Ue+=1,Pe=this._finalNodesChain[Ue];return Pe},Ae.prototype._addChainNode=function(we){var Ue=this._getPrevNode(we),Pe=this._getNextNode(we);Ue&&(Ue.outputs=Se,we.inputs.texture=Ue.name,Pe?(we.outputs=Se,Pe.inputs.texture=we.name):we.outputs=null,this._compositor.addNode(we))},Ae.prototype._removeChainNode=function(we){var Ue=this._getPrevNode(we),Pe=this._getNextNode(we);Ue&&(Pe?(Ue.outputs=Se,Pe.inputs.texture=Ue.name):Ue.outputs=null,this._compositor.removeNode(we))},Ae.prototype.updateNormal=function(we,Ue,Pe,ze){this._ifRenderNormalPass()&&this._normalPass.update(we,Ue,Pe)},Ae.prototype.updateSSAO=function(we,Ue,Pe,ze){this._ssaoPass.update(we,Pe,ze)},Ae.prototype.enableSSAO=function(){this._enableSSAO=!0},Ae.prototype.disableSSAO=function(){this._enableSSAO=!1},Ae.prototype.enableSSR=function(){this._enableSSR=!0},Ae.prototype.disableSSR=function(){this._enableSSR=!1},Ae.prototype.getSSAOTexture=function(we,Ue,Pe,ze){return this._ssaoPass.getTargetTexture()},Ae.prototype.getSourceFrameBuffer=function(){return this._framebuffer},Ae.prototype.getSourceTexture=function(){return this._sourceTexture},Ae.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},Ae.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},Ae.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},Ae.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},Ae.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},Ae.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},Ae.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},Ae.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},Ae.prototype.enableEdge=function(){this._enableEdge=!0},Ae.prototype.disableEdge=function(){this._enableEdge=!1},Ae.prototype.setBloomIntensity=function(we){this._compositeNode.setParameter("bloomIntensity",we)},Ae.prototype.setSSAOParameter=function(we,Ue){switch(we){case"quality":var Pe={low:6,medium:12,high:32,ultra:62}[Ue]||12;this._ssaoPass.setParameter("kernelSize",Pe);break;case"radius":this._ssaoPass.setParameter(we,Ue),this._ssaoPass.setParameter("bias",Ue/200);break;case"intensity":this._ssaoPass.setParameter(we,Ue);break;default:console.warn("Unkown SSAO parameter "+we)}},Ae.prototype.setDOFParameter=function(we,Ue){switch(we){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(we,Ue);break;case"blurRadius":for(var Pe=0;Pe=0||(this.nodes.push(fe),this._dirty=!0)},removeNode:function(fe){typeof fe=="string"&&(fe=this.getNodeByName(fe));var he=this.nodes.indexOf(fe);he>=0&&(this.nodes.splice(he,1),this._dirty=!0)},getNodeByName:function(fe){for(var he=0;he=le.COLOR_ATTACHMENT0&&ne<=le.COLOR_ATTACHMENT0+8&&se.push(ne);oe.drawBuffersEXT(se)}he.saveClear(),he.clearBit=ve.a.DEPTH_BUFFER_BIT|ve.a.COLOR_BUFFER_BIT,ae=he.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),he.restoreClear(),ie.unbind(he)}this.trigger("afterrender",ae),this._rendering=!1,this._rendered=!0}});Me.a=fe},function(Ye,Me,pe){"use strict";var Oe=pe(42),ve=Oe.a.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(ue,fe){return this.texture},beforeFrame:function(){},afterFrame:function(){}});Me.a=ve},function(Ye,Me,pe){"use strict";var Oe=pe(14),ve=pe(42),ue=ve.a.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var fe=new Oe.a({fragment:this.shader});this.pass=fe},{render:function(fe,he){this.trigger("beforerender",fe),this._rendering=!0;var le=fe.gl;for(var ae in this.inputLinks){var ie=this.inputLinks[ae],me=ie.node.getOutput(fe,ie.pin);this.pass.setUniform(ae,me)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(fe),this.pass.render(fe,he);else{this.pass.outputs={};var E={};for(var b in this.outputs){var z=this.updateParameter(b,fe);isNaN(z.width)&&this.updateParameter(b,fe);var ne=this.outputs[b],oe=this._compositor.allocateTexture(z);this._outputTextures[b]=oe;var se=ne.attachment||le.COLOR_ATTACHMENT0;typeof se=="string"&&(se=le[se]),E[se]=oe}this._compositor.getFrameBuffer().bind(fe);for(var se in E)this._compositor.getFrameBuffer().attach(E[se],se);this.pass.render(fe),this._compositor.getFrameBuffer().updateMipmap(fe.gl)}for(var ae in this.inputLinks){var ie=this.inputLinks[ae];ie.node.removeReference(ie.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",fe)},updateParameter:function(fe,he){var le=this.outputs[fe],ae=le.parameters,ie=le._parametersCopy;if(ie||(ie=le._parametersCopy={}),ae)for(var me in ae)me!=="width"&&me!=="height"&&(ie[me]=ae[me]);var E,b;return ae.width instanceof Function?E=ae.width.call(this,he):E=ae.width,ae.height instanceof Function?b=ae.height.call(this,he):b=ae.height,(ie.width!==E||ie.height!==b)&&this._outputTextures[fe]&&this._outputTextures[fe].dispose(he),ie.width=E,ie.height=b,ie},setParameter:function(fe,he){this.pass.setUniform(fe,he)},getParameter:function(fe){return this.pass.getUniform(fe)},setParameters:function(fe){for(var he in fe)this.setParameter(he,fe[he])},define:function(fe,he){this.pass.material.define("fragment",fe,he)},undefine:function(fe){this.pass.material.undefine("fragment",fe)},removeReference:function(fe){if(this._outputReferences[fe]--,this._outputReferences[fe]===0){var he=this.outputs[fe];he.keepLastFrame?(this._prevOutputTextures[fe]&&this._compositor.releaseTexture(this._prevOutputTextures[fe]),this._prevOutputTextures[fe]=this._outputTextures[fe]):this._compositor.releaseTexture(this._outputTextures[fe])}},clear:function(){ve.a.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});Me.a=ue},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10),ie=pe(43),me=pe(163);le.a.import(me.a);function E(oe){for(var se=new Uint8Array(oe*oe*4),de=0,a=new ve.a,x=0;x 0.99999) { gl_FragColor = vec4(1.0); return; } mat3 kernelBasis; #endif float z = depthTexel.r * 2.0 - 1.0; vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * projectedPos; vec3 position = p4.xyz / p4.w; float ao = ssaoEstimator(position, kernelBasis); ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0); gl_FragColor = vec4(vec3(ao), 1.0); } @end @export ecgl.ssao.blur #define SHADER_NAME SSAO_BLUR uniform sampler2D ssaoTexture; #ifdef NORMALTEX_ENABLED uniform sampler2D normalTex; #endif varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 1.0; uniform int direction: 0.0; #ifdef DEPTHTEX_ENABLED uniform sampler2D depthTex; uniform mat4 projection; uniform float depthRange : 0.5; float getLinearDepth(vec2 coord) { float depth = texture2D(depthTex, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } #endif void main() { float kernel[5]; kernel[0] = 0.122581; kernel[1] = 0.233062; kernel[2] = 0.288713; kernel[3] = 0.233062; kernel[4] = 0.122581; vec2 off = vec2(0.0); if (direction == 0) { off[0] = blurSize / textureSize.x; } else { off[1] = blurSize / textureSize.y; } vec2 coord = v_Texcoord; float sum = 0.0; float weightAll = 0.0; #ifdef NORMALTEX_ENABLED vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0; #endif #if defined(DEPTHTEX_ENABLED) float centerDepth = getLinearDepth(v_Texcoord); #endif for (int i = 0; i < 5; i++) { vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0)); float w = kernel[i]; #ifdef NORMALTEX_ENABLED vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0; w *= clamp(dot(normal, centerNormal), 0.0, 1.0); #endif #ifdef DEPTHTEX_ENABLED float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); #endif weightAll += w; sum += texture2D(ssaoTexture, coord).r * w; } gl_FragColor = vec4(vec3(sum / weightAll), 1.0); } @end `},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10),ie=pe(43),me=pe(165);le.a.import(me.a);function E(b){b=b||{},this._ssrPass=new he.a({fragment:le.a.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new he.a({fragment:le.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new he.a({fragment:le.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._ssrPass.setUniform("gBufferTexture1",b.normalTexture),this._ssrPass.setUniform("gBufferTexture2",b.depthTexture),this._blurPass1.setUniform("gBufferTexture1",b.normalTexture),this._blurPass1.setUniform("gBufferTexture2",b.depthTexture),this._blurPass2.setUniform("gBufferTexture1",b.normalTexture),this._blurPass2.setUniform("gBufferTexture2",b.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._texture1=new ue.a({type:fe.a.HALF_FLOAT}),this._texture2=new ue.a({type:fe.a.HALF_FLOAT}),this._texture3=new ue.a({type:fe.a.HALF_FLOAT}),this._frameBuffer=new ae.a({depthBuffer:!1})}E.prototype.update=function(b,z,ne,oe){var se=b.getWidth(),de=b.getHeight(),a=b.getDevicePixelRatio(),x=this._texture1,re=this._texture2,ce=this._texture3;re.width=se/2,re.height=de/2,x.width=se,x.height=de,ce.width=se*a,ce.height=de*a;var ge=this._frameBuffer,_e=this._ssrPass,ye=this._blurPass1,be=this._blurPass2,Se=new Oe.a;Oe.a.transpose(Se,z.worldTransform),_e.setUniform("sourceTexture",ne),_e.setUniform("projection",z.projectionMatrix.array),_e.setUniform("projectionInv",z.invProjectionMatrix.array),_e.setUniform("viewInverseTranspose",Se.array),_e.setUniform("nearZ",z.near),_e.setUniform("jitterOffset",oe/30),ye.setUniform("textureSize",[se/2,de/2]),be.setUniform("textureSize",[se,de]),be.setUniform("sourceTexture",ne),ye.setUniform("projection",z.projectionMatrix.array),be.setUniform("projection",z.projectionMatrix.array),ge.attach(x),ge.bind(b),_e.render(b),ge.attach(re),ye.setUniform("texture",x),ye.render(b),ge.attach(ce),be.setUniform("texture",re),be.render(b),ge.unbind(b)},E.prototype.getTargetTexture=function(){return this._texture3},E.prototype.setParameter=function(b,z){b==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",z):this._ssrPass.setUniform(b,z)},E.prototype.setSSAOTexture=function(b){var z=this._blurPass2;b?(z.material.enableTexture("ssaoTex"),z.material.set("ssaoTex",b)):z.material.disableTexture("ssaoTex")},E.prototype.dispose=function(b){this._texture1.dispose(b),this._texture2.dispose(b),this._texture3.dispose(b),this._frameBuffer.dispose(b)},Me.a=E},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.ssr.main #define MAX_ITERATION 20; uniform sampler2D sourceTexture; uniform sampler2D gBufferTexture1; uniform sampler2D gBufferTexture2; uniform mat4 projection; uniform mat4 projectionInv; uniform mat4 viewInverseTranspose; uniform float maxRayDistance: 50; uniform float pixelStride: 16; uniform float pixelStrideZCutoff: 50; uniform float screenEdgeFadeStart: 0.9; uniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; uniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 10; uniform float nearZ; uniform vec2 viewportSize : VIEWPORT_SIZE; uniform float jitterOffset: 0; varying vec2 v_Texcoord; #ifdef DEPTH_DECODE @import clay.util.decode_float #endif float fetchDepth(sampler2D depthTexture, vec2 uv) { vec4 depthTexel = texture2D(depthTexture, uv); return depthTexel.r * 2.0 - 1.0; } float linearDepth(float depth) { if (projection[3][3] == 0.0) { return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } else { return (depth - projection[3][2]) / projection[2][2]; } } bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel) { if (rayZFar > rayZNear) { float t = rayZFar; rayZFar = rayZNear; rayZNear = t; } float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel)); return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold; } bool traceScreenSpaceRay( vec3 rayOrigin, vec3 rayDir, float jitter, out vec2 hitPixel, out vec3 hitPoint, out float iterationCount ) { float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ) ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance; vec3 rayEnd = rayOrigin + rayDir * rayLength; vec4 H0 = projection * vec4(rayOrigin, 1.0); vec4 H1 = projection * vec4(rayEnd, 1.0); float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w; vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1; vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize; vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize; P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0; vec2 delta = P1 - P0; bool permute = false; if (abs(delta.x) < abs(delta.y)) { permute = true; delta = delta.yx; P0 = P0.yx; P1 = P1.yx; } float stepDir = sign(delta.x); float invdx = stepDir / delta.x; vec3 dQ = (Q1 - Q0) * invdx; float dk = (k1 - k0) * invdx; vec2 dP = vec2(stepDir, delta.y * invdx); float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff); float pixStride = 1.0 + strideScaler * pixelStride; dP *= pixStride; dQ *= pixStride; dk *= pixStride; vec4 pqk = vec4(P0, Q0.z, k0); vec4 dPQK = vec4(dP, dQ.z, dk); pqk += dPQK * jitter; float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); float rayZNear; bool intersect = false; vec2 texelSize = 1.0 / viewportSize; iterationCount = 0.0; for (int i = 0; i < MAX_ITERATION; i++) { pqk += dPQK; rayZNear = rayZFar; rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); hitPixel = permute ? pqk.yx : pqk.xy; hitPixel *= texelSize; intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel); iterationCount += 1.0; if (intersect) { break; } } Q0.xy += dQ.xy * iterationCount; Q0.z = pqk.z; hitPoint = Q0 / pqk.w; return intersect; } float calculateAlpha( float iterationCount, float reflectivity, vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir ) { float alpha = clamp(reflectivity, 0.0, 1.0); alpha *= 1.0 - (iterationCount / float(MAX_ITERATION)); vec2 hitPixelNDC = hitPixel * 2.0 - 1.0; float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y))); alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart); float _eyeFadeStart = eyeFadeStart; float _eyeFadeEnd = eyeFadeEnd; if (_eyeFadeStart > _eyeFadeEnd) { float tmp = _eyeFadeEnd; _eyeFadeEnd = _eyeFadeStart; _eyeFadeStart = tmp; } float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd); alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart); alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0); return alpha; } @import clay.util.rand @import clay.util.rgbm void main() { vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord); if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) { discard; } float g = normalAndGloss.a; if (g <= minGlossiness) { discard; } float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness); vec3 N = normalAndGloss.rgb * 2.0 - 1.0; N = normalize((viewInverseTranspose * vec4(N, 0.0)).xyz); vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0); vec4 pos = projectionInv * projectedPos; vec3 rayOrigin = pos.xyz / pos.w; vec3 rayDir = normalize(reflect(normalize(rayOrigin), N)); vec2 hitPixel; vec3 hitPoint; float iterationCount; vec2 uv2 = v_Texcoord * viewportSize; float jitter = rand(fract(v_Texcoord + jitterOffset)); bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount); float dist = distance(rayOrigin, hitPoint); float alpha = calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir) * float(intersect); vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0; hitNormal = normalize((viewInverseTranspose * vec4(hitNormal, 0.0)).xyz); if (dot(hitNormal, rayDir) >= 0.0) { discard; } if (!intersect) { discard; } vec4 color = decodeHDR(texture2D(sourceTexture, hitPixel)); gl_FragColor = encodeHDR(vec4(color.rgb * alpha, color.a)); } @end @export ecgl.ssr.blur uniform sampler2D texture; uniform sampler2D gBufferTexture1; uniform sampler2D gBufferTexture2; uniform mat4 projection; uniform float depthRange : 0.05; varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 4.0; #ifdef BLEND #ifdef SSAOTEX_ENABLED uniform sampler2D ssaoTex; #endif uniform sampler2D sourceTexture; #endif float getLinearDepth(vec2 coord) { float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } @import clay.util.rgbm void main() { @import clay.compositor.kernel.gaussian_9 vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord); float g = centerNTexel.a; float maxBlurSize = clamp(1.0 - g + 0.1, 0.0, 1.0) * blurSize; #ifdef VERTICAL vec2 off = vec2(0.0, maxBlurSize / textureSize.y); #else vec2 off = vec2(maxBlurSize / textureSize.x, 0.0); #endif vec2 coord = v_Texcoord; vec4 sum = vec4(0.0); float weightAll = 0.0; vec3 cN = centerNTexel.rgb * 2.0 - 1.0; float cD = getLinearDepth(v_Texcoord); for (int i = 0; i < 9; i++) { vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0)); float w = gaussianKernel[i] * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0); float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0)); weightAll += w; sum += decodeHDR(texture2D(texture, coord)) * w; } #ifdef BLEND float aoFactor = 1.0; #ifdef SSAOTEX_ENABLED aoFactor = texture2D(ssaoTex, v_Texcoord).r; #endif gl_FragColor = encodeHDR( sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord)) ); #else gl_FragColor = encodeHDR(sum / weightAll); #endif } @end`},function(Ye,Me,pe){"use strict";Me.a=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925]},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(6),ue=pe(7),fe=pe(10),he=pe(17),le=pe(14),ae=pe(54),ie=pe(168);ue.a.import(ie.a);function me(z,ne,oe,se,de){var a=z.gl;ne.setUniform(a,"1i",oe,de),a.activeTexture(a.TEXTURE0+de),se.isRenderable()?se.bind(z):se.unbind(z)}function E(z,ne,oe,se,de){var a,x,re,ce,ge=z.gl;return function(_e,ye,be){if(!(ce&&ce.material===_e.material)){var Se=_e.material,Be=_e.__program,Ae=Se.get("roughness");Ae==null&&(Ae=1);var we=Se.get("normalMap")||ne,Ue=Se.get("roughnessMap"),Pe=Se.get("bumpMap"),ze=Se.get("uvRepeat"),Ke=Se.get("uvOffset"),Ne=Se.get("detailUvRepeat"),Re=Se.get("detailUvOffset"),$e=!!Pe&&Se.isTextureEnabled("bumpMap"),nt=!!Ue&&Se.isTextureEnabled("roughnessMap"),ut=Se.isDefined("fragment","DOUBLE_SIDED");Pe=Pe||oe,Ue=Ue||se,be!==ye?(ye.set("normalMap",we),ye.set("bumpMap",Pe),ye.set("roughnessMap",Ue),ye.set("useBumpMap",$e),ye.set("useRoughnessMap",nt),ye.set("doubleSide",ut),ze!=null&&ye.set("uvRepeat",ze),Ke!=null&&ye.set("uvOffset",Ke),Ne!=null&&ye.set("detailUvRepeat",Ne),Re!=null&&ye.set("detailUvOffset",Re),ye.set("roughness",Ae)):(Be.setUniform(ge,"1f","roughness",Ae),a!==we&&me(z,Be,"normalMap",we,0),x!==Pe&&Pe&&me(z,Be,"bumpMap",Pe,1),re!==Ue&&Ue&&me(z,Be,"roughnessMap",Ue,2),ze!=null&&Be.setUniform(ge,"2f","uvRepeat",ze),Ke!=null&&Be.setUniform(ge,"2f","uvOffset",Ke),Ne!=null&&Be.setUniform(ge,"2f","detailUvRepeat",Ne),Re!=null&&Be.setUniform(ge,"2f","detailUvOffset",Re),Be.setUniform(ge,"1i","useBumpMap",+$e),Be.setUniform(ge,"1i","useRoughnessMap",+nt),Be.setUniform(ge,"1i","doubleSide",+ut)),a=we,x=Pe,re=Ue,ce=_e}}}function b(z){z=z||{},this._depthTex=new Oe.a({format:ve.a.DEPTH_COMPONENT,type:ve.a.UNSIGNED_INT}),this._normalTex=new Oe.a({type:ve.a.HALF_FLOAT}),this._framebuffer=new fe.a,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,fe.a.DEPTH_ATTACHMENT),this._normalMaterial=new he.a({shader:new ue.a(ue.a.source("ecgl.normal.vertex"),ue.a.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=ae.a.createBlank("#000"),this._defaultBumpMap=ae.a.createBlank("#000"),this._defaultRoughessMap=ae.a.createBlank("#000"),this._debugPass=new le.a({fragment:ue.a.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}b.prototype.getDepthTexture=function(){return this._depthTex},b.prototype.getNormalTexture=function(){return this._normalTex},b.prototype.update=function(z,ne,oe){var se=z.getWidth(),de=z.getHeight(),a=this._depthTex,x=this._normalTex,re=this._normalMaterial;a.width=se,a.height=de,x.width=se,x.height=de;var ce=ne.opaqueList;this._framebuffer.bind(z),z.gl.clearColor(0,0,0,0),z.gl.clear(z.gl.COLOR_BUFFER_BIT|z.gl.DEPTH_BUFFER_BIT),z.gl.disable(z.gl.BLEND),z.renderPass(ce,oe,{getMaterial:function(){return re},ifRender:function(ge){return ge.renderNormal},beforeRender:E(z,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:z.opaqueSortCompare}),this._framebuffer.unbind(z)},b.prototype.renderDebug=function(z){this._debugPass.render(z)},b.prototype.dispose=function(z){this._depthTex.dispose(z),this._normalTex.dispose(z)},Me.a=b},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.normal.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes varying vec3 v_Normal; varying vec3 v_WorldPosition; @import ecgl.common.normalMap.vertexHeader @import ecgl.common.vertexAnimation.header void main() { @import ecgl.common.vertexAnimation.main @import ecgl.common.uv.main v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; @import ecgl.common.normalMap.vertexMain gl_Position = worldViewProjection * vec4(pos, 1.0); } @end @export ecgl.normal.fragment #define ROUGHNESS_CHANEL 0 uniform bool useBumpMap; uniform bool useRoughnessMap; uniform bool doubleSide; uniform float roughness; @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform mat4 viewInverse : VIEWINVERSE; @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.bumpMap.header uniform sampler2D roughnessMap; void main() { vec3 N = v_Normal; bool flipNormal = false; if (doubleSide) { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { flipNormal = true; } } @import ecgl.common.normalMap.fragmentMain if (useBumpMap) { N = bumpNormal(v_WorldPosition, v_Normal, N); } float g = 1.0 - roughness; if (useRoughnessMap) { float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); } if (flipNormal) { N = -N; } gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; gl_FragColor.a = g; } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(9),ve=pe(4),ue=pe(5),fe=pe(6),he=pe(14),le=pe(7),ae=pe(10);function ie(me){me=me||{},this._edgePass=new he.a({fragment:le.a.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",me.normalTexture),this._edgePass.setUniform("depthTexture",me.depthTexture),this._targetTexture=new ue.a({type:fe.a.HALF_FLOAT}),this._frameBuffer=new ae.a,this._frameBuffer.attach(this._targetTexture)}ie.prototype.update=function(me,E,b,z){var ne=me.getWidth(),oe=me.getHeight(),se=this._targetTexture;se.width=ne,se.height=oe;var de=this._frameBuffer;de.bind(me),this._edgePass.setUniform("projectionInv",E.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[ne,oe]),this._edgePass.setUniform("texture",b),this._edgePass.render(me),de.unbind(me)},ie.prototype.getTargetTexture=function(){return this._targetTexture},ie.prototype.setParameter=function(me,E){this._edgePass.setUniform(me,E)},ie.prototype.dispose=function(me){this._targetTexture.dispose(me),this._frameBuffer.dispose(me)},Me.a=ie},function(Ye,Me,pe){"use strict";Me.a={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]}},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.kernel.gaussian_9 float gaussianKernel[9]; gaussianKernel[0] = 0.07; gaussianKernel[1] = 0.09; gaussianKernel[2] = 0.12; gaussianKernel[3] = 0.14; gaussianKernel[4] = 0.16; gaussianKernel[5] = 0.14; gaussianKernel[6] = 0.12; gaussianKernel[7] = 0.09; gaussianKernel[8] = 0.07; @end @export clay.compositor.kernel.gaussian_13 float gaussianKernel[13]; gaussianKernel[0] = 0.02; gaussianKernel[1] = 0.03; gaussianKernel[2] = 0.06; gaussianKernel[3] = 0.08; gaussianKernel[4] = 0.11; gaussianKernel[5] = 0.13; gaussianKernel[6] = 0.14; gaussianKernel[7] = 0.13; gaussianKernel[8] = 0.11; gaussianKernel[9] = 0.08; gaussianKernel[10] = 0.06; gaussianKernel[11] = 0.03; gaussianKernel[12] = 0.02; @end @export clay.compositor.gaussian_blur #define SHADER_NAME gaussian_blur uniform sampler2D texture;varying vec2 v_Texcoord; uniform float blurSize : 2.0; uniform vec2 textureSize : [512.0, 512.0]; uniform float blurDir : 0.0; @import clay.util.rgbm @import clay.util.clamp_sample void main (void) { @import clay.compositor.kernel.gaussian_9 vec2 off = blurSize / textureSize; off *= vec2(1.0 - blurDir, blurDir); vec4 sum = vec4(0.0); float weightAll = 0.0; for (int i = 0; i < 9; i++) { float w = gaussianKernel[i]; vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off)); sum += texel * w; weightAll += w; } gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); } @end `},function(Ye,Me,pe){"use strict";Me.a=` @export clay.compositor.lut varying vec2 v_Texcoord; uniform sampler2D texture; uniform sampler2D lookup; void main() { vec4 tex = texture2D(texture, v_Texcoord); float blueColor = tex.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec4 newColor1 = texture2D(lookup, texPos1); vec4 newColor2 = texture2D(lookup, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); gl_FragColor = vec4(newColor.rgb, tex.w); } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.output #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; @import clay.util.rgbm void main() { vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); gl_FragColor.rgb = tex.rgb; #ifdef OUTPUT_ALPHA gl_FragColor.a = tex.a; #else gl_FragColor.a = 1.0; #endif gl_FragColor = encodeHDR(gl_FragColor); #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.bright uniform sampler2D texture; uniform float threshold : 1; uniform float scale : 1.0; uniform vec2 textureSize: [512, 512]; varying vec2 v_Texcoord; const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721); @import clay.util.rgbm vec4 median(vec4 a, vec4 b, vec4 c) { return a + b + c - min(min(a, b), c) - max(max(a, b), c); } void main() { vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); #ifdef ANTI_FLICKER vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0); vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz)); vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz)); vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy)); vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy)); texel = median(median(texel, s1, s2), s3, s4); #endif float lum = dot(texel.rgb , lumWeight); vec4 color; if (lum > threshold && texel.a > 0.0) { color = vec4(texel.rgb * scale, texel.a * scale); } else { color = vec4(0.0); } gl_FragColor = encodeHDR(color); } @end `},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.downsample uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; varying vec2 v_Texcoord; @import clay.util.rgbm float brightness(vec3 c) { return max(max(c.r, c.g), c.b); } @import clay.util.clamp_sample void main() { vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy; #ifdef ANTI_FLICKER vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb; vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb; vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb; vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb; float s1w = 1.0 / (brightness(s1) + 1.0); float s2w = 1.0 / (brightness(s2) + 1.0); float s3w = 1.0 / (brightness(s3) + 1.0); float s4w = 1.0 / (brightness(s4) + 1.0); float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w); vec4 color = vec4( (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum, 1.0 ); #else vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); color *= 0.25; #endif gl_FragColor = encodeHDR(color); } @end`},function(Ye,Me,pe){"use strict";Me.a=` @export clay.compositor.upsample #define HIGH_QUALITY uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; uniform float sampleScale: 0.5; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.clamp_sample void main() { #ifdef HIGH_QUALITY vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord - d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord - d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xy)); gl_FragColor = encodeHDR(s / 16.0); #else vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); gl_FragColor = encodeHDR(s / 4.0); #endif } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.hdr.composite uniform sampler2D texture; #ifdef BLOOM_ENABLED uniform sampler2D bloom; #endif #ifdef LENSFLARE_ENABLED uniform sampler2D lensflare; uniform sampler2D lensdirt; #endif #ifdef LUM_ENABLED uniform sampler2D lum; #endif #ifdef LUT_ENABLED uniform sampler2D lut; #endif #ifdef COLOR_CORRECTION uniform float brightness : 0.0; uniform float contrast : 1.0; uniform float saturation : 1.0; #endif #ifdef VIGNETTE uniform float vignetteDarkness: 1.0; uniform float vignetteOffset: 1.0; #endif uniform float exposure : 1.0; uniform float bloomIntensity : 0.25; uniform float lensflareIntensity : 1; varying vec2 v_Texcoord; @import clay.util.srgb vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } float eyeAdaption(float fLum) { return mix(0.2, fLum, 0.5); } #ifdef LUT_ENABLED vec3 lutTransform(vec3 color) { float blueColor = color.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec4 newColor1 = texture2D(lut, texPos1); vec4 newColor2 = texture2D(lut, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); return newColor.rgb; } #endif @import clay.util.rgbm void main() { vec4 texel = vec4(0.0); vec4 originalTexel = vec4(0.0); #ifdef TEXTURE_ENABLED texel = decodeHDR(texture2D(texture, v_Texcoord)); originalTexel = texel; #endif #ifdef BLOOM_ENABLED vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord)); texel.rgb += bloomTexel.rgb * bloomIntensity; texel.a += bloomTexel.a * bloomIntensity; #endif #ifdef LENSFLARE_ENABLED texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity; #endif texel.a = min(texel.a, 1.0); #ifdef LUM_ENABLED float fLum = texture2D(lum, vec2(0.5, 0.5)).r; float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum))); float exposureBias = adaptedLumDest * exposure; #else float exposureBias = exposure; #endif texel.rgb *= exposureBias; texel.rgb = ACESToneMapping(texel.rgb); texel = linearTosRGB(texel); #ifdef LUT_ENABLED texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0))); #endif #ifdef COLOR_CORRECTION texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0); texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721)); texel.rgb = mix(vec3(lum), texel.rgb, saturation); #endif #ifdef VIGNETTE vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset); texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv)); #endif gl_FragColor = encodeHDR(texel); #ifdef DEBUG #if DEBUG == 1 gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord))); #elif DEBUG == 2 gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity); #elif DEBUG == 3 gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity)); #endif #endif if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) { gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721)); } #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.blend #define SHADER_NAME blend #ifdef TEXTURE1_ENABLED uniform sampler2D texture1; uniform float weight1 : 1.0; #endif #ifdef TEXTURE2_ENABLED uniform sampler2D texture2; uniform float weight2 : 1.0; #endif #ifdef TEXTURE3_ENABLED uniform sampler2D texture3; uniform float weight3 : 1.0; #endif #ifdef TEXTURE4_ENABLED uniform sampler2D texture4; uniform float weight4 : 1.0; #endif #ifdef TEXTURE5_ENABLED uniform sampler2D texture5; uniform float weight5 : 1.0; #endif #ifdef TEXTURE6_ENABLED uniform sampler2D texture6; uniform float weight6 : 1.0; #endif varying vec2 v_Texcoord; @import clay.util.rgbm void main() { vec4 tex = vec4(0.0); #ifdef TEXTURE1_ENABLED tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1; #endif #ifdef TEXTURE2_ENABLED tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2; #endif #ifdef TEXTURE3_ENABLED tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3; #endif #ifdef TEXTURE4_ENABLED tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4; #endif #ifdef TEXTURE5_ENABLED tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5; #endif #ifdef TEXTURE6_ENABLED tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6; #endif gl_FragColor = encodeHDR(tex); } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export clay.compositor.fxaa uniform sampler2D texture; uniform vec4 viewport : VIEWPORT; varying vec2 v_Texcoord; #define FXAA_REDUCE_MIN (1.0/128.0) #define FXAA_REDUCE_MUL (1.0/8.0) #define FXAA_SPAN_MAX 8.0 @import clay.util.rgbm void main() { vec2 resolution = 1.0 / viewport.zw; vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz; vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz; vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) ); vec3 rgbM = rgbaM.xyz; float opacity = rgbaM.w; vec3 luma = vec3( 0.299, 0.587, 0.114 ); float lumaNW = dot( rgbNW, luma ); float lumaNE = dot( rgbNE, luma ); float lumaSW = dot( rgbSW, luma ); float lumaSE = dot( rgbSE, luma ); float lumaM = dot( rgbM, luma ); float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) ); float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) ); vec2 dir; dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN ); float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce ); dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX), max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), dir * rcpDirMin)) * resolution; vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz; rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz; rgbA *= 0.5; vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz; rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz; rgbB *= 0.25; rgbB += rgbA * 0.5; float lumaB = dot( rgbB, luma ); if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) { gl_FragColor = vec4( rgbA, opacity ); } else { gl_FragColor = vec4( rgbB, opacity ); } } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.dof.coc uniform sampler2D depth; uniform float zNear: 0.1; uniform float zFar: 2000; uniform float focalDistance: 3; uniform float focalRange: 1; uniform float focalLength: 30; uniform float fstop: 2.8; varying vec2 v_Texcoord; @import clay.util.encode_float void main() { float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0; float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear)); float aperture = focalLength / fstop; float coc; float uppper = focalDistance + focalRange; float lower = focalDistance - focalRange; if (dist <= uppper && dist >= lower) { coc = 0.5; } else { float focalAdjusted = dist > uppper ? uppper : lower; coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength))); coc = clamp(coc, 0.0, 2.0) / 2.00001; if (dist < lower) { coc = -coc; } coc = coc * 0.5 + 0.5; } gl_FragColor = encodeFloat(coc); } @end @export ecgl.dof.composite #define DEBUG 0 uniform sampler2D original; uniform sampler2D blurred; uniform sampler2D nearfield; uniform sampler2D coc; uniform sampler2D nearcoc; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.float void main() { vec4 blurredColor = decodeHDR(texture2D(blurred, v_Texcoord)); vec4 originalColor = decodeHDR(texture2D(original, v_Texcoord)); float fCoc = decodeFloat(texture2D(coc, v_Texcoord)); fCoc = abs(fCoc * 2.0 - 1.0); float weight = smoothstep(0.0, 1.0, fCoc); #ifdef NEARFIELD_ENABLED vec4 nearfieldColor = decodeHDR(texture2D(nearfield, v_Texcoord)); float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord)); fNearCoc = abs(fNearCoc * 2.0 - 1.0); gl_FragColor = encodeHDR( mix( nearfieldColor, mix(originalColor, blurredColor, weight), pow(1.0 - fNearCoc, 4.0) ) ); #else gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight)); #endif } @end @export ecgl.dof.diskBlur #define POISSON_KERNEL_SIZE 16; uniform sampler2D texture; uniform sampler2D coc; varying vec2 v_Texcoord; uniform float blurRadius : 10.0; uniform vec2 textureSize : [512.0, 512.0]; uniform vec2 poissonKernel[POISSON_KERNEL_SIZE]; uniform float percent; float nrand(const in vec2 n) { return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453); } @import clay.util.rgbm @import clay.util.float void main() { vec2 offset = blurRadius / textureSize; float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent ); float cosa = cos(rnd); float sina = sin(rnd); vec4 basis = vec4(cosa, -sina, sina, cosa); #if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC) offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0); #endif #ifdef BLUR_COC float cocSum = 0.0; #else vec4 color = vec4(0.0); #endif float weightSum = 0.0; for (int i = 0; i < POISSON_KERNEL_SIZE; i++) { vec2 ofs = poissonKernel[i]; ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw)); vec2 uv = v_Texcoord + ofs * offset; vec4 texel = texture2D(texture, uv); float w = 1.0; #ifdef BLUR_COC float fCoc = decodeFloat(texel) * 2.0 - 1.0; cocSum += clamp(fCoc, -1.0, 0.0) * w; #else texel = decodeHDR(texel); #if !defined(BLUR_NEARFIELD) float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0; w *= abs(fCoc); #endif color += texel * w; #endif weightSum += w; } #ifdef BLUR_COC gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5); #else color /= weightSum; gl_FragColor = encodeHDR(color); #endif } @end`},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.edge uniform sampler2D texture; uniform sampler2D normalTexture; uniform sampler2D depthTexture; uniform mat4 projectionInv; uniform vec2 textureSize; uniform vec4 edgeColor: [0,0,0,0.8]; varying vec2 v_Texcoord; vec3 packColor(vec2 coord) { float z = texture2D(depthTexture, coord).r * 2.0 - 1.0; vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * p; return vec3( texture2D(normalTexture, coord).rg, -p4.z / p4.w / 5.0 ); } void main() { vec2 cc = v_Texcoord; vec3 center = packColor(cc); float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5; float dx = size / textureSize.x; float dy = size / textureSize.y; vec2 coord; vec3 topLeft = packColor(cc+vec2(-dx, -dy)); vec3 top = packColor(cc+vec2(0.0, -dy)); vec3 topRight = packColor(cc+vec2(dx, -dy)); vec3 left = packColor(cc+vec2(-dx, 0.0)); vec3 right = packColor(cc+vec2(dx, 0.0)); vec3 bottomLeft = packColor(cc+vec2(-dx, dy)); vec3 bottom = packColor(cc+vec2(0.0, dy)); vec3 bottomRight = packColor(cc+vec2(dx, dy)); vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight; vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight; float edge = sqrt(dot(h, h) + dot(v, v)); edge = smoothstep(0.8, 1.0, edge); gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(43),ve=pe(14),ue=pe(10),fe=pe(5),he=pe(7),le=pe(9);function ae(ie){for(var me=[],E=0;E<30;E++)me.push([Object(Oe.a)(E,2),Object(Oe.a)(E,3)]);this._haltonSequence=me,this._frame=0,this._sourceTex=new fe.a,this._sourceFb=new ue.a,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new fe.a,this._outputTex=new fe.a;var b=this._blendPass=new ve.a({fragment:he.a.source("clay.compositor.blend")});b.material.disableTexturesAll(),b.material.enableTexture(["texture1","texture2"]),this._blendFb=new ue.a({depthBuffer:!1}),this._outputPass=new ve.a({fragment:he.a.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(z){z.blendEquationSeparate(z.FUNC_ADD,z.FUNC_ADD),z.blendFuncSeparate(z.ONE,z.ONE_MINUS_SRC_ALPHA,z.ONE,z.ONE_MINUS_SRC_ALPHA)}}ae.prototype={constructor:ae,jitterProjection:function(ie,me){var E=ie.viewport,b=E.devicePixelRatio||ie.getDevicePixelRatio(),z=E.width*b,ne=E.height*b,oe=this._haltonSequence[this._frame%this._haltonSequence.length],se=new le.a;se.array[12]=(oe[0]*2-1)/z,se.array[13]=(oe[1]*2-1)/ne,le.a.mul(me.projectionMatrix,se,me.projectionMatrix),le.a.invert(me.invProjectionMatrix,me.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(ie,me){this._prevFrameTex.width=ie,this._prevFrameTex.height=me,this._outputTex.width=ie,this._outputTex.height=me,this._sourceTex.width=ie,this._sourceTex.height=me,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(ie,me,E){var b=this._blendPass;this._frame===0?(b.setUniform("weight1",0),b.setUniform("weight2",1)):(b.setUniform("weight1",.9),b.setUniform("weight2",.1)),b.setUniform("texture1",this._prevFrameTex),b.setUniform("texture2",me||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(ie),b.render(ie),this._blendFb.unbind(ie),E||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(ie));var z=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=z,this._frame++},dispose:function(ie){this._sourceFb.dispose(ie),this._blendFb.dispose(ie),this._prevFrameTex.dispose(ie),this._outputTex.dispose(ie),this._sourceTex.dispose(ie),this._outputPass.dispose(ie),this._blendPass.dispose(ie)}},Me.a=ae},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(184),fe=pe(185),he=pe(82);ve.a.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},function(le,ae){ae.eachComponent({mainType:"geo3D",query:le},function(ie){ie.setView(le)})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(38),fe=pe(31),he=pe(32),le=pe(26),ae=pe(80),ie=ve.a.extendComponentModel({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var E=this.option;E.regions=this.getFilledRegions(E.regions,E.map);var b=ve.a.helper.completeDimensions(["value"],E.data,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),z=new ve.a.List(b,this);z.initData(E.regions);var ne={};z.each(function(oe){var se=z.getName(oe),de=z.getItemModel(oe);ne[se]=de}),this._regionModelMap=ne,this._data=z},getData:function(){return this._data},getRegionModel:function(E){var b=this.getData().getName(E);return this._regionModelMap[b]||new ve.a.Model(null,this)},getRegionPolygonCoords:function(E){var b=this.getData().getName(E),z=this.coordinateSystem.getRegion(b);return z?z.geometries:[]},getFormattedLabel:function(E,b){var z=this._data.getName(E),ne=this.getRegionModel(z),oe=ne.get(b==="normal"?["label","formatter"]:["emphasis","label","formatter"]);oe==null&&(oe=ne.get(["label","formatter"]));var se={name:z};if(typeof oe=="function")return se.status=b,oe(se);if(typeof oe=="string"){var de=se.seriesName;return oe.replace("{a}",de!=null?de:"")}else return z},defaultOption:{regions:[]}});ve.a.util.merge(ie.prototype,ae.a),ve.a.util.merge(ie.prototype,ue.a),ve.a.util.merge(ie.prototype,fe.a),ve.a.util.merge(ie.prototype,he.a),ve.a.util.merge(ie.prototype,le.a);var me=ie},function(Ye,Me,pe){"use strict";var Oe=pe(59),ve=pe(0),ue=pe.n(ve),fe=pe(2),he=pe(39),le=pe(34),ae=ue.a.extendComponentView({type:"geo3D",__ecgl__:!0,init:function(ie,me){this._geo3DBuilder=new Oe.a(me),this.groupGL=new fe.a.Node,this._lightRoot=new fe.a.Node,this._sceneHelper=new le.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new he.a({zr:me.getZr()}),this._control.init()},render:function(ie,me,E){this.groupGL.add(this._geo3DBuilder.rootNode);var b=ie.coordinateSystem;if(!(!b||!b.viewGL)){b.viewGL.add(this._lightRoot),ie.get("show")?b.viewGL.add(this.groupGL):b.viewGL.remove(this.groupGL);var z=this._control;z.setViewGL(b.viewGL);var ne=ie.getModel("viewControl");z.setFromViewControlModel(ne,0),this._sceneHelper.setScene(b.viewGL.scene),this._sceneHelper.updateLight(ie),b.viewGL.setPostEffect(ie.getModel("postEffect"),E),b.viewGL.setTemporalSuperSampling(ie.getModel("temporalSuperSampling")),this._geo3DBuilder.update(ie,me,E,0,ie.getData().count());var oe=b.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(se){se.material&&se.material[oe]("fragment","SRGB_DECODE")}),z.off("update"),z.on("update",function(){E.dispatchAction({type:"geo3DChangeCamera",alpha:z.getAlpha(),beta:z.getBeta(),distance:z.getDistance(),center:z.getCenter(),from:this.uid,geo3DId:ie.id})})}},afterRender:function(ie,me,E,b){var z=b.renderer;this._sceneHelper.updateAmbientCubemap(z,ie,E),this._sceneHelper.updateSkybox(z,ie,E)},dispose:function(){this._control.dispose()}})},function(Ye,Me,pe){"use strict";Me.a=Oe;function Oe(Pe,ze,Ke){Ke=Ke||2;var Ne=ze&&ze.length,Re=Ne?ze[0]*Ke:Pe.length,$e=ve(Pe,0,Re,Ke,!0),nt=[];if(!$e)return nt;var ut,Qe,rt,pt,At,gt,Ft;if(Ne&&($e=me(Pe,ze,$e,Ke)),Pe.length>80*Ke){ut=rt=Pe[0],Qe=pt=Pe[1];for(var Ct=Ke;Ctrt&&(rt=At),gt>pt&&(pt=gt);Ft=Math.max(rt-ut,pt-Qe)}return fe($e,nt,Ke,ut,Qe,Ft),nt}function ve(Pe,ze,Ke,Ne,Re){var $e,nt;if(Re===Ue(Pe,ze,Ke,Ne)>0)for($e=ze;$e=ze;$e-=Ne)nt=Be($e,Pe[$e],Pe[$e+1],nt);return nt&&ce(nt,nt.next)&&(Ae(nt),nt=nt.next),nt}function ue(Pe,ze){if(!Pe)return Pe;ze||(ze=Pe);var Ke=Pe,Ne;do if(Ne=!1,!Ke.steiner&&(ce(Ke,Ke.next)||re(Ke.prev,Ke,Ke.next)===0)){if(Ae(Ke),Ke=ze=Ke.prev,Ke===Ke.next)return null;Ne=!0}else Ke=Ke.next;while(Ne||Ke!==ze);return ze}function fe(Pe,ze,Ke,Ne,Re,$e,nt){if(Pe){!nt&&$e&&ne(Pe,Ne,Re,$e);for(var ut=Pe,Qe,rt;Pe.prev!==Pe.next;){if(Qe=Pe.prev,rt=Pe.next,$e?le(Pe,Ne,Re,$e):he(Pe)){ze.push(Qe.i/Ke),ze.push(Pe.i/Ke),ze.push(rt.i/Ke),Ae(Pe),Pe=rt.next,ut=rt.next;continue}if(Pe=rt,Pe===ut){nt?nt===1?(Pe=ae(Pe,ze,Ke),fe(Pe,ze,Ke,Ne,Re,$e,2)):nt===2&&ie(Pe,ze,Ke,Ne,Re,$e):fe(ue(Pe),ze,Ke,Ne,Re,$e,1);break}}}}function he(Pe){var ze=Pe.prev,Ke=Pe,Ne=Pe.next;if(re(ze,Ke,Ne)>=0)return!1;for(var Re=Pe.next.next;Re!==Pe.prev;){if(a(ze.x,ze.y,Ke.x,Ke.y,Ne.x,Ne.y,Re.x,Re.y)&&re(Re.prev,Re,Re.next)>=0)return!1;Re=Re.next}return!0}function le(Pe,ze,Ke,Ne){var Re=Pe.prev,$e=Pe,nt=Pe.next;if(re(Re,$e,nt)>=0)return!1;for(var ut=Re.x<$e.x?Re.x$e.x?Re.x>nt.x?Re.x:nt.x:$e.x>nt.x?$e.x:nt.x,pt=Re.y>$e.y?Re.y>nt.y?Re.y:nt.y:$e.y>nt.y?$e.y:nt.y,At=se(ut,Qe,ze,Ke,Ne),gt=se(rt,pt,ze,Ke,Ne),Ft=Pe.nextZ;Ft&&Ft.z<=gt;){if(Ft!==Pe.prev&&Ft!==Pe.next&&a(Re.x,Re.y,$e.x,$e.y,nt.x,nt.y,Ft.x,Ft.y)&&re(Ft.prev,Ft,Ft.next)>=0)return!1;Ft=Ft.nextZ}for(Ft=Pe.prevZ;Ft&&Ft.z>=At;){if(Ft!==Pe.prev&&Ft!==Pe.next&&a(Re.x,Re.y,$e.x,$e.y,nt.x,nt.y,Ft.x,Ft.y)&&re(Ft.prev,Ft,Ft.next)>=0)return!1;Ft=Ft.prevZ}return!0}function ae(Pe,ze,Ke){var Ne=Pe;do{var Re=Ne.prev,$e=Ne.next.next;!ce(Re,$e)&&ge(Re,Ne,Ne.next,$e)&&ye(Re,$e)&&ye($e,Re)&&(ze.push(Re.i/Ke),ze.push(Ne.i/Ke),ze.push($e.i/Ke),Ae(Ne),Ae(Ne.next),Ne=Pe=$e),Ne=Ne.next}while(Ne!==Pe);return Ne}function ie(Pe,ze,Ke,Ne,Re,$e){var nt=Pe;do{for(var ut=nt.next.next;ut!==nt.prev;){if(nt.i!==ut.i&&x(nt,ut)){var Qe=Se(nt,ut);nt=ue(nt,nt.next),Qe=ue(Qe,Qe.next),fe(nt,ze,Ke,Ne,Re,$e),fe(Qe,ze,Ke,Ne,Re,$e);return}ut=ut.next}nt=nt.next}while(nt!==Pe)}function me(Pe,ze,Ke,Ne){var Re=[],$e,nt,ut,Qe,rt;for($e=0,nt=ze.length;$e=Ke.next.y&&Ke.next.y!==Ke.y){var ut=Ke.x+(Re-Ke.y)*(Ke.next.x-Ke.x)/(Ke.next.y-Ke.y);if(ut<=Ne&&ut>$e){if($e=ut,ut===Ne){if(Re===Ke.y)return Ke;if(Re===Ke.next.y)return Ke.next}nt=Ke.x=Ke.x&&Ke.x>=rt&&Ne!==Ke.x&&a(Rent.x)&&ye(Ke,Pe)&&(nt=Ke,At=gt)),Ke=Ke.next;return nt}function ne(Pe,ze,Ke,Ne){var Re=Pe;do Re.z===null&&(Re.z=se(Re.x,Re.y,ze,Ke,Ne)),Re.prevZ=Re.prev,Re.nextZ=Re.next,Re=Re.next;while(Re!==Pe);Re.prevZ.nextZ=null,Re.prevZ=null,oe(Re)}function oe(Pe){var ze,Ke,Ne,Re,$e,nt,ut,Qe,rt=1;do{for(Ke=Pe,Pe=null,$e=null,nt=0;Ke;){for(nt++,Ne=Ke,ut=0,ze=0;ze0||Qe>0&&Ne;)ut!==0&&(Qe===0||!Ne||Ke.z<=Ne.z)?(Re=Ke,Ke=Ke.nextZ,ut--):(Re=Ne,Ne=Ne.nextZ,Qe--),$e?$e.nextZ=Re:Pe=Re,Re.prevZ=$e,$e=Re;Ke=Ne}$e.nextZ=null,rt*=2}while(nt>1);return Pe}function se(Pe,ze,Ke,Ne,Re){return Pe=32767*(Pe-Ke)/Re,ze=32767*(ze-Ne)/Re,Pe=(Pe|Pe<<8)&16711935,Pe=(Pe|Pe<<4)&252645135,Pe=(Pe|Pe<<2)&858993459,Pe=(Pe|Pe<<1)&1431655765,ze=(ze|ze<<8)&16711935,ze=(ze|ze<<4)&252645135,ze=(ze|ze<<2)&858993459,ze=(ze|ze<<1)&1431655765,Pe|ze<<1}function de(Pe){var ze=Pe,Ke=Pe;do ze.x=0&&(Pe-nt)*(Ne-ut)-(Ke-nt)*(ze-ut)>=0&&(Ke-nt)*($e-ut)-(Re-nt)*(Ne-ut)>=0}function x(Pe,ze){return Pe.next.i!==ze.i&&Pe.prev.i!==ze.i&&!_e(Pe,ze)&&ye(Pe,ze)&&ye(ze,Pe)&&be(Pe,ze)}function re(Pe,ze,Ke){return(ze.y-Pe.y)*(Ke.x-ze.x)-(ze.x-Pe.x)*(Ke.y-ze.y)}function ce(Pe,ze){return Pe.x===ze.x&&Pe.y===ze.y}function ge(Pe,ze,Ke,Ne){return ce(Pe,ze)&&ce(Ke,Ne)||ce(Pe,Ne)&&ce(Ke,ze)?!0:re(Pe,ze,Ke)>0!=re(Pe,ze,Ne)>0&&re(Ke,Ne,Pe)>0!=re(Ke,Ne,ze)>0}function _e(Pe,ze){var Ke=Pe;do{if(Ke.i!==Pe.i&&Ke.next.i!==Pe.i&&Ke.i!==ze.i&&Ke.next.i!==ze.i&&ge(Ke,Ke.next,Pe,ze))return!0;Ke=Ke.next}while(Ke!==Pe);return!1}function ye(Pe,ze){return re(Pe.prev,Pe,Pe.next)<0?re(Pe,ze,Pe.next)>=0&&re(Pe,Pe.prev,ze)>=0:re(Pe,ze,Pe.prev)<0||re(Pe,Pe.next,ze)<0}function be(Pe,ze){var Ke=Pe,Ne=!1,Re=(Pe.x+ze.x)/2,$e=(Pe.y+ze.y)/2;do Ke.y>$e!=Ke.next.y>$e&&Ke.next.y!==Ke.y&&Re<(Ke.next.x-Ke.x)*($e-Ke.y)/(Ke.next.y-Ke.y)+Ke.x&&(Ne=!Ne),Ke=Ke.next;while(Ke!==Pe);return Ne}function Se(Pe,ze){var Ke=new we(Pe.i,Pe.x,Pe.y),Ne=new we(ze.i,ze.x,ze.y),Re=Pe.next,$e=ze.prev;return Pe.next=ze,ze.prev=Pe,Ke.next=Re,Re.prev=Ke,Ne.next=Ke,Ke.prev=Ne,$e.next=Ne,Ne.prev=$e,Ne}function Be(Pe,ze,Ke,Ne){var Re=new we(Pe,ze,Ke);return Ne?(Re.next=Ne.next,Re.prev=Ne,Ne.next.prev=Re,Ne.next=Re):(Re.prev=Re,Re.next=Re),Re}function Ae(Pe){Pe.next.prev=Pe.prev,Pe.prev.next=Pe.next,Pe.prevZ&&(Pe.prevZ.nextZ=Pe.nextZ),Pe.nextZ&&(Pe.nextZ.prevZ=Pe.prevZ)}function we(Pe,ze,Ke){this.i=Pe,this.x=ze,this.y=Ke,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Oe.deviation=function(Pe,ze,Ke,Ne){var Re=ze&&ze.length,$e=Re?ze[0]*Ke:Pe.length,nt=Math.abs(Ue(Pe,0,$e,Ke));if(Re)for(var ut=0,Qe=ze.length;ut0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var E=this.getDisplacementTexture(),b=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==E||this._displacementScale!==b,this._displacementTexture=E,this._displacementScale=b},isDisplacementChanged:function(){return this._displacementChanged}});ve.a.util.merge(ie.prototype,ue.a),ve.a.util.merge(ie.prototype,fe.a),ve.a.util.merge(ie.prototype,he.a),ve.a.util.merge(ie.prototype,le.a);var me=ie},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(39),he=pe(34),le=pe(192),ae=pe(3),ie=ve.a.extendComponentView({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(me,E){this.groupGL=new ue.a.Node,this._sphereGeometry=new ue.a.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ue.a.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ue.a.PlaneGeometry,this._earthMesh=new ue.a.Mesh({renderNormal:!0}),this._lightRoot=new ue.a.Node,this._sceneHelper=new he.a,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._earthMesh),this._control=new fe.a({zr:E.getZr()}),this._control.init(),this._layerMeshes={}},render:function(me,E,b){var z=me.coordinateSystem,ne=me.get("shading");z.viewGL.add(this._lightRoot),me.get("show")?z.viewGL.add(this.groupGL):z.viewGL.remove(this.groupGL),this._sceneHelper.setScene(z.viewGL.scene),z.viewGL.setPostEffect(me.getModel("postEffect"),b),z.viewGL.setTemporalSuperSampling(me.getModel("temporalSuperSampling"));var oe=this._earthMesh;oe.geometry=this._sphereGeometry;var se="ecgl."+ne;(!oe.material||oe.material.shader.name!==se)&&(oe.material=ue.a.createMaterial(se)),ue.a.setMaterialFromModel(ne,oe.material,me,b),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(re){var ce=oe.material.get(re);ce&&(ce.flipY=!1)}),oe.material.set("color",ue.a.parseColor(me.get("baseColor")));var de=z.radius*.99;oe.scale.set(de,de,de);var a=oe.material.setTextureImage("diffuseMap",me.get("baseTexture"),b,{flipY:!1,anisotropic:8});a&&a.surface&&a.surface.attachToMesh(oe);var x=oe.material.setTextureImage("bumpMap",me.get("heightTexture"),b,{flipY:!1,anisotropic:8});x&&x.surface&&x.surface.attachToMesh(oe),oe.material[me.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(me,b),this._displaceVertices(me,b),this._updateViewControl(me,b),this._updateLayers(me,b)},afterRender:function(me,E,b,z){var ne=z.renderer;this._sceneHelper.updateAmbientCubemap(ne,me,b),this._sceneHelper.updateSkybox(ne,me,b)},_updateLayers:function(me,E){var b=me.coordinateSystem,z=me.get("layers"),ne=b.radius,oe=[],se=[],de=[],a=[];ve.a.util.each(z,function(_e){var ye=new ve.a.Model(_e),be=ye.get("type"),Se=ue.a.loadTexture(ye.get("texture"),E,{flipY:!1,anisotropic:8});if(Se.surface&&Se.surface.attachToMesh(this._earthMesh),be==="blend"){var Be=ye.get("blendTo"),Ae=ae.a.firstNotNull(ye.get("intensity"),1);Be==="emission"?(de.push(Se),a.push(Ae)):(oe.push(Se),se.push(Ae))}else{var we=ye.get("id"),Ue=this._layerMeshes[we];Ue||(Ue=this._layerMeshes[we]=new ue.a.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var Pe=ye.get("shading");Pe==="lambert"?(Ue.material=Ue.__lambertMaterial||new ue.a.Material({autoUpdateTextureStatus:!1,shader:ue.a.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),Ue.__lambertMaterial=Ue.material):(Ue.material=Ue.__colorMaterial||new ue.a.Material({autoUpdateTextureStatus:!1,shader:ue.a.createShader("ecgl.color"),transparent:!0,depthMask:!1}),Ue.__colorMaterial=Ue.material),Ue.material.enableTexture("diffuseMap");var ze=ye.get("distance"),Ke=ne+(ze==null?b.radius/100:ze);Ue.scale.set(Ke,Ke,Ke),ne=Ke;var Ne=this._blankTexture||(this._blankTexture=ue.a.createBlankTexture("rgba(255, 255, 255, 0)"));Ue.material.set("diffuseMap",Ne),ue.a.loadTexture(ye.get("texture"),E,{flipY:!1,anisotropic:8},function(Re){Re.surface&&Re.surface.attachToMesh(Ue),Ue.material.set("diffuseMap",Re),E.getZr().refresh()}),ye.get("show")?this.groupGL.add(Ue):this.groupGL.remove(Ue)}},this);var x=this._earthMesh.material;x.define("fragment","LAYER_DIFFUSEMAP_COUNT",oe.length),x.define("fragment","LAYER_EMISSIVEMAP_COUNT",de.length),x.set("layerDiffuseMap",oe),x.set("layerDiffuseIntensity",se),x.set("layerEmissiveMap",de),x.set("layerEmissionIntensity",a);var re=me.getModel("debug.wireframe");if(re.get("show")){x.define("both","WIREFRAME_TRIANGLE");var ce=ue.a.parseColor(re.get("lineStyle.color")||"rgba(0,0,0,0.5)"),ge=ae.a.firstNotNull(re.get("lineStyle.width"),1);x.set("wireframeLineWidth",ge),x.set("wireframeLineColor",ce)}else x.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(me,E){var b=me.coordinateSystem,z=me.getModel("viewControl"),ne=b.viewGL.camera,oe=this;function se(){return{type:"globeChangeCamera",alpha:de.getAlpha(),beta:de.getBeta(),distance:de.getDistance()-b.radius,center:de.getCenter(),from:oe.uid,globeId:me.id}}var de=this._control;de.setViewGL(b.viewGL);var a=z.get("targetCoord"),x,re;a!=null&&(re=a[0]+90,x=a[1]),de.setFromViewControlModel(z,{baseDistance:b.radius,alpha:x,beta:re}),de.off("update"),de.on("update",function(){E.dispatchAction(se())})},_displaceVertices:function(me,E){var b=me.get("displacementQuality"),z=me.get("debug.wireframe.show"),ne=me.coordinateSystem;if(!(!me.isDisplacementChanged()&&b===this._displacementQuality&&z===this._showDebugWireframe)){this._displacementQuality=b,this._showDebugWireframe=z;var oe=this._sphereGeometry,se={low:100,medium:200,high:400,ultra:800}[b]||200,de=se/2;(oe.widthSegments!==se||z)&&(oe.widthSegments=se,oe.heightSegments=de,oe.build()),this._doDisplaceVertices(oe,ne),z&&oe.generateBarycentric()}},_doDisplaceVertices:function(me,E){var b=me.attributes.position.value,z=me.attributes.texcoord0.value,ne=me.__originalPosition;(!ne||ne.length!==b.length)&&(ne=new Float32Array(b.length),ne.set(b),me.__originalPosition=ne);for(var oe=E.displacementWidth,se=E.displacementHeight,de=E.displacementData,a=0;a0&&E>0||me<0&&E<0)}function ae(ie,me){var E=ie.getData(),b=ie.get("barSize");if(b==null){var z=me.size,ne,oe,se=me.getAxis("x"),de=me.getAxis("y");se.type==="category"?ne=se.getBandWidth()*.7:ne=Math.round(z[0]/Math.sqrt(E.count()))*.6,de.type==="category"?oe=de.getBandWidth()*.7:oe=Math.round(z[1]/Math.sqrt(E.count()))*.6,b=[ne,oe]}else ve.a.util.isArray(b)||(b=[b,b]);var a=me.getAxis("z").scale.getExtent(),x=le(a),re=["x","y","z"].map(function(ce){return ie.coordDimToDataDim(ce)[0]});E.each(re,function(ce,ge,_e,ye){var be=E.get(re[2],ye,!0),Se=E.stackedOn?be-_e:x?0:a[0],Be=me.dataToPoint([ce,ge,Se]),Ae=me.dataToPoint([ce,ge,be]),we=he.dist(Be,Ae),Ue=[0,Ae[1]0&&(we++,_e[3]<.99&&(Se=!0))}}),x.geometry.setBarCount(we);var Be=oe.getLayout("orient"),Ae=this._barIndexOfData=new Int32Array(oe.count()),we=0;oe.each(function(Pe){if(!oe.hasValue(Pe)){Ae[Pe]=-1;return}var ze=oe.getItemLayout(Pe),Ke=ze[0],Ne=ze[1],Re=ze[2],$e=Pe*4;_e[0]=ye[$e++],_e[1]=ye[$e++],_e[2]=ye[$e++],_e[3]=ye[$e++],_e[3]>0&&(a._barMesh.geometry.addBar(Ke,Ne,Be,Re,_e,Pe),Ae[Pe]=we++)}),x.geometry.dirty(),x.geometry.updateBoundingBox();var Ue=x.material;Ue.transparent=Se,Ue.depthMask=!Se,x.geometry.sortTriangles=Se,this._initHandler(z,ne)},_initHandler:function(z,ne){var oe=z.getData(),se=this._barMesh,de=z.coordinateSystem.type==="cartesian3D";se.seriesIndex=z.seriesIndex;var a=-1;se.off("mousemove"),se.off("mouseout"),se.on("mousemove",function(x){var re=se.geometry.getDataIndexOfVertex(x.triangle[0]);re!==a&&(this._downplay(a),this._highlight(re),this._labelsBuilder.updateLabels([re]),de&&ne.dispatchAction({type:"grid3DShowAxisPointer",value:[oe.get("x",re),oe.get("y",re),oe.get("z",re,!0)]})),a=re,se.dataIndex=re},this),se.on("mouseout",function(x){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,se.dataIndex=-1,de&&ne.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(z){var ne=this._data;if(ne){var oe=this._barIndexOfData[z];if(!(oe<0)){var se=ne.getItemModel(z),de=se.getModel("emphasis.itemStyle"),a=de.get("color"),x=de.get("opacity");if(a==null){var re=ne.getItemVisual(z,"color");a=ve.a.color.lift(re,-.4)}x==null&&(x=ne.getItemVisual(z,"opacity"));var ce=ue.a.parseColor(a);ce[3]*=x,this._barMesh.geometry.setColor(oe,ce),this._api.getZr().refresh()}}},_downplay:function(z){var ne=this._data;if(ne){var oe=this._barIndexOfData[z];if(!(oe<0)){var se=ne.getItemVisual(z,"color"),de=ne.getItemVisual(z,"opacity"),a=ue.a.parseColor(se);a[3]*=de,this._barMesh.geometry.setColor(oe,a),this._api.getZr().refresh()}}},highlight:function(z,ne,oe,se){this._toggleStatus("highlight",z,ne,oe,se)},downplay:function(z,ne,oe,se){this._toggleStatus("downplay",z,ne,oe,se)},_toggleStatus:function(z,ne,oe,se,de){var a=ne.getData(),x=fe.a.queryDataIndex(a,de),re=this;x!=null?ve.a.util.each(he.a.normalizeToArray(x),function(ce){z==="highlight"?this._highlight(ce):this._downplay(ce)},this):a.each(function(ce){z==="highlight"?re._highlight(ce):re._downplay(ce)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(33),fe=pe(60),he=pe(13),le=pe(1),ae=pe.n(le),ie=ae.a.vec3,me=ae.a.mat3,E=he.a.extend(function(){return{attributes:{position:new he.a.Attribute("position","float",3,"POSITION"),normal:new he.a.Attribute("normal","float",3,"NORMAL"),color:new he.a.Attribute("color","float",4,"COLOR"),prevPosition:new he.a.Attribute("prevPosition","float",3),prevNormal:new he.a.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(b){var z=this.enableNormal,ne=this.getBarVertexCount()*b,oe=this.getBarTriangleCount()*b;this.vertexCount!==ne&&(this.attributes.position.init(ne),z?this.attributes.normal.init(ne):this.attributes.normal.value=null,this.attributes.color.init(ne)),this.triangleCount!==oe&&(this.indices=ne>65535?new Uint32Array(oe*3):new Uint16Array(oe*3),this._dataIndices=new Uint32Array(ne))},getBarVertexCount:function(){var b=this.bevelSize>0?this.bevelSegments:0;return b>0?this._getBevelBarVertexCount(b):this.enableNormal?24:8},getBarTriangleCount:function(){var b=this.bevelSize>0?this.bevelSegments:0;return b>0?this._getBevelBarTriangleCount(b):12},_getBevelBarVertexCount:function(b){return(b+1)*4*(b+1)*2},_getBevelBarTriangleCount:function(b){var z=b*4+3,ne=b*2+1;return(z+1)*ne*2+4},setColor:function(b,z){for(var ne=this.getBarVertexCount(),oe=ne*b,se=ne*(b+1),de=oe;de0&&this.bevelSegments>0)this._addBevelBar(Pe,ze,Ke,Ne,this.bevelSize,this.bevelSegments,Re);else{ie.copy(se,ze),ie.normalize(se,se),ie.cross(de,Ke,se),ie.normalize(de,de),ie.cross(oe,se,de),ie.normalize(de,de),ie.negate(a,oe),ie.negate(x,se),ie.negate(re,de),z(ce[0],Pe,oe,Ne[0]/2),z(ce[0],ce[0],de,Ne[2]/2),z(ce[1],Pe,oe,Ne[0]/2),z(ce[1],ce[1],re,Ne[2]/2),z(ce[2],Pe,a,Ne[0]/2),z(ce[2],ce[2],re,Ne[2]/2),z(ce[3],Pe,a,Ne[0]/2),z(ce[3],ce[3],de,Ne[2]/2),z(ne,Pe,se,Ne[1]),z(ce[4],ne,oe,Ne[0]/2),z(ce[4],ce[4],de,Ne[2]/2),z(ce[5],ne,oe,Ne[0]/2),z(ce[5],ce[5],re,Ne[2]/2),z(ce[6],ne,a,Ne[0]/2),z(ce[6],ce[6],re,Ne[2]/2),z(ce[7],ne,a,Ne[0]/2),z(ce[7],ce[7],de,Ne[2]/2);var ut=this.attributes;if(this.enableNormal){ge[0]=oe,ge[1]=a,ge[2]=se,ge[3]=x,ge[4]=de,ge[5]=re;for(var Qe=this._vertexOffset,rt=0;rt=0){var nt=be*3,ut=new ae.a(this._points[nt],this._points[nt+1],this._points[nt+2]);ce.push({dataIndex:be,point:ut,pointWorld:ut.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(ut)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me){function pe(Oe,ve,ue,fe,he,le,ae){if(he===0)return!1;var ie=he,me=0,E=Oe;if(ae>ve+ie&&ae>fe+ie||aeOe+ie&&le>ue+ie||lene?oe.position[1]+=(se-ne)/2:oe.position[0]+=(se-z)/2;var de=oe.getBoundingRect();return oe.position[0]-=de.x,oe.position[1]-=de.y,oe.setStyle(me),oe.update(),oe.__size=se,oe}function he(ae,ie,me){var E=ie.width,b=ie.height,z=ae.canvas.width,ne=ae.canvas.height,oe=E/z,se=b/ne;function de(be){return be<128?1:-1}function a(be,Se){var Be=1/0;be=Math.floor(be*oe),Se=Math.floor(Se*se);for(var Ae=Se*E+be,we=ie.data[Ae*4],Ue=de(we),Pe=Math.max(Se-me,0);Pe=0;ce--){var ge;this.geometry.indices?ge=this.geometry.indices[ce]:ge=ce;var _e=de[ge*2],ye=de[ge*2+1],be=this.geometry.attributes.size.get(ge)/this.sizeScale,Se=be/2;if(E>_e-Se*x&&E<_e+Se*x&&b>ye-Se*re&&b=2e4},doSortVertices:function(he,le){var ae=this.indices,ie=fe.create();if(!ae){ae=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var me=0;me.05);else for(var me=0;me<3;me++)this._progressiveQuickSort(le*3+me);this.dirtyIndices()},_simpleSort:function(he){var le=this._zList,ae=this.indices;function ie(me,E){return le[E]-le[me]}he?Array.prototype.sort.call(ae,ie):Oe.a.sort(ae,ie,0,ae.length-1)},_progressiveQuickSort:function(he){var le=this._zList,ae=this.indices;this._quickSort=this._quickSort||new Oe.a,this._quickSort.step(ae,function(ie,me){return le[me]-le[ie]},he)}}},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.sdfSprite.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float elapsedTime : 0; attribute vec3 position : POSITION; #ifdef VERTEX_SIZE attribute float size; #else uniform float u_Size; #endif #ifdef VERTEX_COLOR attribute vec4 a_FillColor: COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute float prevSize; uniform float percent : 1.0; #endif #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif varying float v_Size; void main() { #ifdef POSITIONTEXTURE_ENABLED gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0); #else #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); #endif #ifdef VERTEX_SIZE #ifdef VERTEX_ANIMATION v_Size = mix(prevSize, size, percent); #else v_Size = size; #endif #else v_Size = u_Size; #endif #ifdef VERTEX_COLOR v_Color = a_FillColor; #endif gl_PointSize = v_Size; } @end @export ecgl.sdfSprite.fragment uniform vec4 color: [1, 1, 1, 1]; uniform vec4 strokeColor: [1, 1, 1, 1]; uniform float smoothing: 0.07; uniform float lineWidth: 0.0; #ifdef VERTEX_COLOR varying vec4 v_Color; #endif varying float v_Size; uniform sampler2D sprite; @import clay.util.srgb void main() { gl_FragColor = color; vec4 _strokeColor = strokeColor; #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif #ifdef SPRITE_ENABLED float d = texture2D(sprite, gl_PointCoord).r; gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d); if (lineWidth > 0.0) { float sLineWidth = lineWidth / 2.0; float outlineMaxValue0 = 0.5 + sLineWidth; float outlineMaxValue1 = 0.5 + sLineWidth + smoothing; float outlineMinValue0 = 0.5 - sLineWidth - smoothing; float outlineMinValue1 = 0.5 - sLineWidth; if (d <= outlineMaxValue1 && d >= outlineMinValue0) { float a = _strokeColor.a; if (d <= outlineMinValue1) { a = a * smoothstep(outlineMinValue0, outlineMinValue1, d); } else { a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d); } gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a); gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a; } } #endif #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(gl_FragColor); #endif } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(221),fe=pe(222),he=pe(225),le=pe(16);ve.a.registerVisual(Object(le.a)("lines3D")),ve.a.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},function(){}),ve.a.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},function(){}),ve.a.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},function(){})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(1),fe=pe.n(ue),he=fe.a.vec3,le=fe.a.vec2,ae=he.normalize,ie=he.cross,me=he.sub,E=he.add,b=he.create,z=b(),ne=b(),oe=b(),se=b(),de=[],a=[];function x(be,Se){le.copy(de,be[0]),le.copy(a,be[1]);var Be=[],Ae=Be[0]=b(),we=Be[1]=b(),Ue=Be[2]=b(),Pe=Be[3]=b();Se.dataToPoint(de,Ae),Se.dataToPoint(a,Pe),ae(z,Ae),me(ne,Pe,Ae),ae(ne,ne),ie(oe,ne,z),ae(oe,oe),ie(ne,z,oe),E(we,z,ne),ae(we,we),ae(z,Pe),me(ne,Ae,Pe),ae(ne,ne),ie(oe,ne,z),ae(oe,oe),ie(ne,z,oe),E(Ue,z,ne),ae(Ue,Ue),E(se,Ae,Pe),ae(se,se);var ze=he.dot(Ae,se),Ke=he.dot(se,we),Ne=(Math.max(he.len(Ae),he.len(Pe))-ze)/Ke*2;return he.scaleAndAdd(we,Ae,we,Ne),he.scaleAndAdd(Ue,Pe,Ue,Ne),Be}function re(be,Se,Be){var Ae=[],we=Ae[0]=he.create(),Ue=Ae[1]=he.create(),Pe=Ae[2]=he.create(),ze=Ae[3]=he.create();Se.dataToPoint(be[0],we),Se.dataToPoint(be[1],ze);var Ke=he.dist(we,ze);return he.lerp(Ue,we,ze,.3),he.lerp(Pe,we,ze,.3),he.scaleAndAdd(Ue,Ue,Be,Math.min(Ke*.1,10)),he.scaleAndAdd(Pe,Pe,Be,Math.min(Ke*.1,10)),Ae}function ce(be,Se){for(var Be=new Float32Array(be.length*3),Ae=0,we=[],Ue=0;Ue0&&we[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(we)+". Lines must have 2d coords array in data item.");Se.push(we)}),{coordsList:Se}}function _e(be,Se){var Be=be.getData(),Ae=be.get("polyline");Be.setLayout("lineType",Ae?"polyline":"cubicBezier");var we=ge(Be);Be.each(function(Ue){var Pe=we.coordsList[Ue],ze=Ae?ce:x;Be.setItemLayout(Ue,ze(Pe,Se))})}function ye(be,Se,Be){var Ae=be.getData(),we=be.get("polyline"),Ue=ge(Ae);Ae.setLayout("lineType",we?"polyline":"cubicBezier"),Ae.each(function(Pe){var ze=Ue.coordsList[Pe],Ke=we?ce(ze,Se):re(ze,Se,Be);Ae.setItemLayout(Pe,Ke)})}ve.a.registerLayout(function(be,Se){be.eachSeriesByType("lines3D",function(Be){var Ae=Be.coordinateSystem;Ae.type==="globe"?_e(Be,Ae):Ae.type==="geo3D"?ye(Be,Ae,[0,1,0]):Ae.type==="mapbox3D"&&ye(Be,Ae,[0,0,1])})})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(22),he=pe(223),le=pe(40);ue.a.Shader.import(le.a);function ae(me){return me.radius!=null?me.radius:me.size!=null?Math.max(me.size[0],me.size[1],me.size[2]):100}var ie=ve.a.extendChartView({type:"lines3D",__ecgl__:!0,init:function(me,E){this.groupGL=new ue.a.Node,this._meshLinesMaterial=new ue.a.Material({shader:ue.a.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new ue.a.Mesh({geometry:new fe.a,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new he.a},render:function(me,E,b){this.groupGL.add(this._linesMesh);var z=me.coordinateSystem,ne=me.getData();if(z&&z.viewGL){var oe=z.viewGL;oe.add(this.groupGL),this._updateLines(me,E,b);var se=z.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[se]("fragment","SRGB_DECODE"),this._trailMesh.material[se]("fragment","SRGB_DECODE")}var de=this._trailMesh;if(de.stopAnimation(),me.get("effect.show")){this.groupGL.add(de),de.updateData(ne,b,this._linesMesh.geometry),de.__time=de.__time||0;var a=3600*1e3;this._curveEffectsAnimator=de.animate("",{loop:!0}).when(a,{__time:a}).during(function(){de.setAnimationTime(de.__time)}).start()}else this.groupGL.remove(de),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend=me.get("blendMode")==="lighter"?ue.a.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var me=this._curveEffectsAnimator;me&&(me.isPaused()?me.resume():me.pause())},_updateLines:function(me,E,b){var z=me.getData(),ne=me.coordinateSystem,oe=this._linesMesh.geometry,se=me.get("polyline");oe.expandLine=!0;var de=ae(ne);oe.segmentScale=de/20;var a="lineStyle.width".split("."),x=b.getDevicePixelRatio(),re=0;z.each(function(ye){var be=z.getItemModel(ye),Se=be.get(a);Se==null&&(Se=1),z.setItemVisual(ye,"lineWidth",Se),re=Math.max(Se,re)}),oe.useNativeLine=!1;var ce=0,ge=0;z.each(function(ye){var be=z.getItemLayout(ye);se?(ce+=oe.getPolylineVertexCount(be),ge+=oe.getPolylineTriangleCount(be)):(ce+=oe.getCubicCurveVertexCount(be[0],be[1],be[2],be[3]),ge+=oe.getCubicCurveTriangleCount(be[0],be[1],be[2],be[3]))}),oe.setVertexCount(ce),oe.setTriangleCount(ge),oe.resetOffset();var _e=[];z.each(function(ye){var be=z.getItemLayout(ye),Se=z.getItemVisual(ye,"color"),Be=z.getItemVisual(ye,"opacity"),Ae=z.getItemVisual(ye,"lineWidth")*x;Be==null&&(Be=1),_e=ue.a.parseColor(Se,_e),_e[3]*=Be,se?oe.addPolyline(be,_e,Ae):oe.addCubicCurve(be[0],be[1],be[2],be[3],_e,Ae)}),oe.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(1),he=pe.n(fe),le=pe(22),ae=pe(224),ie=he.a.vec3;function me(E){return E>0?1:-1}ue.a.Shader.import(ae.a),Me.a=ue.a.Mesh.extend(function(){var E=new ue.a.Material({shader:new ue.a.Shader(ue.a.Shader.source("ecgl.trail2.vertex"),ue.a.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),b=new le.a({dynamic:!0});return b.createAttribute("dist","float",1),b.createAttribute("distAll","float",1),b.createAttribute("start","float",1),{geometry:b,material:E,culling:!1,$ignorePicking:!0}},{updateData:function(E,b,z){var ne=E.hostModel,oe=this.geometry,se=ne.getModel("effect"),de=se.get("trailWidth")*b.getDevicePixelRatio(),a=se.get("trailLength"),x=ne.get("effect.constantSpeed"),re=ne.get("effect.period")*1e3,ce=x!=null;this.getScene()||console.error("TrailMesh must been add to scene before updateData"),ce?this.material.set("speed",x/1e3):this.material.set("period",re),this.material[ce?"define":"undefine"]("vertex","CONSTANT_SPEED");var ge=ne.get("polyline");oe.trailLength=a,this.material.set("trailLength",a),oe.resetOffset(),["position","positionPrev","positionNext"].forEach(function(Ne){oe.attributes[Ne].value=z.attributes[Ne].value});var _e=["dist","distAll","start","offset","color"];_e.forEach(function(Ne){oe.attributes[Ne].init(oe.vertexCount)}),oe.indices=z.indices;var ye=[],be=se.get("trailColor"),Se=se.get("trailOpacity"),Be=be!=null,Ae=Se!=null;this.updateWorldTransform();var we=this.worldTransform.x.len(),Ue=this.worldTransform.y.len(),Pe=this.worldTransform.z.len(),ze=0,Ke=0;E.each(function(Ne){var Re=E.getItemLayout(Ne),$e=Ae?Se:E.getItemVisual(Ne,"opacity"),nt=E.getItemVisual(Ne,"color");$e==null&&($e=1),ye=ue.a.parseColor(Be?be:nt,ye),ye[3]*=$e;for(var ut=ge?z.getPolylineVertexCount(Re):z.getCubicCurveVertexCount(Re[0],Re[1],Re[2],Re[3]),Qe=0,rt=[],pt=[],At=ze;Atze&&(Qe+=ie.dist(rt,pt)),oe.attributes.dist.set(At,Qe),ie.copy(pt,rt);Ke=Math.max(Ke,Qe);for(var gt=Math.random()*(ce?Qe:re),At=ze;At 1.0 || v_Percent < 0.0) { discard; } float fade = v_Percent; #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain if (v_Percent > (1.0 - v_SpotPercent)) { gl_FragColor.rgb *= spotIntensity; } gl_FragColor.a *= fade; } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.extendSeriesModel({type:"series.lines3D",dependencies:["globe"],visualColorAccessPath:"lineStyle.color",getInitialData:function(ue,fe){var he=new ve.a.List(["value"],this);return he.hasItemOption=!1,he.initData(ue.data,[],function(le,ae,ie,me){if(le instanceof Array)return NaN;he.hasItemOption=!0;var E=le.value;if(E!=null)return E instanceof Array?E[me]:E}),he},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(227),fe=pe(228),he=pe(16);ve.a.registerVisual(Object(he.a)("polygons3D"))},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(26);function fe(ae,ie){for(var me=[],E=0;E0;this._updateSurfaceMesh(this._surfaceMesh,E,ce,ye);var be=this._surfaceMesh.material;ye?(be.define("WIREFRAME_QUAD"),be.set("wireframeLineWidth",_e),be.set("wireframeLineColor",ue.a.parseColor(ge.get("lineStyle.color")))):be.undefine("WIREFRAME_QUAD"),this._initHandler(E,z),this._updateAnimation(E)},_updateAnimation:function(E){ue.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,E)},_createSurfaceMesh:function(){var E=new ue.a.Mesh({geometry:new ue.a.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ue.a.Material({shader:new ue.a.Shader(ue.a.Shader.source("ecgl.sm.depth.vertex"),ue.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return E.geometry.createAttribute("barycentric","float",4),E.geometry.createAttribute("prevPosition","float",3),E.geometry.createAttribute("prevNormal","float",3),ve.a.util.extend(E.geometry,ae.a),E},_initHandler:function(E,b){var z=E.getData(),ne=this._surfaceMesh,oe=E.coordinateSystem;function se(a,x){for(var re=1/0,ce=-1,ge=[],_e=0;_e=0){var re=[];ne.geometry.attributes.position.get(x,re);for(var ce=oe.pointToData(re),ge=1/0,_e=-1,ye=[],be=0;be65535?Uint32Array:Uint16Array)((be-1)*(Se-1)*6),Ke=function(mt,Lt,ft){ft[1]=mt*Se+Lt,ft[0]=mt*Se+Lt+1,ft[3]=(mt+1)*Se+Lt+1,ft[2]=(mt+1)*Se+Lt},Ne=!1;if(x){var Re=[],$e=[],nt=0;Ae?ce.init(oe.vertexCount):ce.value=null;for(var ut=[[],[],[]],Qe=[],rt=[],pt=ie.create(),At=function(mt,Lt,ft){var St=Lt*3;return ft[0]=mt[St],ft[1]=mt[St+1],ft[2]=mt[St+2],ft},gt=new Float32Array(de.length),Ft=new Float32Array(de.length/3*4),Ct=0;Ct ")),b.value&&(se+=" : "+ve.a.format.encodeHTML(b.value)),se}else return he.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var ae=(this.option.categories||[]).map(function(me){return me.value!=null?me:ve.a.util.extend({value:0},me)}),ie=new ve.a.List(["value"],this);ie.initData(ae),this._categoriesData=ie,this._categoriesModels=ie.mapArray(function(me){return ie.getItemModel(me,!0)})},setView:function(ae){ae.zoom!=null&&(this.option.zoom=ae.zoom),ae.offset!=null&&(this.option.offset=ae.offset)},setNodePosition:function(ae){for(var ie=0;ie "+ce)),a++)}var ge,_e=ve.a.helper.completeDimensions(["value"],ie);ge=new ve.a.List(_e,E),ge.initData(ie);var ye=new ve.a.List(["value"],E);return ye.initData(de,se),z&&z(ge,ye),le()({mainData:ge,struct:ne,structAttr:"graph",datas:{node:ge,edge:ye},datasAttr:{node:"data",edge:"edgeData"}}),ne.update(),ne}},function(Ye,Me,pe){var Oe=pe(85),ve=Oe.__DEV__,ue=pe(12),fe=pe(244),he=fe.enableClassCheck;function le(ne){return"_EC_"+ne}var ae=function(ne){this._directed=ne||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},ie=ae.prototype;ie.type="graph",ie.isDirected=function(){return this._directed},ie.addNode=function(ne,oe){ne=ne||""+oe;var se=this._nodesMap;if(!se[le(ne)]){var de=new me(ne,oe);return de.hostGraph=this,this.nodes.push(de),se[le(ne)]=de,de}},ie.getNodeByIndex=function(ne){var oe=this.data.getRawIndex(ne);return this.nodes[oe]},ie.getNodeById=function(ne){return this._nodesMap[le(ne)]},ie.addEdge=function(ne,oe,se){var de=this._nodesMap,a=this._edgesMap;if(typeof ne=="number"&&(ne=this.nodes[ne]),typeof oe=="number"&&(oe=this.nodes[oe]),me.isInstance(ne)||(ne=de[le(ne)]),me.isInstance(oe)||(oe=de[le(oe)]),!(!ne||!oe)){var x=ne.id+"-"+oe.id;if(!a[x]){var re=new E(ne,oe,se);return re.hostGraph=this,this._directed&&(ne.outEdges.push(re),oe.inEdges.push(re)),ne.edges.push(re),ne!==oe&&oe.edges.push(re),this.edges.push(re),a[x]=re,re}}},ie.getEdgeByIndex=function(ne){var oe=this.edgeData.getRawIndex(ne);return this.edges[oe]},ie.getEdge=function(ne,oe){me.isInstance(ne)&&(ne=ne.id),me.isInstance(oe)&&(oe=oe.id);var se=this._edgesMap;return this._directed?se[ne+"-"+oe]:se[ne+"-"+oe]||se[oe+"-"+ne]},ie.eachNode=function(ne,oe){for(var se=this.nodes,de=se.length,a=0;a=0&&ne.call(oe,se[a],a)},ie.eachEdge=function(ne,oe){for(var se=this.edges,de=se.length,a=0;a=0&&se[a].node1.dataIndex>=0&&se[a].node2.dataIndex>=0&&ne.call(oe,se[a],a)},ie.breadthFirstTraverse=function(ne,oe,se,de){if(me.isInstance(oe)||(oe=this._nodesMap[le(oe)]),!!oe){for(var a=se==="out"?"outEdges":se==="in"?"inEdges":"edges",x=0;x=0&&ce.node2.dataIndex>=0});for(var a=0,x=de.length;a=0&&this[ne][oe].setItemVisual(this.dataIndex,se,de)},getVisual:function(se,de){return this[ne][oe].getItemVisual(this.dataIndex,se,de)},setLayout:function(se,de){this.dataIndex>=0&&this[ne][oe].setItemLayout(this.dataIndex,se,de)},getLayout:function(){return this[ne][oe].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[ne][oe].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[ne][oe].getRawIndex(this.dataIndex)}}};ue.mixin(me,b("hostGraph","data")),ue.mixin(E,b("hostGraph","edgeData")),ae.Node=me,ae.Edge=E,he(me),he(E);var z=ae;Ye.exports=z},function(Ye,Me){var pe;pe=function(){return this}();try{pe=pe||Function("return this")()||(0,eval)("this")}catch(Oe){typeof window=="object"&&(pe=window)}Ye.exports=pe},function(Ye,Me,pe){var Oe=pe(85),ve=Oe.__DEV__,ue=pe(12),fe=".",he="___EC__COMPONENT__CONTAINER___";function le(se){var de={main:"",sub:""};return se&&(se=se.split(fe),de.main=se[0]||"",de.sub=se[1]||""),de}function ae(se){ue.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(se),'componentType "'+se+'" illegal')}function ie(se,de){se.$constructor=se,se.extend=function(a){var x=this,re=function(){a.$constructor?a.$constructor.apply(this,arguments):x.apply(this,arguments)};return ue.extend(re.prototype,a),re.extend=this.extend,re.superCall=b,re.superApply=z,ue.inherits(re,this),re.superClass=x,re}}var me=0;function E(se){var de=["__\0is_clz",me++,Math.random().toFixed(3)].join("_");se.prototype[de]=!0,se.isInstance=function(a){return!!(a&&a[de])}}function b(se,de){var a=ue.slice(arguments,2);return this.superClass.prototype[de].apply(se,a)}function z(se,de,a){return this.superClass.prototype[de].apply(se,a)}function ne(se,de){de=de||{};var a={};se.registerClass=function(ce,ge){if(ge){if(ae(ge),ge=le(ge),!ge.sub)a[ge.main]=ce;else if(ge.sub!==he){var _e=x(ge);_e[ge.sub]=ce}}return ce},se.getClass=function(ce,ge,_e){var ye=a[ce];if(ye&&ye[he]&&(ye=ge?ye[ge]:null),_e&&!ye)throw new Error(ge?"Component "+ce+"."+(ge||"")+" not exists. Load it first.":ce+".type should be specified.");return ye},se.getClassesByMainType=function(ce){ce=le(ce);var ge=[],_e=a[ce.main];return _e&&_e[he]?ue.each(_e,function(ye,be){be!==he&&ge.push(ye)}):ge.push(_e),ge},se.hasClass=function(ce){return ce=le(ce),!!a[ce.main]},se.getAllClassMainTypes=function(){var ce=[];return ue.each(a,function(ge,_e){ce.push(_e)}),ce},se.hasSubTypes=function(ce){ce=le(ce);var ge=a[ce.main];return ge&&ge[he]},se.parseClassType=le;function x(ce){var ge=a[ce.main];return(!ge||!ge[he])&&(ge=a[ce.main]={},ge[he]=!0),ge}if(de.registerWhenExtend){var re=se.extend;re&&(se.extend=function(ce){var ge=re.call(this,ce);return se.registerClass(ge,ce.type)})}return se}function oe(se,de){}Me.parseClassType=le,Me.enableClassExtend=ie,Me.enableClassCheck=E,Me.enableClassManagement=ne,Me.setReadOnly=oe},function(Ye,Me,pe){var Oe=pe(12),ve=Oe.each,ue="\0__link_datas",fe="\0__link_mainData";function he(oe){var se=oe.mainData,de=oe.datas;de||(de={main:se},oe.datasAttr={main:"data"}),oe.datas=oe.mainData=null,b(se,de,oe),ve(de,function(a){ve(se.TRANSFERABLE_METHODS,function(x){a.wrapMethod(x,Oe.curry(le,oe))})}),se.wrapMethod("cloneShallow",Oe.curry(ie,oe)),ve(se.CHANGABLE_METHODS,function(a){se.wrapMethod(a,Oe.curry(ae,oe))}),Oe.assert(de[se.dataType]===se)}function le(oe,se){if(E(this)){var de=Oe.extend({},this[ue]);de[this.dataType]=se,b(se,de,oe)}else z(se,this.dataType,this[fe],oe);return se}function ae(oe,se){return oe.struct&&oe.struct.update(this),se}function ie(oe,se){return ve(se[ue],function(de,a){de!==se&&z(de.cloneShallow(),a,se,oe)}),se}function me(oe){var se=this[fe];return oe==null||se==null?se:se[ue][oe]}function E(oe){return oe[fe]===oe}function b(oe,se,de){oe[ue]={},ve(se,function(a,x){z(a,x,oe,de)})}function z(oe,se,de,a){de[ue][se]=oe,oe[fe]=de,oe.dataType=se,a.struct&&(oe[a.structAttr]=a.struct,a.struct[a.datasAttr[se]]=oe),oe.getLinkedData=me}var ne=he;Ye.exports=ne},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(41),fe=pe.n(ue),he=pe(2),le=pe(20),ae=pe(86),ie=pe(3),me=pe(247),E=pe(249),b=pe(65),z=pe.n(b),ne=pe(1),oe=pe.n(ne),se=pe(251),de=pe(62),a=pe(252),x=oe.a.vec2;he.a.Shader.import(a.a);var re=1;ve.a.extendChartView({type:"graphGL",__ecgl__:!0,init:function(ce,ge){this.groupGL=new he.a.Node,this.viewGL=new le.a("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new de.a(!0,ge),this._forceEdgesMesh=new he.a.Mesh({material:new he.a.Material({shader:he.a.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new he.a.Geometry({attributes:{node:new he.a.Geometry.Attribute("node","float",2),color:new he.a.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:he.a.Mesh.LINES}),this._edgesMesh=new he.a.Mesh({material:new he.a.Material({shader:he.a.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ae.a({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new se.a({zr:ge.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(ce,ge,_e){this.groupGL.add(this._pointsBuilder.rootNode),this._model=ce,this._api=_e,this._initLayout(ce,ge,_e),this._pointsBuilder.update(ce,ge,_e),this._forceLayoutInstance instanceof me.a||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(ce,_e),this._control.off("update"),this._control.on("update",function(){_e.dispatchAction({type:"graphGLRoam",seriesId:ce.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(ie.a.firstNotNull(ce.get("zoom"),1)),this._control.setOffset(ce.get("offset")||[0,0]);var ye=this._pointsBuilder.getPointsMesh();if(ye.off("mousemove",this._mousemoveHandler),ye.off("mouseout",this._mouseOutHandler,this),_e.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,ce.get("focusNodeAdjacency")){var be=ce.get("focusNodeAdjacencyOn");be==="click"?_e.getZr().on("click",this._clickHandler):be==="mouseover"?(ye.on("mousemove",this._mousemoveHandler,this),ye.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1):console.warn("Unkown focusNodeAdjacencyOn value s"+be)}this._lastMouseOverDataIndex=-1},_clickHandler:function(ce){if(!this._layouting){var ge=this._pointsBuilder.getPointsMesh().dataIndex;ge>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:ge}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(ce){if(!this._layouting){var ge=this._pointsBuilder.getPointsMesh().dataIndex;ge>=0?ge!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:ge}):this._mouseOutHandler(ce),this._lastMouseOverDataIndex=ge}},_mouseOutHandler:function(ce){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(ce,ge){var _e=this._forceEdgesMesh.geometry,ye=ge.getEdgeData(),be=0,Se=this._forceLayoutInstance,Be=ye.count()*2;_e.attributes.node.init(Be),_e.attributes.color.init(Be),ye.each(function(Ae){var we=ce[Ae];_e.attributes.node.set(be,Se.getNodeUV(we.node1)),_e.attributes.node.set(be+1,Se.getNodeUV(we.node2));var Ue=ye.getItemVisual(we.dataIndex,"color"),Pe=he.a.parseColor(Ue);Pe[3]*=ie.a.firstNotNull(ye.getItemVisual(we.dataIndex,"opacity"),1),_e.attributes.color.set(be,Pe),_e.attributes.color.set(be+1,Pe),be+=2}),_e.dirty()},_updateMeshLinesGeometry:function(){var ge=this._model.getEdgeData(),ce=this._edgesMesh.geometry,ge=this._model.getEdgeData(),_e=this._model.getData().getLayout("points");ce.resetOffset(),ce.setVertexCount(ge.count()*ce.getLineVertexCount()),ce.setTriangleCount(ge.count()*ce.getLineTriangleCount());var ye=[],be=[],Se=["lineStyle","width"];this._originalEdgeColors=new Float32Array(ge.count()*4),this._edgeIndicesMap=new Float32Array(ge.count()),ge.each(function(Be){var Ae=ge.graph.getEdgeByIndex(Be),we=Ae.node1.dataIndex*2,Ue=Ae.node2.dataIndex*2;ye[0]=_e[we],ye[1]=_e[we+1],be[0]=_e[Ue],be[1]=_e[Ue+1];var Pe=ge.getItemVisual(Ae.dataIndex,"color"),ze=he.a.parseColor(Pe);ze[3]*=ie.a.firstNotNull(ge.getItemVisual(Ae.dataIndex,"opacity"),1);var Ke=ge.getItemModel(Ae.dataIndex),Ne=ie.a.firstNotNull(Ke.get(Se),1)*this._api.getDevicePixelRatio();ce.addLine(ye,be,ze,Ne);for(var Re=0;Re<4;Re++)this._originalEdgeColors[Ae.dataIndex*4+Re]=ze[Re];this._edgeIndicesMap[Ae.dataIndex]=Be},!1,this),ce.dirty()},_updateForceNodesGeometry:function(ce){for(var ge=this._pointsBuilder.getPointsMesh(),_e=[],ye=0;ye=Re&&(Ue._syncNodePosition(ce),Ne=0),Se.getZr().refresh(),z()(function(){$e(nt)})})}};z()(function(){Ue._forceLayoutInstanceToDispose&&(Ue._forceLayoutInstanceToDispose.dispose(be.layer.renderer),Ue._forceLayoutInstanceToDispose=null),$e(Pe)}),this._layouting=!0}}},stopLayout:function(ce,ge,_e,ye){ye&&ye.from!=null&&ye.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(ye&&ye.beforeLayout||(this._syncNodePosition(ce),this._updateAfterLayout(ce,ge,_e)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(ce){var ge=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);ce.getData().setLayout("points",ge),ce.setNodePosition(ge)},_updateAfterLayout:function(ce,ge,_e){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(ce,ge,_e),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(ce,ge,_e,ye){var be=this._model.getData();this._downplayAll();var Se=ye.dataIndex,Be=be.graph,Ae=[],we=Be.getNodeByIndex(Se);Ae.push(we),we.edges.forEach(function(Pe){Pe.dataIndex<0||(Pe.node1!==we&&Ae.push(Pe.node1),Pe.node2!==we&&Ae.push(Pe.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),Ae.forEach(function(Pe){this._pointsBuilder.highlight(be,Pe.dataIndex)},this),this._pointsBuilder.updateLabels(Ae.map(function(Pe){return Pe.dataIndex}));var Ue=[];we.edges.forEach(function(Pe){Pe.dataIndex>=0&&(this._highlightEdge(Pe.dataIndex),Ue.push(Pe))},this),this._focusNodes=Ae,this._focusEdges=Ue},unfocusNodeAdjacency:function(ce,ge,_e,ye){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(ce){var ge=this._model.getEdgeData().getItemModel(ce),_e=he.a.parseColor(ge.get("emphasis.lineStyle.color")||ge.get("lineStyle.color")),ye=ie.a.firstNotNull(ge.get("emphasis.lineStyle.opacity"),ge.get("lineStyle.opacity"),1);_e[3]*=ye,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ce],_e)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(ce){this._pointsBuilder.downplay(this._model.getData(),ce.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(ce){this._downplayEdge(ce.dataIndex)},this)},_downplayEdge:function(ce){var ge=this._getColor(ce,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ce],ge)},_setEdgeFade:function(){var ce=[];return function(ge,_e){this._getColor(ge,ce),ce[3]*=_e,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[ge],ce)}}(),_getColor:function(ce,ge){for(var _e=0;_e<4;_e++)ge[_e]=this._originalEdgeColors[ce*4+_e];return ge},_fadeOutEdgesAll:function(ce){var ge=this._model.getData().graph;ge.eachEdge(function(_e){this._setEdgeFade(_e.dataIndex,ce)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(ce,ge){this.viewGL.setViewport(0,0,ge.getWidth(),ge.getHeight(),ge.getDevicePixelRatio());for(var _e=this.viewGL.camera,ye=ce.getData(),be=ye.getLayout("points"),Se=x.create(1/0,1/0),Be=x.create(-1/0,-1/0),Ae=[],we=0;we_e.left&&Pe<_e.right&&Ue<_e.bottom&&Ue>_e.top)){var ze=Math.max(Be[0]-Se[0],10),Ke=ze/ge.getWidth()*ge.getHeight();ze*=1.4,Ke*=1.4,Se[0]-=ze*.2,_e.left=Se[0],_e.top=Ue-Ke/2,_e.bottom=Ue+Ke/2,_e.right=ze+Se[0],_e.near=0,_e.far=100}},dispose:function(){var ce=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(ce),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(14),he=pe(10),le=pe(248);ue.a.Shader.import(le.a);var ae={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function ie(me){var E={type:ue.a.Texture.FLOAT,minFilter:ue.a.Texture.NEAREST,magFilter:ue.a.Texture.NEAREST};this._positionSourceTex=new ue.a.Texture2D(E),this._positionSourceTex.flipY=!1,this._positionTex=new ue.a.Texture2D(E),this._positionPrevTex=new ue.a.Texture2D(E),this._forceTex=new ue.a.Texture2D(E),this._forcePrevTex=new ue.a.Texture2D(E),this._weightedSumTex=new ue.a.Texture2D(E),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ue.a.Texture2D(E),this._globalSpeedPrevTex=new ue.a.Texture2D(E),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new fe.a({fragment:ue.a.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new fe.a({fragment:ue.a.Shader.source("clay.compositor.output")});var b=function(z){z.blendEquation(z.FUNC_ADD),z.blendFunc(z.ONE,z.ONE)};this._edgeForceMesh=new ue.a.Mesh({geometry:new ue.a.Geometry({attributes:{node1:new ue.a.Geometry.Attribute("node1","float",2),node2:new ue.a.Geometry.Attribute("node2","float",2),weight:new ue.a.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ue.a.Material({transparent:!0,shader:ue.a.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:b,depthMask:!1,depthText:!1}),mode:ue.a.Mesh.POINTS}),this._weightedSumMesh=new ue.a.Mesh({geometry:new ue.a.Geometry({attributes:{node:new ue.a.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ue.a.Material({transparent:!0,shader:ue.a.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:b,depthMask:!1,depthText:!1}),mode:ue.a.Mesh.POINTS}),this._framebuffer=new he.a({depthBuffer:!1}),this._dummyCamera=new ue.a.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}ie.prototype.updateOption=function(me){for(var E in ae)this[E]=ae[E];var b=this._nodes.length;if(b>5e4?this.jitterTolerence=10:b>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,b>100?this.scaling=2:this.scaling=10,me)for(var E in ae)me[E]!=null&&(this[E]=me[E]);if(this.repulsionByDegree)for(var z=this._positionSourceTex.pixels,ne=0;neme},ie.prototype._swapTexture=function(){var me=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=me;var me=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=me;var me=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=me},ie.prototype._initFromSource=function(me){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(me),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(me),me.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),me.gl.clear(me.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),me.gl.clear(me.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(me)},ie.prototype._resize=function(me,E){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(b){this[b].width=me,this[b].height=E,this[b].dirty()},this)},ie.prototype.dispose=function(me){this._framebuffer.dispose(me),this._copyPass.dispose(me),this._nodeRepulsionPass.dispose(me),this._positionPass.dispose(me),this._globalSpeedPass.dispose(me),this._edgeForceMesh.geometry.dispose(me),this._weightedSumMesh.geometry.dispose(me),this._positionSourceTex.dispose(me),this._positionTex.dispose(me),this._positionPrevTex.dispose(me),this._forceTex.dispose(me),this._forcePrevTex.dispose(me),this._weightedSumTex.dispose(me),this._globalSpeedTex.dispose(me),this._globalSpeedPrevTex.dispose(me)},ve.a.ForceAtlas2GPU=ie,Me.a=ie},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.forceAtlas2.updateNodeRepulsion #define NODE_COUNT 0 uniform sampler2D positionTex; uniform vec2 textureSize; uniform float gravity; uniform float scaling; uniform vec2 gravityCenter; uniform bool strongGravityMode; uniform bool preventOverlap; varying vec2 v_Texcoord; void main() { vec4 n0 = texture2D(positionTex, v_Texcoord); vec2 force = vec2(0.0); for (int i = 0; i < NODE_COUNT; i++) { vec2 uv = vec2( mod(float(i), textureSize.x) / (textureSize.x - 1.0), floor(float(i) / textureSize.x) / (textureSize.y - 1.0) ); vec4 n1 = texture2D(positionTex, uv); vec2 dir = n0.xy - n1.xy; float d2 = dot(dir, dir); if (d2 > 0.0) { float factor = 0.0; if (preventOverlap) { float d = sqrt(d2); d = d - n0.w - n1.w; if (d > 0.0) { factor = scaling * n0.z * n1.z / (d * d); } else if (d < 0.0) { factor = scaling * 100.0 * n0.z * n1.z; } } else { factor = scaling * n0.z * n1.z / d2; } force += dir * factor; } } vec2 dir = gravityCenter - n0.xy; float d = 1.0; if (!strongGravityMode) { d = length(dir); } force += dir * n0.z * gravity / (d + 1.0); gl_FragColor = vec4(force, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updateEdgeAttraction.vertex attribute vec2 node1; attribute vec2 node2; attribute float weight; uniform sampler2D positionTex; uniform float edgeWeightInfluence; uniform bool preventOverlap; uniform bool linLogMode; uniform vec2 windowSize: WINDOW_SIZE; varying vec2 v_Force; void main() { vec4 n0 = texture2D(positionTex, node1); vec4 n1 = texture2D(positionTex, node2); vec2 dir = n1.xy - n0.xy; float d = length(dir); float w; if (edgeWeightInfluence == 0.0) { w = 1.0; } else if (edgeWeightInfluence == 1.0) { w = weight; } else { w = pow(weight, edgeWeightInfluence); } vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y); vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y); vec2 pos = node1 * scale * 2.0 - 1.0; gl_Position = vec4(pos + offset, 0.0, 1.0); gl_PointSize = 1.0; float factor; if (preventOverlap) { d = d - n1.w - n0.w; } if (d <= 0.0) { v_Force = vec2(0.0); return; } if (linLogMode) { factor = w * log(d) / d; } else { factor = w; } v_Force = dir * factor; } @end @export ecgl.forceAtlas2.updateEdgeAttraction.fragment varying vec2 v_Force; void main() { gl_FragColor = vec4(v_Force, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcWeightedSum.vertex attribute vec2 node; varying vec2 v_NodeUv; void main() { v_NodeUv = node; gl_Position = vec4(0.0, 0.0, 0.0, 1.0); gl_PointSize = 1.0; } @end @export ecgl.forceAtlas2.calcWeightedSum.fragment varying vec2 v_NodeUv; uniform sampler2D positionTex; uniform sampler2D forceTex; uniform sampler2D forcePrevTex; void main() { vec2 force = texture2D(forceTex, v_NodeUv).rg; vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg; float mass = texture2D(positionTex, v_NodeUv).z; float swing = length(force - forcePrev) * mass; float traction = length(force + forcePrev) * 0.5 * mass; gl_FragColor = vec4(swing, traction, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcGlobalSpeed uniform sampler2D globalSpeedPrevTex; uniform sampler2D weightedSumTex; uniform float jitterTolerence; void main() { vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy; float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x; float globalSpeed = jitterTolerence * jitterTolerence * weightedSum.y / weightedSum.x; if (prevGlobalSpeed > 0.0) { globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed; } gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updatePosition uniform sampler2D forceTex; uniform sampler2D forcePrevTex; uniform sampler2D positionTex; uniform sampler2D globalSpeedTex; varying vec2 v_Texcoord; void main() { vec2 force = texture2D(forceTex, v_Texcoord).xy; vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy; vec4 node = texture2D(positionTex, v_Texcoord); float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r; float swing = length(force - forcePrev); float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing)); float df = length(force); if (df > 0.0) { speed = min(df * speed, 10.0) / df; gl_FragColor = vec4(node.xy + speed * force, node.zw); } else { gl_FragColor = node; } } @end @export ecgl.forceAtlas2.edges.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 node; attribute vec4 a_Color : COLOR; varying vec4 v_Color; uniform sampler2D positionTex; void main() { gl_Position = worldViewProjection * vec4( texture2D(positionTex, node).xy, -10.0, 1.0 ); v_Color = a_Color; } @end @export ecgl.forceAtlas2.edges.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(5),ve=pe(6),ue=pe(250),fe=ue.a.toString();fe=fe.slice(fe.indexOf("{")+1,fe.lastIndexOf("}"));var he={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},le=function(ae){for(var ie in he)this[ie]=he[ie];if(ae)for(var ie in ae)this[ie]=ae[ie];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new Oe.a({type:ve.a.FLOAT,flipY:!1,minFilter:ve.a.NEAREST,magFilter:ve.a.NEAREST})};le.prototype.initData=function(ae,ie){var me=new Blob([fe]),E=window.URL.createObjectURL(me);this._worker=new Worker(E),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=ae,this._edges=ie,this._frame=0;for(var b=ae.length,z=ie.length,ne=new Float32Array(b*2),oe=new Float32Array(b),se=new Float32Array(b),de=new Float32Array(z*2),a=new Float32Array(z),x=0;x5e4?ie.jitterTolerence=10:z>5e3?ie.jitterTolerence=1:ie.jitterTolerence=.1,z>100?ie.scaling=2:ie.scaling=10,z>1e3?ie.barnesHutOptimize=!0:ie.barnesHutOptimize=!1,ae)for(var me in he)ae[me]!=null&&(ie[me]=ae[me]);if(!ie.gravityCenter){for(var ne=[1/0,1/0],oe=[-1/0,-1/0],se=0;seae},le.prototype.getNodePosition=function(ae,ie){if(ie||(ie=new Float32Array(this._nodes.length*2)),this._positionArr)for(var me=0;me0&&(oe=1/Math.sqrt(oe),E[0]=b[0]*oe,E[1]=b[1]*oe),E},negate:function(E,b){return E[0]=-b[0],E[1]=-b[1],E},copy:function(E,b){return E[0]=b[0],E[1]=b[1],E},set:function(E,b,z){return E[0]=b,E[1]=z,E}};function ue(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var fe=ue.prototype;fe.beforeUpdate=function(){for(var E=0;E=E&&this.bbox[1]<=b&&this.bbox[3]>=b},fe.setBBox=function(E,b,z,ne){this.bbox[0]=E,this.bbox[1]=b,this.bbox[2]=z,this.bbox[3]=ne,this.size=(z-E+ne-b)/2},fe._newSubRegion=function(){var E=this.subRegions[this.nSubRegions];return E||(E=new ue,this.subRegions[this.nSubRegions]=E),this.nSubRegions++,E},fe._addNodeToSubRegion=function(E){var b=this.findSubRegion(E.position[0],E.position[1]),z=this.bbox;if(!b){var ne=(z[0]+z[2])/2,oe=(z[1]+z[3])/2,se=(z[2]-z[0])/2,de=(z[3]-z[1])/2,a=E.position[0]>=ne?1:0,x=E.position[1]>=oe?1:0,b=this._newSubRegion();b.setBBox(a*se+z[0],x*de+z[1],(a+1)*se+z[0],(x+1)*de+z[1])}b.addNode(E)},fe._updateCenterOfMass=function(E){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var b=this.centerOfMass[0]*this.mass,z=this.centerOfMass[1]*this.mass;b+=E.position[0]*E.mass,z+=E.position[1]*E.mass,this.mass+=E.mass,this.centerOfMass[0]=b/this.mass,this.centerOfMass[1]=z/this.mass};function he(){this.position=new Float32Array(2),this.force=ve.create(),this.forcePrev=ve.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function le(E,b){this.source=E,this.target=b,this.weight=1}function ae(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new ue,this.rootRegion.centerOfMass=ve.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var ie=ae.prototype;ie.initNodes=function(E,b,z){var ne=b.length;this.nodes.length=0;for(var oe=typeof z!="undefined",se=0;se0&&(this.strongGravityMode?this.applyNodeStrongGravity(ne):this.applyNodeGravity(ne))}for(var b=0;b0&&(ge=Math.min(ge/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=ge;for(var b=0;b0&&(_e=Math.min(ye*_e,10)/ye,ve.scaleAndAdd(z.position,z.position,z.force,_e))}},ie.applyRegionToNodeRepulsion=function(){var E=ve.create();return function(z,ne){if(z.node)this.applyNodeToNodeRepulsion(z.node,ne,!0);else{ve.sub(E,ne.position,z.centerOfMass);var oe=E[0]*E[0]+E[1]*E[1];if(oe>this.barnesHutTheta*z.size*z.size){var se=this.scaling*ne.mass*z.mass/oe;ve.scaleAndAdd(ne.force,ne.force,E,se)}else for(var de=0;de0)de=this.scaling*z.mass*ne.mass/(a*a);else if(a<0)de=this.scaling*100*z.mass*ne.mass;else return}else de=this.scaling*z.mass*ne.mass/se;ve.scaleAndAdd(z.force,z.force,E,de),ve.scaleAndAdd(ne.force,ne.force,E,-de)}}}}(),ie.applyEdgeAttraction=function(){var E=ve.create();return function(z){var ne=z.source,oe=z.target;ve.sub(E,ne.position,oe.position);var se=ve.len(E),de;this.edgeWeightInfluence===0?de=1:this.edgeWeightInfluence===1?de=z.weight:de=Math.pow(z.weight,this.edgeWeightInfluence);var a;this.preventOverlap&&(se=se-ne.size-oe.size,se<=0)||(this.linLogMode?a=-de*Math.log(se+1)/(se+1):a=-de,ve.scaleAndAdd(ne.force,ne.force,E,a),ve.scaleAndAdd(oe.force,oe.force,E,-a))}}(),ie.applyNodeGravity=function(){var E=ve.create();return function(b){ve.sub(E,this.gravityCenter,b.position);var z=ve.len(E);ve.scaleAndAdd(b.force,b.force,E,this.gravity*b.mass/(z+1))}}(),ie.applyNodeStrongGravity=function(){var E=ve.create();return function(b){ve.sub(E,this.gravityCenter,b.position),ve.scaleAndAdd(b.force,b.force,E,this.gravity*b.mass)}}(),ie.updateBBox=function(){for(var E=1/0,b=1/0,z=-1/0,ne=-1/0,oe=0;oe0?1.1:.9,me=Math.max(Math.min(this._zoom*ie,this.maxZoom),this.minZoom);ie=me/this._zoom;var E=this._convertPos(le,ae),b=(E.x-this._dx)*(ie-1),z=(E.y-this._dy)*(ie-1);this._dx-=b,this._dy-=z,this._zoom=me,this._needsUpdate=!0}}},dispose:function(){var fe=this.zr;fe.off("mousedown",this._mouseDownHandler),fe.off("mousemove",this._mouseMoveHandler),fe.off("mouseup",this._mouseUpHandler),fe.off("mousewheel",this._mouseWheelHandler),fe.off("globalout",this._mouseUpHandler),fe.animation.off("frame",this._update)}});Me.a=ue},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.lines2D.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 position: POSITION; attribute vec4 a_Color : COLOR; varying vec4 v_Color; #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif void main() { gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); v_Color = a_Color; } @end @export ecgl.lines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end @export ecgl.meshLines2D.vertex attribute vec2 position: POSITION; attribute vec2 normal; attribute float offset; attribute vec4 a_Color : COLOR; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; varying vec4 v_Color; varying float v_Miter; void main() { vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0); gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); p2.xy /= p2.w; gl_Position.xy /= gl_Position.w; vec2 N = normalize(p2.xy - gl_Position.xy); gl_Position.xy += N * offset / viewport.zw * 2.0; gl_Position.xy *= gl_Position.w; v_Color = a_Color; } @end @export ecgl.meshLines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; varying float v_Miter; void main() { gl_FragColor = color * v_Color; } @end`},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(254),fe=pe(258)},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(3),he=pe(20),le=pe(255);ve.a.extendChartView({type:"flowGL",__ecgl__:!0,init:function(ae,ie){this.viewGL=new he.a("orthographic"),this.groupGL=new ue.a.Node,this.viewGL.add(this.groupGL),this._particleSurface=new le.a;var me=new ue.a.Mesh({geometry:new ue.a.PlaneGeometry,material:new ue.a.Material({shader:new ue.a.Shader({vertex:ue.a.Shader.source("ecgl.color.vertex"),fragment:ue.a.Shader.source("ecgl.color.fragment")}),transparent:!0})});me.material.enableTexture("diffuseMap"),this.groupGL.add(me),this._planeMesh=me},render:function(ae,ie,me){var E=this._particleSurface;E.setParticleType(ae.get("particleType")),E.setSupersampling(ae.get("supersampling")),this._updateData(ae,me),this._updateCamera(me.getWidth(),me.getHeight(),me.getDevicePixelRatio());var b=fe.a.firstNotNull(ae.get("particleDensity"),128);E.setParticleDensity(b,b);var z=this._planeMesh,ne=+new Date,oe=this,se=!0;z.__percent=0,z.stopAnimation(),z.animate("",{loop:!0}).when(1e5,{__percent:1}).during(function(){var x=+new Date,re=Math.min(x-ne,20);ne=ne+re,oe._renderer&&(E.update(oe._renderer,me,re/1e3,se),z.material.set("diffuseMap",E.getSurfaceTexture())),se=!1}).start();var de=ae.getModel("itemStyle"),a=ue.a.parseColor(de.get("color"));a[3]*=fe.a.firstNotNull(de.get("opacity"),1),z.material.set("color",a),E.setColorTextureImage(ae.get("colorTexture"),me),E.setParticleSize(ae.get("particleSize")),E.particleSpeedScaling=ae.get("particleSpeed"),E.motionBlurFactor=1-Math.pow(.1,ae.get("particleTrail"))},updateTransform:function(ae,ie,me){this._updateData(ae,me)},afterRender:function(ae,ie,me,E){var b=E.renderer;this._renderer=b},_updateData:function(ae,ie){var me=ae.coordinateSystem,E=me.dimensions.map(function(Se){return ae.coordDimToDataDim(Se)[0]}),b=ae.getData(),z=b.getDataExtent(E[0]),ne=b.getDataExtent(E[1]),oe=ae.get("gridWidth"),se=ae.get("gridHeight");if(oe==null||oe==="auto"){var de=(z[1]-z[0])/(ne[1]-ne[0]);oe=Math.round(Math.sqrt(de*b.count()))}(se==null||se==="auto")&&(se=Math.ceil(b.count()/oe));var a=this._particleSurface.vectorFieldTexture,x=a.pixels;if(!x||x.length!==se*oe*4)x=a.pixels=new Float32Array(oe*se*4);else for(var re=0;re=359;oe&&(b[0]>0&&(b[0]=0),z[0]0?se[se.length-1]:this._lastFrameTexture},setRegion:function(se){this._particlePass.setUniform("region",se)},resize:function(se,de){this._lastFrameTexture.width=se*this._supersampling,this._lastFrameTexture.height=de*this._supersampling,this._thisFrameTexture.width=se*this._supersampling,this._thisFrameTexture.height=de*this._supersampling,this._width=se,this._height=de},setParticleSize:function(se){var de=this._getParticleMesh();if(se<=2){de.material.disableTexture("spriteTexture"),de.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new le.a),(!this._spriteTexture.image||this._spriteTexture.image.width!==se)&&(this._spriteTexture.image=ne(se),this._spriteTexture.dirty()),de.material.transparent=!0,de.material.enableTexture("spriteTexture"),de.material.set("spriteTexture",this._spriteTexture),this._particleSize=se},setGradientTexture:function(se){var de=this._getParticleMesh().material;de[se?"enableTexture":"disableTexture"]("gradientTexture"),de.setUniform("gradientTexture",se)},setColorTextureImage:function(se,de){var a=this._getParticleMesh().material;a.setTextureImage("colorTexture",se,de,{flipY:!0})},setParticleType:function(se){this._particleType=se},clearFrame:function(se){var de=this._frameBuffer;de.attach(this._lastFrameTexture),de.bind(se),se.gl.clear(se.gl.DEPTH_BUFFER_BIT|se.gl.COLOR_BUFFER_BIT),de.unbind(se)},setSupersampling:function(se){this._supersampling=se,this.resize(this._width,this._height)},_updateDownsampleTextures:function(se,de){for(var a=this._downsampleTextures,x=Math.max(Math.floor(Math.log(this._supersampling/de.getDevicePixelRatio())/Math.log(2)),0),re=2,ce=this._width*this._supersampling,ge=this._height*this._supersampling,_e=0;_e65535?new Uint32Array(ie*3):new Uint16Array(ie*3))},addLine:function(he){var le=this._vertexOffset;this.attributes.position.set(le,[he[0],he[1],1]),this.attributes.position.set(le+1,[he[0],he[1],-1]),this.attributes.position.set(le+2,[he[0],he[1],2]),this.attributes.position.set(le+3,[he[0],he[1],-2]),this.setTriangleIndices(this._faceOffset++,[le,le+1,le+2]),this.setTriangleIndices(this._faceOffset++,[le+1,le+2,le+3]),this._vertexOffset+=4}});Me.a=fe},function(Ye,Me,pe){"use strict";Me.a=`@export ecgl.vfParticle.particle.fragment uniform sampler2D particleTexture; uniform sampler2D spawnTexture; uniform sampler2D velocityTexture; uniform float deltaTime; uniform float elapsedTime; uniform float speedScaling : 1.0; uniform vec2 textureSize; uniform vec4 region : [0, 0, 1, 1]; uniform float firstFrameTime; varying vec2 v_Texcoord; void main() { vec4 p = texture2D(particleTexture, v_Texcoord); bool spawn = false; if (p.w <= 0.0) { p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0)); p.w -= firstFrameTime; spawn = true; } vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy; v = (v - 0.5) * 2.0; p.z = length(v); p.xy += v * deltaTime / 10.0 * speedScaling; p.w -= deltaTime; if (spawn || p.xy != fract(p.xy)) { p.z = 0.0; } p.xy = fract(p.xy); gl_FragColor = p; } @end @export ecgl.vfParticle.renderPoints.vertex #define PI 3.1415926 attribute vec2 texcoord : TEXCOORD_0; uniform sampler2D particleTexture; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float size : 1.0; varying float v_Mag; varying vec2 v_Uv; void main() { vec4 p = texture2D(particleTexture, texcoord); if (p.w > 0.0 && p.z > 1e-5) { gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0); } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } v_Mag = p.z; v_Uv = p.xy; gl_PointSize = size; } @end @export ecgl.vfParticle.renderPoints.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; uniform sampler2D spriteTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef SPRITETEXTURE_ENABLED gl_FragColor *= texture2D(spriteTexture, gl_PointCoord); if (color.a == 0.0) { discard; } #endif #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end @export ecgl.vfParticle.renderLines.vertex #define PI 3.1415926 attribute vec3 position : POSITION; uniform sampler2D particleTexture; uniform sampler2D prevParticleTexture; uniform float size : 1.0; uniform vec4 vp: VIEWPORT; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; varying float v_Mag; varying vec2 v_Uv; @import clay.util.rand void main() { vec4 p = texture2D(particleTexture, position.xy); vec4 p2 = texture2D(prevParticleTexture, position.xy); p.xy = p.xy * 2.0 - 1.0; p2.xy = p2.xy * 2.0 - 1.0; if (p.w > 0.0 && p.z > 1e-5) { vec2 dir = normalize(p.xy - p2.xy); vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size; if (abs(position.z) == 2.0) { gl_Position = vec4(p.xy + norm, 0.0, 1.0); v_Uv = p.xy; v_Mag = p.z; } else { gl_Position = vec4(p2.xy + norm, 0.0, 1.0); v_Mag = p2.z; v_Uv = p2.xy; } gl_Position = worldViewProjection * gl_Position; } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } } @end @export ecgl.vfParticle.renderLines.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end `},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe);ve.a.extendSeriesModel({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualColorAccessPath:"itemStyle.color",getInitialData:function(ue,fe){var he=ve.a.getCoordinateSystemDimensions(this.get("coordinateSystem"))||["x","y"];if(he.length>2)throw new Error("flowGL can only be used on 2d coordinate systems.");he.push("vx","vy");var le=ve.a.helper.completeDimensions(he,this.getSource(),{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),ae=new ve.a.List(le,this);return ae.initData(this.getSource()),ae},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(260),fe=pe(261),he=pe(16);ve.a.registerVisual(Object(he.a)("linesGL"))},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(12),fe=pe.n(ue),he=ve.a.extendSeriesModel({type:"series.linesGL",dependencies:["grid","geo"],visualColorAccessPath:"lineStyle.color",streamEnabled:!0,init:function(le){var ae=this._processFlatCoordsArray(le.data);this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset,ae.flatCoords&&(le.data=new Float32Array(ae.count)),he.superApply(this,"init",arguments)},mergeOption:function(le){var ae=this._processFlatCoordsArray(le.data);this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset,ae.flatCoords&&(le.data=new Float32Array(ae.count)),he.superApply(this,"mergeOption",arguments)},appendData:function(le){var ae=this._processFlatCoordsArray(le.data);ae.flatCoords&&(this._flatCoords?(this._flatCoords=Object(ue.concatArray)(this._flatCoords,ae.flatCoords),this._flatCoordsOffset=Object(ue.concatArray)(this._flatCoordsOffset,ae.flatCoordsOffset)):(this._flatCoords=ae.flatCoords,this._flatCoordsOffset=ae.flatCoordsOffset),le.data=new Float32Array(ae.count)),this.getRawData().appendData(le.data)},_getCoordsFromItemModel:function(le){var ae=this.getData().getItemModel(le),ie=ae.option instanceof Array?ae.option:ae.getShallow("coords");if(!(ie instanceof Array&&ie.length>0&&ie[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(ie)+". Lines must have 2d coords array in data item.");return ie},getLineCoordsCount:function(le){return this._flatCoordsOffset?this._flatCoordsOffset[le*2+1]:this._getCoordsFromItemModel(le).length},getLineCoords:function(le,ae){if(this._flatCoordsOffset){for(var ie=this._flatCoordsOffset[le*2],me=this._flatCoordsOffset[le*2+1],E=0;Eie)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(me.buffer,0,z),flatCoords:E,count:ne}}return{flatCoordsOffset:null,flatCoords:null,count:le.length}},getInitialData:function(le,ae){var ie=new ve.a.List(["value"],this);return ie.hasItemOption=!1,ie.initData(le.data,[],function(me,E,b,z){if(me instanceof Array)return NaN;ie.hasItemOption=!0;var ne=me.value;if(ne!=null)return ne instanceof Array?ne[z]:ne}),ie},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}})},function(Ye,Me,pe){"use strict";var Oe=pe(0),ve=pe.n(Oe),ue=pe(2),fe=pe(20),he=pe(86),le=pe(84),ae=pe(3);ve.a.extendChartView({type:"linesGL",__ecgl__:!0,init:function(ie,me){this.groupGL=new ue.a.Node,this.viewGL=new fe.a("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new le.a(this.viewGL),this._nativeLinesShader=ue.a.createShader("ecgl.lines3D"),this._meshLinesShader=ue.a.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(ie,me,E){this.groupGL.removeAll(),this._glViewHelper.reset(ie,E);var b=this._linesMeshes[0];b||(b=this._linesMeshes[0]=this._createLinesMesh(ie)),this._linesMeshes.length=1,this.groupGL.add(b),this._updateLinesMesh(ie,b,0,ie.getData().count()),this.viewGL.setPostEffect(ie.getModel("postEffect"),E)},incrementalPrepareRender:function(ie,me,E){this.groupGL.removeAll(),this._glViewHelper.reset(ie,E),this._currentStep=0,this.viewGL.setPostEffect(ie.getModel("postEffect"),E)},incrementalRender:function(ie,me,E,b){var z=this._linesMeshes[this._currentStep];z||(z=this._createLinesMesh(me),this._linesMeshes[this._currentStep]=z),this._updateLinesMesh(me,z,ie.start,ie.end),this.groupGL.add(z),b.getZr().refresh(),this._currentStep++},updateTransform:function(ie,me,E){ie.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(ie,E)},_createLinesMesh:function(ie){var me=new ue.a.Mesh({$ignorePicking:!0,material:new ue.a.Material({shader:ue.a.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new he.a({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:ue.a.Mesh.LINES,culling:!1});return me},_updateLinesMesh:function(ie,me,E,b){var z=ie.getData();me.material.blend=ie.get("blendMode")==="lighter"?ue.a.additiveBlend:null;var ne=ie.get("lineStyle.curveness")||0,oe=ie.get("polyline"),se=me.geometry,de=ie.coordinateSystem,a=ae.a.firstNotNull(ie.get("lineStyle.width"),1);a>1?(me.material.shader!==this._meshLinesShader&&me.material.attachShader(this._meshLinesShader),me.mode=ue.a.Mesh.TRIANGLES):(me.material.shader!==this._nativeLinesShader&&me.material.attachShader(this._nativeLinesShader),me.mode=ue.a.Mesh.LINES),E=E||0,b=b||z.count(),se.resetOffset();var x=0,re=0,ce=[],ge=[],_e=[],ye=[],be=[],Se=.3,Be=.7;function Ae(){ge[0]=ce[0]*Be+ye[0]*Se-(ce[1]-ye[1])*ne,ge[1]=ce[1]*Be+ye[1]*Se-(ye[0]-ce[0])*ne,_e[0]=ce[0]*Se+ye[0]*Be-(ce[1]-ye[1])*ne,_e[1]=ce[1]*Se+ye[1]*Be-(ye[0]-ce[0])*ne}if(oe||ne!==0)for(var we=E;we0&&(ge=a[0]),ge instanceof Error)throw ge;var _e=new Error("Unhandled error."+(ge?" ("+ge.message+")":""));throw _e.context=ge,_e}var ye=ce[de];if(ye===void 0)return!1;if(typeof ye=="function")Ce(ye,this,a);else for(var be=ye.length,Se=me(ye,be),x=0;x0&&ge.length>re&&!ge.warned){ge.warned=!0;var _e=new Error("Possible EventEmitter memory leak detected. "+ge.length+" "+String(de)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=se,_e.type=de,_e.count=ge.length,Ye(_e)}return se}pe.prototype.addListener=function(de,a){return fe(this,de,a,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(de,a){return fe(this,de,a,!0)};function he(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function le(se,de,a){var x={fired:!1,wrapFn:void 0,target:se,type:de,listener:a},re=he.bind(x);return re.listener=a,x.wrapFn=re,re}pe.prototype.once=function(de,a){return ve(a),this.on(de,le(this,de,a)),this},pe.prototype.prependOnceListener=function(de,a){return ve(a),this.prependListener(de,le(this,de,a)),this},pe.prototype.removeListener=function(de,a){var x,re,ce,ge,_e;if(ve(a),re=this._events,re===void 0)return this;if(x=re[de],x===void 0)return this;if(x===a||x.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete re[de],re.removeListener&&this.emit("removeListener",de,x.listener||a));else if(typeof x!="function"){for(ce=-1,ge=x.length-1;ge>=0;ge--)if(x[ge]===a||x[ge].listener===a){_e=x[ge].listener,ce=ge;break}if(ce<0)return this;ce===0?x.shift():E(x,ce),x.length===1&&(re[de]=x[0]),re.removeListener!==void 0&&this.emit("removeListener",de,_e||a)}return this},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(de){var a,x,re;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[de]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[de]),this;if(arguments.length===0){var ce=Object.keys(x),ge;for(re=0;re=0;re--)this.removeListener(de,a[re]);return this};function ae(se,de,a){var x=se._events;if(x===void 0)return[];var re=x[de];return re===void 0?[]:typeof re=="function"?a?[re.listener||re]:[re]:a?b(re):me(re,re.length)}pe.prototype.listeners=function(de){return ae(this,de,!0)},pe.prototype.rawListeners=function(de){return ae(this,de,!1)},pe.listenerCount=function(se,de){return typeof se.listenerCount=="function"?se.listenerCount(de):ie.call(se,de)},pe.prototype.listenerCount=ie;function ie(se){var de=this._events;if(de!==void 0){var a=de[se];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}pe.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function me(se,de){for(var a=new Array(de),x=0;x>>6)+fe(128|we&63):fe(224|we>>>12&15)+fe(128|we>>>6&63)+fe(128|we&63)}else{var we=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return fe(240|we>>>18&7)+fe(128|we>>>12&63)+fe(128|we>>>6&63)+fe(128|we&63)}},le=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ae){return Ae.replace(le,he)},ie=function(Ae){var we=[0,2,1][Ae.length%3],Ue=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),Pe=[ve.charAt(Ue>>>18),ve.charAt(Ue>>>12&63),we>=2?"=":ve.charAt(Ue>>>6&63),we>=1?"=":ve.charAt(Ue&63)];return Pe.join("")},me=Me.btoa&&typeof Me.btoa=="function"?function(Ae){return Me.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,ie)},E=function(Ae){return me(ae(String(Ae)))},b=function(Ae){return Ae.replace(/[+\/]/g,function(we){return we=="+"?"-":"_"}).replace(/=/g,"")},z=function(Ae,we){return we?b(E(Ae)):E(Ae)},ne=function(Ae){return z(Ae,!0)},oe;Me.Uint8Array&&(oe=function(Ae,we){for(var Ue="",Pe=0,ze=Ae.length;Pe>>18)+ve.charAt($e>>>12&63)+(typeof Ne!="undefined"?ve.charAt($e>>>6&63):"=")+(typeof Re!="undefined"?ve.charAt($e&63):"=")}return we?b(Ue):Ue});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,de=function(Ae){switch(Ae.length){case 4:var we=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Ue=we-65536;return fe((Ue>>>10)+55296)+fe((Ue&1023)+56320);case 3:return fe((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return fe((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},a=function(Ae){return Ae.replace(se,de)},x=function(Ae){var we=Ae.length,Ue=we%4,Pe=(we>0?ue[Ae.charAt(0)]<<18:0)|(we>1?ue[Ae.charAt(1)]<<12:0)|(we>2?ue[Ae.charAt(2)]<<6:0)|(we>3?ue[Ae.charAt(3)]:0),ze=[fe(Pe>>>16),fe(Pe>>>8&255),fe(Pe&255)];return ze.length-=[0,0,2,1][Ue],ze.join("")},re=Me.atob&&typeof Me.atob=="function"?function(Ae){return Me.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,x)},ce=function(Ae){return re(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(Ae){return a(re(Ae))},_e=function(Ae){return String(Ae).replace(/[-_]/g,function(we){return we=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(Ae){return ge(_e(Ae))},be;Me.Uint8Array&&(be=function(Ae){return Uint8Array.from(ce(_e(Ae)),function(we){return we.charCodeAt(0)})});var Se=function(){var Ae=Me.Base64;return Me.Base64=pe,Ae};if(Me.Base64={VERSION:Oe,atob:ce,btoa:me,fromBase64:ye,toBase64:z,utob:ae,encode:z,encodeURI:ne,btou:a,decode:ye,noConflict:Se,fromUint8Array:oe,toUint8Array:be},typeof Object.defineProperty=="function"){var Be=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};Me.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Be(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",Be(function(Ae){return z(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Be(function(){return z(this,!0)}))}}return Me.Meteor&&(Base64=Me.Base64),Yn.exports?Yn.exports.Base64=Me.Base64:(te=[],Ye=function(){return Me.Base64}.apply(en,te),Ye!==void 0&&(Yn.exports=Ye)),{Base64:Me.Base64}})},2859:function(Yn,en,Ce){"use strict";Ce.d(en,{hP:function(){return zt}});var te=function(Xe,Fe){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ze){Le.__proto__=Ze}||function(Le,Ze){for(var et in Ze)Object.prototype.hasOwnProperty.call(Ze,et)&&(Le[et]=Ze[et])})(Xe,Fe)};function Ye(Xe,Fe){function Le(){this.constructor=Xe}te(Xe,Fe),Xe.prototype=Fe===null?Object.create(Fe):(Le.prototype=Fe.prototype,new Le)}function Me(Xe,Fe,Le,Ze){return new(Le||(Le=Promise))(function(et,He){function We(ot){try{at(Ze.next(ot))}catch(ct){He(ct)}}function tt(ot){try{at(Ze.throw(ot))}catch(ct){He(ct)}}function at(ot){var ct;ot.done?et(ot.value):(ct=ot.value,ct instanceof Le?ct:new Le(function(lt){lt(ct)})).then(We,tt)}at((Ze=Ze.apply(Xe,Fe||[])).next())})}function pe(Xe,Fe){var Le,Ze,et,He,We={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return He={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function tt(at){return function(ot){return function(ct){if(Le)throw new TypeError("Generator is already executing.");for(;We;)try{if(Le=1,Ze&&(et=2&ct[0]?Ze.return:ct[0]?Ze.throw||((et=Ze.return)&&et.call(Ze),0):Ze.next)&&!(et=et.call(Ze,ct[1])).done)return et;switch(Ze=0,et&&(ct=[2&ct[0],et.value]),ct[0]){case 0:case 1:et=ct;break;case 4:return We.label++,{value:ct[1],done:!1};case 5:We.label++,Ze=ct[1],ct=[0];continue;case 7:ct=We.ops.pop(),We.trys.pop();continue;default:if(et=We.trys,!((et=et.length>0&&et[et.length-1])||ct[0]!==6&&ct[0]!==2)){We=0;continue}if(ct[0]===3&&(!et||ct[1]>et[0]&&ct[1]',"select"),this.addActionButton(Ze,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ze,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ze,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ze,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ze,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ze,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ze,'',"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(He){var We=document.createElement("div");We.className=""+Le.toolbarButtonStyleClass.name,We.setAttribute("data-type-name",He.typeName),We.innerHTML=He.icon,We.addEventListener("click",function(){Le.markerToolbarButtonClicked(We,He)}),Le.buttons.push(We),Le.markerButtons.push(We)}),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 et=document.createElement("div");et.className=this.toolbarBlockStyleClass.name,et.style.whiteSpace="nowrap",et.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(et),this.addActionButton(et,'',"render"),this.addActionButton(et,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Xe.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},Xe.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},Xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Le=0;Le0&&this.buttonClickListeners.forEach(function(Ze){return Ze("marker",Le)}),this.markerButtonOverflowBlock.style.display="none"},Xe.prototype.actionToolbarButtonClicked=function(Fe,Le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ze){return Ze("action",Le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Xe.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Xe.prototype.setActiveMarkerButton=function(Fe){var Le=this.markerButtons.find(function(Ze){return Ze.getAttribute("data-type-name")===Fe});Le&&this.setActiveButton(Le)},Xe.prototype.setCurrentMarker=function(Fe){var Le=this;this.currentMarker=Fe,this.buttons.filter(function(Ze){return/delete|notes/.test(Ze.getAttribute("data-action"))}).forEach(function(Ze){Le.currentMarker===void 0?(Ze.style.fillOpacity="0.4",Ze.style.pointerEvents="none"):(Ze.style.fillOpacity="1",Ze.style.pointerEvents="all")})},Xe}(),E=function(){function Xe(Fe,Le,Ze,et){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=Le,this.uiStyleSettings=Ze,this.styles=et,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Xe.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new ie("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 ie("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("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 ie("toolbox-panel-row_colors",` background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px; padding: `+Le+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new ae("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new ae("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Xe.prototype.show=function(Fe){var Le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Xe.prototype.setPanelButtons=function(Fe){var Le,Ze,et=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ze=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ze!==void 0?Ze:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(He){var We;He.uiStyleSettings=et.uiStyleSettings;var tt=document.createElement("div");tt.className=et.toolboxButtonStyleClass.name+" "+((We=et.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:et.toolboxButtonStyleColorsClass.name),tt.innerHTML=He.icon,tt.title=He.title,tt.addEventListener("click",function(){et.panelButtonClick(He)}),et.panelButtons.push(tt),et.buttonRow.appendChild(tt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Xe.prototype.panelButtonClick=function(Fe){var Le=this,Ze=-1;if(Fe!==this.activePanel){Ze=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var et=Fe.getUi();et.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(et),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=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Le.displayMode==="inline"?Le.panelRow.style.display="none":Le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(He,We){var tt,at;He.className=Le.toolboxButtonStyleClass.name+" "+(We===Ze?""+((tt=Le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tt!==void 0?tt:Le.toolboxActiveButtonStyleColorsClass.name):""+((at=Le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:Le.toolboxButtonStyleColorsClass.name))})},Xe}(),b=function(Xe,Fe){this.title=Xe,this.icon=Fe},z=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'')||this;return We.colors=[],We.addTransparent=!1,We.colorBoxes=[],We.colors=Ze,We.currentColor=et,We.setCurrentColor=We.setCurrentColor.bind(We),We.getColorBox=We.getColorBox.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.whiteSpace="nowrap",this.colors.forEach(function(et){var He=Le.getColorBox(et);Ze.appendChild(He),Le.colorBoxes.push(He)}),Ze},Fe.prototype.getColorBox=function(Le){var Ze=this,et=this.uiStyleSettings.toolbarHeight/4,He=this.uiStyleSettings.toolbarHeight-et,We=document.createElement("div");We.style.display="inline-block",We.style.boxSizing="content-box",We.style.width=He-2+"px",We.style.height=He-2+"px",We.style.padding="1px",We.style.marginRight="2px",We.style.marginBottom="2px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderRadius=(He+2)/2+"px",We.style.borderColor=Le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){Ze.setCurrentColor(Le,We)});var tt=document.createElement("div");return tt.style.display="inline-block",tt.style.width=He-2+"px",tt.style.height=He-2+"px",tt.style.backgroundColor=Le,tt.style.borderRadius=He/2+"px",Le==="transparent"&&(tt.style.fill=this.uiStyleSettings.toolboxAccentColor,tt.innerHTML=` `),We.appendChild(tt),We},Fe.prototype.setCurrentColor=function(Le,Ze){var et=this;this.currentColor=Le,this.colorBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Le)},Fe}(b),ne=function(){function Xe(Fe,Le,Ze){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=Le,this.globalSettings=Ze,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Xe.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty(Xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Xe.prototype.pointerDown=function(Fe,Le){},Xe.prototype.dblClick=function(Fe,Le){},Xe.prototype.manipulate=function(Fe){},Xe.prototype.pointerUp=function(Fe){this.stateChanged()},Xe.prototype.dispose=function(){},Xe.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},Xe.prototype.getState=function(){return{typeName:Xe.typeName,state:this.state,notes:this.notes}},Xe.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},Xe.prototype.scale=function(Fe,Le){},Xe.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},Xe.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},Xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},Xe.typeName="MarkerBase",Xe}(),oe=function(){function Xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Xe.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},Xe}(),se=function(){function Xe(){this.GRIP_SIZE=10,this.visual=ve.createGroup(),this.visual.appendChild(ve.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ve.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Xe.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},Xe}(),de=function(){function Xe(){}return Xe.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},Xe.toSVGMatrix=function(Fe,Le){return Fe.a=Le.a,Fe.b=Le.b,Fe.c=Le.c,Fe.d=Le.d,Fe.e=Le.e,Fe.f=Le.f,Fe},Xe}(),a=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.left=0,He.top=0,He.width=0,He.height=0,He.defaultSize={x:50,y:20},He.offsetX=0,He.offsetY=0,He.rotationAngle=0,He.CB_DISTANCE=10,He._suppressMarkerCreateEvent=!1,He.container.transform.baseVal.appendItem(ve.createTransform()),He.setupControlBox(),He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(Le){this._visual=Le;var Ze=ve.createTransform();this._visual.transform.baseVal.appendItem(Ze)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Le){return!!Xe.prototype.ownsTarget.call(this,Le)||!!(this.controlGrips.findGripByVisual(Le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Le))},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.left=Le.x,this.top=Le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var et=this.unrotatePoint(Le);if(this.manipulationStartX=et.x,this.manipulationStartY=et.y,this.offsetX=et.x-this.left,this.offsetY=et.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ze),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ze)){this.activeGrip=this.rotatorGrip;var He=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=He.x-this.width/2,this.top=He.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var We=this.container.transform.baseVal.getItem(0);We.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(We,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Xe.prototype.pointerUp.call(this,Le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Le),this._state="select",Ze==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(Le){this.visual.style.transform="translate("+Le.x+"px, "+Le.y+"px)"},Fe.prototype.manipulate=function(Le){var Ze=this.unrotatePoint(Le);this.state==="creating"?this.resize(Le):this.state==="move"?(this.left=this.manipulationStartLeft+(Ze.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ze.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ze):this.state==="rotate"&&this.rotate(Le)},Fe.prototype.resize=function(Le){var Ze=this.manipulationStartLeft,et=this.manipulationStartWidth,He=this.manipulationStartTop,We=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ze=this.manipulationStartLeft+Le.x-this.manipulationStartX,et=this.manipulationStartWidth+this.manipulationStartLeft-Ze;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:et=this.manipulationStartWidth+Le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:He=this.manipulationStartTop+Le.y-this.manipulationStartY,We=this.manipulationStartHeight+this.manipulationStartTop-He;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:We=this.manipulationStartHeight+Le.y-this.manipulationStartY}et>=0?(this.left=Ze,this.width=et):(this.left=Ze+et,this.width=-et),We>=0?(this.top=He,this.height=We):(this.top=He+We,this.height=-We),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(Le){if(Math.abs(Le.x-this.centerX)>.1){var Ze=Math.sign(Le.x-this.centerX);this.rotationAngle=180*Math.atan((Le.y-this.centerY)/(Le.x-this.centerX))/Math.PI+90*Ze,this.applyRotation()}},Fe.prototype.applyRotation=function(){var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0)},Fe.prototype.rotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ze=this.container.getCTM(),et=ve.createPoint(Le.x,Le.y);return{x:(et=et.matrixTransform(Ze)).x,y:et.y}},Fe.prototype.unrotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ze=this.container.getCTM();Ze=Ze.inverse();var et=ve.createPoint(Le.x,Le.y);return{x:(et=et.matrixTransform(Ze)).x,y:et.y}},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ve.createGroup();var Le=ve.createTransform();Le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Le),this.container.appendChild(this.controlBox),this.controlRect=ve.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=ve.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 oe,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var Le=this.controlBox.transform.baseVal.getItem(0);Le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Le,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()},Fe.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()},Fe.prototype.createGrip=function(){var Le=new se;return Le.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(Le.visual),Le},Fe.prototype.positionGrips=function(){var Le=this.controlGrips.topLeft.GRIP_SIZE,Ze=-Le/2,et=Ze,He=(this.width+this.CB_DISTANCE)/2-Le/2,We=(this.height+this.CB_DISTANCE)/2-Le/2,tt=this.height+this.CB_DISTANCE-Le/2,at=this.width+this.CB_DISTANCE-Le/2;this.positionGrip(this.controlGrips.topLeft.visual,Ze,et),this.positionGrip(this.controlGrips.topCenter.visual,He,et),this.positionGrip(this.controlGrips.topRight.visual,at,et),this.positionGrip(this.controlGrips.centerLeft.visual,Ze,We),this.positionGrip(this.controlGrips.centerRight.visual,at,We),this.positionGrip(this.controlGrips.bottomLeft.visual,Ze,tt),this.positionGrip(this.controlGrips.bottomCenter.visual,He,tt),this.positionGrip(this.controlGrips.bottomRight.visual,at,tt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,He,et-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(Le,Ze,et){var He=Le.transform.baseVal.getItem(0);He.setTranslate(Ze,et),Le.transform.baseVal.replaceItem(He,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:de.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:de.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.left=Ze.left,this.top=Ze.top,this.width=Ze.width,this.height=Ze.height,this.rotationAngle=Ze.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ze.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ze.containerTransformMatrix))},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze);var et=this.rotatePoint({x:this.left,y:this.top}),He=this.unrotatePoint({x:et.x*Le,y:et.y*Ze});this.left=He.x,this.top=He.y,this.width=this.width*Le,this.height=this.height*Ze,this.adjustControlBox()},Fe}(ne),x=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor="transparent",He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.opacity=1,He.setStrokeColor=He.setStrokeColor.bind(He),He.setFillColor=He.setFillColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.createVisual=He.createVisual.bind(He),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual)},Fe.prototype.createVisual=function(){this.visual=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.setSize()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Le){Xe.prototype.pointerUp.call(this,Le),this.setSize()},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.visual&&ve.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Fe.prototype.setFillColor=function(Le){this.fillColor=Le,this.visual&&ve.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.visual&&ve.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){var Ze=Le;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.opacity=Ze.opacity,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize()},Fe.title="Rectangle marker",Fe}(a),re=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'')||this;return We.widths=[],We.widthBoxes=[],We.widths=Ze,We.currentWidth=et,We.setCurrentWidth=We.setCurrentWidth.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.widths.forEach(function(et){var He=document.createElement("div");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=et===Le.currentWidth?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentWidth(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.innerText=et.toString(),We.style.marginRight="5px",He.appendChild(We);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.display="flex",tt.style.alignItems="center";var at=document.createElement("hr");at.style.minWidth="20px",at.style.border="0px",at.style.borderTop=et+"px solid "+Le.uiStyleSettings.toolboxColor,at.style.flexGrow="2",tt.appendChild(at),He.appendChild(tt),Le.widthBoxes.push(He)}),Ze},Fe.prototype.setCurrentWidth=function(Le,Ze){var et=this;this.currentWidth=Le,this.widthBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(b),ce=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'')||this;return We.styles=[],We.styleBoxes=[],We.styles=Ze,We.currentStyle=et,We.setCurrentStyle=We.setCurrentStyle.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.styles.forEach(function(et){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.overflow="hidden",He.style.maxWidth=100/Le.styles.length-5+"%",He.style.borderColor=et===Le.currentStyle?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentStyle(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.overflow="hidden";var tt=` `;We.innerHTML=tt,He.appendChild(We),Le.styleBoxes.push(He)}),Ze},Fe.prototype.setCurrentStyle=function(Le,Ze){var et=this;this.currentStyle=Le,this.styleBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(b),ge=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='',Fe}(x),_e=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"},ye=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.x1=0,He.y1=0,He.x2=0,He.y2=0,He.defaultLength=50,He.manipulationStartX=0,He.manipulationStartY=0,He.manipulationStartX1=0,He.manipulationStartY1=0,He.manipulationStartX2=0,He.manipulationStartY2=0,He.setupControlBox(),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!!Xe.prototype.ownsTarget.call(this,Le)||!(!this.grip1.ownsTarget(Le)&&!this.grip2.ownsTarget(Le))},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.manipulationStartX=Le.x,this.manipulationStartY=Le.y,this.state==="new"&&(this.x1=Le.x,this.y1=Le.y,this.x2=Le.x,this.y2=Le.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(Ze)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ze)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Xe.prototype.pointerUp.call(this,Le),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(Le),this._state="select",Ze==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(Le){this.state==="creating"?this.resize(Le):this.state==="move"?(this.x1=this.manipulationStartX1+Le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Le)},Fe.prototype.resize=function(Le){switch(this.activeGrip){case this.grip1:this.x1=Le.x,this.y1=Le.y;break;case this.grip2:case void 0:this.x2=Le.x,this.y2=Le.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){Xe.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=ve.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var Le=new se;return Le.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(Le.visual),Le},Fe.prototype.positionGrips=function(){var Le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Le/2,this.y1-Le/2),this.positionGrip(this.grip2.visual,this.x2-Le/2,this.y2-Le/2)},Fe.prototype.positionGrip=function(Le,Ze,et){var He=Le.transform.baseVal.getItem(0);He.setTranslate(Ze,et),Le.transform.baseVal.replaceItem(He,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Xe.prototype.getState.call(this))},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.x1=Ze.x1,this.y1=Ze.y1,this.x2=Ze.x2,this.y2=Ze.y2},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.x1=this.x1*Le,this.y1=this.y1*Ze,this.x2=this.x2*Le,this.y2=this.y2*Ze,this.adjustVisual(),this.adjustControlBox()},Fe}(ne),be=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.setStrokeColor=He.setStrokeColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorLine&&Le!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorLine=ve.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.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()),ve.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='',Fe}(ye),Se=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'')||this;return We.fonts=[],We.fontBoxes=[],We.fonts=Ze,We.currentFont=et,We.setCurrentFont=We.setCurrentFont.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.overflow="hidden",Ze.style.flexGrow="2",this.fonts.forEach(function(et){var He=document.createElement("div");He.style.display="inline-block",He.style.alignItems="center",He.style.justifyContent="space-between",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.overflow="hidden",He.style.maxWidth=100/Le.fonts.length-5+"%",He.style.borderColor=et===Le.currentFont?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentFont(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.style.display="flex",We.style.minHeight="20px",We.style.flexGrow="2",We.style.fontFamily=et,We.style.overflow="hidden";var tt=document.createElement("div");tt.style.whiteSpace="nowrap",tt.style.overflow="hidden",tt.style.textOverflow="ellipsis",tt.innerHTML="The quick brown fox jumps over the lazy dog",We.appendChild(tt),He.appendChild(We),Le.fontBoxes.push(He)}),Ze},Fe.prototype.setCurrentFont=function(Le,Ze){var et=this;this.currentFont=Le,this.fontBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(b),Be=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.color="transparent",He.padding=5,He.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",He.text=He.DEFAULT_TEXT,He.isMoved=!1,He.color=et.defaultColor,He.fontFamily=et.defaultFontFamily,He.defaultSize={x:100,y:30},He.setColor=He.setColor.bind(He),He.setFont=He.setFont.bind(He),He.renderText=He.renderText.bind(He),He.sizeText=He.sizeText.bind(He),He.textEditDivClicked=He.textEditDivClicked.bind(He),He.showTextEditor=He.showTextEditor.bind(He),He.setSize=He.setSize.bind(He),He.positionTextEditor=He.positionTextEditor.bind(He),He.colorPanel=new z("Color",et.defaultColorSet,et.defaultColor),He.colorPanel.onColorChanged=He.setColor,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){if(Xe.prototype.ownsTarget.call(this,Le)||Le===this.visual||Le===this.textElement||Le===this.bgRectangle)return!0;var Ze=!1;return this.textElement.childNodes.forEach(function(et){et===Le&&(Ze=!0)}),Ze},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.bgRectangle=ve.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ve.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.renderText=function(){var Le=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(Ze){Le.textElement.appendChild(ve.createTSpan(Ze.trim()===""?" ":Ze.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var Le=this.textElement.getBBox(),Ze=1;if(Le.width>0&&Le.height>0){var et=(1*this.width-this.width*this.padding*2/100)/Le.width,He=(1*this.height-this.height*this.padding*2/100)/Le.height;Ze=Math.min(et,He)}return Ze},Fe.prototype.getTextPosition=function(Le){var Ze=this.textElement.getBBox(),et=0,He=0;return Ze.width>0&&Ze.height>0&&(et=(this.width-Ze.width*Le)/2,He=this.height/2-Ze.height*Le/2),{x:et,y:He}},Fe.prototype.sizeText=function(){var Le=this.textElement.getBBox(),Ze=this.getTextScale(),et=this.getTextPosition(Ze);et.y-=Le.y*Ze,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+et.x+"px, "+et.y+"px) scale("+Ze+", "+Ze+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(et.x,et.y),this.textElement.transform.baseVal.getItem(1).setScale(Ze,Ze))},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(Le){var Ze=this.state;Ze==="creating"&&(this._suppressMarkerCreateEvent=!0),Xe.prototype.pointerUp.call(this,Le),this.setSize(),(Ze==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var Le=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(Ze){Ze.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ze=Number.parseFloat(Le.textEditor.style.fontSize);Le.textEditor.clientWidth>=Number.parseInt(Le.textEditor.style.maxWidth)&&Ze>.9;)Ze-=.1,Le.textEditor.style.fontSize=Math.max(Ze,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ze){Ze.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ze){if(Ze.clipboardData){var et=Ze.clipboardData.getData("text"),He=window.getSelection();if(!He.rangeCount)return!1;He.deleteFromDocument(),He.getRangeAt(0).insertNode(document.createTextNode(et)),Ze.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Le.textEditDivClicked(Le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Le=this.getTextScale(),Ze=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),et=this.textElement.getBBox(),He={x:et.width*Le,y:et.height*Le};Ze.x-=He.x/2,Ze.y-=He.y/2,this.textEditor.style.top=Ze.y+"px",this.textEditor.style.left=Ze.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ze.x+"px",this.textEditor.style.fontSize=Math.max(16*Le,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(Le){this.text=Le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){Xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Xe.prototype.deselect.call(this)},Fe.prototype.dblClick=function(Le,Ze){Xe.prototype.dblClick.call(this,Le,Ze),this.showTextEditor()},Fe.prototype.setColor=function(Le){this.textElement&&ve.setAttributes(this.textElement,[["fill",Le]]),this.color=Le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Le)},Fe.prototype.setFont=function(Le){this.textElement&&ve.setAttributes(this.textElement,[["font-family",Le]]),this.fontFamily=Le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.color=Ze.color,this.fontFamily=Ze.fontFamily,this.padding=Ze.padding,this.text=Ze.text,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.icon='',Fe}(a),Ae=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.color="transparent",He.lineWidth=3,He.drawing=!1,He.pixelRatio=1,He.color=et.defaultColor,He.lineWidth=et.defaultStrokeWidth,He.pixelRatio=et.freehandPixelRatio,He.setColor=He.setColor.bind(He),He.addCanvas=He.addCanvas.bind(He),He.finishCreation=He.finishCreation.bind(He),He.setLineWidth=He.setLineWidth.bind(He),He.colorPanel=new z("Color",et.defaultColorSet,et.defaultColor),He.colorPanel.onColorChanged=He.setColor,He.lineWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.lineWidthPanel.onWidthChanged=He.setLineWidth,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.drawingImage=ve.createImage(),this.visual.appendChild(this.drawingImage);var Le=ve.createTransform();this.visual.transform.baseVal.appendItem(Le),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Le,Ze){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(Le.x,Le.y),this.drawing=!0):Xe.prototype.pointerDown.call(this,Le,Ze)},Fe.prototype.manipulate=function(Le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Le.x,Le.y),this.canvasContext.stroke()):Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Xe.prototype.pointerUp.call(this,Le)},Fe.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)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Xe.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var Le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ze=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],et=Ze[0],He=Ze[1],We=Ze[2],tt=Ze[3],at=!1,ot=0;ot0&&(at=!0,ottt&&(tt=ot),ct>We&&(We=ct));if(at){this.left=et/this.pixelRatio,this.top=He/this.pixelRatio,this.width=(We-et)/this.pixelRatio,this.height=(tt-He)/this.pixelRatio;var lt=document.createElement("canvas");lt.width=We-et,lt.height=tt-He,lt.getContext("2d").putImageData(this.canvasContext.getImageData(et,He,We-et,tt-He),0,0),this.drawingImgUrl=lt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(Le){this.color=Le,this.colorChanged(Le)},Fe.prototype.setLineWidth=function(Le){this.lineWidth=Le},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({drawingImgUrl:this.drawingImgUrl},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.drawingImgUrl=Le.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.icon='',Fe}(a),we=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,et||'')||this;return He.typeBoxes=[],He.currentType=Ze,He.setCurrentType=He.setCurrentType.bind(He),He}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2";for(var et=function(tt){var at="both";switch(tt){case 0:at="both";break;case 1:at="start";break;case 2:at="end";break;case 3:at="none"}var ot=document.createElement("div");if(ot.style.display="flex",ot.style.flexGrow="2",ot.style.alignItems="center",ot.style.justifyContent="space-between",ot.style.padding="5px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderColor=at===He.currentType?He.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){Le.setCurrentType(at,ot)}),Ze.appendChild(ot),at==="both"||at==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.innerHTML=` `,ct.style.marginLeft="5px",ot.appendChild(ct)}var lt=document.createElement("div");lt.style.display="flex",lt.style.alignItems="center",lt.style.minHeight="20px",lt.style.flexGrow="2";var mt=document.createElement("hr");if(mt.style.minWidth="20px",mt.style.border="0px",mt.style.borderTop="3px solid "+(He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxColor:"#eeeeee"),mt.style.flexGrow="2",lt.appendChild(mt),ot.appendChild(lt),at==="both"||at==="end"){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.minHeight="20px",Lt.innerHTML=` `,Lt.style.marginRight="5px",ot.appendChild(Lt)}He.typeBoxes.push(ot)},He=this,We=0;We<4;We++)et(We);return Ze},Fe.prototype.setCurrentType=function(Le,Ze){var et=this;this.currentType=Le,this.typeBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings!==void 0?et.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(b),Ue=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.arrowType="end",He.arrowBaseHeight=10,He.arrowBaseWidth=10,He.getArrowPoints=He.getArrowPoints.bind(He),He.setArrowType=He.setArrowType.bind(He),He.arrowTypePanel=new we("Arrow type","end"),He.arrowTypePanel.onArrowTypeChanged=He.setArrowType,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.arrow1&&Le!==this.arrow2)},Fe.prototype.getArrowPoints=function(Le,Ze){var et=this.arrowBaseWidth+2*this.strokeWidth,He=this.arrowBaseHeight+2*this.strokeWidth;return Le-et/2+","+(Ze+He/2)+" "+Le+","+(Ze-He/2)+" "+(Le+et/2)+","+(Ze+He/2)},Fe.prototype.createTips=function(){this.arrow1=ve.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ve.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(Xe.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",ve.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ve.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Le=0;Math.abs(this.x1-this.x2)>.1&&(Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ze=this.arrow1.transform.baseVal.getItem(0);Ze.setRotate(Le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ze,0);var et=this.arrow2.transform.baseVal.getItem(0);et.setRotate(Le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(et,0)}},Fe.prototype.setArrowType=function(Le){this.arrowType=Le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({arrowType:this.arrowType},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.arrowType=Ze.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='',Fe}(be),Pe=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor=et.defaultFillColor,He.strokeWidth=0,He.fillPanel=new z("Color",et.defaultColorSet,et.defaultFillColor),He.fillPanel.onColorChanged=He.setFillColor,He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='',Fe}(x),ze=function(Xe){function Fe(Le,Ze,et,He){var We=Xe.call(this,Le,He||'')||this;return We.opacities=[],We.opacityBoxes=[],We.opacities=Ze,We.currentOpacity=et,We.setCurrentOpacity=We.setCurrentOpacity.bind(We),We}return Ye(Fe,Xe),Fe.prototype.getUi=function(){var Le=this,Ze=document.createElement("div");return Ze.style.display="flex",Ze.style.overflow="hidden",Ze.style.flexGrow="2",Ze.style.justifyContent="space-between",this.opacities.forEach(function(et){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.justifyContent="center",He.style.padding="5px",He.style.borderWidth="2px",He.style.borderStyle="solid",He.style.borderColor=et===Le.currentOpacity?Le.uiStyleSettings.toolboxAccentColor:"transparent",He.addEventListener("click",function(){Le.setCurrentOpacity(et,He)}),Ze.appendChild(He);var We=document.createElement("div");We.innerText=100*et+"%",He.appendChild(We),Le.opacityBoxes.push(He)}),Ze},Fe.prototype.setCurrentOpacity=function(Le,Ze){var et=this;this.currentOpacity=Le,this.opacityBoxes.forEach(function(He){He.style.borderColor=He===Ze?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(b),Ke=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.setOpacity=He.setOpacity.bind(He),He.fillColor=et.defaultHighlightColor,He.strokeWidth=0,He.opacity=et.defaultHighlightOpacity,He.fillPanel=new z("Color",et.defaultColorSet,He.fillColor),He.fillPanel.onColorChanged=He.setFillColor,He.opacityPanel=new ze("Opacity",et.defaultOpacitySteps,He.opacity),He.opacityPanel.onOpacityChanged=He.setOpacity,He}return Ye(Fe,Xe),Fe.prototype.setOpacity=function(Le){this.opacity=Le,this.visual&&ve.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.icon='',Fe}(Pe),Ne='',Re='',$e=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.bgColor="transparent",He.tipPosition={x:0,y:0},He.tipBase1Position={x:0,y:0},He.tipBase2Position={x:0,y:0},He.tipMoving=!1,He.color=et.defaultStrokeColor,He.bgColor=et.defaultFillColor,He.fontFamily=et.defaultFontFamily,He.defaultSize={x:100,y:30},He.setBgColor=He.setBgColor.bind(He),He.getTipPoints=He.getTipPoints.bind(He),He.positionTip=He.positionTip.bind(He),He.setTipPoints=He.setTipPoints.bind(He),He.colorPanel=new z("Text color",et.defaultColorSet,He.color,Ne),He.colorPanel.onColorChanged=He.setColor,He.bgColorPanel=new z("Fill color",et.defaultColorSet,He.bgColor,Re),He.bgColorPanel.onColorChanged=He.setBgColor,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He.tipGrip=new se,He.tipGrip.visual.transform.baseVal.appendItem(ve.createTransform()),He.controlBox.appendChild(He.tipGrip.visual),He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return Xe.prototype.ownsTarget.call(this,Le)||this.tipGrip.ownsTarget(Le)||this.tip===Le},Fe.prototype.createTip=function(){ve.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ve.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(Le,Ze){this.state==="new"&&Xe.prototype.pointerDown.call(this,Le,Ze),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ze)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Xe.prototype.pointerDown.call(this,Le,Ze)},Fe.prototype.pointerUp=function(Le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Xe.prototype.pointerUp.call(this,Le);else{var Ze=this.state==="creating";Xe.prototype.pointerUp.call(this,Le),this.setTipPoints(Ze),this.positionTip()}},Fe.prototype.manipulate=function(Le){if(this.tipMoving){var Ze=this.unrotatePoint(Le);this.tipPosition={x:Ze.x-this.manipulationStartLeft,y:Ze.y-this.manipulationStartTop},this.positionTip()}else Xe.prototype.manipulate.call(this,Le)},Fe.prototype.setBgColor=function(Le){this.bgRectangle&&this.tip&&(ve.setAttributes(this.bgRectangle,[["fill",Le]]),ve.setAttributes(this.tip,[["fill",Le]])),this.bgColor=Le,this.fillColorChanged(Le)},Fe.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},Fe.prototype.setTipPoints=function(Le){Le===void 0&&(Le=!1);var Ze=Math.min(this.height/2,15),et=this.height/5;Le&&(this.tipPosition={x:Ze+et/2,y:this.height+20});var He=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?He.1)){var Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ze=this.tip1.transform.baseVal.getItem(0);Ze.setRotate(Le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ze,0);var et=this.tip2.transform.baseVal.getItem(0);et.setRotate(Le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(et,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.icon='',Fe}(be),Qe=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokePanel.colors=et.defaultColorSet,He.fillColor="transparent",He}return Ye(Fe,Xe),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Xe.prototype.getState.call(this);return Le.typeName=Fe.typeName,Le},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.icon='',Fe}(nt),rt=function(){function Xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Xe.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},Xe.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},Xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Xe.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Xe}(),pt=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.curveX=0,He.curveY=0,He.manipulationStartCurveX=0,He.manipulationStartCurveY=0,He.setStrokeColor=He.setStrokeColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.positionGrips=He.positionGrips.bind(He),He.addControlGrips=He.addControlGrips.bind(He),He.adjustVisual=He.adjustVisual.bind(He),He.setupControlBox=He.setupControlBox.bind(He),He.resize=He.resize.bind(He),He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.strokePanel=new z("Line color",et.defaultColorSet,et.defaultColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorCurve&&Le!==this.visibleCurve&&!this.curveGrip.ownsTarget(Le))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorCurve=ve.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ve.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)},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Le.x,this.curveY=Le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ze)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ve.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){Xe.prototype.setupControlBox.call(this),this.curveControlLine1=ve.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ve.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)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Xe.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){Xe.prototype.positionGrips.call(this);var Le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Le/2,this.curveY-Le/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()))},Fe.prototype.manipulate=function(Le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Le.y-this.manipulationStartY),Xe.prototype.manipulate.call(this,Le)},Fe.prototype.resize=function(Le){this.activeGrip===this.curveGrip&&(this.curveX=Le.x,this.curveY=Le.y),Xe.prototype.resize.call(this,Le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.adjustVisual()},Fe.prototype.scale=function(Le,Ze){this.curveX=this.curveX*Le,this.curveY=this.curveY*Ze,Xe.prototype.scale.call(this,Le,Ze)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Xe.prototype.getState.call(this));return Le.typeName=Fe.typeName,Le},Fe.prototype.restoreState=function(Le){Xe.prototype.restoreState.call(this,Le);var Ze=Le;this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.curveX=Ze.curveX,this.curveY=Ze.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.icon='',Fe}(ye),At=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,Ze,et)||this;return He.fillColor="transparent",He.strokeColor="transparent",He.strokeWidth=0,He.strokeDasharray="",He.textColor="transparent",He.fontSize="1rem",He.isMoved=!1,He.captionText="Caption",He.PADDING=5,He.captionBoxWidth=0,He.captionBoxHeight=0,He.strokeColor=et.defaultColor,He.strokeWidth=et.defaultStrokeWidth,He.strokeDasharray=et.defaultStrokeDasharray,He.fillColor=et.defaultFillColor,He.textColor=et.defaultStrokeColor,He.fontFamily=et.defaultFontFamily,He.fontSize=et.defaultCaptionFontSize,He.captionText=et.defaultCaptionText,He.setStrokeColor=He.setStrokeColor.bind(He),He.setFillColor=He.setFillColor.bind(He),He.setStrokeWidth=He.setStrokeWidth.bind(He),He.setStrokeDasharray=He.setStrokeDasharray.bind(He),He.createVisual=He.createVisual.bind(He),He.sizeCaption=He.sizeCaption.bind(He),He.setCaptionText=He.setCaptionText.bind(He),He.showTextEditor=He.showTextEditor.bind(He),He.positionTextEditor=He.positionTextEditor.bind(He),He.finishTextEditing=He.finishTextEditing.bind(He),He.setFont=He.setFont.bind(He),He.setTextColor=He.setTextColor.bind(He),He.strokePanel=new z("Line color",Oe(et.defaultColorSet,["transparent"]),He.strokeColor),He.strokePanel.onColorChanged=He.setStrokeColor,He.fillPanel=new z("Fill color",Oe(et.defaultColorSet,["transparent"]),He.fillColor,Re),He.fillPanel.onColorChanged=He.setFillColor,He.strokeWidthPanel=new re("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),He.strokeWidthPanel.onWidthChanged=He.setStrokeWidth,He.strokeStylePanel=new ce("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),He.strokeStylePanel.onStyleChanged=He.setStrokeDasharray,He.fontFamilyPanel=new Se("Font",et.defaultFontFamilies,et.defaultFontFamily),He.fontFamilyPanel.onFontChanged=He.setFont,He.textColorPanel=new z("Text color",et.defaultColorSet,He.textColor,Ne),He.textColorPanel.onColorChanged=He.setTextColor,He}return Ye(Fe,Xe),Fe.prototype.ownsTarget=function(Le){return!(!Xe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.frame&&Le!==this.captionBg&&Le!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=ve.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ve.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ve.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=ve.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()},Fe.prototype.setCaptionText=function(Le){this.captionText=Le,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(Le,Ze){Xe.prototype.pointerDown.call(this,Le,Ze),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Fe.prototype.manipulate=function(Le){Xe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Le){Xe.prototype.resize.call(this,Le),this.setSize()},Fe.prototype.sizeCaption=function(){var Le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Le.width+2*this.PADDING,this.captionBoxHeight=Le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ve.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')"]]),ve.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')"]])},Fe.prototype.showTextEditor=function(){var Le=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(Ze){Ze.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ze){Ze.key==="Enter"&&Le.finishTextEditing(Le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ze){Ze.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Le.finishTextEditing(Le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Le.finishTextEditing(Le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.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"))},Fe.prototype.finishTextEditing=function(Le){this.setCaptionText(Le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(Le){this.captionElement&&ve.setAttributes(this.captionElement,[["font-family",Le]]),this.fontFamily=Le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(Le){this.captionElement&&ve.setAttributes(this.captionElement,[["fill",Le]]),this.textColor=Le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){Xe.prototype.setSize.call(this),ve.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(Le){Xe.prototype.pointerUp.call(this,Le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(Le,Ze){Xe.prototype.dblClick.call(this,Le,Ze),this.showTextEditor()},Fe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.frame&&ve.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Fe.prototype.setFillColor=function(Le){this.fillColor=Le,this.captionBg&&ve.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Le),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.frame&&ve.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.frame&&ve.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Le=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},Xe.prototype.getState.call(this));return Le.typeName=this.typeName,Le},Fe.prototype.restoreState=function(Le){var Ze=Le;this.fillColor=Ze.fillColor,this.strokeColor=Ze.strokeColor,this.strokeWidth=Ze.strokeWidth,this.strokeDasharray=Ze.strokeDasharray,this.textColor=Ze.textColor,this.fontFamily=Ze.fontFamily,this.captionText=Ze.captionText,this.fontSize=Ze.fontSize,this.createVisual(),Xe.prototype.restoreState.call(this,Le),this.setSize()},Fe.prototype.scale=function(Le,Ze){Xe.prototype.scale.call(this,Le,Ze),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.icon='',Fe}(a),gt=function(){function Xe(Fe,Le){Le===void 0&&(Le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=Le}return Object.defineProperty(Xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Xe.prototype.preventDefault=function(){this._defaultPrevented=!0},Xe}(),Ft=function(Xe){function Fe(Le,Ze,et){var He=Xe.call(this,Le,!1)||this;return He.dataUrl=Ze,He.state=et,He}return Ye(Fe,Xe),Fe}(gt),Ct=function(Xe){function Fe(Le,Ze,et){et===void 0&&(et=!1);var He=Xe.call(this,Le,et)||this;return He.marker=Ze,He}return Ye(Fe,Xe),Fe}(gt),Yt=function(){function Xe(){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 Xe.prototype.addEventListener=function(Fe,Le){this[Fe].push(Le)},Xe.prototype.removeEventListener=function(Fe,Le){var Ze=this[Fe].indexOf(Le);Ze>-1&&this[Fe].splice(Ze,1)},Xe}(),zt=function(){function Xe(Fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _e,this._isOpen=!1,this.undoRedoManager=new rt,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 Yt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Xe.instanceCounter++,this.styles=new le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.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(Xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,Qe,nt,Ke,$e,ut,Pe,be,pt,At]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,nt,Ke,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ge,Ae,Ue,Be,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var Le=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Ze){if(typeof Ze=="string"){var et=Le.ALL_MARKER_TYPES.find(function(He){return He.typeName===Ze});et!==void 0&&Le._availableMarkerTypes.push(et)}else Le._availableMarkerTypes.push(Ze)})},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,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(Xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Xe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Xe.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Le){return Le(new gt(Fe))})},Xe.prototype.render=function(){return Me(this,void 0,void 0,function(){var Fe;return pe(this,function(Le){switch(Le.label){case 0:return this.setCurrentMarker(),(Fe=new fe).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Le.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Le.sent()]}})})},Xe.prototype.close=function(Fe){var Le=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Ze=!1;Fe||this.eventListeners.beforeclose.forEach(function(et){var He=new gt(Le,!0);et(He),He.defaultPrevented&&(Ze=!0)}),Ze||(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(et){return et(new gt(Le))}),this.detachEvents(),this._isOpen=!1)}},Xe.prototype.addMarkersToToolbar=function(){for(var Fe,Le=[],Ze=0;Zethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Ze=Le',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Xe.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")},Xe.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"},Xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Xe.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 Fe=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=Fe+"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 me(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(Fe),1),Fe.dispose()},Xe.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())},Xe.prototype.toolbarButtonClicked=function(Fe,Le){if(Fe==="marker"&&Le!==void 0)this.createNewMarker(Le);else if(Fe==="action")switch(Le){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()}},Xe.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var Le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(et){var He=new Ct(Fe,Fe._currentMarker,!0);et(He),He.defaultPrevented&&(Le=!0)}),!Le){var Ze=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(et){return et(new Ct(Fe,Ze))})}}},Xe.prototype.clear=function(){var Fe=this,Le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(We){var tt=new Ct(Fe,void 0,!0);We(tt),tt.defaultPrevented&&(Le=!0)}),!Le)){this.setCurrentMarker();for(var Ze=function(We){var tt=et.markers[We];et.setCurrentMarker(et.markers[We]),et._currentMarker.dispose(),et.markerImage.removeChild(et._currentMarker.container),et.markers.splice(et.markers.indexOf(et._currentMarker),1),et.eventListeners.markerdelete.forEach(function(at){return at(new Ct(Fe,tt))})},et=this,He=this.markers.length-1;He>=0;He--)Ze(He);this.addUndoStep()}},Object.defineProperty(Xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Xe.prototype.showNotesEditor=function(){var Fe;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=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},Xe.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)},Xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Xe.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Le=this.getState(),Ze=this.undoRedoManager.getLastUndoStep();if(!Ze||Ze.width===Le.width&&Ze.height===Le.height){var et=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Le),et1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},Xe.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},Xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Xe.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},Xe.prototype.clientToLocalCoordinates=function(Fe,Le){var Ze=this.markerImage.getBoundingClientRect();return{x:(Fe-Ze.left)/this.zoomLevel,y:(Le-Ze.top)/this.zoomLevel}},Xe.prototype.onWindowResize=function(){this.positionUI()},Xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"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()},Xe.prototype.addLicenseKey=function(Fe){ue.addKey(Fe)},Xe.prototype.addEventListener=function(Fe,Le){this.eventListeners.addEventListener(Fe,Le)},Xe.prototype.removeEventListener=function(Fe,Le){this.eventListeners.removeEventListener(Fe,Le)},Xe.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Xe.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Le){return Le(new gt(Fe))}))},Xe.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Le){return Le(new gt(Fe))}))},Xe.instanceCounter=0,Xe}()},6551:function(Yn,en,Ce){"use strict";Ce.d(en,{ZP:function(){return ue}});var te=Ce(72190),Ye=Ce(59301),Me=Ce(47273),pe=0,Oe=(0,Me.Z)();function ve(){var fe;return Oe?(fe=pe,pe+=1):fe="TEST_OR_SSR",fe}function ue(fe){var he=Ye.useState(),le=(0,te.Z)(he,2),ae=le[0],ie=le[1];return Ye.useEffect(function(){ie("rc_select_".concat(ve()))},[]),fe||ae}},37463:function(Yn,en,Ce){"use strict";Ce.d(en,{Ac:function(){return an},Xo:function(){return Jt},Wx:function(){return rn},ZP:function(){return tr},lk:function(){return de}});var te=Ce(60499),Ye=Ce(77654),Me=Ce(18642),pe=Ce(85899),Oe=Ce(72190),ve=Ce(42244),ue=Ce(43749),fe=Ce(18929),he=Ce(48736),le=Ce(59301),ae=Ce(92310),ie=Ce.n(ae),me=Ce(34280),E=Ce(49658),b=Ce(8654),z=function(Gt){var Rt=Gt.className,jt=Gt.customizeIcon,Mt=Gt.customizeIconProps,Kt=Gt.children,yt=Gt.onMouseDown,qt=Gt.onClick,vn=typeof jt=="function"?jt(Mt):jt;return le.createElement("span",{className:Rt,onMouseDown:function(It){It.preventDefault(),yt==null||yt(It)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qt,"aria-hidden":!0},vn!==void 0?vn:le.createElement("span",{className:ie()(Rt.split(/\s+/).map(function(Tt){return"".concat(Tt,"-icon")}))},Kt))},ne=z,oe=function(Gt,Rt,jt,Mt,Kt){var yt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qt=arguments.length>6?arguments[6]:void 0,vn=arguments.length>7?arguments[7]:void 0,Tt=le.useMemo(function(){if((0,ue.Z)(Mt)==="object")return Mt.clearIcon;if(Kt)return Kt},[Mt,Kt]),It=le.useMemo(function(){return!!(!yt&&Mt&&(jt.length||qt)&&!(vn==="combobox"&&qt===""))},[Mt,yt,jt.length,qt,vn]);return{allowClear:It,clearIcon:le.createElement(ne,{className:"".concat(Gt,"-clear"),onMouseDown:Rt,customizeIcon:Tt},"\xD7")}},se=le.createContext(null);function de(){return le.useContext(se)}function a(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=le.useState(!1),Rt=(0,Oe.Z)(Gt,2),jt=Rt[0],Mt=Rt[1],Kt=le.useRef(null),yt=function(){window.clearTimeout(Kt.current)};le.useEffect(function(){return yt},[]);var qt=function(Tt,It){yt(),Kt.current=window.setTimeout(function(){Mt(Tt),It&&It()},Vt)};return[jt,qt,yt]}function x(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=le.useRef(null),Rt=le.useRef(null);le.useEffect(function(){return function(){window.clearTimeout(Rt.current)}},[]);function jt(Mt){(Mt||Gt.current===null)&&(Gt.current=Mt),window.clearTimeout(Rt.current),Rt.current=window.setTimeout(function(){Gt.current=null},Vt)}return[function(){return Gt.current},jt]}function re(Vt,Gt,Rt,jt){var Mt=le.useRef(null);Mt.current={open:Gt,triggerOpen:Rt,customizedTrigger:jt},le.useEffect(function(){function Kt(yt){var qt;if(!((qt=Mt.current)!==null&&qt!==void 0&&qt.customizedTrigger)){var vn=yt.target;vn.shadowRoot&&yt.composed&&(vn=yt.composedPath()[0]||vn),Mt.current.open&&Vt().filter(function(Tt){return Tt}).every(function(Tt){return!Tt.contains(vn)&&Tt!==vn})&&Mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Kt),function(){return window.removeEventListener("mousedown",Kt)}},[])}var ce=Ce(10228);function ge(Vt){return Vt&&![ce.Z.ESC,ce.Z.SHIFT,ce.Z.BACKSPACE,ce.Z.TAB,ce.Z.WIN_KEY,ce.Z.ALT,ce.Z.META,ce.Z.WIN_KEY_RIGHT,ce.Z.CTRL,ce.Z.SEMICOLON,ce.Z.EQUALS,ce.Z.CAPS_LOCK,ce.Z.CONTEXT_MENU,ce.Z.F1,ce.Z.F2,ce.Z.F3,ce.Z.F4,ce.Z.F5,ce.Z.F6,ce.Z.F7,ce.Z.F8,ce.Z.F9,ce.Z.F10,ce.Z.F11,ce.Z.F12].includes(Vt)}var _e=Ce(26112),ye=Ce(83836);function be(Vt,Gt,Rt){var jt=(0,pe.Z)((0,pe.Z)({},Vt),Rt?Gt:{});return Object.keys(Gt).forEach(function(Mt){var Kt=Gt[Mt];typeof Kt=="function"&&(jt[Mt]=function(){for(var yt,qt=arguments.length,vn=new Array(qt),Tt=0;TtKr&&(Hr="".concat(ri.slice(0,Kr),"..."))}var un=function(Sn){Sn&&Sn.stopPropagation(),Wr(or)};return typeof Mr=="function"?_i(wr,Hr,ei,Ir,un):ra(or,Hr,ei,Ir,un)},Xr=function(or){if(!Mt.length)return null;var ei=typeof hr=="function"?hr(or):hr;return typeof Mr=="function"?_i(void 0,ei,!1,!1,void 0,!0):ra({title:ei},ei,!1)},rr=le.createElement("div",{className:"".concat(kn,"-search"),style:{width:oi},onFocus:function(){ua(!0)},onBlur:function(){ua(!1)}},le.createElement(Ue,{ref:vn,open:Kt,prefixCls:jt,id:Rt,inputElement:null,disabled:It,autoFocus:Zt,autoComplete:tn,editable:Qi,activeDescendantId:Tn,value:qi,onKeyDown:Ur,onMouseDown:Gr,onChange:Jn,onPaste:ii,onCompositionStart:qr,onCompositionEnd:Li,onBlur:wi,tabIndex:Fn,attrs:(0,_e.Z)(Gt,!0)}),le.createElement("span",{ref:ui,className:"".concat(kn,"-search-mirror"),"aria-hidden":!0},qi,"\xA0")),Dr=le.createElement(ye.Z,{prefixCls:"".concat(kn,"-overflow"),data:Mt,renderItem:Ti,renderRest:Xr,suffix:rr,itemKey:Qe,maxCount:_r});return le.createElement("span",{className:"".concat(kn,"-wrap")},Dr,!Mt.length&&!qi&&le.createElement("span",{className:"".concat(kn,"-placeholder")},Tt))},At=pt,gt=function(Gt){var Rt=Gt.inputElement,jt=Gt.prefixCls,Mt=Gt.id,Kt=Gt.inputRef,yt=Gt.disabled,qt=Gt.autoFocus,vn=Gt.autoComplete,Tt=Gt.activeDescendantId,It=Gt.mode,Dt=Gt.open,Bt=Gt.values,Zt=Gt.placeholder,tn=Gt.tabIndex,Tn=Gt.showSearch,Fn=Gt.searchValue,dr=Gt.activeValue,_r=Gt.maxLength,Kr=Gt.onInputKeyDown,Sr=Gt.onInputMouseDown,hr=Gt.onInputChange,Mr=Gt.onInputPaste,Br=Gt.onInputCompositionStart,Wr=Gt.onInputCompositionEnd,Jn=Gt.onInputBlur,ii=Gt.title,Ur=le.useState(!1),Gr=(0,Oe.Z)(Ur,2),qr=Gr[0],Li=Gr[1],wi=It==="combobox",ui=wi||Tn,Qr=Bt[0],Di=Fn||"";wi&&dr&&!qr&&(Di=dr),le.useEffect(function(){wi&&Li(!1)},[wi,dr]);var oi=It!=="combobox"&&!Dt&&!Tn?!1:!!Di,di=ii===void 0?nt(Qr):ii,ci=le.useMemo(function(){return Qr?null:le.createElement("span",{className:"".concat(jt,"-selection-placeholder"),style:oi?{visibility:"hidden"}:void 0},Zt)},[Qr,oi,Zt,jt]);return le.createElement("span",{className:"".concat(jt,"-selection-wrap")},le.createElement("span",{className:"".concat(jt,"-selection-search")},le.createElement(Ue,{ref:Kt,prefixCls:jt,id:Mt,open:Dt,inputElement:Rt,disabled:yt,autoFocus:qt,autoComplete:vn,editable:ui,activeDescendantId:Tt,value:Di,onKeyDown:Kr,onMouseDown:Sr,onChange:function(Ki){Li(!0),hr(Ki)},onPaste:Mr,onCompositionStart:Br,onCompositionEnd:Wr,onBlur:Jn,tabIndex:tn,attrs:(0,_e.Z)(Gt,!0),maxLength:wi?_r:void 0})),!wi&&Qr?le.createElement("span",{className:"".concat(jt,"-selection-item"),title:di,style:oi?{visibility:"hidden"}:void 0},Qr.label):null,ci)},Ft=gt,Ct=function(Gt,Rt){var jt=(0,le.useRef)(null),Mt=(0,le.useRef)(!1),Kt=Gt.prefixCls,yt=Gt.open,qt=Gt.mode,vn=Gt.showSearch,Tt=Gt.tokenWithEnter,It=Gt.disabled,Dt=Gt.prefix,Bt=Gt.autoClearSearchValue,Zt=Gt.onSearch,tn=Gt.onSearchSubmit,Tn=Gt.onToggleOpen,Fn=Gt.onInputKeyDown,dr=Gt.onInputBlur,_r=Gt.domRef;le.useImperativeHandle(Rt,function(){return{focus:function(di){jt.current.focus(di)},blur:function(){jt.current.blur()}}});var Kr=x(0),Sr=(0,Oe.Z)(Kr,2),hr=Sr[0],Mr=Sr[1],Br=function(di){var ci=di.which,ki=jt.current instanceof HTMLTextAreaElement;!ki&&yt&&(ci===ce.Z.UP||ci===ce.Z.DOWN)&&di.preventDefault(),Fn&&Fn(di),ci===ce.Z.ENTER&&qt==="tags"&&!Mt.current&&!yt&&(tn==null||tn(di.target.value)),!(ki&&!yt&&~[ce.Z.UP,ce.Z.DOWN,ce.Z.LEFT,ce.Z.RIGHT].indexOf(ci))&&ge(ci)&&Tn(!0)},Wr=function(){Mr(!0)},Jn=(0,le.useRef)(null),ii=function(di){Zt(di,!0,Mt.current)!==!1&&Tn(!0)},Ur=function(){Mt.current=!0},Gr=function(di){Mt.current=!1,qt!=="combobox"&&ii(di.target.value)},qr=function(di){var ci=di.target.value;if(Tt&&Jn.current&&/[\r\n]/.test(Jn.current)){var ki=Jn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ci=ci.replace(ki,Jn.current)}Jn.current=null,ii(ci)},Li=function(di){var ci=di.clipboardData,ki=ci==null?void 0:ci.getData("text");Jn.current=ki||""},wi=function(di){var ci=di.target;if(ci!==jt.current){var ki=document.body.style.msTouchAction!==void 0;ki?setTimeout(function(){jt.current.focus()}):jt.current.focus()}},ui=function(di){var ci=hr();di.target!==jt.current&&!ci&&!(qt==="combobox"&&It)&&di.preventDefault(),(qt!=="combobox"&&(!vn||!ci)||!yt)&&(yt&&Bt!==!1&&Zt("",!0,!1),Tn())},Qr={inputRef:jt,onInputKeyDown:Br,onInputMouseDown:Wr,onInputChange:qr,onInputPaste:Li,onInputCompositionStart:Ur,onInputCompositionEnd:Gr,onInputBlur:dr},Di=qt==="multiple"||qt==="tags"?le.createElement(At,(0,te.Z)({},Gt,Qr)):le.createElement(Ft,(0,te.Z)({},Gt,Qr));return le.createElement("div",{ref:_r,className:"".concat(Kt,"-selector"),onClick:wi,onMouseDown:ui},Dt&&le.createElement("div",{className:"".concat(Kt,"-prefix")},Dt),Di)},Yt=le.forwardRef(Ct),zt=Yt,Xe=Ce(68196),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Le=function(Gt){var Rt=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"}}},Ze=function(Gt,Rt){var jt=Gt.prefixCls,Mt=Gt.disabled,Kt=Gt.visible,yt=Gt.children,qt=Gt.popupElement,vn=Gt.animation,Tt=Gt.transitionName,It=Gt.dropdownStyle,Dt=Gt.dropdownClassName,Bt=Gt.direction,Zt=Bt===void 0?"ltr":Bt,tn=Gt.placement,Tn=Gt.builtinPlacements,Fn=Gt.dropdownMatchSelectWidth,dr=Gt.dropdownRender,_r=Gt.dropdownAlign,Kr=Gt.getPopupContainer,Sr=Gt.empty,hr=Gt.getTriggerDOMNode,Mr=Gt.onPopupVisibleChange,Br=Gt.onPopupMouseEnter,Wr=(0,ve.Z)(Gt,Fe),Jn="".concat(jt,"-dropdown"),ii=qt;dr&&(ii=dr(qt));var Ur=le.useMemo(function(){return Tn||Le(Fn)},[Tn,Fn]),Gr=vn?"".concat(Jn,"-").concat(vn):Tt,qr=typeof Fn=="number",Li=le.useMemo(function(){return qr?null:Fn===!1?"minWidth":"width"},[Fn,qr]),wi=It;qr&&(wi=(0,pe.Z)((0,pe.Z)({},wi),{},{width:Fn}));var ui=le.useRef(null);return le.useImperativeHandle(Rt,function(){return{getPopupElement:function(){var Di;return(Di=ui.current)===null||Di===void 0?void 0:Di.popupElement}}}),le.createElement(Xe.Z,(0,te.Z)({},Wr,{showAction:Mr?["click"]:[],hideAction:Mr?["click"]:[],popupPlacement:tn||(Zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ur,prefixCls:Jn,popupTransitionName:Gr,popup:le.createElement("div",{onMouseEnter:Br},ii),ref:ui,stretch:Li,popupAlign:_r,popupVisible:Kt,getPopupContainer:Kr,popupClassName:ie()(Dt,(0,Me.Z)({},"".concat(Jn,"-empty"),Sr)),popupStyle:wi,getTriggerDOMNode:hr,onPopupVisibleChange:Mr}),yt)},et=le.forwardRef(Ze),He=et,We=Ce(48745);function tt(Vt,Gt){var Rt=Vt.key,jt;return"value"in Vt&&(jt=Vt.value),Rt!=null?Rt:jt!==void 0?jt:"rc-index-key-".concat(Gt)}function at(Vt){return typeof Vt!="undefined"&&!Number.isNaN(Vt)}function ot(Vt,Gt){var Rt=Vt||{},jt=Rt.label,Mt=Rt.value,Kt=Rt.options,yt=Rt.groupLabel,qt=jt||(Gt?"children":"label");return{label:qt,value:Mt||"value",options:Kt||"options",groupLabel:yt||qt}}function ct(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=Gt.fieldNames,jt=Gt.childrenAsData,Mt=[],Kt=ot(Rt,!1),yt=Kt.label,qt=Kt.value,vn=Kt.options,Tt=Kt.groupLabel;function It(Dt,Bt){Array.isArray(Dt)&&Dt.forEach(function(Zt){if(Bt||!(vn in Zt)){var tn=Zt[qt];Mt.push({key:tt(Zt,Mt.length),groupOption:Bt,data:Zt,label:Zt[yt],value:tn})}else{var Tn=Zt[Tt];Tn===void 0&&jt&&(Tn=Zt.label),Mt.push({key:tt(Zt,Mt.length),group:!0,data:Zt,label:Tn}),It(Zt[vn],!0)}})}return It(Vt,!1),Mt}function lt(Vt){var Gt=(0,pe.Z)({},Vt);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var mt=function(Gt,Rt,jt){if(!Rt||!Rt.length)return null;var Mt=!1,Kt=function qt(vn,Tt){var It=(0,We.Z)(Tt),Dt=It[0],Bt=It.slice(1);if(!Dt)return[vn];var Zt=vn.split(Dt);return Mt=Mt||Zt.length>1,Zt.reduce(function(tn,Tn){return[].concat((0,Ye.Z)(tn),(0,Ye.Z)(qt(Tn,Bt)))},[]).filter(Boolean)},yt=Kt(Gt,Rt);return Mt?typeof jt!="undefined"?yt.slice(0,jt):yt:null},Lt=le.createContext(null),ft=Lt;function St(Vt){var Gt=Vt.visible,Rt=Vt.values;if(!Gt)return null;var jt=50;return le.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Rt.slice(0,jt).map(function(Mt){var Kt=Mt.label,yt=Mt.value;return["number","string"].includes((0,ue.Z)(Kt))?Kt:yt}).join(", ")),Rt.length>jt?", ...":null)}var nn=["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"],on=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],yn=function(Gt){return Gt==="tags"||Gt==="multiple"},xn=le.forwardRef(function(Vt,Gt){var Rt,jt=Vt.id,Mt=Vt.prefixCls,Kt=Vt.className,yt=Vt.showSearch,qt=Vt.tagRender,vn=Vt.direction,Tt=Vt.omitDomProps,It=Vt.displayValues,Dt=Vt.onDisplayValuesChange,Bt=Vt.emptyOptions,Zt=Vt.notFoundContent,tn=Zt===void 0?"Not Found":Zt,Tn=Vt.onClear,Fn=Vt.mode,dr=Vt.disabled,_r=Vt.loading,Kr=Vt.getInputElement,Sr=Vt.getRawInputElement,hr=Vt.open,Mr=Vt.defaultOpen,Br=Vt.onDropdownVisibleChange,Wr=Vt.activeValue,Jn=Vt.onActiveValueChange,ii=Vt.activeDescendantId,Ur=Vt.searchValue,Gr=Vt.autoClearSearchValue,qr=Vt.onSearch,Li=Vt.onSearchSplit,wi=Vt.tokenSeparators,ui=Vt.allowClear,Qr=Vt.prefix,Di=Vt.suffixIcon,oi=Vt.clearIcon,di=Vt.OptionList,ci=Vt.animation,ki=Vt.transitionName,Ki=Vt.dropdownStyle,ua=Vt.dropdownClassName,kn=Vt.dropdownMatchSelectWidth,qi=Vt.dropdownRender,Qi=Vt.dropdownAlign,ra=Vt.placement,_i=Vt.builtinPlacements,Ti=Vt.getPopupContainer,Xr=Vt.showAction,rr=Xr===void 0?[]:Xr,Dr=Vt.onFocus,Fr=Vt.onBlur,or=Vt.onKeyUp,ei=Vt.onKeyDown,si=Vt.onMouseDown,wr=(0,ve.Z)(Vt,nn),Ir=yn(Fn),Hr=(yt!==void 0?yt:Ir)||Fn==="combobox",ri=(0,pe.Z)({},wr);on.forEach(function(Ri){delete ri[Ri]}),Tt==null||Tt.forEach(function(Ri){delete ri[Ri]});var un=le.useState(!1),Vn=(0,Oe.Z)(un,2),Sn=Vn[0],Rr=Vn[1];le.useEffect(function(){Rr((0,E.Z)())},[]);var ti=le.useRef(null),gn=le.useRef(null),mi=le.useRef(null),Nr=le.useRef(null),Ar=le.useRef(null),pi=le.useRef(!1),Gi=a(),gi=(0,Oe.Z)(Gi,3),Wi=gi[0],Jr=gi[1],li=gi[2];le.useImperativeHandle(Gt,function(){var Ri,hi;return{focus:(Ri=Nr.current)===null||Ri===void 0?void 0:Ri.focus,blur:(hi=Nr.current)===null||hi===void 0?void 0:hi.blur,scrollTo:function(za){var ga;return(ga=Ar.current)===null||ga===void 0?void 0:ga.scrollTo(za)},nativeElement:ti.current||gn.current}});var Zr=le.useMemo(function(){var Ri;if(Fn!=="combobox")return Ur;var hi=(Ri=It[0])===null||Ri===void 0?void 0:Ri.value;return typeof hi=="string"||typeof hi=="number"?String(hi):""},[Ur,Fn,It]),Vi=Fn==="combobox"&&typeof Kr=="function"&&Kr()||null,sa=typeof Sr=="function"&&Sr(),vi=(0,b.x1)(gn,sa==null||(Rt=sa.props)===null||Rt===void 0?void 0:Rt.ref),Ni=le.useState(!1),Ii=(0,Oe.Z)(Ni,2),Mi=Ii[0],fa=Ii[1];(0,me.Z)(function(){fa(!0)},[]);var ca=(0,fe.Z)(!1,{defaultValue:Mr,value:hr}),la=(0,Oe.Z)(ca,2),zi=la[0],Da=la[1],Ca=Mi?zi:!1,Ra=!tn&&Bt;(dr||Ra&&Ca&&Fn==="combobox")&&(Ca=!1);var to=Ra?!1:Ca,bi=le.useCallback(function(Ri){var hi=Ri!==void 0?Ri:!Ca;dr||(Da(hi),Ca!==hi&&(Br==null||Br(hi)))},[dr,Ca,Da,Br]),Yi=le.useMemo(function(){return(wi||[]).some(function(Ri){return[` `,`\r `].includes(Ri)})},[wi]),Ei=le.useContext(ft)||{},Ci=Ei.maxCount,kr=Ei.rawValues,Zi=function(hi,wa,za){if(!(Ir&&at(Ci)&&(kr==null?void 0:kr.size)>=Ci)){var ga=!0,ro=hi;Jn==null||Jn(null);var ka=mt(hi,wi,at(Ci)?Ci-kr.size:void 0),Co=za?null:ka;return Fn!=="combobox"&&Co&&(ro="",Li==null||Li(Co),bi(!1),ga=!1),qr&&Zr!==ro&&qr(ro,{source:wa?"typing":"effect"}),ga}},ma=function(hi){!hi||!hi.trim()||qr(hi,{source:"submit"})};le.useEffect(function(){!Ca&&!Ir&&Fn!=="combobox"&&Zi("",!1,!1)},[Ca]),le.useEffect(function(){zi&&dr&&Da(!1),dr&&!pi.current&&Jr(!1)},[dr]);var ba=x(),ir=(0,Oe.Z)(ba,2),Ji=ir[0],Va=ir[1],no=le.useRef(!1),Ya=function(hi){var wa=Ji(),za=hi.key,ga=za==="Enter";if(ga&&(Fn!=="combobox"&&hi.preventDefault(),Ca||bi(!0)),Va(!!Zr),za==="Backspace"&&!wa&&Ir&&!Zr&&It.length){for(var ro=(0,Ye.Z)(It),ka=null,Co=ro.length-1;Co>=0;Co-=1){var Qo=ro[Co];if(!Qo.disabled){ro.splice(Co,1),ka=Qo;break}}ka&&Dt(ro,{type:"remove",values:[ka]})}for(var Ro=arguments.length,Jo=new Array(Ro>1?Ro-1:0),wo=1;wo1?wa-1:0),ga=1;ga1?ka-1:0),Qo=1;Qo=tn},[qt,tn,Sr==null?void 0:Sr.size]),wi=function(rr){rr.preventDefault()},ui=function(rr){var Dr;(Dr=qr.current)===null||Dr===void 0||Dr.scrollTo(typeof rr=="number"?{index:rr}:rr)},Qr=le.useCallback(function(Xr){return vn==="combobox"?!1:Sr.has(Xr)},[vn,(0,Ye.Z)(Sr).toString(),Sr.size]),Di=function(rr){for(var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fr=Gr.length,or=0;or1&&arguments[1]!==void 0?arguments[1]:!1;ki(rr);var Fr={source:Dr?"keyboard":"mouse"},or=Gr[rr];if(!or){Fn(null,-1,Fr);return}Fn(or.value,rr,Fr)};(0,le.useEffect)(function(){Ki(dr!==!1?Di(0):-1)},[Gr.length,Tt]);var ua=le.useCallback(function(Xr){return vn==="combobox"?String(Xr).toLowerCase()===Tt.toLowerCase():Sr.has(Xr)},[vn,Tt,(0,Ye.Z)(Sr).toString(),Sr.size]);(0,le.useEffect)(function(){var Xr=setTimeout(function(){if(!qt&&yt&&Sr.size===1){var Dr=Array.from(Sr)[0],Fr=Gr.findIndex(function(or){var ei=or.data;return Tt?String(ei.value).startsWith(Tt):ei.value===Dr});Fr!==-1&&(Ki(Fr),ui(Fr))}});if(yt){var rr;(rr=qr.current)===null||rr===void 0||rr.scrollTo(void 0)}return function(){return clearTimeout(Xr)}},[yt,Tt]);var kn=function(rr){rr!==void 0&&_r(rr,{selected:!Sr.has(rr)}),qt||It(!1)};if(le.useImperativeHandle(Rt,function(){return{onKeyDown:function(rr){var Dr=rr.which,Fr=rr.ctrlKey;switch(Dr){case ce.Z.N:case ce.Z.P:case ce.Z.UP:case ce.Z.DOWN:{var or=0;if(Dr===ce.Z.UP?or=-1:Dr===ce.Z.DOWN?or=1:ln()&&Fr&&(Dr===ce.Z.N?or=1:Dr===ce.Z.P&&(or=-1)),or!==0){var ei=Di(ci+or,or);ui(ei),Ki(ei,!0)}break}case ce.Z.TAB:case ce.Z.ENTER:{var si,wr=Gr[ci];wr&&!(wr!=null&&(si=wr.data)!==null&&si!==void 0&&si.disabled)&&!Li?kn(wr.value):kn(void 0),yt&&rr.preventDefault();break}case ce.Z.ESC:It(!1),yt&&rr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(rr){ui(rr)}}}),Gr.length===0)return le.createElement("div",{role:"listbox",id:"".concat(Kt,"_list"),className:"".concat(Ur,"-empty"),onMouseDown:wi},Dt);var qi=Object.keys(hr).map(function(Xr){return hr[Xr]}),Qi=function(rr){return rr.label};function ra(Xr,rr){var Dr=Xr.group;return{role:Dr?"presentation":"option",id:"".concat(Kt,"_list_").concat(rr)}}var _i=function(rr){var Dr=Gr[rr];if(!Dr)return null;var Fr=Dr.data||{},or=Fr.value,ei=Dr.group,si=(0,_e.Z)(Fr,!0),wr=Qi(Dr);return Dr?le.createElement("div",(0,te.Z)({"aria-label":typeof wr=="string"&&!ei?wr:null},si,{key:rr},ra(Dr,rr),{"aria-selected":ua(or)}),or):null},Ti={role:"listbox",id:"".concat(Kt,"_list")};return le.createElement(le.Fragment,null,Mr&&le.createElement("div",(0,te.Z)({},Ti,{style:{height:0,width:0,overflow:"hidden"}}),_i(ci-1),_i(ci),_i(ci+1)),le.createElement(kt.Z,{itemKey:"key",ref:qr,data:Gr,height:Wr,itemHeight:Jn,fullHeight:!1,onMouseDown:wi,onScroll:Bt,virtual:Mr,direction:Br,innerProps:Mr?null:Ti},function(Xr,rr){var Dr=Xr.group,Fr=Xr.groupOption,or=Xr.data,ei=Xr.label,si=Xr.value,wr=or.key;if(Dr){var Ir,Hr=(Ir=or.title)!==null&&Ir!==void 0?Ir:Mn(ei)?ei.toString():void 0;return le.createElement("div",{className:ie()(Ur,"".concat(Ur,"-group"),or.className),title:Hr},ei!==void 0?ei:wr)}var ri=or.disabled,un=or.title,Vn=or.children,Sn=or.style,Rr=or.className,ti=(0,ve.Z)(or,Cn),gn=(0,Bn.Z)(ti,qi),mi=Qr(si),Nr=ri||!mi&&Li,Ar="".concat(Ur,"-option"),pi=ie()(Ur,Ar,Rr,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Ar,"-grouped"),Fr),"".concat(Ar,"-active"),ci===rr&&!Nr),"".concat(Ar,"-disabled"),Nr),"".concat(Ar,"-selected"),mi)),Gi=Qi(Xr),gi=!Kr||typeof Kr=="function"||mi,Wi=typeof Gi=="number"?Gi:Gi||si,Jr=Mn(Wi)?Wi.toString():void 0;return un!==void 0&&(Jr=un),le.createElement("div",(0,te.Z)({},(0,_e.Z)(gn),Mr?{}:ra(Xr,rr),{"aria-selected":ua(si),className:pi,title:Jr,onMouseMove:function(){ci===rr||Nr||Ki(rr)},onClick:function(){Nr||kn(si)},style:Sn}),le.createElement("div",{className:"".concat(Ar,"-content")},typeof ii=="function"?ii(Xr,{index:rr}):Wi),le.isValidElement(Kr)||mi,gi&&le.createElement(ne,{className:"".concat(Ur,"-option-state"),customizeIcon:Kr,customizeIconProps:{value:si,disabled:Nr,isSelected:mi}},mi?"\u2713":null))}))},mr=le.forwardRef(Qn),lr=mr,Cr=function(Vt,Gt){var Rt=le.useRef({values:new Map,options:new Map}),jt=le.useMemo(function(){var Kt=Rt.current,yt=Kt.values,qt=Kt.options,vn=Vt.map(function(Dt){if(Dt.label===void 0){var Bt;return(0,pe.Z)((0,pe.Z)({},Dt),{},{label:(Bt=yt.get(Dt.value))===null||Bt===void 0?void 0:Bt.label})}return Dt}),Tt=new Map,It=new Map;return vn.forEach(function(Dt){Tt.set(Dt.value,Dt),It.set(Dt.value,Gt.get(Dt.value)||qt.get(Dt.value))}),Rt.current.values=Tt,Rt.current.options=It,vn},[Vt,Gt]),Mt=le.useCallback(function(Kt){return Gt.get(Kt)||Rt.current.options.get(Kt)},[Gt]);return[jt,Mt]};function nr(Vt,Gt){return Pe(Vt).join("").toUpperCase().includes(Gt)}var ur=function(Vt,Gt,Rt,jt,Mt){return le.useMemo(function(){if(!Rt||jt===!1)return Vt;var Kt=Gt.options,yt=Gt.label,qt=Gt.value,vn=[],Tt=typeof jt=="function",It=Rt.toUpperCase(),Dt=Tt?jt:function(Zt,tn){return Mt?nr(tn[Mt],It):tn[Kt]?nr(tn[yt!=="children"?yt:"label"],It):nr(tn[qt],It)},Bt=Tt?function(Zt){return lt(Zt)}:function(Zt){return Zt};return Vt.forEach(function(Zt){if(Zt[Kt]){var tn=Dt(Rt,Bt(Zt));if(tn)vn.push(Zt);else{var Tn=Zt[Kt].filter(function(Fn){return Dt(Rt,Bt(Fn))});Tn.length&&vn.push((0,pe.Z)((0,pe.Z)({},Zt),{},(0,Me.Z)({},Kt,Tn)))}return}Dt(Rt,Bt(Zt))&&vn.push(Zt)}),vn},[Vt,jt,Mt,Rt,Gt])},Nn=Ce(6551),In=Ce(11592),Wn=["children","value"],Kn=["children"];function Ln(Vt){var Gt=Vt,Rt=Gt.key,jt=Gt.props,Mt=jt.children,Kt=jt.value,yt=(0,ve.Z)(jt,Wn);return(0,pe.Z)({key:Rt,value:Kt!==void 0?Kt:Rt,children:Mt},yt)}function $n(Vt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,In.Z)(Vt).map(function(Rt,jt){if(!le.isValidElement(Rt)||!Rt.type)return null;var Mt=Rt,Kt=Mt.type.isSelectOptGroup,yt=Mt.key,qt=Mt.props,vn=qt.children,Tt=(0,ve.Z)(qt,Kn);return Gt||!Kt?Ln(Rt):(0,pe.Z)((0,pe.Z)({key:"__RC_SELECT_GRP__".concat(yt===null?jt:yt,"__"),label:yt},Tt),{},{options:$n(vn)})}).filter(function(Rt){return Rt})}var ar=function(Gt,Rt,jt,Mt,Kt){return le.useMemo(function(){var yt=Gt,qt=!Gt;qt&&(yt=$n(Rt));var vn=new Map,Tt=new Map,It=function(Zt,tn,Tn){Tn&&typeof Tn=="string"&&Zt.set(tn[Tn],tn)},Dt=function Bt(Zt){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn1&&arguments[1]!==void 0?arguments[1]:!1,yt=0;yt0?bi(Ci.options):Ci.options}):Ci})},gi=le.useMemo(function(){return _r?Gi(pi):pi},[pi,_r,Ti]),Wi=le.useMemo(function(){return ct(gi,{fieldNames:Qi,childrenAsData:kn})},[gi,Qi,kn]),Jr=function(Yi){var Ei=ei(Yi);if(Hr(Ei),di&&(Ei.length!==Sn.length||Ei.some(function(Zi,ma){var ba;return((ba=Sn[ma])===null||ba===void 0?void 0:ba.value)!==(Zi==null?void 0:Zi.value)}))){var Ci=oi?Ei:Ei.map(function(Zi){return Zi.value}),kr=Ei.map(function(Zi){return lt(Rr(Zi.value))});di(ua?Ci:Ci[0],ua?kr:kr[0])}},li=le.useState(null),Zr=(0,Oe.Z)(li,2),Vi=Zr[0],sa=Zr[1],vi=le.useState(0),Ni=(0,Oe.Z)(vi,2),Ii=Ni[0],Mi=Ni[1],fa=Wr!==void 0?Wr:jt!=="combobox",ca=le.useCallback(function(bi,Yi){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ci=Ei.source,kr=Ci===void 0?"keyboard":Ci;Mi(Yi),yt&&jt==="combobox"&&bi!==null&&kr==="keyboard"&&sa(String(bi))},[yt,jt]),la=function(Yi,Ei,Ci){var kr=function(){var pa,_a=Rr(Yi);return[oi?{label:_a==null?void 0:_a[Qi.label],value:Yi,key:(pa=_a==null?void 0:_a.key)!==null&&pa!==void 0?pa:Yi}:Yi,lt(_a)]};if(Ei&&Zt){var Zi=kr(),ma=(0,Oe.Z)(Zi,2),ba=ma[0],ir=ma[1];Zt(ba,ir)}else if(!Ei&&tn&&Ci!=="clear"){var Ji=kr(),Va=(0,Oe.Z)(Ji,2),no=Va[0],Ya=Va[1];tn(no,Ya)}},zi=Ie(function(bi,Yi){var Ei,Ci=ua?Yi.selected:!0;Ci?Ei=ua?[].concat((0,Ye.Z)(Sn),[bi]):[bi]:Ei=Sn.filter(function(kr){return kr.value!==bi}),Jr(Ei),la(bi,Ci),jt==="combobox"?sa(""):(!yn||Bt)&&(Xr(""),sa(""))}),Da=function(Yi,Ei){Jr(Yi);var Ci=Ei.type,kr=Ei.values;(Ci==="remove"||Ci==="clear")&&kr.forEach(function(Zi){la(Zi.value,!1,Ci)})},Ca=function(Yi,Ei){if(Xr(Yi),sa(null),Ei.source==="submit"){var Ci=(Yi||"").trim();if(Ci){var kr=Array.from(new Set([].concat((0,Ye.Z)(gn),[Ci])));Jr(kr),la(Ci,!0),Xr("")}return}Ei.source!=="blur"&&(jt==="combobox"&&Jr(Yi),It==null||It(Yi))},Ra=function(Yi){var Ei=Yi;jt!=="tags"&&(Ei=Yi.map(function(kr){var Zi=Fr.get(kr);return Zi==null?void 0:Zi.value}).filter(function(kr){return kr!==void 0}));var Ci=Array.from(new Set([].concat((0,Ye.Z)(gn),(0,Ye.Z)(Ei))));Jr(Ci),Ci.forEach(function(kr){la(kr,!0)})},to=le.useMemo(function(){var bi=ii!==!1&&Fn!==!1;return(0,pe.Z)((0,pe.Z)({},rr),{},{flattenOptions:Wi,onActiveValue:ca,defaultActiveFirstOption:fa,onSelect:zi,menuItemSelectedIcon:Jn,rawValues:gn,fieldNames:Qi,virtual:bi,direction:Ur,listHeight:qr,listItemHeight:wi,childrenAsData:kn,maxCount:ci,optionRender:Mr})},[ci,rr,Wi,ca,fa,zi,Jn,gn,Qi,ii,Fn,Ur,qr,wi,kn,Mr]);return le.createElement(ft.Provider,{value:to},le.createElement(an,(0,te.Z)({},ki,{id:Ki,prefixCls:Kt,ref:Gt,omitDomProps:Qt,mode:jt,displayValues:ti,onDisplayValuesChange:Da,direction:Ur,searchValue:Ti,onSearch:Ca,autoClearSearchValue:Bt,onSearchSplit:Ra,dropdownMatchSelectWidth:Fn,OptionList:lr,emptyOptions:!Wi.length,activeValue:Vi,activeDescendantId:"".concat(Ki,"_list_").concat(Ii)})))}),mn=sn;mn.Option=rn,mn.OptGroup=Jt;var Zn=mn,tr=Zn},22711:function(Yn,en,Ce){"use strict";Ce.r(en),Ce.d(en,{ResizableTextArea:function(){return Se},default:function(){return Ue}});var te=Ce(60499),Ye=Ce(18642),Me=Ce(85899),pe=Ce(77654),Oe=Ce(72190),ve=Ce(42244),ue=Ce(92310),fe=Ce.n(ue),he=Ce(36901),le=Ce(66003),ae=Ce(30292),ie=Ce(18929),me=Ce(59301),E=Ce(43749),b=Ce(29301),z=Ce(34280),ne=Ce(16089),oe=` 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; `,se=["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"],de={},a;function x(Pe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=Pe.getAttribute("id")||Pe.getAttribute("data-reactid")||Pe.getAttribute("name");if(ze&&de[Ke])return de[Ke];var Ne=window.getComputedStyle(Pe),Re=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),$e=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),nt=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),ut=se.map(function(rt){return"".concat(rt,":").concat(Ne.getPropertyValue(rt))}).join(";"),Qe={sizingStyle:ut,paddingSize:$e,borderSize:nt,boxSizing:Re};return ze&&Ke&&(de[Ke]=Qe),Qe}function re(Pe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),a.setAttribute("name","hiddenTextarea"),document.body.appendChild(a)),Pe.getAttribute("wrap")?a.setAttribute("wrap",Pe.getAttribute("wrap")):a.removeAttribute("wrap");var Re=x(Pe,ze),$e=Re.paddingSize,nt=Re.borderSize,ut=Re.boxSizing,Qe=Re.sizingStyle;a.setAttribute("style","".concat(Qe,";").concat(oe)),a.value=Pe.value||Pe.placeholder||"";var rt=void 0,pt=void 0,At,gt=a.scrollHeight;if(ut==="border-box"?gt+=nt:ut==="content-box"&&(gt-=$e),Ke!==null||Ne!==null){a.value=" ";var Ft=a.scrollHeight-$e;Ke!==null&&(rt=Ft*Ke,ut==="border-box"&&(rt=rt+$e+nt),gt=Math.max(rt,gt)),Ne!==null&&(pt=Ft*Ne,ut==="border-box"&&(pt=pt+$e+nt),At=gt>pt?"":"hidden",gt=Math.min(pt,gt))}var Ct={height:gt,overflowY:At,resize:"none"};return rt&&(Ct.minHeight=rt),pt&&(Ct.maxHeight=pt),Ct}var ce=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ge=0,_e=1,ye=2,be=me.forwardRef(function(Pe,ze){var Ke=Pe,Ne=Ke.prefixCls,Re=Ke.defaultValue,$e=Ke.value,nt=Ke.autoSize,ut=Ke.onResize,Qe=Ke.className,rt=Ke.style,pt=Ke.disabled,At=Ke.onChange,gt=Ke.onInternalAutoSize,Ft=(0,ve.Z)(Ke,ce),Ct=(0,ie.Z)(Re,{value:$e,postState:function(rn){return rn!=null?rn:""}}),Yt=(0,Oe.Z)(Ct,2),zt=Yt[0],Xe=Yt[1],Fe=function(rn){Xe(rn.target.value),At==null||At(rn)},Le=me.useRef();me.useImperativeHandle(ze,function(){return{textArea:Le.current}});var Ze=me.useMemo(function(){return nt&&(0,E.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),et=(0,Oe.Z)(Ze,2),He=et[0],We=et[1],tt=!!nt,at=function(){try{if(document.activeElement===Le.current){var rn=Le.current,_n=rn.selectionStart,Bn=rn.selectionEnd,kt=rn.scrollTop;Le.current.setSelectionRange(_n,Bn),Le.current.scrollTop=kt}}catch(ln){}},ot=me.useState(ye),ct=(0,Oe.Z)(ot,2),lt=ct[0],mt=ct[1],Lt=me.useState(),ft=(0,Oe.Z)(Lt,2),St=ft[0],nn=ft[1],on=function(){mt(ge)};(0,z.Z)(function(){tt&&on()},[$e,He,We,tt]),(0,z.Z)(function(){if(lt===ge)mt(_e);else if(lt===_e){var Ut=re(Le.current,!1,He,We);mt(ye),nn(Ut)}else at()},[lt]);var yn=me.useRef(),xn=function(){ne.Z.cancel(yn.current)},an=function(rn){lt===ye&&(ut==null||ut(rn),nt&&(xn(),yn.current=(0,ne.Z)(function(){on()})))};me.useEffect(function(){return xn},[]);var An=tt?St:null,Jt=(0,Me.Z)((0,Me.Z)({},rt),An);return(lt===ge||lt===_e)&&(Jt.overflowY="hidden",Jt.overflowX="hidden"),me.createElement(b.Z,{onResize:an,disabled:!(nt||ut)},me.createElement("textarea",(0,te.Z)({},Ft,{ref:Le,style:Jt,className:fe()(Ne,Qe,(0,Ye.Z)({},"".concat(Ne,"-disabled"),pt)),disabled:pt,value:zt,onChange:Fe})))}),Se=be,Be=["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"],Ae=me.forwardRef(function(Pe,ze){var Ke,Ne=Pe.defaultValue,Re=Pe.value,$e=Pe.onFocus,nt=Pe.onBlur,ut=Pe.onChange,Qe=Pe.allowClear,rt=Pe.maxLength,pt=Pe.onCompositionStart,At=Pe.onCompositionEnd,gt=Pe.suffix,Ft=Pe.prefixCls,Ct=Ft===void 0?"rc-textarea":Ft,Yt=Pe.showCount,zt=Pe.count,Xe=Pe.className,Fe=Pe.style,Le=Pe.disabled,Ze=Pe.hidden,et=Pe.classNames,He=Pe.styles,We=Pe.onResize,tt=Pe.onClear,at=Pe.onPressEnter,ot=Pe.readOnly,ct=Pe.autoSize,lt=Pe.onKeyDown,mt=(0,ve.Z)(Pe,Be),Lt=(0,ie.Z)(Ne,{value:Re,defaultValue:Ne}),ft=(0,Oe.Z)(Lt,2),St=ft[0],nn=ft[1],on=St==null?"":String(St),yn=me.useState(!1),xn=(0,Oe.Z)(yn,2),an=xn[0],An=xn[1],Jt=me.useRef(!1),Ut=me.useState(null),rn=(0,Oe.Z)(Ut,2),_n=rn[0],Bn=rn[1],kt=(0,me.useRef)(null),ln=(0,me.useRef)(null),Cn=function(){var mn;return(mn=ln.current)===null||mn===void 0?void 0:mn.textArea},Mn=function(){Cn().focus()};(0,me.useImperativeHandle)(ze,function(){var sn;return{resizableTextArea:ln.current,focus:Mn,blur:function(){Cn().blur()},nativeElement:((sn=kt.current)===null||sn===void 0?void 0:sn.nativeElement)||Cn()}}),(0,me.useEffect)(function(){An(function(sn){return!Le&&sn})},[Le]);var Qn=me.useState(null),mr=(0,Oe.Z)(Qn,2),lr=mr[0],Cr=mr[1];me.useEffect(function(){if(lr){var sn;(sn=Cn()).setSelectionRange.apply(sn,(0,pe.Z)(lr))}},[lr]);var nr=(0,le.Z)(zt,Yt),ur=(Ke=nr.max)!==null&&Ke!==void 0?Ke:rt,Nn=Number(ur)>0,In=nr.strategy(on),Wn=!!ur&&In>ur,Kn=function(mn,Zn){var tr=Zn;!Jt.current&&nr.exceedFormatter&&nr.max&&nr.strategy(Zn)>nr.max&&(tr=nr.exceedFormatter(Zn,{max:nr.max}),Zn!==tr&&Cr([Cn().selectionStart||0,Cn().selectionEnd||0])),nn(tr),(0,ae.rJ)(mn.currentTarget,mn,ut,tr)},Ln=function(mn){Jt.current=!0,pt==null||pt(mn)},$n=function(mn){Jt.current=!1,Kn(mn,mn.currentTarget.value),At==null||At(mn)},ar=function(mn){Kn(mn,mn.target.value)},dn=function(mn){mn.key==="Enter"&&at&&at(mn),lt==null||lt(mn)},Ie=function(mn){An(!0),$e==null||$e(mn)},je=function(mn){An(!1),nt==null||nt(mn)},Je=function(mn){nn(""),Mn(),(0,ae.rJ)(Cn(),mn,ut)},ht=gt,Et;nr.show&&(nr.showFormatter?Et=nr.showFormatter({value:on,count:In,maxLength:ur}):Et="".concat(In).concat(Nn?" / ".concat(ur):""),ht=me.createElement(me.Fragment,null,ht,me.createElement("span",{className:fe()("".concat(Ct,"-data-count"),et==null?void 0:et.count),style:He==null?void 0:He.count},Et)));var Qt=function(mn){var Zn;We==null||We(mn),(Zn=Cn())!==null&&Zn!==void 0&&Zn.style.height&&Bn(!0)},fn=!ct&&!Yt&&!Qe;return me.createElement(he.BaseInput,{ref:kt,value:on,allowClear:Qe,handleReset:Je,suffix:ht,prefixCls:Ct,classNames:(0,Me.Z)((0,Me.Z)({},et),{},{affixWrapper:fe()(et==null?void 0:et.affixWrapper,(0,Ye.Z)((0,Ye.Z)({},"".concat(Ct,"-show-count"),Yt),"".concat(Ct,"-textarea-allow-clear"),Qe))}),disabled:Le,focused:an,className:fe()(Xe,Wn&&"".concat(Ct,"-out-of-range")),style:(0,Me.Z)((0,Me.Z)({},Fe),_n&&!fn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Et=="string"?Et:void 0}},hidden:Ze,readOnly:ot,onClear:tt},me.createElement(Se,(0,te.Z)({},mt,{autoSize:ct,maxLength:rt,onKeyDown:dn,onChange:ar,onFocus:Ie,onBlur:je,onCompositionStart:Ln,onCompositionEnd:$n,className:fe()(et==null?void 0:et.textarea),style:(0,Me.Z)((0,Me.Z)({},He==null?void 0:He.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:Le,prefixCls:Ct,onResize:Qt,ref:ln,readOnly:ot})))}),we=Ae,Ue=we},639:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return de}});var te=Ce(60499),Ye=Ce(18642),Me=Ce(85899),pe=Ce(72190),Oe=Ce(42244),ve=Ce(59301),ue=Ce(92310),fe=Ce.n(ue),he=Ce(26112),le=Ce(30699),ae=function(x){for(var re=x.prefixCls,ce=x.level,ge=x.isStart,_e=x.isEnd,ye="".concat(re,"-indent-unit"),be=[],Se=0;Se0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],He=Ze.length,We=et.length;if(Math.abs(He-We)!==1)return{add:!1,key:null};function tt(at,ot){var ct=new Map;at.forEach(function(mt){ct.set(mt,!0)});var lt=ot.filter(function(mt){return!ct.has(mt)});return lt.length===1?lt[0]:null}return He ").concat(et);return et}var At=z.forwardRef(function(Ze,et){var He=Ze.prefixCls,We=Ze.data,tt=Ze.selectable,at=Ze.checkable,ot=Ze.expandedKeys,ct=Ze.selectedKeys,lt=Ze.checkedKeys,mt=Ze.loadedKeys,Lt=Ze.loadingKeys,ft=Ze.halfCheckedKeys,St=Ze.keyEntities,nn=Ze.disabled,on=Ze.dragging,yn=Ze.dragOverNodeKey,xn=Ze.dropPosition,an=Ze.motion,An=Ze.height,Jt=Ze.itemHeight,Ut=Ze.virtual,rn=Ze.scrollWidth,_n=Ze.focusable,Bn=Ze.activeItem,kt=Ze.focused,ln=Ze.tabIndex,Cn=Ze.onKeyDown,Mn=Ze.onFocus,Qn=Ze.onBlur,mr=Ze.onActiveChange,lr=Ze.onListChangeStart,Cr=Ze.onListChangeEnd,nr=(0,x.Z)(Ze,ze),ur=z.useRef(null),Nn=z.useRef(null);z.useImperativeHandle(et,function(){return{scrollTo:function(qt){ur.current.scrollTo(qt)},getIndentWidth:function(){return Nn.current.offsetWidth}}});var In=z.useState(ot),Wn=(0,a.Z)(In,2),Kn=Wn[0],Ln=Wn[1],$n=z.useState(We),ar=(0,a.Z)($n,2),dn=ar[0],Ie=ar[1],je=z.useState(We),Je=(0,a.Z)(je,2),ht=Je[0],Et=Je[1],Qt=z.useState([]),fn=(0,a.Z)(Qt,2),sn=fn[0],mn=fn[1],Zn=z.useState(null),tr=(0,a.Z)(Zn,2),Vt=tr[0],Gt=tr[1],Rt=z.useRef(We);Rt.current=We;function jt(){var yt=Rt.current;Ie(yt),Et(yt),mn([]),Gt(null),Cr()}(0,re.Z)(function(){Ln(ot);var yt=Ue(Kn,ot);if(yt.key!==null)if(yt.add){var qt=dn.findIndex(function(Zt){var tn=Zt.key;return tn===yt.key}),vn=Qe(Pe(dn,We,yt.key),Ut,An,Jt),Tt=dn.slice();Tt.splice(qt+1,0,ut),Et(Tt),mn(vn),Gt("show")}else{var It=We.findIndex(function(Zt){var tn=Zt.key;return tn===yt.key}),Dt=Qe(Pe(We,dn,yt.key),Ut,An,Jt),Bt=We.slice();Bt.splice(It+1,0,ut),Et(Bt),mn(Dt),Gt("hide")}else dn!==We&&(Ie(We),Et(We))},[ot,We]),z.useEffect(function(){on||jt()},[on]);var Mt=an?ht:We,Kt={expandedKeys:ot,selectedKeys:ct,loadedKeys:mt,loadingKeys:Lt,checkedKeys:lt,halfCheckedKeys:ft,dragOverNodeKey:yn,dropPosition:xn,keyEntities:St};return z.createElement(z.Fragment,null,kt&&Bn&&z.createElement("span",{style:Ke,"aria-live":"assertive"},pt(Bn)),z.createElement("div",null,z.createElement("input",{style:Ke,disabled:_n===!1||nn,tabIndex:_n!==!1?ln:null,onKeyDown:Cn,onFocus:Mn,onBlur:Qn,value:"",onChange:Ne,"aria-label":"for screen reader"})),z.createElement("div",{className:"".concat(He,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},z.createElement("div",{className:"".concat(He,"-indent")},z.createElement("div",{ref:Nn,className:"".concat(He,"-indent-unit")}))),z.createElement(ce.Z,(0,te.Z)({},nr,{data:Mt,itemKey:rt,height:An,fullHeight:!1,virtual:Ut,itemHeight:Jt,scrollWidth:rn,prefixCls:"".concat(He,"-list"),ref:ur,role:"tree",onVisibleChange:function(qt){qt.every(function(vn){return rt(vn)!==Re})&&jt()}}),function(yt){var qt=yt.pos,vn=Object.assign({},(de(yt.data),yt.data)),Tt=yt.title,It=yt.key,Dt=yt.isStart,Bt=yt.isEnd,Zt=(0,Se.km)(It,qt);delete vn.key,delete vn.children;var tn=(0,Se.H8)(Zt,Kt);return z.createElement(we,(0,te.Z)({},vn,tn,{title:Tt,active:!!Bn&&It===Bn.key,pos:qt,data:yt.data,isStart:Dt,isEnd:Bt,motion:an,motionNodes:It===Re?sn:null,motionType:Vt,onMotionStart:lr,onMotionEnd:jt,treeNodeRequiredProps:Kt,onMouseMove:function(){mr(null)}}))}))}),gt=At,Ft=Ce(82661),Ct=Ce(34643),Yt=Ce(65065),zt=10,Xe=function(Ze){(0,fe.Z)(He,Ze);var et=(0,he.Z)(He);function He(){var We;(0,Oe.Z)(this,He);for(var tt=arguments.length,at=new Array(tt),ot=0;ot2&&arguments[2]!==void 0?arguments[2]:!1,ft=We.state,St=ft.dragChildrenKeys,nn=ft.dropPosition,on=ft.dropTargetKey,yn=ft.dropTargetPos,xn=ft.dropAllowed;if(xn){var an=We.props.onDrop;if(We.setState({dragOverNodeKey:null}),We.cleanDragState(),on!==null){var An=(0,Me.Z)((0,Me.Z)({},(0,Se.H8)(on,We.getTreeNodeRequiredProps())),{},{active:((mt=We.getActiveItem())===null||mt===void 0?void 0:mt.key)===on,data:(0,Yt.Z)(We.state.keyEntities,on).node}),Jt=St.includes(on);(0,b.ZP)(!Jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,Ft.yx)(yn),rn={event:ct,node:(0,Se.F)(An),dragNode:We.dragNodeProps?(0,Se.F)(We.dragNodeProps):null,dragNodesKeys:[We.dragNodeProps.eventKey].concat(St),dropToGap:nn!==0,dropPosition:nn+Number(Ut[Ut.length-1])};Lt||an==null||an(rn),We.dragNodeProps=null}}}),(0,le.Z)((0,ue.Z)(We),"cleanDragState",function(){var ct=We.state.draggingNodeKey;ct!==null&&We.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),We.dragStartMousePosition=null,We.currentMouseOverDroppableNodeKey=null}),(0,le.Z)((0,ue.Z)(We),"triggerExpandActionExpand",function(ct,lt){var mt=We.state,Lt=mt.expandedKeys,ft=mt.flattenNodes,St=lt.expanded,nn=lt.key,on=lt.isLeaf;if(!(on||ct.shiftKey||ct.metaKey||ct.ctrlKey)){var yn=ft.filter(function(an){return an.key===nn})[0],xn=(0,Se.F)((0,Me.Z)((0,Me.Z)({},(0,Se.H8)(nn,We.getTreeNodeRequiredProps())),{},{data:yn.data}));We.setExpandedKeys(St?(0,Ft._5)(Lt,nn):(0,Ft.L0)(Lt,nn)),We.onNodeExpand(ct,xn)}}),(0,le.Z)((0,ue.Z)(We),"onNodeClick",function(ct,lt){var mt=We.props,Lt=mt.onClick,ft=mt.expandAction;ft==="click"&&We.triggerExpandActionExpand(ct,lt),Lt==null||Lt(ct,lt)}),(0,le.Z)((0,ue.Z)(We),"onNodeDoubleClick",function(ct,lt){var mt=We.props,Lt=mt.onDoubleClick,ft=mt.expandAction;ft==="doubleClick"&&We.triggerExpandActionExpand(ct,lt),Lt==null||Lt(ct,lt)}),(0,le.Z)((0,ue.Z)(We),"onNodeSelect",function(ct,lt){var mt=We.state.selectedKeys,Lt=We.state,ft=Lt.keyEntities,St=Lt.fieldNames,nn=We.props,on=nn.onSelect,yn=nn.multiple,xn=lt.selected,an=lt[St.key],An=!xn;An?yn?mt=(0,Ft.L0)(mt,an):mt=[an]:mt=(0,Ft._5)(mt,an);var Jt=mt.map(function(Ut){var rn=(0,Yt.Z)(ft,Ut);return rn?rn.node:null}).filter(Boolean);We.setUncontrolledState({selectedKeys:mt}),on==null||on(mt,{event:"select",selected:An,node:lt,selectedNodes:Jt,nativeEvent:ct.nativeEvent})}),(0,le.Z)((0,ue.Z)(We),"onNodeCheck",function(ct,lt,mt){var Lt=We.state,ft=Lt.keyEntities,St=Lt.checkedKeys,nn=Lt.halfCheckedKeys,on=We.props,yn=on.checkStrictly,xn=on.onCheck,an=lt.key,An,Jt={event:"check",node:lt,checked:mt,nativeEvent:ct.nativeEvent};if(yn){var Ut=mt?(0,Ft.L0)(St,an):(0,Ft._5)(St,an),rn=(0,Ft._5)(nn,an);An={checked:Ut,halfChecked:rn},Jt.checkedNodes=Ut.map(function(Mn){return(0,Yt.Z)(ft,Mn)}).filter(Boolean).map(function(Mn){return Mn.node}),We.setUncontrolledState({checkedKeys:Ut})}else{var _n=(0,Ct.S)([].concat((0,pe.Z)(St),[an]),!0,ft),Bn=_n.checkedKeys,kt=_n.halfCheckedKeys;if(!mt){var ln=new Set(Bn);ln.delete(an);var Cn=(0,Ct.S)(Array.from(ln),{checked:!1,halfCheckedKeys:kt},ft);Bn=Cn.checkedKeys,kt=Cn.halfCheckedKeys}An=Bn,Jt.checkedNodes=[],Jt.checkedNodesPositions=[],Jt.halfCheckedKeys=kt,Bn.forEach(function(Mn){var Qn=(0,Yt.Z)(ft,Mn);if(Qn){var mr=Qn.node,lr=Qn.pos;Jt.checkedNodes.push(mr),Jt.checkedNodesPositions.push({node:mr,pos:lr})}}),We.setUncontrolledState({checkedKeys:Bn},!1,{halfCheckedKeys:kt})}xn==null||xn(An,Jt)}),(0,le.Z)((0,ue.Z)(We),"onNodeLoad",function(ct){var lt,mt=ct.key,Lt=We.state.keyEntities,ft=(0,Yt.Z)(Lt,mt);if(!(ft!=null&&(lt=ft.children)!==null&<!==void 0&<.length)){var St=new Promise(function(nn,on){We.setState(function(yn){var xn=yn.loadedKeys,an=xn===void 0?[]:xn,An=yn.loadingKeys,Jt=An===void 0?[]:An,Ut=We.props,rn=Ut.loadData,_n=Ut.onLoad;if(!rn||an.includes(mt)||Jt.includes(mt))return null;var Bn=rn(ct);return Bn.then(function(){var kt=We.state.loadedKeys,ln=(0,Ft.L0)(kt,mt);_n==null||_n(ln,{event:"load",node:ct}),We.setUncontrolledState({loadedKeys:ln}),We.setState(function(Cn){return{loadingKeys:(0,Ft._5)(Cn.loadingKeys,mt)}}),nn()}).catch(function(kt){if(We.setState(function(Cn){return{loadingKeys:(0,Ft._5)(Cn.loadingKeys,mt)}}),We.loadingRetryTimes[mt]=(We.loadingRetryTimes[mt]||0)+1,We.loadingRetryTimes[mt]>=zt){var ln=We.state.loadedKeys;(0,b.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),We.setUncontrolledState({loadedKeys:(0,Ft.L0)(ln,mt)}),nn()}on(kt)}),{loadingKeys:(0,Ft.L0)(Jt,mt)}})});return St.catch(function(){}),St}}),(0,le.Z)((0,ue.Z)(We),"onNodeMouseEnter",function(ct,lt){var mt=We.props.onMouseEnter;mt==null||mt({event:ct,node:lt})}),(0,le.Z)((0,ue.Z)(We),"onNodeMouseLeave",function(ct,lt){var mt=We.props.onMouseLeave;mt==null||mt({event:ct,node:lt})}),(0,le.Z)((0,ue.Z)(We),"onNodeContextMenu",function(ct,lt){var mt=We.props.onRightClick;mt&&(ct.preventDefault(),mt({event:ct,node:lt}))}),(0,le.Z)((0,ue.Z)(We),"onFocus",function(){var ct=We.props.onFocus;We.setState({focused:!0});for(var lt=arguments.length,mt=new Array(lt),Lt=0;Lt1&&arguments[1]!==void 0?arguments[1]:!1,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!We.destroyed){var Lt=!1,ft=!0,St={};Object.keys(ct).forEach(function(nn){if(We.props.hasOwnProperty(nn)){ft=!1;return}Lt=!0,St[nn]=ct[nn]}),Lt&&(!lt||ft)&&We.setState((0,Me.Z)((0,Me.Z)({},St),mt))}}),(0,le.Z)((0,ue.Z)(We),"scrollTo",function(ct){We.listRef.current.scrollTo(ct)}),We}return(0,ve.Z)(He,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var tt=this.props,at=tt.activeKey,ot=tt.itemScrollOffset,ct=ot===void 0?0:ot;at!==void 0&&at!==this.state.activeKey&&(this.setState({activeKey:at}),at!==null&&this.scrollTo({key:at,offset:ct}))}},{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 tt=this.state,at=tt.focused,ot=tt.flattenNodes,ct=tt.keyEntities,lt=tt.draggingNodeKey,mt=tt.activeKey,Lt=tt.dropLevelOffset,ft=tt.dropContainerKey,St=tt.dropTargetKey,nn=tt.dropPosition,on=tt.dragOverNodeKey,yn=tt.indent,xn=this.props,an=xn.prefixCls,An=xn.className,Jt=xn.style,Ut=xn.showLine,rn=xn.focusable,_n=xn.tabIndex,Bn=_n===void 0?0:_n,kt=xn.selectable,ln=xn.showIcon,Cn=xn.icon,Mn=xn.switcherIcon,Qn=xn.draggable,mr=xn.checkable,lr=xn.checkStrictly,Cr=xn.disabled,nr=xn.motion,ur=xn.loadData,Nn=xn.filterTreeNode,In=xn.height,Wn=xn.itemHeight,Kn=xn.scrollWidth,Ln=xn.virtual,$n=xn.titleRender,ar=xn.dropIndicatorRender,dn=xn.onContextMenu,Ie=xn.onScroll,je=xn.direction,Je=xn.rootClassName,ht=xn.rootStyle,Et=(0,E.Z)(this.props,{aria:!0,data:!0}),Qt;Qn&&((0,Ye.Z)(Qn)==="object"?Qt=Qn:typeof Qn=="function"?Qt={nodeDraggable:Qn}:Qt={});var fn={prefixCls:an,selectable:kt,showIcon:ln,icon:Cn,switcherIcon:Mn,draggable:Qt,draggingNodeKey:lt,checkable:mr,checkStrictly:lr,disabled:Cr,keyEntities:ct,dropLevelOffset:Lt,dropContainerKey:ft,dropTargetKey:St,dropPosition:nn,dragOverNodeKey:on,indent:yn,direction:je,dropIndicatorRender:ar,loadData:ur,filterTreeNode:Nn,titleRender:$n,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 z.createElement(ne.k.Provider,{value:fn},z.createElement("div",{className:ie()(an,An,Je,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(an,"-show-line"),Ut),"".concat(an,"-focused"),at),"".concat(an,"-active-focused"),mt!==null)),style:ht},z.createElement(gt,(0,te.Z)({ref:this.listRef,prefixCls:an,style:Jt,data:ot,disabled:Cr,selectable:kt,checkable:!!mr,motion:nr,dragging:lt!==null,height:In,itemHeight:Wn,virtual:Ln,focusable:rn,focused:at,tabIndex:Bn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:dn,onScroll:Ie,scrollWidth:Kn},this.getTreeNodeRequiredProps(),Et))))}}],[{key:"getDerivedStateFromProps",value:function(tt,at){var ot=at.prevProps,ct={prevProps:tt};function lt(Bn){return!ot&&tt.hasOwnProperty(Bn)||ot&&ot[Bn]!==tt[Bn]}var mt,Lt=at.fieldNames;if(lt("fieldNames")&&(Lt=(0,Se.w$)(tt.fieldNames),ct.fieldNames=Lt),lt("treeData")?mt=tt.treeData:lt("children")&&((0,b.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mt=(0,Se.zn)(tt.children)),mt){ct.treeData=mt;var ft=(0,Se.I8)(mt,{fieldNames:Lt});ct.keyEntities=(0,Me.Z)((0,le.Z)({},Re,nt),ft.keyEntities)}var St=ct.keyEntities||at.keyEntities;if(lt("expandedKeys")||ot&<("autoExpandParent"))ct.expandedKeys=tt.autoExpandParent||!ot&&tt.defaultExpandParent?(0,Ft.r7)(tt.expandedKeys,St):tt.expandedKeys;else if(!ot&&tt.defaultExpandAll){var nn=(0,Me.Z)({},St);delete nn[Re];var on=[];Object.keys(nn).forEach(function(Bn){var kt=nn[Bn];kt.children&&kt.children.length&&on.push(kt.key)}),ct.expandedKeys=on}else!ot&&tt.defaultExpandedKeys&&(ct.expandedKeys=tt.autoExpandParent||tt.defaultExpandParent?(0,Ft.r7)(tt.defaultExpandedKeys,St):tt.defaultExpandedKeys);if(ct.expandedKeys||delete ct.expandedKeys,mt||ct.expandedKeys){var yn=(0,Se.oH)(mt||at.treeData,ct.expandedKeys||at.expandedKeys,Lt);ct.flattenNodes=yn}if(tt.selectable&&(lt("selectedKeys")?ct.selectedKeys=(0,Ft.BT)(tt.selectedKeys,tt):!ot&&tt.defaultSelectedKeys&&(ct.selectedKeys=(0,Ft.BT)(tt.defaultSelectedKeys,tt))),tt.checkable){var xn;if(lt("checkedKeys")?xn=(0,Ft.E6)(tt.checkedKeys)||{}:!ot&&tt.defaultCheckedKeys?xn=(0,Ft.E6)(tt.defaultCheckedKeys)||{}:mt&&(xn=(0,Ft.E6)(tt.checkedKeys)||{checkedKeys:at.checkedKeys,halfCheckedKeys:at.halfCheckedKeys}),xn){var an=xn,An=an.checkedKeys,Jt=An===void 0?[]:An,Ut=an.halfCheckedKeys,rn=Ut===void 0?[]:Ut;if(!tt.checkStrictly){var _n=(0,Ct.S)(Jt,!0,St);Jt=_n.checkedKeys,rn=_n.halfCheckedKeys}ct.checkedKeys=Jt,ct.halfCheckedKeys=rn}}return lt("loadedKeys")&&(ct.loadedKeys=tt.loadedKeys),ct}}]),He}(z.Component);(0,le.Z)(Xe,"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:se,allowDrop:function(){return!0},expandAction:!1}),(0,le.Z)(Xe,"TreeNode",_e.Z);var Fe=Xe,Le=Fe},82661:function(Yn,en,Ce){"use strict";Ce.d(en,{BT:function(){return z},E6:function(){return se},L0:function(){return le},OM:function(){return b},_5:function(){return he},r7:function(){return de},wA:function(){return ie},yx:function(){return ae}});var te=Ce(77654),Ye=Ce(43749),Me=Ce(48736),pe=Ce(59301),Oe=Ce(639),ve=Ce(65065),ue=Ce(34061),fe=null;function he(a,x){if(!a)return[];var re=a.slice(),ce=re.indexOf(x);return ce>=0&&re.splice(ce,1),re}function le(a,x){var re=(a||[]).slice();return re.indexOf(x)===-1&&re.push(x),re}function ae(a){return a.split("-")}function ie(a,x){var re=[],ce=(0,ve.Z)(x,a);function ge(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_e.forEach(function(ye){var be=ye.key,Se=ye.children;re.push(be),ge(Se)})}return ge(ce.children),re}function me(a){if(a.parent){var x=ae(a.pos);return Number(x[x.length-1])===a.parent.children.length-1}return!1}function E(a){var x=ae(a.pos);return Number(x[x.length-1])===0}function b(a,x,re,ce,ge,_e,ye,be,Se,Be){var Ae,we=a.clientX,Ue=a.clientY,Pe=a.target.getBoundingClientRect(),ze=Pe.top,Ke=Pe.height,Ne=(Be==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-we),Re=(Ne-12)/ce,$e=Se.filter(function(Le){var Ze;return(Ze=be[Le])===null||Ze===void 0||(Ze=Ze.children)===null||Ze===void 0?void 0:Ze.length}),nt=(0,ve.Z)(be,re.eventKey);if(Ue-1.5?_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1:_e({dragNode:zt,dropNode:Xe,dropPosition:0})?Ft=0:_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1:_e({dragNode:zt,dropNode:Xe,dropPosition:1})?Ft=1:Fe=!1,{dropPosition:Ft,dropLevelOffset:Ct,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:gt,dropContainerKey:Ft===0?null:((Ae=nt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:Fe}}function z(a,x){if(a){var re=x.multiple;return re?a.slice():a.length?[a[0]]:a}}var ne=function(x){return x};function oe(a,x){if(!a)return[];var re=x||{},ce=re.processProps,ge=ce===void 0?ne:ce,_e=Array.isArray(a)?a:[a];return _e.map(function(ye){var be=ye.children,Se=_objectWithoutProperties(ye,fe),Be=oe(be,x);return React.createElement(TreeNode,_extends({key:Se.key},ge(Se)),Be)})}function se(a){if(!a)return null;var x;if(Array.isArray(a))x={checkedKeys:a,halfCheckedKeys:void 0};else if((0,Ye.Z)(a)==="object")x={checkedKeys:a.checked||void 0,halfCheckedKeys:a.halfChecked||void 0};else return(0,Me.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return x}function de(a,x){var re=new Set;function ce(ge){if(!re.has(ge)){var _e=(0,ve.Z)(x,ge);if(_e){re.add(ge);var ye=_e.parent,be=_e.node;be.disabled||ye&&ce(ye.key)}}}return(a||[]).forEach(function(ge){ce(ge)}),(0,te.Z)(re)}},34643:function(Yn,en,Ce){"use strict";Ce.d(en,{S:function(){return ue}});var te=Ce(48736),Ye=Ce(65065);function Me(fe,he){var le=new Set;return fe.forEach(function(ae){he.has(ae)||le.add(ae)}),le}function pe(fe){var he=fe||{},le=he.disabled,ae=he.disableCheckbox,ie=he.checkable;return!!(le||ae)||ie===!1}function Oe(fe,he,le,ae){for(var ie=new Set(fe),me=new Set,E=0;E<=le;E+=1){var b=he.get(E)||new Set;b.forEach(function(se){var de=se.key,a=se.node,x=se.children,re=x===void 0?[]:x;ie.has(de)&&!ae(a)&&re.filter(function(ce){return!ae(ce.node)}).forEach(function(ce){ie.add(ce.key)})})}for(var z=new Set,ne=le;ne>=0;ne-=1){var oe=he.get(ne)||new Set;oe.forEach(function(se){var de=se.parent,a=se.node;if(!(ae(a)||!se.parent||z.has(se.parent.key))){if(ae(se.parent.node)){z.add(de.key);return}var x=!0,re=!1;(de.children||[]).filter(function(ce){return!ae(ce.node)}).forEach(function(ce){var ge=ce.key,_e=ie.has(ge);x&&!_e&&(x=!1),!re&&(_e||me.has(ge))&&(re=!0)}),x&&ie.add(de.key),re&&me.add(de.key),z.add(de.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(Me(me,ie))}}function ve(fe,he,le,ae,ie){for(var me=new Set(fe),E=new Set(he),b=0;b<=ae;b+=1){var z=le.get(b)||new Set;z.forEach(function(de){var a=de.key,x=de.node,re=de.children,ce=re===void 0?[]:re;!me.has(a)&&!E.has(a)&&!ie(x)&&ce.filter(function(ge){return!ie(ge.node)}).forEach(function(ge){me.delete(ge.key)})})}E=new Set;for(var ne=new Set,oe=ae;oe>=0;oe-=1){var se=le.get(oe)||new Set;se.forEach(function(de){var a=de.parent,x=de.node;if(!(ie(x)||!de.parent||ne.has(de.parent.key))){if(ie(de.parent.node)){ne.add(a.key);return}var re=!0,ce=!1;(a.children||[]).filter(function(ge){return!ie(ge.node)}).forEach(function(ge){var _e=ge.key,ye=me.has(_e);re&&!ye&&(re=!1),!ce&&(ye||E.has(_e))&&(ce=!0)}),re||me.delete(a.key),ce&&E.add(a.key),ne.add(a.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(Me(E,me))}}function ue(fe,he,le,ae){var ie=[],me;ae?me=ae:me=pe;var E=new Set(fe.filter(function(oe){var se=!!(0,Ye.Z)(le,oe);return se||ie.push(oe),se})),b=new Map,z=0;Object.keys(le).forEach(function(oe){var se=le[oe],de=se.level,a=b.get(de);a||(a=new Set,b.set(de,a)),a.add(se),z=Math.max(z,de)}),(0,te.ZP)(!ie.length,"Tree missing follow keys: ".concat(ie.slice(0,100).map(function(oe){return"'".concat(oe,"'")}).join(", ")));var ne;return he===!0?ne=Oe(E,b,z,me):ne=ve(E,he.halfCheckedKeys,b,z,me),ne}},65065:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return te}});function te(Ye,Me){return Ye[Me]}},34061:function(Yn,en,Ce){"use strict";Ce.d(en,{F:function(){return de},H8:function(){return se},I8:function(){return oe},km:function(){return ie},oH:function(){return z},w$:function(){return me},zn:function(){return b}});var te=Ce(43749),Ye=Ce(77654),Me=Ce(85899),pe=Ce(42244),Oe=Ce(11592),ve=Ce(2738),ue=Ce(48736),fe=Ce(65065),he=["children"];function le(a,x){return"".concat(a,"-").concat(x)}function ae(a){return a&&a.type&&a.type.isTreeNode}function ie(a,x){return a!=null?a:x}function me(a){var x=a||{},re=x.title,ce=x._title,ge=x.key,_e=x.children,ye=re||"title";return{title:ye,_title:ce||[ye],key:ge||"key",children:_e||"children"}}function E(a,x){var re=new Map;function ce(ge){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(ye){var be=ye[x.key],Se=ye[x.children];warning(be!=null,"Tree node must have a certain key: [".concat(_e).concat(be,"]"));var Be=String(be);warning(!re.has(Be)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(Be)),re.set(Be,!0),ce(Se,"".concat(_e).concat(Be," > "))})}ce(a)}function b(a){function x(re){var ce=(0,Oe.Z)(re);return ce.map(function(ge){if(!ae(ge))return(0,ue.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var _e=ge.key,ye=ge.props,be=ye.children,Se=(0,pe.Z)(ye,he),Be=(0,Me.Z)({key:_e},Se),Ae=x(be);return Ae.length&&(Be.children=Ae),Be}).filter(function(ge){return ge})}return x(a)}function z(a,x,re){var ce=me(re),ge=ce._title,_e=ce.key,ye=ce.children,be=new Set(x===!0?[]:x),Se=[];function Be(Ae){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ue,Pe){for(var ze=le(we?we.pos:"0",Pe),Ke=ie(Ue[_e],ze),Ne,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:{},re=x.initWrapper,ce=x.processEntity,ge=x.onProcessFinished,_e=x.externalGetKey,ye=x.childrenPropName,be=x.fieldNames,Se=arguments.length>2?arguments[2]:void 0,Be=_e||Se,Ae={},we={},Ue={posEntities:Ae,keyEntities:we};return re&&(Ue=re(Ue)||Ue),ne(a,function(Pe){var ze=Pe.node,Ke=Pe.index,Ne=Pe.pos,Re=Pe.key,$e=Pe.parentPos,nt=Pe.level,ut=Pe.nodes,Qe={node:ze,nodes:ut,index:Ke,key:Re,pos:Ne,level:nt},rt=ie(Re,Ne);Ae[Ne]=Qe,we[rt]=Qe,Qe.parent=Ae[$e],Qe.parent&&(Qe.parent.children=Qe.parent.children||[],Qe.parent.children.push(Qe)),ce&&ce(Qe,Ue)},{externalGetKey:Be,childrenPropName:ye,fieldNames:be}),ge&&ge(Ue),Ue}function se(a,x){var re=x.expandedKeys,ce=x.selectedKeys,ge=x.loadedKeys,_e=x.loadingKeys,ye=x.checkedKeys,be=x.halfCheckedKeys,Se=x.dragOverNodeKey,Be=x.dropPosition,Ae=x.keyEntities,we=(0,fe.Z)(Ae,a),Ue={eventKey:a,expanded:re.indexOf(a)!==-1,selected:ce.indexOf(a)!==-1,loaded:ge.indexOf(a)!==-1,loading:_e.indexOf(a)!==-1,checked:ye.indexOf(a)!==-1,halfChecked:be.indexOf(a)!==-1,pos:String(we?we.pos:""),dragOver:Se===a&&Be===0,dragOverGapTop:Se===a&&Be===-1,dragOverGapBottom:Se===a&&Be===1};return Ue}function de(a){var x=a.data,re=a.expanded,ce=a.selected,ge=a.checked,_e=a.loaded,ye=a.loading,be=a.halfChecked,Se=a.dragOver,Be=a.dragOverGapTop,Ae=a.dragOverGapBottom,we=a.pos,Ue=a.active,Pe=a.eventKey,ze=(0,Me.Z)((0,Me.Z)({},x),{},{expanded:re,selected:ce,checked:ge,loaded:_e,loading:ye,halfChecked:be,dragOver:Se,dragOverGapTop:Be,dragOverGapBottom:Ae,pos:we,active:Ue,key:Pe});return"props"in ze||Object.defineProperty(ze,"props",{get:function(){return(0,ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),ze}},8224:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return Ye}});var te=Ce(4676);function Ye(Me,pe,Oe,ve){var ue=te.unstable_batchedUpdates?function(he){te.unstable_batchedUpdates(Oe,he)}:Oe;return Me!=null&&Me.addEventListener&&Me.addEventListener(pe,ue,ve),{remove:function(){Me!=null&&Me.removeEventListener&&Me.removeEventListener(pe,ue,ve)}}}},24514:function(Yn,en,Ce){"use strict";Ce.d(en,{G:function(){return pe}});var te=Ce(47273),Ye=function(ve){if((0,te.Z)()&&window.document.documentElement){var ue=Array.isArray(ve)?ve:[ve],fe=window.document.documentElement;return ue.some(function(he){return he in fe.style})}return!1},Me=function(ve,ue){if(!Ye(ve))return!1;var fe=document.createElement("div"),he=fe.style[ve];return fe.style[ve]=ue,fe.style[ve]!==he};function pe(Oe,ve){return!Array.isArray(Oe)&&ve!==void 0?Me(Oe,ve):Ye(Oe)}},48911:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return zt}});var te=Ce(60499),Ye=Ce(43749),Me=Ce(85899),pe=Ce(18642),Oe=Ce(72190),ve=Ce(42244),ue=Ce(92310),fe=Ce.n(ue),he=Ce(29301),le=Ce(70425),ae=Ce(34280),ie=Ce(59301),me=Ce(4676),E=ie.forwardRef(function(Xe,Fe){var Le=Xe.height,Ze=Xe.offsetY,et=Xe.offsetX,He=Xe.children,We=Xe.prefixCls,tt=Xe.onInnerResize,at=Xe.innerProps,ot=Xe.rtl,ct=Xe.extra,lt={},mt={display:"flex",flexDirection:"column"};return Ze!==void 0&&(lt={height:Le,position:"relative",overflow:"hidden"},mt=(0,Me.Z)((0,Me.Z)({},mt),{},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({transform:"translateY(".concat(Ze,"px)")},ot?"marginRight":"marginLeft",-et),"position","absolute"),"left",0),"right",0),"top",0))),ie.createElement("div",{style:lt},ie.createElement(he.Z,{onResize:function(ft){var St=ft.offsetHeight;St&&tt&&tt()}},ie.createElement("div",(0,te.Z)({style:mt,className:fe()((0,pe.Z)({},"".concat(We,"-holder-inner"),We)),ref:Fe},at),He,ct)))});E.displayName="Filler";var b=E;function z(Xe){var Fe=Xe.children,Le=Xe.setRef,Ze=ie.useCallback(function(et){Le(et)},[]);return ie.cloneElement(Fe,{ref:Ze})}function ne(Xe,Fe,Le,Ze,et,He,We,tt){var at=tt.getKey;return Xe.slice(Fe,Le+1).map(function(ot,ct){var lt=Fe+ct,mt=We(ot,lt,{style:{width:Ze},offsetX:et}),Lt=at(ot);return ie.createElement(z,{key:Lt,setRef:function(St){return He(ot,St)}},mt)})}function oe(Xe,Fe,Le,Ze){var et=Le-Xe,He=Fe-Le,We=Math.min(et,He)*2;if(Ze<=We){var tt=Math.floor(Ze/2);return Ze%2?Le+tt+1:Le-tt}return et>He?Le-(Ze-He):Le+(Ze-et)}function se(Xe,Fe,Le){var Ze=Xe.length,et=Fe.length,He,We;if(Ze===0&&et===0)return null;Ze2&&arguments[2]!==void 0?arguments[2]:!1,lt=at?ot<0&&tt.current.left||ot>0&&tt.current.right:ot<0&&tt.current.top||ot>0&&tt.current.bottom;return ct&<?(clearTimeout(He.current),et.current=!1):(!lt||et.current)&&We(),!et.current&<}};function ge(Xe,Fe,Le,Ze,et,He,We){var tt=(0,ie.useRef)(0),at=(0,ie.useRef)(null),ot=(0,ie.useRef)(null),ct=(0,ie.useRef)(!1),lt=ce(Fe,Le,Ze,et);function mt(yn,xn){if(a.Z.cancel(at.current),!lt(!1,xn)){var an=yn;if(!an._virtualHandled)an._virtualHandled=!0;else return;tt.current+=xn,ot.current=xn,re||an.preventDefault(),at.current=(0,a.Z)(function(){var An=ct.current?10:1;We(tt.current*An,!1),tt.current=0})}}function Lt(yn,xn){We(xn,!0),re||yn.preventDefault()}var ft=(0,ie.useRef)(null),St=(0,ie.useRef)(null);function nn(yn){if(Xe){a.Z.cancel(St.current),St.current=(0,a.Z)(function(){ft.current=null},2);var xn=yn.deltaX,an=yn.deltaY,An=yn.shiftKey,Jt=xn,Ut=an;(ft.current==="sx"||!ft.current&&An&&an&&!xn)&&(Jt=an,Ut=0,ft.current="sx");var rn=Math.abs(Jt),_n=Math.abs(Ut);ft.current===null&&(ft.current=He&&rn>_n?"x":"y"),ft.current==="y"?mt(yn,Ut):Lt(yn,Jt)}}function on(yn){Xe&&(ct.current=yn.detail===ot.current)}return[nn,on]}function _e(Xe,Fe,Le,Ze){var et=ie.useMemo(function(){return[new Map,[]]},[Xe,Le.id,Ze]),He=(0,Oe.Z)(et,2),We=He[0],tt=He[1],at=function(ct){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,mt=We.get(ct),Lt=We.get(lt);if(mt===void 0||Lt===void 0)for(var ft=Xe.length,St=tt.length;St0&&arguments[0]!==void 0?arguments[0]:!1;ct();var ft=function(){var on=!1;tt.current.forEach(function(yn,xn){if(yn&&yn.offsetParent){var an=yn.offsetHeight,An=getComputedStyle(yn),Jt=An.marginTop,Ut=An.marginBottom,rn=Ae(Jt),_n=Ae(Ut),Bn=an+rn+_n;at.current.get(xn)!==Bn&&(at.current.set(xn,Bn),on=!0)}}),on&&We(function(yn){return yn+1})};if(Lt)ft();else{ot.current+=1;var St=ot.current;Promise.resolve().then(function(){St===ot.current&&ft()})}}function mt(Lt,ft){var St=Xe(Lt),nn=tt.current.get(St);ft?(tt.current.set(St,ft),lt()):tt.current.delete(St),!nn!=!ft&&(ft?Fe==null||Fe(Lt):Le==null||Le(Lt))}return(0,ie.useEffect)(function(){return ct},[]),[mt,lt,at.current,He]}var Ue=14/15;function Pe(Xe,Fe,Le){var Ze=(0,ie.useRef)(!1),et=(0,ie.useRef)(0),He=(0,ie.useRef)(0),We=(0,ie.useRef)(null),tt=(0,ie.useRef)(null),at,ot=function(Lt){if(Ze.current){var ft=Math.ceil(Lt.touches[0].pageX),St=Math.ceil(Lt.touches[0].pageY),nn=et.current-ft,on=He.current-St,yn=Math.abs(nn)>Math.abs(on);yn?et.current=ft:He.current=St;var xn=Le(yn,yn?nn:on,!1,Lt);xn&&Lt.preventDefault(),clearInterval(tt.current),xn&&(tt.current=setInterval(function(){yn?nn*=Ue:on*=Ue;var an=Math.floor(yn?nn:on);(!Le(yn,an,!0)||Math.abs(an)<=.1)&&clearInterval(tt.current)},16))}},ct=function(){Ze.current=!1,at()},lt=function(Lt){at(),Lt.touches.length===1&&!Ze.current&&(Ze.current=!0,et.current=Math.ceil(Lt.touches[0].pageX),He.current=Math.ceil(Lt.touches[0].pageY),We.current=Lt.target,We.current.addEventListener("touchmove",ot,{passive:!1}),We.current.addEventListener("touchend",ct,{passive:!0}))};at=function(){We.current&&(We.current.removeEventListener("touchmove",ot),We.current.removeEventListener("touchend",ct))},(0,ae.Z)(function(){return Xe&&Fe.current.addEventListener("touchstart",lt,{passive:!0}),function(){var mt;(mt=Fe.current)===null||mt===void 0||mt.removeEventListener("touchstart",lt),at(),clearInterval(tt.current)}},[Xe])}function ze(Xe){return Math.floor(Math.pow(Xe,.5))}function Ke(Xe,Fe){var Le="touches"in Xe?Xe.touches[0]:Xe;return Le[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function Ne(Xe,Fe,Le){ie.useEffect(function(){var Ze=Fe.current;if(Xe&&Ze){var et=!1,He,We,tt=function(){a.Z.cancel(He)},at=function mt(){tt(),He=(0,a.Z)(function(){Le(We),mt()})},ot=function(){et=!1,tt()},ct=function(Lt){if(!(Lt.target.draggable||Lt.button!==0)){var ft=Lt;ft._virtualHandled||(ft._virtualHandled=!0,et=!0)}},lt=function(Lt){if(et){var ft=Ke(Lt,!1),St=Ze.getBoundingClientRect(),nn=St.top,on=St.bottom;if(ft<=nn){var yn=nn-ft;We=-ze(yn),at()}else if(ft>=on){var xn=ft-on;We=ze(xn),at()}else tt()}};return Ze.addEventListener("mousedown",ct),Ze.ownerDocument.addEventListener("mouseup",ot),Ze.ownerDocument.addEventListener("mousemove",lt),Ze.ownerDocument.addEventListener("dragend",ot),function(){Ze.removeEventListener("mousedown",ct),Ze.ownerDocument.removeEventListener("mouseup",ot),Ze.ownerDocument.removeEventListener("mousemove",lt),Ze.ownerDocument.removeEventListener("dragend",ot),tt()}}},[Xe])}var Re=10;function $e(Xe,Fe,Le,Ze,et,He,We,tt){var at=ie.useRef(),ot=ie.useState(null),ct=(0,Oe.Z)(ot,2),lt=ct[0],mt=ct[1];return(0,ae.Z)(function(){if(lt&<.times=0;Mn-=1){var Qn=et(Fe[Mn]),mr=Le.get(Qn);if(mr===void 0){yn=!0;break}if(Cn-=mr,Cn<=0)break}switch(An){case"top":an=Ut-nn;break;case"bottom":an=rn-on+nn;break;default:{var lr=Xe.current.scrollTop,Cr=lr+on;UtCr&&(xn="bottom")}}an!==null&&We(an),an!==lt.lastTop&&(yn=!0)}yn&&mt((0,Me.Z)((0,Me.Z)({},lt),{},{times:lt.times+1,targetAlign:xn,lastTop:an}))}},[lt,Xe.current]),function(Lt){if(Lt==null){tt();return}if(a.Z.cancel(at.current),typeof Lt=="number")We(Lt);else if(Lt&&(0,Ye.Z)(Lt)==="object"){var ft,St=Lt.align;"index"in Lt?ft=Lt.index:ft=Fe.findIndex(function(yn){return et(yn)===Lt.key});var nn=Lt.offset,on=nn===void 0?0:nn;mt({times:0,index:ft,offset:on,originAlign:St})}}}var nt=ie.forwardRef(function(Xe,Fe){var Le=Xe.prefixCls,Ze=Xe.rtl,et=Xe.scrollOffset,He=Xe.scrollRange,We=Xe.onStartMove,tt=Xe.onStopMove,at=Xe.onScroll,ot=Xe.horizontal,ct=Xe.spinSize,lt=Xe.containerSize,mt=Xe.style,Lt=Xe.thumbStyle,ft=Xe.showScrollBar,St=ie.useState(!1),nn=(0,Oe.Z)(St,2),on=nn[0],yn=nn[1],xn=ie.useState(null),an=(0,Oe.Z)(xn,2),An=an[0],Jt=an[1],Ut=ie.useState(null),rn=(0,Oe.Z)(Ut,2),_n=rn[0],Bn=rn[1],kt=!Ze,ln=ie.useRef(),Cn=ie.useRef(),Mn=ie.useState(ft),Qn=(0,Oe.Z)(Mn,2),mr=Qn[0],lr=Qn[1],Cr=ie.useRef(),nr=function(){ft===!0||ft===!1||(clearTimeout(Cr.current),lr(!0),Cr.current=setTimeout(function(){lr(!1)},3e3))},ur=He-lt||0,Nn=lt-ct||0,In=ie.useMemo(function(){if(et===0||ur===0)return 0;var Je=et/ur;return Je*Nn},[et,ur,Nn]),Wn=function(ht){ht.stopPropagation(),ht.preventDefault()},Kn=ie.useRef({top:In,dragging:on,pageY:An,startTop:_n});Kn.current={top:In,dragging:on,pageY:An,startTop:_n};var Ln=function(ht){yn(!0),Jt(Ke(ht,ot)),Bn(Kn.current.top),We(),ht.stopPropagation(),ht.preventDefault()};ie.useEffect(function(){var Je=function(fn){fn.preventDefault()},ht=ln.current,Et=Cn.current;return ht.addEventListener("touchstart",Je,{passive:!1}),Et.addEventListener("touchstart",Ln,{passive:!1}),function(){ht.removeEventListener("touchstart",Je),Et.removeEventListener("touchstart",Ln)}},[]);var $n=ie.useRef();$n.current=ur;var ar=ie.useRef();ar.current=Nn,ie.useEffect(function(){if(on){var Je,ht=function(fn){var sn=Kn.current,mn=sn.dragging,Zn=sn.pageY,tr=sn.startTop;a.Z.cancel(Je);var Vt=ln.current.getBoundingClientRect(),Gt=lt/(ot?Vt.width:Vt.height);if(mn){var Rt=(Ke(fn,ot)-Zn)*Gt,jt=tr;!kt&&ot?jt-=Rt:jt+=Rt;var Mt=$n.current,Kt=ar.current,yt=Kt?jt/Kt:0,qt=Math.ceil(yt*Mt);qt=Math.max(qt,0),qt=Math.min(qt,Mt),Je=(0,a.Z)(function(){at(qt,ot)})}},Et=function(){yn(!1),tt()};return window.addEventListener("mousemove",ht,{passive:!0}),window.addEventListener("touchmove",ht,{passive:!0}),window.addEventListener("mouseup",Et,{passive:!0}),window.addEventListener("touchend",Et,{passive:!0}),function(){window.removeEventListener("mousemove",ht),window.removeEventListener("touchmove",ht),window.removeEventListener("mouseup",Et),window.removeEventListener("touchend",Et),a.Z.cancel(Je)}}},[on]),ie.useEffect(function(){return nr(),function(){clearTimeout(Cr.current)}},[et]),ie.useImperativeHandle(Fe,function(){return{delayHidden:nr}});var dn="".concat(Le,"-scrollbar"),Ie={position:"absolute",visibility:mr?null:"hidden"},je={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ot?(Object.assign(Ie,{height:8,left:0,right:0,bottom:0}),Object.assign(je,(0,pe.Z)({height:"100%",width:ct},kt?"left":"right",In))):(Object.assign(Ie,(0,pe.Z)({width:8,top:0,bottom:0},kt?"right":"left",0)),Object.assign(je,{width:"100%",height:ct,top:In})),ie.createElement("div",{ref:ln,className:fe()(dn,(0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(dn,"-horizontal"),ot),"".concat(dn,"-vertical"),!ot),"".concat(dn,"-visible"),mr)),style:(0,Me.Z)((0,Me.Z)({},Ie),mt),onMouseDown:Wn,onMouseMove:nr},ie.createElement("div",{ref:Cn,className:fe()("".concat(dn,"-thumb"),(0,pe.Z)({},"".concat(dn,"-thumb-moving"),on)),style:(0,Me.Z)((0,Me.Z)({},je),Lt),onMouseDown:Ln}))}),ut=nt,Qe=20;function rt(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le=Xe/Fe*Xe;return isNaN(Le)&&(Le=0),Le=Math.max(Le,Qe),Math.floor(Le)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],At=[],gt={overflowY:"auto",overflowAnchor:"none"};function Ft(Xe,Fe){var Le=Xe.prefixCls,Ze=Le===void 0?"rc-virtual-list":Le,et=Xe.className,He=Xe.height,We=Xe.itemHeight,tt=Xe.fullHeight,at=tt===void 0?!0:tt,ot=Xe.style,ct=Xe.data,lt=Xe.children,mt=Xe.itemKey,Lt=Xe.virtual,ft=Xe.direction,St=Xe.scrollWidth,nn=Xe.component,on=nn===void 0?"div":nn,yn=Xe.onScroll,xn=Xe.onVirtualScroll,an=Xe.onVisibleChange,An=Xe.innerProps,Jt=Xe.extraRender,Ut=Xe.styles,rn=Xe.showScrollBar,_n=rn===void 0?"optional":rn,Bn=(0,ve.Z)(Xe,pt),kt=ie.useCallback(function(rr){return typeof mt=="function"?mt(rr):rr==null?void 0:rr[mt]},[mt]),ln=we(kt,null,null),Cn=(0,Oe.Z)(ln,4),Mn=Cn[0],Qn=Cn[1],mr=Cn[2],lr=Cn[3],Cr=!!(Lt!==!1&&He&&We),nr=ie.useMemo(function(){return Object.values(mr.maps).reduce(function(rr,Dr){return rr+Dr},0)},[mr.id,mr.maps]),ur=Cr&&ct&&(Math.max(We*ct.length,nr)>He||!!St),Nn=ft==="rtl",In=fe()(Ze,(0,pe.Z)({},"".concat(Ze,"-rtl"),Nn),et),Wn=ct||At,Kn=(0,ie.useRef)(),Ln=(0,ie.useRef)(),$n=(0,ie.useRef)(),ar=(0,ie.useState)(0),dn=(0,Oe.Z)(ar,2),Ie=dn[0],je=dn[1],Je=(0,ie.useState)(0),ht=(0,Oe.Z)(Je,2),Et=ht[0],Qt=ht[1],fn=(0,ie.useState)(!1),sn=(0,Oe.Z)(fn,2),mn=sn[0],Zn=sn[1],tr=function(){Zn(!0)},Vt=function(){Zn(!1)},Gt={getKey:kt};function Rt(rr){je(function(Dr){var Fr;typeof rr=="function"?Fr=rr(Dr):Fr=rr;var or=Wr(Fr);return Kn.current.scrollTop=or,or})}var jt=(0,ie.useRef)({start:0,end:Wn.length}),Mt=(0,ie.useRef)(),Kt=de(Wn,kt),yt=(0,Oe.Z)(Kt,1),qt=yt[0];Mt.current=qt;var vn=ie.useMemo(function(){if(!Cr)return{scrollHeight:void 0,start:0,end:Wn.length-1,offset:void 0};if(!ur){var rr;return{scrollHeight:((rr=Ln.current)===null||rr===void 0?void 0:rr.offsetHeight)||0,start:0,end:Wn.length-1,offset:void 0}}for(var Dr=0,Fr,or,ei,si=Wn.length,wr=0;wr=Ie&&Fr===void 0&&(Fr=wr,or=Dr),un>Ie+He&&ei===void 0&&(ei=wr),Dr=un}return Fr===void 0&&(Fr=0,or=0,ei=Math.ceil(He/We)),ei===void 0&&(ei=Wn.length-1),ei=Math.min(ei+1,Wn.length-1),{scrollHeight:Dr,start:Fr,end:ei,offset:or}},[ur,Cr,Ie,Wn,lr,He]),Tt=vn.scrollHeight,It=vn.start,Dt=vn.end,Bt=vn.offset;jt.current.start=It,jt.current.end=Dt,ie.useLayoutEffect(function(){var rr=mr.getRecord();if(rr.size===1){var Dr=Array.from(rr.keys())[0],Fr=rr.get(Dr),or=Wn[It];if(or&&Fr===void 0){var ei=kt(or);if(ei===Dr){var si=mr.get(Dr),wr=si-We;Rt(function(Ir){return Ir+wr})}}}mr.resetRecord()},[Tt]);var Zt=ie.useState({width:0,height:He}),tn=(0,Oe.Z)(Zt,2),Tn=tn[0],Fn=tn[1],dr=function(Dr){Fn({width:Dr.offsetWidth,height:Dr.offsetHeight})},_r=(0,ie.useRef)(),Kr=(0,ie.useRef)(),Sr=ie.useMemo(function(){return rt(Tn.width,St)},[Tn.width,St]),hr=ie.useMemo(function(){return rt(Tn.height,Tt)},[Tn.height,Tt]),Mr=Tt-He,Br=(0,ie.useRef)(Mr);Br.current=Mr;function Wr(rr){var Dr=rr;return Number.isNaN(Br.current)||(Dr=Math.min(Dr,Br.current)),Dr=Math.max(Dr,0),Dr}var Jn=Ie<=0,ii=Ie>=Mr,Ur=Et<=0,Gr=Et>=St,qr=ce(Jn,ii,Ur,Gr),Li=function(){return{x:Nn?-Et:Et,y:Ie}},wi=(0,ie.useRef)(Li()),ui=(0,le.zX)(function(rr){if(xn){var Dr=(0,Me.Z)((0,Me.Z)({},Li()),rr);(wi.current.x!==Dr.x||wi.current.y!==Dr.y)&&(xn(Dr),wi.current=Dr)}});function Qr(rr,Dr){var Fr=rr;Dr?((0,me.flushSync)(function(){Qt(Fr)}),ui()):Rt(Fr)}function Di(rr){var Dr=rr.currentTarget.scrollTop;Dr!==Ie&&Rt(Dr),yn==null||yn(rr),ui()}var oi=function(Dr){var Fr=Dr,or=St?St-Tn.width:0;return Fr=Math.max(Fr,0),Fr=Math.min(Fr,or),Fr},di=(0,le.zX)(function(rr,Dr){Dr?((0,me.flushSync)(function(){Qt(function(Fr){var or=Fr+(Nn?-rr:rr);return oi(or)})}),ui()):Rt(function(Fr){var or=Fr+rr;return or})}),ci=ge(Cr,Jn,ii,Ur,Gr,!!St,di),ki=(0,Oe.Z)(ci,2),Ki=ki[0],ua=ki[1];Pe(Cr,Kn,function(rr,Dr,Fr,or){var ei=or;return qr(rr,Dr,Fr)?!1:!ei||!ei._virtualHandled?(ei&&(ei._virtualHandled=!0),Ki({preventDefault:function(){},deltaX:rr?Dr:0,deltaY:rr?0:Dr}),!0):!1}),Ne(ur,Kn,function(rr){Rt(function(Dr){return Dr+rr})}),(0,ae.Z)(function(){function rr(Fr){var or=Jn&&Fr.detail<0,ei=ii&&Fr.detail>0;Cr&&!or&&!ei&&Fr.preventDefault()}var Dr=Kn.current;return Dr.addEventListener("wheel",Ki,{passive:!1}),Dr.addEventListener("DOMMouseScroll",ua,{passive:!0}),Dr.addEventListener("MozMousePixelScroll",rr,{passive:!1}),function(){Dr.removeEventListener("wheel",Ki),Dr.removeEventListener("DOMMouseScroll",ua),Dr.removeEventListener("MozMousePixelScroll",rr)}},[Cr,Jn,ii]),(0,ae.Z)(function(){if(St){var rr=oi(Et);Qt(rr),ui({x:rr})}},[Tn.width,St]);var kn=function(){var Dr,Fr;(Dr=_r.current)===null||Dr===void 0||Dr.delayHidden(),(Fr=Kr.current)===null||Fr===void 0||Fr.delayHidden()},qi=$e(Kn,Wn,mr,We,kt,function(){return Qn(!0)},Rt,kn);ie.useImperativeHandle(Fe,function(){return{nativeElement:$n.current,getScrollInfo:Li,scrollTo:function(Dr){function Fr(or){return or&&(0,Ye.Z)(or)==="object"&&("left"in or||"top"in or)}Fr(Dr)?(Dr.left!==void 0&&Qt(oi(Dr.left)),qi(Dr.top)):qi(Dr)}}}),(0,ae.Z)(function(){if(an){var rr=Wn.slice(It,Dt+1);an(rr,Wn)}},[It,Dt,Wn]);var Qi=_e(Wn,kt,mr,We),ra=Jt==null?void 0:Jt({start:It,end:Dt,virtual:ur,offsetX:Et,offsetY:Bt,rtl:Nn,getSize:Qi}),_i=ne(Wn,It,Dt,St,Et,Mn,lt,Gt),Ti=null;He&&(Ti=(0,Me.Z)((0,pe.Z)({},at?"height":"maxHeight",He),gt),Cr&&(Ti.overflowY="hidden",St&&(Ti.overflowX="hidden"),mn&&(Ti.pointerEvents="none")));var Xr={};return Nn&&(Xr.dir="rtl"),ie.createElement("div",(0,te.Z)({ref:$n,style:(0,Me.Z)((0,Me.Z)({},ot),{},{position:"relative"}),className:In},Xr,Bn),ie.createElement(he.Z,{onResize:dr},ie.createElement(on,{className:"".concat(Ze,"-holder"),style:Ti,ref:Kn,onScroll:Di,onMouseEnter:kn},ie.createElement(b,{prefixCls:Ze,height:Tt,offsetX:Et,offsetY:Bt,scrollWidth:St,onInnerResize:Qn,ref:Ln,innerProps:An,rtl:Nn,extra:ra},_i))),ur&&Tt>He&&ie.createElement(ut,{ref:_r,prefixCls:Ze,scrollOffset:Ie,scrollRange:Tt,rtl:Nn,onScroll:Qr,onStartMove:tr,onStopMove:Vt,spinSize:hr,containerSize:Tn.height,style:Ut==null?void 0:Ut.verticalScrollBar,thumbStyle:Ut==null?void 0:Ut.verticalScrollBarThumb,showScrollBar:_n}),ur&&St>Tn.width&&ie.createElement(ut,{ref:Kr,prefixCls:Ze,scrollOffset:Et,scrollRange:St,rtl:Nn,onScroll:Qr,onStartMove:tr,onStopMove:Vt,spinSize:Sr,containerSize:Tn.width,horizontal:!0,style:Ut==null?void 0:Ut.horizontalScrollBar,thumbStyle:Ut==null?void 0:Ut.horizontalScrollBarThumb,showScrollBar:_n}))}var Ct=ie.forwardRef(Ft);Ct.displayName="List";var Yt=Ct,zt=Yt},51581:function(Yn,en,Ce){"use strict";Object.defineProperty(en,"__esModule",{value:!0});var te=function(){function ie(me,E){for(var b=0;b=0||Object.prototype.hasOwnProperty.call(ie,b)&&(E[b]=ie[b]);return E}function fe(ie,me){if(!(ie instanceof me))throw new TypeError("Cannot call a class as a function")}function he(ie,me){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:ie}function le(ie,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);ie.prototype=Object.create(me&&me.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,me):ie.__proto__=me)}var ae=function(ie){le(me,ie);function me(E){fe(this,me);var b=he(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,E));return b.scrollListener=b.scrollListener.bind(b),b.eventListenerOptions=b.eventListenerOptions.bind(b),b.mousewheelListener=b.mousewheelListener.bind(b),b}return te(me,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var b=this.getParentElement(this.scrollComponent);b.scrollTop=b.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var b=!1,z={get passive(){b=!0}};try{document.addEventListener("test",null,z),document.removeEventListener("test",null,z)}catch(ne){}return b}},{key:"eventListenerOptions",value:function(){var b=this.props.useCapture;return this.isPassiveSupported()&&(b={useCapture:this.props.useCapture,passive:!0}),b}},{key:"setDefaultLoader",value:function(b){this.defaultLoader=b}},{key:"detachMousewheelListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.scrollComponent.parentNode),b.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.getParentElement(this.scrollComponent)),b.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),b.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(b){var z=this.props.getScrollParent&&this.props.getScrollParent();return z!=null?z:b&&b.parentNode}},{key:"filterProps",value:function(b){return b}},{key:"attachScrollListener",value:function(){var b=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!b)){var z=window;this.props.useWindow===!1&&(z=b),z.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),z.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),z.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(b){b.deltaY===1&&!this.isPassiveSupported()&&b.preventDefault()}},{key:"scrollListener",value:function(){var b=this.scrollComponent,z=window,ne=this.getParentElement(b),oe=void 0;if(this.props.useWindow){var se=document.documentElement||document.body.parentNode||document.body,de=z.pageYOffset!==void 0?z.pageYOffset:se.scrollTop;this.props.isReverse?oe=de:oe=this.calculateOffset(b,de)}else this.props.isReverse?oe=ne.scrollTop:oe=b.scrollHeight-ne.scrollTop-ne.clientHeight;oe1&&arguments[1]!==void 0?arguments[1]:60,pe=null;return function(){for(var Oe=this,ve=arguments.length,ue=new Array(ve),fe=0;fe=Me.length?{done:!0}:{done:!1,value:Me[ve++]}},e:function(ie){throw ie},f:ue}}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 fe,he=!0,le=!1;return{s:function(){Oe=Oe.call(Me)},n:function(){var ie=Oe.next();return he=ie.done,ie},e:function(ie){le=!0,fe=ie},f:function(){try{he||Oe.return==null||Oe.return()}finally{if(le)throw fe}}}}},16722:function(Yn,en,Ce){"use strict";Ce.d(en,{Z:function(){return fe}});const te=he=>typeof he=="object"&&he!=null&&he.nodeType===1,Ye=(he,le)=>(!le||he!=="hidden")&&he!=="visible"&&he!=="clip",Me=(he,le)=>{if(he.clientHeight{const me=(E=>{if(!E.ownerDocument||!E.ownerDocument.defaultView)return null;try{return E.ownerDocument.defaultView.frameElement}catch(b){return null}})(ie);return!!me&&(me.clientHeightEle||E>he&&b=le&&z>=ae?E-he-ie:b>le&&zae?b-le+me:0,Oe=he=>{const le=he.parentElement;return le==null?he.getRootNode().host||null:le},ve=(he,le)=>{var ae,ie,me,E;if(typeof document=="undefined")return[];const{scrollMode:b,block:z,inline:ne,boundary:oe,skipOverflowHiddenElements:se}=le,de=typeof oe=="function"?oe:ut=>ut!==oe;if(!te(he))throw new TypeError("Invalid target");const a=document.scrollingElement||document.documentElement,x=[];let re=he;for(;te(re)&&de(re);){if(re=Oe(re),re===a){x.push(re);break}re!=null&&re===document.body&&Me(re)&&!Me(document.documentElement)||re!=null&&Me(re,se)&&x.push(re)}const ce=(ie=(ae=window.visualViewport)==null?void 0:ae.width)!=null?ie:innerWidth,ge=(E=(me=window.visualViewport)==null?void 0:me.height)!=null?E:innerHeight,{scrollX:_e,scrollY:ye}=window,{height:be,width:Se,top:Be,right:Ae,bottom:we,left:Ue}=he.getBoundingClientRect(),{top:Pe,right:ze,bottom:Ke,left:Ne}=(ut=>{const Qe=window.getComputedStyle(ut);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(he);let Re=z==="start"||z==="nearest"?Be-Pe:z==="end"?we+Ke:Be+be/2-Pe+Ke,$e=ne==="center"?Ue+Se/2-Ne+ze:ne==="end"?Ae+ze:Ue-Ne;const nt=[];for(let ut=0;ut=0&&Ue>=0&&we<=ge&&Ae<=ce&&(Qe===a&&!Me(Qe)||Be>=At&&we<=Ft&&Ue>=Ct&&Ae<=gt))return nt;const Yt=getComputedStyle(Qe),zt=parseInt(Yt.borderLeftWidth,10),Xe=parseInt(Yt.borderTopWidth,10),Fe=parseInt(Yt.borderRightWidth,10),Le=parseInt(Yt.borderBottomWidth,10);let Ze=0,et=0;const He="offsetWidth"in Qe?Qe.offsetWidth-Qe.clientWidth-zt-Fe:0,We="offsetHeight"in Qe?Qe.offsetHeight-Qe.clientHeight-Xe-Le:0,tt="offsetWidth"in Qe?Qe.offsetWidth===0?0:pt/Qe.offsetWidth:0,at="offsetHeight"in Qe?Qe.offsetHeight===0?0:rt/Qe.offsetHeight:0;if(a===Qe)Ze=z==="start"?Re:z==="end"?Re-ge:z==="nearest"?pe(ye,ye+ge,ge,Xe,Le,ye+Re,ye+Re+be,be):Re-ge/2,et=ne==="start"?$e:ne==="center"?$e-ce/2:ne==="end"?$e-ce:pe(_e,_e+ce,ce,zt,Fe,_e+$e,_e+$e+Se,Se),Ze=Math.max(0,Ze+ye),et=Math.max(0,et+_e);else{Ze=z==="start"?Re-At-Xe:z==="end"?Re-Ft+Le+We:z==="nearest"?pe(At,Ft,rt,Xe,Le+We,Re,Re+be,be):Re-(At+rt/2)+We/2,et=ne==="start"?$e-Ct-zt:ne==="center"?$e-(Ct+pt/2)+He/2:ne==="end"?$e-gt+Fe+He:pe(Ct,gt,pt,zt,Fe+He,$e,$e+Se,Se);const{scrollLeft:ot,scrollTop:ct}=Qe;Ze=at===0?0:Math.max(0,Math.min(ct+Ze/at,Qe.scrollHeight-rt/at+We)),et=tt===0?0:Math.max(0,Math.min(ot+et/tt,Qe.scrollWidth-pt/tt+He)),Re+=ct-Ze,$e+=ot-et}nt.push({el:Qe,top:Ze,left:et})}return nt},ue=he=>he===!1?{block:"end",inline:"nearest"}:(le=>le===Object(le)&&Object.keys(le).length!==0)(he)?he:{block:"start",inline:"nearest"};function fe(he,le){if(!he.isConnected||!(me=>{let E=me;for(;E&&E.parentNode;){if(E.parentNode===document)return!0;E=E.parentNode instanceof ShadowRoot?E.parentNode.host:E.parentNode}return!1})(he))return;const ae=(me=>{const E=window.getComputedStyle(me);return{top:parseFloat(E.scrollMarginTop)||0,right:parseFloat(E.scrollMarginRight)||0,bottom:parseFloat(E.scrollMarginBottom)||0,left:parseFloat(E.scrollMarginLeft)||0}})(he);if((me=>typeof me=="object"&&typeof me.behavior=="function")(le))return le.behavior(ve(he,le));const ie=typeof le=="boolean"||le==null?void 0:le.behavior;for(const{el:me,top:E,left:b}of ve(he,ue(le))){const z=E-ae.top+ae.bottom,ne=b-ae.left+ae.right;me.scroll({top:z,left:ne,behavior:ie})}}}}]);