(self.webpackChunk=self.webpackChunk||[]).push([[337],{89489:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},59477:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},40001:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},49198:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},87169:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},73331:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},15277:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},52671:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},8657:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},56082:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},33853:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},12893:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},15075:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},32134:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},43531:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},61485:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},38819:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},47472:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(He,Et){return De.createElement(Ze.Z,(0,ce.Z)({},He,{ref:Et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Pn,an){"use strict";an.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(Pn,an){"use strict";an.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},42678:function(Pn,an,ve){"use strict";var ce=ve(59301),De=Object.defineProperty,_e=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ke=(ct,He,Et)=>He in ct?De(ct,He,{enumerable:!0,configurable:!0,writable:!0,value:Et}):ct[He]=Et,Be=(ct,He)=>{for(var Et in He||(He={}))Ct.call(He,Et)&&Ke(ct,Et,He[Et]);if(_e)for(var Et of _e(He))Ze.call(He,Et)&&Ke(ct,Et,He[Et]);return ct};const mt=ct=>React.createElement("svg",Be({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ct),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));an.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},74413:function(){"use strict";function Pn(Ae,te,ee,he){ee===void 0&&(ee=0),he===void 0&&(he=1/0),this._name=Ae,this._defaultValue=te,this._minimum=ee,this._maximum=he}Object.defineProperty(Pn.prototype,"name",{get:function(){return this._name},set:function(Ae){if(typeof Ae!="string"||Ae==="")throw new Error("Shape name must be a valid string.");this._name=Ae}}),Object.defineProperty(Pn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("The default value must be a real number, not: "+Ae);this._defaultValue=Ae}}),Object.defineProperty(Pn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("Minimum must be a real number, not: "+Ae);this._minimum=Ae}}),Object.defineProperty(Pn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("Maximum must be a real number, not: "+Ae);this._maximum=Ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ae,te){var ee=go.Shape._FigureParameters[Ae];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Ae,te,ee){if(!(ee instanceof Pn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var he=go.Shape._FigureParameters[Ae];he||(he=[],go.Shape._FigureParameters[Ae]=he),he[te]=ee};var an=[];function ve(Ae,te){var ee=an.pop();return ee===void 0?new go.Point(Ae,te):(ee.x=Ae,ee.y=te,ee)}function ce(){var Ae=an.pop();return Ae===void 0?new go.Point:Ae}function De(Ae){an.push(Ae)}function _e(Ae,te,ee,he,se,de,me,we,be){be||(be=new go.Point);var Me=Ae-ee,Ie=se-me,ze=NaN,et=NaN;if(Me===0)if(Ie===0)Ae===ee&&(ze=Ae,et=te);else{var $e=(de-we)/Ie,gt=de-$e*se;ze=Ae,et=$e*ze+gt}else if(Ie===0){var je=(te-he)/Me,Tt=te-je*Ae;ze=se,et=je*ze+Tt}else{var je=(te-he)/Me,$e=(de-we)/Ie,Tt=te-je*Ae,gt=de-$e*se;ze=(gt-Tt)/(je-$e),et=je*ze+Tt}return be.x=ze,be.y=et,be}function Ct(Ae,te,ee,he,se,de,me,we,be,Me,Ie,ze,et,$e){var gt=1-be,je=be,Tt=Ae*gt+ee*je,Qe=te*gt+he*je,bt=ee*gt+se*je,Nt=he*gt+de*je,At=se*gt+me*je,Zt=de*gt+we*je,Yt=Tt*gt+bt*je,ut=Qe*gt+Nt*je,Ge=bt*gt+At*je,kt=Nt*gt+Zt*je,ln=Yt*gt+Ge*je,sn=ut*gt+kt*je;Me.x=Tt,Me.y=Qe,Ie.x=Yt,Ie.y=ut,ze.x=ln,ze.y=sn,et.x=Ge,et.y=kt,$e.x=At,$e.y=Zt}var Ze=new go.Spot(.156,.156),Ke=new go.Spot(.844,.844),Be=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Pn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ee/3);var se=he*Be,de=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ee-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,ee-se,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,he,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,se,ee,0,ee-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()));return se>1&&(de.spot1=new go.Spot(0,0,se,se),de.spot2=new go.Spot(1,1,-se,-se)),de}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ae,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ee/2,he.endX=te,he.endY=ee/2,he}),go.Shape.defineFigureGenerator("LineV",function(Ae,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ee,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ae,te,ee){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ae,te,ee){var he=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=Ze,se.spot2=Ke,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ae,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}),go.Shape.defineFigureGenerator("Line2",function(Ae,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ee,he}),go.Shape.defineFigureGenerator("Curve1",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Be*te,0,te,(1-Be)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,Be*ee,(1-Be)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,Be*ee,Be*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-Be)*te,0,0,(1-Be)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Pn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*te;if(he===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}else{var de=new go.Geometry;return he>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(he=te);var se=Math.abs(he);if(he===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}else{var de=new go.Geometry;return he>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),se.5&&(he=.5);var se=Math.abs(he)*te;if(he===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}else{var de=new go.Geometry;return he>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(he=te/2);var se=Math.abs(he);if(he===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}else{var de=new go.Geometry;return he>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())),sete&&(he=te/2);var se=Math.abs(he);if(he===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ee,de}else{var de=new go.Geometry;return he>0?de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ee)).add(new go.PathSegment(go.PathSegment.Line,se,ee).close())):de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),se0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+we,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,we,we).close())),de.spot1=Ze,de.spot2=Ke,de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Cloud",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ee,-.09239631*te,.07836421*ee,.1406031*te,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ee,.2450511*te,-.00697547*ee,.3776197*te,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ee,.4539471*te,0,.6066018*te,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ee,.6914277*te,-.01904177*ee,.8921095*te,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ee,1.036446*te,.04105738*ee,1.020377*te,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ee,1.04448*te,.360238*ee,.992256*te,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ee,1.032337*te,.5771781*ee,1.018411*te,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ee,1.028411*te,.9571472*ee,.8556702*te,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ee,.7431877*te,1.009325*ee,.5624123*te,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ee,.4820677*te,1.031761*ee,.3030112*te,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ee,.2329994*te,1.01518*ee,.03213784*te,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ee,-.02812061*te,.9032597*ee,-.01205169*te,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ee,-.01812061*te,.6089503*ee,-.00606892*te,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ee,-.01606892*te,.3892545*ee,-.01205169*te,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ae,te,ee){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new Pn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Pn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN,se=Ae?Ae.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var de=he%360;de<0&&(de+=360);var me=se%360,we=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(we,we).add(new go.PathSegment(go.PathSegment.Arc,de,me,we,we,we,we).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ae,te,ee){var he=Be/Math.SQRT2*.5,se=Math.SQRT2/2,de=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,de*ee,te,(1-he)*ee,(se+he)*te,(de+he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Pn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,te)/2,de=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,me-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Pn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,te)/2,de=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,ee)).add(new go.PathSegment(go.PathSegment.Line,de-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,me-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Pn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ee===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ee,se}else{var de=te/2,me=ee/2,we=Math.atan2(ee,te),be=he-Math.min(Math.cos(we)*he/2,de),Me=he-Math.min(Math.sin(we)*he/2,me),se=new go.Geometry,Ie=new go.PathFigure(be,0,!0);return se.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,de,.2*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,te-be,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,Me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,ee-Me)),Ie.add(new go.PathSegment(go.PathSegment.Line,te-be,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,de,.8*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,be,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee-Me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Me).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Pn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=new go.Geometry,de=new go.PathFigure(.1*te,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new Pn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,he*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Pn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.5);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-he)*te,.25*ee,Math.abs(1-he)*te,.75*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,Be*te,0,te,(.5-Be/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+Be/2)*ee,Be*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,0,te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ee,.5*te,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*te,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.5*ee,.9*te,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.6*te,.2*ee,te,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ee,te,.8*ee,.6*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,.5*te,.75*ee,.55*te,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ee,.45*te,.95*ee,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*te,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ee,0,.25*ee,.4*te,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.4*te,.6*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var de=.2,me=.3,we=0,be=de*Be;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+de+we)*ee,(.5-de+me)*te,(.5+be+we)*ee,(.5-be+me)*te,(.5+de+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+me)*te,(.5+we)*ee,(.5+be+me)*te,(.5+de+we)*ee,(.5+de+me)*te,(.5+be+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-de+we)*ee,(1-.5+de+me)*te,(.5-be+we)*ee,(.5+be+me)*te,(.5-de+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-be+me)*te,(.5-de+we)*ee,(.5-de+me+.05)*te,(.5-be+we-.02)*ee)),de=.2,me=0,we=-.3,be=de*Be,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+me)*te,(.5+we)*ee,(.5+be+me)*te,(.5+de+we)*ee,(.5+de+me)*te,(.5+be+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-de+we)*ee,(1-.5+de+me)*te,(.5-be+we)*ee,(.5+be+me)*te,(.5-de+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+me)*te,(.5+we)*ee,(.5-be+me)*te,(.5-de+we)*ee,(.5-de+me)*te,(.5-be+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-be+me)*te,(.5+de+we)*ee,(.5-de+me)*te,(.5+be+we)*ee,(.5-be+me)*te,(.5+de+we)*ee)),de=.2,me=-.3,we=0,be=de*Be,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-de+we)*ee,(1-.5+de+me-.05)*te,(.5-be+we-.02)*ee,(.5+be+me)*te,(.5-de+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+me)*te,(.5+we)*ee,(.5-be+me)*te,(.5-de+we)*ee,(.5-de+me)*te,(.5-be+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+de+we)*ee,(.5-de+me)*te,(.5+be+we)*ee,(.5-be+me)*te,(.5+de+we)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+be+me)*te,(.5+de+we)*ee,(.5+de+me)*te,(.5+be+we)*ee).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var de=.1,me=.5,we=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(me+de)*te,we*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*we,de*te,de*te).close()),se=new go.PathFigure(te*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),we=.75,se=new go.PathFigure((me+de)*te,we*ee,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*we,de*te,de*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Ae,te,ee){var he=.8535533905932737,se=.5*te,de=.5*ee;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,de,se,de)).add(new go.PathSegment(go.PathSegment.Line,se,ee)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=.5,me=.5,we=.5,be=new go.PathFigure(me*te,(we-de)*ee);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),de=.4,se=Be*.4;var Me=ce(),Ie=ce(),ze=ce(),et=ce();Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.42,Me,Ie,ze,et,et);var $e=ce(),gt=ce(),je=ce();Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.58,et,et,je,$e,gt);var Tt=ce(),Qe=ce(),bt=ce();Ct(me,we+de,me-se,we+de,me-de,we+se,me-de,we,.42,Tt,Qe,bt,et,et);var Nt=ce(),At=ce(),Zt=ce();return Ct(me,we+de,me-se,we+de,me-de,we+se,me-de,we,.58,et,et,Zt,Nt,At),be.add(new go.PathSegment(go.PathSegment.Move,Zt.x*te,Zt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,Nt.x*te,Nt.y*ee,At.x*te,At.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me-de)*te,(we-se)*ee,(me-se)*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*te,ze.y*ee,Me.x*te,Me.y*ee,Ie.x*te,Ie.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,Zt.x*te,Zt.y*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,bt.x*te,bt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Line,je.x*te,je.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,$e.x*te,$e.y*ee,gt.x*te,gt.y*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me+de)*te,(we+se)*ee,(me+se)*te,(we+de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,bt.x*te,bt.y*ee,Tt.x*te,Tt.y*ee,Qe.x*te,Qe.y*ee).close()),De(Me),De(Ie),De(ze),De(et),De($e),De(gt),De(je),De(Tt),De(Qe),De(bt),De(Nt),De(At),De(Zt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ee,te,.25*ee,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Pn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var se=(te-he)/2,de=se+he;return new go.Geometry().add(new go.PathFigure(de,.5*ee).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ae,te,ee){var he=new go.Geometry,se=Be*.4,de=.4,me=.5,we=.5,be=ce(),Me=ce(),Ie=ce(),ze=ce(),et=new go.PathFigure((me-de)*te,we*ee,!1);he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me-de)*te,(we-se)*ee,(me-se)*te,(we-de)*ee)),Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.44,Ie,ze,Me,be,be),et.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ee,Ie.x*te,Ie.y*ee,ze.x*te,ze.y*ee));var $e=ve(Me.x,Me.y);Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.56,be,be,Me,Ie,ze);var gt=ve(Me.x,Me.y);et.add(new go.PathSegment(go.PathSegment.Line,($e.x*.1+.95*.9)*te,$e.y*.1*ee)),et.add(new go.PathSegment(go.PathSegment.Line,.85*te,$e.y*.1*ee)),et.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),et.add(new go.PathSegment(go.PathSegment.Line,te,0)),et.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),et.add(new go.PathSegment(go.PathSegment.Line,(gt.x*.1+.9)*te,.15*ee)),et.add(new go.PathSegment(go.PathSegment.Line,(gt.x*.1+.9)*te,(gt.y*.1+.05*.9)*ee)),et.add(new go.PathSegment(go.PathSegment.Line,gt.x*te,gt.y*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,Ie.x*te,Ie.y*ee,ze.x*te,ze.y*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me+de)*te,(we+se)*ee,(me+se)*te,(we+de)*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we+de)*ee,(me-de)*te,(we+se)*ee)),de=.35,se=Be*.35;var je=new go.PathFigure(me*te,(we-de)*ee,!1);he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee));var Tt=new go.PathFigure((me-de)*te,we*ee,!1);return he.add(Tt),De(be),De(Me),De(Ie),De(ze),De($e),De(gt),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Ae,te,ee){var he=new go.Geometry,se=.375,de=0,me=-.125,we=se*Be,be=new go.PathFigure((.525+de)*te,(.5+se+me)*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*te,(.5+me)*ee,(.5+we+de)*te,(.5+se+me)*ee,(.5+se+de)*te,(.5+we+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5-se+me)*ee,(1-.5+se+de)*te,(.5-we+me)*ee,(.5+we+de)*te,(.5-se+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+me)*ee,(.5-we+de)*te,(.5-se+me)*ee,(.5-se+de)*te,(.5-we+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*te,(.5+se+me)*ee,(.5-se+de)*te,(.5+we+me)*ee,(.5-we+de)*te,(.5+se+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),se=.325,de=0,me=-.125,we=se*Be;var be=new go.PathFigure((1-.5+se+de)*te,(.5+me)*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5+se+me)*ee,(.5+se+de)*te,(.5+we+me)*ee,(.5+we+de)*te,(.5+se+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+me)*ee,(.5-we+de)*te,(.5+se+me)*ee,(.5-se+de)*te,(.5+we+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5-se+me)*ee,(.5-se+de)*te,(.5-we+me)*ee,(.5-we+de)*te,(.5-se+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*te,(.5+me)*ee,(.5+we+de)*te,(.5-se+me)*ee,(1-.5+se+de)*te,(.5-we+me)*ee));var be=new go.PathFigure((.525+de)*te,(.5+se+me)*ee,!1);return he.add(be),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ae,te,ee){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ee,.5*te,.5*ee)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ae,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ae,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Pn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Pn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.3);var de=(1-he)*te,me=(.5-se/2)*ee,we=(.5+se/2)*ee,be=new go.Geometry,Me=new go.PathFigure(0,me,!0);be.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,de,me)),Me.add(new go.PathSegment(go.PathSegment.Line,de,0)),Me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,de,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,de,we)),Me.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),be.spot1=new go.Spot(0,me/ee);var Ie=_e(0,we/ee,1,we/ee,de/te,1,1,.5,ce());return be.spot2=new go.Spot(Ie.x,Ie.y),De(Ie),be}),go.Shape.setFigureParameter("Arrow2",0,new Pn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Pn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ee/2);var de=te-he,me=(ee-se)/2,we=me+se,be=new go.Geometry,Me=new go.PathFigure(0,me,!0);be.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,de,me)),Me.add(new go.PathSegment(go.PathSegment.Line,de,0)),Me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,de,ee)),Me.add(new go.PathSegment(go.PathSegment.Line,de,we)),Me.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),be.spot1=new go.Spot(0,me/ee);var Ie=_e(0,we/ee,1,we/ee,de/te,1,1,.5,ce());return be.spot2=new go.Spot(Ie.x,Ie.y),De(Ie),be}),go.Shape.defineFigureGenerator("Chevron",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Pn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ee,de=(.5+he/2)*ee,me=new go.Geometry,we=new go.PathFigure(te,.5*ee,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var be=_e(0,.5,.3,0,0,se/ee,.1,se/ee,ce());return me.spot1=new go.Spot(be.x,be.y),be=_e(.7,1,1,.5,0,de/ee,1,de/ee,be),me.spot2=new go.Spot(be.x,be.y),De(be),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Pn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Pn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=40);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=100);var de=(ee-he)/2,me=de+he,we=(ee-se)/2,be=we+se;(he>ee||se>ee)&&(se>he?(he=he*ee/se,de=(ee-he)/2,me=de+he,we=0,be=ee):(de=0,me=ee,we=0,be=ee));var Me=new go.Geometry,Ie=new go.PathFigure(te,.5*ee,!0);Me.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,we)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,de)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,we).close());var ze=_e(0,.5,.3,we/ee,0,de/ee,1,de/ee,ce());return Me.spot1=new go.Spot(ze.x,ze.y),ze=_e(.7,be/ee,1,.5,0,me/ee,1,me/ee,ze),Me.spot2=new go.Spot(ze.x,ze.y),De(ze),Me}),go.Shape.setFigureParameter("IBeamArrow",0,new Pn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ee,de=(.5+he/2)*ee,me=new go.Geometry,we=new go.PathFigure(te,.5*ee,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,se/ee);var be=_e(.7,1,1,.5,0,de/ee,1,de/ee,ce());return me.spot2=new go.Spot(be.x,be.y),De(be),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Pn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Pn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=40);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=100);var de=(ee-he)/2,me=de+he,we=(ee-se)/2,be=we+se;(he>ee||se>ee)&&(se>he?(he=he*ee/se,de=(ee-he)/2,me=de+he,we=0,be=ee):(de=0,me=ee,we=0,be=ee));var Me=new go.Geometry,Ie=new go.PathFigure(te,.5*ee,!0);Me.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,we)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,we)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,de)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,we).close()),Me.spot1=new go.Spot(0,de/ee);var ze=_e(.7,be/ee,1,.5,0,me/ee,1,me/ee,ce());return Me.spot2=new go.Spot(ze.x,ze.y),De(ze),Me}),go.Shape.setFigureParameter("Pointer",0,new Pn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.1);var se=new go.Geometry,de=new go.PathFigure(te,.5*ee,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var me=_e(.2,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(me.x,me.y),De(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Pn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=new go.Geometry,de=new go.PathFigure(te,.5*ee,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),se.spot1=new go.Spot(he,.35);var me=_e(0,.65,1,.65,0,1,1,.5,ce());return se.spot2=new go.Spot(me.x,me.y),De(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Pn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ee,de=(.5+he/2)*ee,me=new go.Geometry,we=new go.PathFigure(te,.5*ee,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,0,de)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var be=_e(.7,1,1,.5,0,de/ee,1,de/ee,ce());return me.spot2=new go.Spot(be.x,be.y),De(be),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Pn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=50);var se=(ee-he)/2,de=se+he;he>ee&&(se=0,de=ee);var me=new go.Geometry,we=new go.PathFigure(te,.5*ee,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),we.add(new go.PathSegment(go.PathSegment.Line,0,de)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,se/ee);var be=_e(.7,1,1,.5,0,de/ee,1,de/ee,ce());return me.spot2=new go.Spot(be.x,be.y),De(be),me}),go.Shape.setFigureParameter("SquareArrow",0,new Pn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.7);var se=new go.Geometry,de=new go.PathFigure(te,.5*ee,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,he*te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=Be*.1,me=new go.PathFigure(0,.9*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+de)*ee,(.5+se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+de)*ee).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.9*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var de=new go.PathFigure(0,.9*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var de=new go.PathFigure(.5*te,ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.3*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var de=new go.PathFigure(0,.3*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var se=new go.Geometry,de=Be*.5,me=new go.PathFigure(0,he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Be*he,(.5-de)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+de)*te,0,1*te,Be*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ee,1*te,ee-Be*he,(.5+de)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-de)*te,1*ee,0,ee-Be*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var we=new go.PathFigure(te,he,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Be*he,(.5+de)*te,2*he)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-de)*te,2*he,0,2*he-Be*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var se=new go.Geometry,de=Be*.5,me=new go.PathFigure(0,ee-he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Be*he,(.5-de)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+de)*te,0,te,Be*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,ee-Be*he,(.5+de)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-de)*te,ee,0,ee-Be*he));var we=new go.PathFigure(0,ee-he,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*he,0,ee-he-Be*he,(.5-de)*te,ee-2*he)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-he,(.5+de)*te,ee-2*he,te,ee-he-Be*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,de=Be*.5,me=new go.PathFigure(he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Be*he,0,te,(.5-de)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+de)*ee,te-Be*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Be*he,ee,0,(.5+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-de)*ee,Be*he,0));var we=new go.PathFigure(he,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ee,he+Be*he,0,2*he,(.5-de)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,he,ee,2*he,(.5+de)*ee,he+Be*he,ee)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,de=Be*.5,me=new go.PathFigure(te-he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Be*he,0,te,(.5-de)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+de)*ee,te-Be*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Be*he,ee,0,(.5+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-de)*ee,Be*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var we=new go.PathFigure(te-he,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ee,te-he-Be*he,0,te-2*he,(.5-de)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te-2*he,(.5+de)*ee,te-he-Be*he,ee)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.25*te,.25*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(.25*te,.25*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.25*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(0,ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var de=new go.PathFigure(.5*te,0,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var de=new go.PathFigure(.5*te,0,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Ae,te,ee){var he=new go.Geometry,se=.2,de=.1,me=Be*se,we=Be*de,be=.5,Me=.1,Ie=new go.PathFigure(be*te,(Me+de)*ee,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be-se)*te,Me*ee,(be-me)*te,(Me+de)*ee,(be-se)*te,(Me+we)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-de)*ee,(be-se)*te,(Me-we)*ee,(be-me)*te,(Me-de)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be+se)*te,Me*ee,(be+me)*te,(Me-de)*ee,(be+se)*te,(Me-we)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me+de)*ee,(be+se)*te,(Me+we)*ee,(be+me)*te,(Me+de)*ee));var ze=.05,et=Be*ze;be=.05,Me=.25;var $e=new go.PathFigure(.5*te,.2*ee,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),be=.95,Me=.25,$e.add(new go.PathSegment(go.PathSegment.Bezier,(be+ze)*te,Me*ee,(be+et)*te,(Me-ze)*ee,(be+ze)*te,(Me-et)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),ze=.025,et=Be*ze,be=.825,Me=.35,$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-ze)*ee,(be+ze)*te,(Me-et)*ee,(be+et)*te,(Me-ze)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(be-ze)*te,Me*ee,(be-et)*te,(Me-ze)*ee,(be-ze)*te,(Me-et)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),ze=.05,et=Be*ze,be=.5,Me=.7,$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-ze)*ee,(be+ze)*te,(Me-et)*ee,(be+et)*te,(Me-ze)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(be-ze)*te,Me*ee,(be-et)*te,(Me-ze)*ee,(be-ze)*te,(Me-et)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),ze=.025,et=Be*ze,be=.175,Me=.35,$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-ze)*ee,(be+ze)*te,(Me-et)*ee,(be+et)*te,(Me-ze)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(be-ze)*te,Me*ee,(be-et)*te,(Me-ze)*ee,(be-ze)*te,(Me-et)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ze=.05,et=Be*ze,be=.05,Me=.25,$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-ze)*ee,(be-ze)*te,(Me-et)*ee,(be-et)*te,(Me-ze)*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new Pn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.2);var se=new go.Geometry,de=new go.PathFigure(te,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,he*ee)),de.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,.5*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var de=new go.PathFigure(.5*te,.5*ee,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,se*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ee)),he}),go.Shape.defineFigureGenerator("Database",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=Be*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+de)*ee,(.5+se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-de)*ee,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+se)*te,0,te,(.1-de)*ee));var we=new go.PathFigure(te,.1*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+de)*ee,(.5+se)*te,.2*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*te,.2*ee,0,(.1+de)*ee)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+de)*ee,(.5+se)*te,.3*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*te,.3*ee,0,(.2+de)*ee)),we.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+de)*ee,(.5+se)*te,.4*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-se)*te,.4*ee,0,(.3+de)*ee)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=Be*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+de)*ee,(.5+se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-se)*te,ee,0,(.9+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-de)*ee,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+se)*te,0,te,(.1-de)*ee));var we=new go.PathFigure(te,.1*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+de)*ee,(.5+se)*te,.2*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-se)*te,.2*ee,0,(.1+de)*ee)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+de)*ee,(.5+se)*te,.3*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-se)*te,.3*ee,0,(.2+de)*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var de=Be*.2,me=new go.PathFigure(0,.2*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-de)*ee,(.2-de)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ee,(.8+de)*te,0,te,(.2-de)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ee,te,(.8+de)*ee,(.8+de)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-de)*te,ee,0,(.8+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var we=new go.PathFigure(0,se*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var de=new go.PathFigure(0,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,se*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ee)),he}),go.Shape.defineFigureGenerator("Document",function(Ae,te,ee){var he=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var de=new go.PathFigure(0,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,se*ee)),me.add(new go.PathSegment(go.PathSegment.Move,te,se*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ee)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var de=new go.PathFigure(.1*te,.4*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(.75*te,0,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,.5*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var de=new go.PathFigure(te,.5*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ee));var me=new go.PathFigure(te,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,de=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var we=new go.PathFigure(se*te,0,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),we.add(new go.PathSegment(go.PathSegment.Move,0,de*ee)),we.add(new go.PathSegment(go.PathSegment.Line,te,de*ee)),he}),go.Shape.defineFigureGenerator("Junction",function(Ae,te,ee){var he=new go.Geometry,se=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,me=Be*.5,we=.5,be=new go.PathFigure(te,we*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,we*te,ee,te,(we+me)*ee,(we+me)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,we*ee,(we-me)*te,ee,0,(we+me)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,we*te,0,0,(we-me)*ee,(we-me)*te,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,we*ee,(we+me)*te,0,te,(we-me)*ee));var Me=new go.PathFigure((de+se)*te,(de+se)*ee,!1);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,de*te,de*ee)),Me.add(new go.PathSegment(go.PathSegment.Move,de*te,(de+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,(de+se)*te,de*ee)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Ae,te,ee){var he=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var de=new go.PathFigure(.1*te,0,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=.5,me=new go.PathFigure(.5*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*te,ee,0,(de+se)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ee,(de-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ee,(de+se)*te,0,te,(de-se)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*te,.9*ee,te,(de+se)*ee,(de+se)*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.7);var de=new go.PathFigure(0,0,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(0,0,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Ae,te,ee){var he=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var de=new go.PathFigure(.1*te,.2*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.1*te,.1*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var de=new go.PathFigure(.2*te,.1*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var de=1-se,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close());var we=new go.PathFigure(.5*se*te,se*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ee)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=.5,me=new go.PathFigure(te,de*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,de*te,ee,te,(de+se)*ee,(de+se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*te,ee,0,(de+se)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ee,(de-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ee,(de+se)*te,0,te,(de-se)*ee));var we=new go.PathFigure(te,.5*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Ae,te,ee){var he=new go.Geometry;ee=ee/.8;var se=new go.PathFigure(0,.7*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,de=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,de=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure((1-se)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),he}),go.Shape.defineFigureGenerator("Process",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var de=new go.PathFigure(0,.5*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(se*te,0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ee)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ae,te,ee){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=new go.PathFigure(0,0,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(.5+se)*te,0,te,(.5-se)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.5+se)*ee,(.5+se)*te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=.5,me=new go.PathFigure(te,de*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,de*te,ee,te,(de+se)*ee,(de+se)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ee,(de-se)*te,ee,0,(de+se)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ee,(de-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ee,(de+se)*te,0,te,(de-se)*ee));var we=new go.PathFigure(te,de*ee,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,de*ee));var be=new go.PathFigure(.8*te,.75*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ee)),he}),go.Shape.defineFigureGenerator("Ground",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),he}),go.Shape.defineFigureGenerator("Inverter",function(Ae,te,ee){var he=new go.Geometry,se=Be*.1,de=.1,me=.9,we=.5,be=new go.PathFigure(.8*te,.5*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee));var Me=new go.PathFigure((me+de)*te,we*ee,!0);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me+de)*te,(we+se)*ee,(me+se)*te,(we+de)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we+de)*ee,(me-de)*te,(we+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me-de)*te,(we-se)*ee,(me-se)*te,(we-de)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,(me+se)*te,(we-de)*ee,(me+de)*te,(we-se)*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=Be*.4,me=Be*.1,we=.1,be=.9,Me=.5,Ie=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+de)*ee,(.4+se)*te,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+se)*te,0,.8*te,(.5-de)*ee));var ze=new go.PathFigure((be+we)*te,Me*ee,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me+we)*ee,(be+we)*te,(Me+me)*ee,(be+me)*te,(Me+we)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(be-we)*te,Me*ee,(be-me)*te,(Me+we)*ee,(be-we)*te,(Me+me)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-we)*ee,(be-we)*te,(Me-me)*ee,(be-me)*te,(Me-we)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(be+we)*te,Me*ee,(be+me)*te,(Me-we)*ee,(be+we)*te,(Me-me)*ee)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*se,me=0,we=.5,be=new go.PathFigure(.8*te,.5*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+de)*te,(we-se)*ee,.7*te,(we-de)*ee)),se=.1,de=Be*.1,me=.9,we=.5;var Me=new go.PathFigure((me-se)*te,we*ee,!0);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*se,me=0,we=.5,be=new go.PathFigure(0,0,!0);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+de+de)*te,(we-se)*ee,.8*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(we+de)*ee,(me+de+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*se,me=.2,we=.5,be=new go.PathFigure(.1*te,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Me=new go.PathFigure(.8*te,.5*ee,!0);he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+de)*te,(we-se)*ee,.7*te,(we-de)*ee)),se=.1,de=Be*.1,me=.9,we=.5;var Ie=new go.PathFigure((me-se)*te,we*ee,!0);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*se,me=.2,we=.5,be=new go.PathFigure(.1*te,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Me=new go.PathFigure(.2*te,0,!0);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+de)*te,(we-se)*ee,.9*te,(we-de)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Resistor",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.5*ee,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Inductor",function(Ae,te,ee){var he=new go.Geometry,se=Be*.1,de=.1,me=.1,we=.5,be=new go.PathFigure((me-se*.5)*te,ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,0,(me-se)*te,ee,(me-de)*te,0)),me=.3,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+de)*te,0,(me+se)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,0,(me-se)*te,ee,(me-de)*te,0)),me=.5,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+de)*te,0,(me+se)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,0,(me-se)*te,ee,(me-de)*te,0)),me=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+de)*te,0,(me+se)*te,ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,0,(me-se)*te,ee,(me-de)*te,0)),me=.9,be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se*.5)*te,ee,(me+de)*te,0,(me+se)*te,ee)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ae,te,ee){var he=new go.Geometry,se=Be*.5,de=.5,me=.5,we=.5,be=new go.PathFigure((me-de)*te,we*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-de)*ee,(me-de)*te,(we-se)*ee,(me-se)*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,(me+se)*te,(we-de)*ee,(me+de)*te,(we-se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me+de)*te,(we+se)*ee,(me+se)*te,(we+de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we+de)*ee,(me-de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,(me-de+.1)*te,we*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+de-.1)*te,we*ee,me*te,(we-de)*ee,me*te,(we+de)*ee)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Diode",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Ae,te,ee){var he=new go.Geometry,se=te,de=ee;te=te*.38,ee=ee*.6;var me=Be*.8,we=.8,be=0,Me=.5,Ie=(se-te)/2,ze=(de-ee)/2,et=new go.PathFigure(be*te+Ie,(Me+we)*ee+ze,!0);he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(be-we)*te+Ie,Me*ee+ze,(be-me)*te+Ie,(Me+we)*ee+ze,(be-we)*te+Ie,(Me+me)*ee+ze)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me-we)*ee+ze,(be-we)*te+Ie,(Me-me)*ee+ze,(be-me)*te+Ie,(Me-we)*ee+ze)),et.add(new go.PathSegment(go.PathSegment.Bezier,(be-we+me*.5)*te+Ie,Me*ee+ze,be*te+Ie,(Me-we)*ee+ze,(be-we+me*.5)*te+Ie,(Me-me)*ee+ze)),et.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me+we)*ee+ze,(be-we+me*.5)*te+Ie,(Me+me)*ee+ze,be*te+Ie,(Me+we)*ee+ze).close()),me=Be*.4,we=.4,be=.2,Me=.5;var $e=new go.PathFigure(be*te+Ie,(Me+we)*ee+ze,!0);he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(be-we)*te+Ie,Me*ee+ze,(be-me)*te+Ie,(Me+we)*ee+ze,(be-we)*te+Ie,(Me+me)*ee+ze)),$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me-we)*ee+ze,(be-we)*te+Ie,(Me-me)*ee+ze,(be-me)*te+Ie,(Me-we)*ee+ze)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(be-we+me*.5)*te+Ie,Me*ee+ze,be*te+Ie,(Me-we)*ee+ze,(be-we+me*.5)*te+Ie,(Me-me)*ee+ze)),$e.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me+we)*ee+ze,(be-we+me*.5)*te+Ie,(Me+me)*ee+ze,be*te+Ie,(Me+we)*ee+ze).close()),me=Be*.2,we=.2,be=.5,Me=.5;var gt=new go.PathFigure((be-we)*te+Ie,Me*ee+ze,!0);he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me-we)*ee+ze,(be-we)*te+Ie,(Me-me)*ee+ze,(be-me)*te+Ie,(Me-we)*ee+ze)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(be+we)*te+Ie,Me*ee+ze,(be+me)*te+Ie,(Me-we)*ee+ze,(be+we)*te+Ie,(Me-me)*ee+ze)),gt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me+we)*ee+ze,(be+we)*te+Ie,(Me+me)*ee+ze,(be+me)*te+Ie,(Me+we)*ee+ze)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(be-we)*te+Ie,Me*ee+ze,(be-me)*te+Ie,(Me+we)*ee+ze,(be-we)*te+Ie,(Me+me)*ee+ze)),me=Be*.4,we=.4,be=.8,Me=.5;var je=new go.PathFigure(be*te+Ie,(Me-we)*ee+ze,!0);he.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+we)*te+Ie,Me*ee+ze,(be+me)*te+Ie,(Me-we)*ee+ze,(be+we)*te+Ie,(Me-me)*ee+ze)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me+we)*ee+ze,(be+we)*te+Ie,(Me+me)*ee+ze,(be+me)*te+Ie,(Me+we)*ee+ze)),je.add(new go.PathSegment(go.PathSegment.Bezier,(be+we-me*.5)*te+Ie,Me*ee+ze,be*te+Ie,(Me+we)*ee+ze,(be+we-me*.5)*te+Ie,(Me+me)*ee+ze)),je.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me-we)*ee+ze,(be+we-me*.5)*te+Ie,(Me-me)*ee+ze,be*te+Ie,(Me-we)*ee+ze).close()),me=Be*.8,we=.8,be=1,Me=.5;var Tt=new go.PathFigure(be*te+Ie,(Me-we)*ee+ze,!0);return he.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(be+we)*te+Ie,Me*ee+ze,(be+me)*te+Ie,(Me-we)*ee+ze,(be+we)*te+Ie,(Me-me)*ee+ze)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me+we)*ee+ze,(be+we)*te+Ie,(Me+me)*ee+ze,(be+me)*te+Ie,(Me+we)*ee+ze)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(be+we-me*.5)*te+Ie,Me*ee+ze,be*te+Ie,(Me+we)*ee+ze,(be+we-me*.5)*te+Ie,(Me+me)*ee+ze)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,be*te+Ie,(Me-we)*ee+ze,(be+we-me*.5)*te+Ie,(Me-me)*ee+ze,be*te+Ie,(Me-we)*ee+ze).close()),he}),go.Shape.defineFigureGenerator("Email",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,0,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Move,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Move,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var de=new go.PathFigure(.1*te,ee,!0,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var me=new go.PathFigure(.6*te,ee,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee).close());var we=new go.PathFigure(0,.5*ee,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),we.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),we.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Power",function(Ae,te,ee){var he=new go.Geometry,se=Be*.4,de=.4,me=.5,we=.5,be=ce(),Me=ce(),Ie=ce(),ze=ce();Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.5,be,be,Me,Ie,ze);var et=ve(Me.x,Me.y),$e=new go.PathFigure(Me.x*te,Me.y*ee,!0);he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,Ie.x*te,Ie.y*ee,ze.x*te,ze.y*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me+de)*te,(we+se)*ee,(me+se)*te,(we+de)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,(me-se)*te,(we+de)*ee,(me-de)*te,(we+se)*ee)),Ct(me-de,we,me-de,we-se,me-se,we-de,me,we-de,.5,Ie,ze,Me,be,be),$e.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ee,Ie.x*te,Ie.y*ee,ze.x*te,ze.y*ee)),se=Be*.3,de=.3,Ct(me-de,we,me-de,we-se,me-se,we-de,me,we-de,.5,Ie,ze,Me,be,be),$e.add(new go.PathSegment(go.PathSegment.Line,Me.x*te,Me.y*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(me-de)*te,we*ee,ze.x*te,ze.y*ee,Ie.x*te,Ie.y*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+de)*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(me+de)*te,we*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Ct(me,we-de,me+se,we-de,me+de,we-se,me+de,we,.5,be,be,Me,Ie,ze),$e.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ee,ze.x*te,ze.y*ee,Ie.x*te,Ie.y*ee).close());var $e=new go.PathFigure(.45*te,0,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),$e.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),De(be),De(Me),De(Ie),De(ze),De(et),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function de(me,we,be){me.add(new go.PathSegment(go.PathSegment.Move,(.3+we)*te,(.8+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+we)*te,(.5+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+we)*te,(.5+be)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+we)*te,(.8+be)*ee).close())}return de(se,0,0),de(se,.4,0),de(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.1*te,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=0,me=0,we=se*Be,be=.4*Math.SQRT2/2+.5,Me=.5-.5*Math.SQRT2/2,Ie=1,ze=.5,et=.5,$e=0,gt=new go.PathFigure(be*te,(1-Me)*ee,!1);return he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,ze*ee,Ie*te,.7*ee,Ie*te,ze*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(et+de)*te,($e+de)*ee,(.5+se+de)*te,(.5-we+de)*ee,(.5+we+de)*te,(.5-se+de)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+me)*ee,(.5-we+de)*te,(.5-se+me)*ee,(.5-se+de)*te,(.5-we+me)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*te,.9*ee,(.5-se+de)*te,(.5+we+me)*ee,(.5-we+de)*te,.9*ee)),gt.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*te,.8*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*te,.9*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,(.2+de)*te,.95*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var de=new go.PathFigure(te,ee,!1);he.add(de);var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.2*te,.35*ee,.3*te,.35*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.7*te,.65*ee,.8*te,.65*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var se=new go.PathFigure(0,.2*ee,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.7*te,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var de=new go.PathFigure(.45*te,.73*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var de=new go.PathFigure(.335*te,(1-.555)*ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var me=.5-.285,we=.5,be=me,Me=Math.PI/4,Ie=4*(1-Math.cos(Me))/(3*Math.sin(Me)),ze=Ie*.5,et=me,$e=me,gt=Ie*et,je=Ie*$e;de.add(new go.PathSegment(go.PathSegment.Bezier,(we-et)*te,be*ee,(we-(gt+et)/2)*te,(be+($e+je)/2)*ee,(we-et)*te,(be+je)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(be-$e)*ee,(we-et)*te,(be-je)*ee,(we-gt)*te,(be-$e)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,(we+et)*te,be*ee,(we+gt)*te,(be-$e)*ee,(we+et)*te,(be-je)*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(we+et)*te,(be+je)*ee,(we+(gt+et)/2)*te,(be+($e+je)/2)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var Tt=new go.PathFigure(.2*te,ee,!1);he.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var Qe=new go.PathFigure(.8*te,ee,!1);return he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var de=new go.PathFigure(.2*te,.2*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var de=new go.PathFigure(te,ee,!1);he.add(de);var me=new go.PathFigure(.1*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.05*te,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var de=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*te,.875*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,de*te,de*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),he}),go.Shape.defineFigureGenerator("Recycle",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.45*te,.95*ee,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var de=new go.PathFigure(.475*te,.2*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var me=new go.PathFigure(.675*te,.575*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ee,te,.8*ee,te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*.5,me=new go.PathFigure(te,se*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ee,te,(se+de)*ee,(se+de)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-de)*te,ee,0,(se+de)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-de)*ee,(se-de)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ee,(se+de)*te,0,te,(se-de)*ee));var we=new go.PathFigure(se*te,0,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ee)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,ee)),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ee)),we.add(new go.PathSegment(go.PathSegment.Move,0,se*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ee)),we.add(new go.PathSegment(go.PathSegment.Move,te,se*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ee)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Package",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.15*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var de=new go.PathFigure(0,.15*ee,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Component",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var de=new go.PathFigure(0,.2*ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var me=new go.PathFigure(0,.6*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.15*te,.6*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var de=new go.PathFigure(.15*te,.6*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(te,.8*ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var me=.1,we=Be*.1,be=.2,Me=.9,Ie=new go.PathFigure((be-me)*te,Me*ee,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-me)*ee,(be-me)*te,(Me-we)*ee,(be-we)*te,(Me-me)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*te,Me*ee,(be+we)*te,(Me-me)*ee,(be+me)*te,(Me-we)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me+me)*ee,(be+me)*te,(Me+we)*ee,(be+we)*te,(Me+me)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*te,Me*ee,(be-we)*te,(Me+me)*ee,(be-me)*te,(Me+we)*ee).close()),me=.1,we=Be*.1,be=.8,Me=.9;var ze=new go.PathFigure((be-me)*te,Me*ee,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me-me)*ee,(be-me)*te,(Me-we)*ee,(be-we)*te,(Me-me)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*te,Me*ee,(be+we)*te,(Me-me)*ee,(be+me)*te,(Me-we)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Me+me)*ee,(be+me)*te,(Me+we)*ee,(be+we)*te,(Me+me)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*te,Me*ee,(be-we)*te,(Me+me)*ee,(be-me)*te,(Me+we)*ee).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),he}),go.Shape.defineFigureGenerator("Forklift",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var de=new go.PathFigure(0,.5*ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var me=new go.PathFigure(.5*te,.8*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee));var we=new go.PathFigure(.5*te,.7*ee,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var be=.1,Me=Be*.1,Ie=.1,ze=.9,et=new go.PathFigure((Ie-be)*te,ze*ee,!0);he.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(ze-be)*ee,(Ie-be)*te,(ze-Me)*ee,(Ie-Me)*te,(ze-be)*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+be)*te,ze*ee,(Ie+Me)*te,(ze-be)*ee,(Ie+be)*te,(ze-Me)*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(ze+be)*ee,(Ie+be)*te,(ze+Me)*ee,(Ie+Me)*te,(ze+be)*ee)),et.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-be)*te,ze*ee,(Ie-Me)*te,(ze+be)*ee,(Ie-be)*te,(ze+Me)*ee)),be=.1,Me=Be*.1,Ie=.4,ze=.9;var $e=new go.PathFigure((Ie-be)*te,ze*ee,!0);return he.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(ze-be)*ee,(Ie-be)*te,(ze-Me)*ee,(Ie-Me)*te,(ze-be)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+be)*te,ze*ee,(Ie+Me)*te,(ze-be)*ee,(Ie+be)*te,(ze-Me)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(ze+be)*ee,(Ie+be)*te,(ze+Me)*ee,(Ie+Me)*te,(ze+be)*ee)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-be)*te,ze*ee,(Ie-Me)*te,(ze+be)*ee,(Ie-be)*te,(ze+Me)*ee)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.1*te,.4*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var de=new go.PathFigure(.45*te,.7*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var me=new go.PathFigure(.55*te,.4*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ee).close());var Ie=.05,ze=Be*.05,et=.175,$e=.95,we=new go.PathFigure((et-Ie)*te,$e*ee,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e-Ie)*ee,(et-Ie)*te,($e-ze)*ee,(et-ze)*te,($e-Ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(et+Ie)*te,$e*ee,(et+ze)*te,($e-Ie)*ee,(et+Ie)*te,($e-ze)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e+Ie)*ee,(et+Ie)*te,($e+ze)*ee,(et+ze)*te,($e+Ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(et-Ie)*te,$e*ee,(et-ze)*te,($e+Ie)*ee,(et-Ie)*te,($e+ze)*ee));var Ie=.05,ze=Be*.05,et=.375,$e=.95,be=new go.PathFigure((et-Ie)*te,$e*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e-Ie)*ee,(et-Ie)*te,($e-ze)*ee,(et-ze)*te,($e-Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(et+Ie)*te,$e*ee,(et+ze)*te,($e-Ie)*ee,(et+Ie)*te,($e-ze)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e+Ie)*ee,(et+Ie)*te,($e+ze)*ee,(et+ze)*te,($e+Ie)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(et-Ie)*te,$e*ee,(et-ze)*te,($e+Ie)*ee,(et-Ie)*te,($e+ze)*ee));var Ie=.05,ze=Be*.05,et=.625,$e=.95,Me=new go.PathFigure((et-Ie)*te,$e*ee,!0);he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e-Ie)*ee,(et-Ie)*te,($e-ze)*ee,(et-ze)*te,($e-Ie)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(et+Ie)*te,$e*ee,(et+ze)*te,($e-Ie)*ee,(et+Ie)*te,($e-ze)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e+Ie)*ee,(et+Ie)*te,($e+ze)*ee,(et+ze)*te,($e+Ie)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(et-Ie)*te,$e*ee,(et-ze)*te,($e+Ie)*ee,(et-Ie)*te,($e+ze)*ee));var Ie=.05,ze=Be*.05,et=.825,$e=.95,gt=new go.PathFigure((et-Ie)*te,$e*ee,!0);he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e-Ie)*ee,(et-Ie)*te,($e-ze)*ee,(et-ze)*te,($e-Ie)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(et+Ie)*te,$e*ee,(et+ze)*te,($e-Ie)*ee,(et+Ie)*te,($e-ze)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et*te,($e+Ie)*ee,(et+Ie)*te,($e+ze)*ee,(et+ze)*te,($e+Ie)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(et-Ie)*te,$e*ee,(et-ze)*te,($e+Ie)*ee,(et-Ie)*te,($e+ze)*ee).close());var je=new go.PathFigure(0,ee,!1);return he.add(je),je.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(.15*te,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee).close());var we=.05,be=Be*.05,Me=.35,Ie=.775,ze=new go.PathFigure((Me-we)*te,Ie*ee,!0);return he.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(Ie-we)*ee,(Me-we)*te,(Ie-be)*ee,(Me-be)*te,(Ie-we)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Me+we)*te,Ie*ee,(Me+be)*te,(Ie-we)*ee,(Me+we)*te,(Ie-be)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(Ie+we)*ee,(Me+we)*te,(Ie+be)*ee,(Me+be)*te,(Ie+we)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Me-we)*te,Ie*ee,(Me-be)*te,(Ie+we)*ee,(Me-we)*te,(Ie+be)*ee).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.75*ee,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Globe",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),he}),go.Shape.defineFigureGenerator("Wave",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.25*ee,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Operator",function(Ae,te,ee){var he=new go.Geometry,se=.3,de=Be*.3,me=.5,we=.7,be=new go.PathFigure((me-se)*te,we*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee));var Me=new go.PathFigure(0,.7*ee,!1);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ee,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var de=new go.PathFigure(0,.6*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),de.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),he}),go.Shape.defineFigureGenerator("Delete",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*.5,me=.5,we=.5,be=new go.PathFigure((me-se)*te,we*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee));var Me=new go.PathFigure(.15*te,.5*ee,!1);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Flag",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.1*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),he}),go.Shape.defineFigureGenerator("Help",function(Ae,te,ee){var he=new go.Geometry,se=.5,de=Be*.5,me=.5,we=.5,be=new go.PathFigure((me-se)*te,we*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee).close()),se=.05,de=Be*.05,me=.5,we=.8;var Me=new go.PathFigure((me-se)*te,we*ee,!1);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ee,(me-se)*te,(we-de)*ee,(me-de)*te,(we-se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ee,(me+de)*te,(we-se)*ee,(me+se)*te,(we-de)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ee,(me+se)*te,(we+de)*ee,(me+de)*te,(we+se)*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ee,(me-de)*te,(we+se)*ee,(me-se)*te,(we+de)*ee).close()),Me.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),Me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ee,.4*te,.2*ee,.3*te,.25*ee)),he}),go.Shape.defineFigureGenerator("Location",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ee,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ee,.5*te,0,.025*te,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var de=new go.PathFigure(.2*te,.5*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var de=new go.PathFigure(.2*te,.5*ee,!1);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),he}),go.Shape.defineFigureGenerator("Gear",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ee,.79840625*te,.39915625*ee,.7834375*te,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ee,.64228125*te,.2188125*ee,.603875*te,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ee,.39759375*te,.20190625*ee,.36053125*te,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ee,.21765625*te,.36059375*ee,.201875*te,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ee,.20221875*te,.603875*ee,.21884375*te,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ee,.36353125*te,.78340625*ee,.3991875*te,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ee,.602375*te,.79809375*ee,.63946875*te,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ee,.78234375*te,.63940625*ee,.798125*te,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.5*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),he}),go.Shape.defineFigureGenerator("Map",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,.2*ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),he}),go.Shape.defineFigureGenerator("Eject",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ee)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var de=new go.PathFigure(0,ee*.6,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*1,ee*1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var de=new go.PathFigure(.126*te,.85*ee,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),de.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var me=new go.PathFigure(.402*te,.85*ee,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ee).close());var we=new go.PathFigure(.678*te,.85*ee,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var be=new go.PathFigure(.5*te,.1*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,ee*1,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var de=new go.PathFigure(te*.204,ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),de.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),de.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var me=new go.PathFigure(te*.408,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ee*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*1).close());var we=new go.PathFigure(te*.612,ee,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var be=new go.PathFigure(te*.816,ee,!0);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var de=new go.PathFigure(te*.055,.07*ee,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),de.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var me=new go.PathFigure(te*.055,.13*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.16).close());var we=new go.PathFigure(te*.055,.18*ee,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),we.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var be=new go.PathFigure(te*1,0,!0);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),be.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),be.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(.55*te,ee,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),he}),go.Shape.defineFigureGenerator("Key",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*1,ee*.5,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var de=new go.PathFigure(0,0,!1);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),de.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),de.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var me=new go.PathFigure(te*.11,ee*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ee*.8).close());var we=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var be=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ae,te,ee){var he=new go.Geometry,se=8,de=se*Be,me=new go.PathFigure(se,0,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ee,te,ee-de,te-de,ee)),me.add(new go.PathSegment(go.PathSegment.Line,se,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,de,ee,0,ee-de)),me.add(new go.PathSegment(go.PathSegment.Line,0,se)),me.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,de,de,0).close());var we=new go.PathFigure(te*.83,0,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var be=new go.PathFigure(te*.83,ee*1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var Me=new go.PathFigure(te*.78,ee*.05,!1);return he.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.78,ee*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ae,te,ee){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ee/3);var se=he*Be,de=ee*.8,me=new go.Geometry,we=new go.PathFigure(he,0,!0);return me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),we.add(new go.PathSegment(go.PathSegment.Line,te,de-he)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-he,de,te,de-se,te-se,de)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,de)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),we.add(new go.PathSegment(go.PathSegment.Line,te*.55,de)),we.add(new go.PathSegment(go.PathSegment.Line,he,de)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,de-he,se,de,0,de-se)),we.add(new go.PathSegment(go.PathSegment.Line,0,he)),we.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(me.spot1=new go.Spot(0,0,se,se),me.spot2=new go.Spot(1,.8,-se,-se)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*0,ee*.45,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var de=new go.PathFigure(te*1,ee*.55,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),de.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),de.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),de.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),de.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Ae,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*0,ee*.1,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var de=new go.PathFigure(te*.1,ee*.2,!0);he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),de.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),de.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),de.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var me=new go.PathFigure(te*.28,ee*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ee*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Ae,te,ee){var he=new go.Geometry,se=15,de=se*Be,me=new go.PathFigure(te*.62,ee*.475,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ee,te,ee-de,te-de,ee)),me.add(new go.PathSegment(go.PathSegment.Line,se,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-se,de,ee,0,ee-de)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ee*.03).close()),de>1?(he.spot1=new go.Spot(0,0,de,de),he.spot2=new go.Spot(1,1,-de,-de)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);he.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-de)).close());var me=new go.PathFigure(te*.4,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);he.add(se);var de=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-de)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*0,ee*1,!0);he.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-de)).close());var me=new go.PathFigure(te*.5,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ee*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*.15,ee*0,!1);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*.15,ee*0,!1);he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var de=new go.PathFigure(te*.235,ee*.28,!0);return he.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),de.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),de.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Ae,te,ee){var he=new go.Geometry,se=new go.PathFigure(te*.5,ee*0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.25).close()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727: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 Pn={},an="5.0",ve={},ce=null,De=!1,_e=!1,Ct=null,Ze=!1,Ke=null,Be=null,mt=0;mt4?parseFloat(Bt):5};Pn.setHTML5Codebase=function(Bt,Gt){Be=Bt,kt(Bt,Gt)},Pn.setJavaCodebase=Pn.setJavaCodebaseVersion=Pn.isCompiledInstalled=Pn.setPreCompiledScriptPath=Pn.setPreCompiledResourcePath=function(){},Pn.setHTML5CodebaseVersion=function(Bt,Gt){var en=parseFloat(Bt);if(en!==NaN&&en<5){console.log("The GeoGebra HTML5 codebase version "+en+" is deprecated. Using version latest instead.");return}Ke=Bt,Ge(Bt,Gt)},Pn.getHTML5CodebaseVersion=function(){return Ae},Pn.getParameters=function(){return ve},Pn.setFontsCSSURL=function(Bt){me=Bt},Pn.setGiacJSURL=function(Bt){},Pn.setJNLPFile=function(Bt){He=Bt},Pn.setJNLPBaseDir=function(Bt){},Pn.inject=function(){function Bt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Gt="auto",en=ve.id,Bn,rn=!1,Cn=0;Cn=5)return!0;var Bt=Pn.getAppletObject();return Bt&&typeof Bt.recalculateEnvironments=="function"?(Bt.recalculateEnvironments(),!0):!1},Pn.startAnimation=function(){var Bt=Pn.getAppletObject();return Bt&&typeof Bt.startAnimation=="function"?(Bt.startAnimation(),!0):!1},Pn.stopAnimation=function(){var Bt=Pn.getAppletObject();return Bt&&typeof Bt.stopAnimation=="function"?(Bt.stopAnimation(),!0):!1},Pn.getAppletObject=function(){var Bt=ve.id!==void 0?ve.id:"ggbApplet";return window[Bt]},Pn.resize=function(){};var gt=function(Bt,Gt,en){var Bn=document.createElement("param");Bn.setAttribute("name",Gt),Bn.setAttribute("value",en),Bt.appendChild(Bn)},je=function(Bt){return Bt&&Bt!=="false"},Tt=function(Bt,Gt,en){be(Ae)<=4.2&&(en=!0);var Bn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ae||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Bn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var rn=document.createElement("div");rn.classList.add("appletParameters","notranslate");var Cn=Gt.width,ft=Gt.height;if(Gt.disableAutoScale=Gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Gt.disableAutoScale,Gt.width!==void 0)if(be(Ae)<=4.4)je(Gt.showToolBar)&&(Gt.height-=7),je(Gt.showAlgebraInput)&&(Gt.height-=37),Gt.width<605&&je(Gt.showToolBar)&&(Gt.width=605,Cn=605);else{var En=100;(je(Gt.showToolBar)||je(Gt.showMenuBar))&&(Gt.hasOwnProperty("customToolBar")&&(Gt.customToolbar=Gt.customToolBar),En=je(Gt.showMenuBar)?245:155),Cn=5?(Gt.appletOnLoad=function(lt){var Dt=Bt.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ce),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(lt)},Pe||Ce.appendChild(Ne)):rn.appendChild(Ne),Ce.appendChild(rn),Pe||Bt.appendChild(Ce),setTimeout(function(){Pn.resize()},1)}else{var ke=document.createElement("div");ke.className="applet_scaler",ke.style.position="relative",ke.style.display="block",ke.appendChild(rn),Bt.appendChild(ke),Gt.appletOnLoad=function(lt){Pn.resize(),Re(lt)}}function Se(lt,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,Dt.appletOnLoad):renderGGBElement(lt),ln("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function nt(lt,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(un){Se(un.article,un.params)}),html5AppletsToProcess=null)},be(Ae)<5&&(lt.className+=" geogebraweb")):Se(lt,Dt)}if(Bn){scriptLoadStarted=!0;for(var Pt=0;Pt0?(Vn.remove(),Ce.attr("id","fullscreencontent").show(),jQuery(Re).append(Ce),window.dispatchEvent(new Event("resize"))):Tt(Vn,Gt,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else dt=Bn,Tt(Bt,Gt,!1);if(!window.GGBT_wsf_view)for(ft=0;ftBt/4*3&&(Vn=Bt/4*3),Re=Vn/5.8,En.setAttribute("src",se),En.setAttribute("width",Vn),En.setAttribute("height",Re);var Ce=(Bt-Vn)/2,Pe=(Gt-Re)/2;En.style.left=Ce+"px",En.style.top=Pe+"px",rn.appendChild(En)}}return rn.appendChild(ft),rn},Yt=function(Bt){return Bt=Bt.toLowerCase(),Bt==="html5"||Bt==="screenshot"?Bt:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(Bt,Gt){if(Ae=Bt,Gt){kt(Ae,!0);return}var en=!De;if(en){var Bn=be(Ae);!isNaN(Bn)&&Bn<4.4&&(en=!1)}var rn,Cn;window.location.protocol.substr(0,4)==="http"?rn=window.location.protocol:rn="http:";var ft=Ae.indexOf("//");ft>0?Cn=Ae:ft===0?Cn=rn+Ae:Cn="https://www.geogebra.org/apps/5.2.814.0/";for(var En in ut)if(Ae.slice(ut[En].length*-1)===ut[En]||Ae.slice((ut[En].length+1)*-1)===ut[En]+"/"){kt(Cn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&en&&!ce.is3D&&!ce.AV&&!ce.SV&&!ce.CV&&!ce.EV2&&!ce.CP&&!ce.PC&&!ce.DA&&!ce.FI&&!ce.PV&&!je(ve.showToolBar)&&!je(ve.showMenuBar)&&!je(ve.showAlgebraInput)&&!je(ve.enableRightClick)&&(!ve.appName||ve.appName=="classic")?Cn+="webSimple/":Cn+="web3d/",kt(Cn,!1)},kt=function(Bt,Gt){if(Bt.requirejs){Et=Bt;return}Bt.slice(-1)!=="/"&&(Bt+="/"),Et=Bt,Gt===null&&(Gt=Bt.indexOf("http")===-1),ht=Gt,te="web.nocache.js",ee=!1;var en=Et.split("/");en.length>1&&(!Gt&&en[en.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):ut.indexOf(en[en.length-2])>=0&&(te=en[en.length-2]+".nocache.js")),en=Bt.split("/"),Ae=en[en.length-3],Ae.substr(0,4)==="test"?Ae=Ae.substr(4,1)+"."+Ae.substr(5,1):(Ae.substr(0,3)==="war"||Ae.substr(0,4)==="beta")&&(Ae="5.0");var Bn=parseFloat(Ae);Bn!==NaN&&Bn<5&&Bt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bn+" is deprecated. Using version latest instead."),Ge("5.0",Gt))},ln=function(Bt,Gt){window.console&&window.console.log&&(!Gt||typeof Gt.showLogging=="undefined"||Gt.showLogging&&Gt.showLogging!=="false")&&console.log(Bt)};ve.material_id!==void 0?ze(sn):sn();function sn(){var Bt=an;Ke!==null?Bt=Ke:parseFloat(Bt)<5&&(Bt="5.0"),Ge(Bt,!1),Be!==null&&kt(Be,ht),Ze=!0}return Pn},GGBAppletUtils=function(){"use strict";function Pn(){return window.GGBT_wsf_edit!==void 0}function an(Ze,Ke){Ke!=1?(Ze.style.transformOrigin="0% 0% 0px",Ze.style.webkitTransformOrigin="0% 0% 0px",Ze.style.transform="scale("+Ke+","+Ke+")",Ze.style.webkitTransform="scale("+Ke+","+Ke+")",Ze.style.maxWidth="initial",Ze.querySelector(".ggb_preview")!==null&&(Ze.querySelector(".ggb_preview").style.maxWidth="initial"),Ze.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ze.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ze.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ze.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ze.style.transform="none",Ze.style.webkitTransform="none")}function ve(Ze,Ke,Be,mt,ct,He){var Et=null;if(He!=null&&He!="")for(var ht=Ze.parentNode;ht!=null;)if((" "+ht.className+" ").indexOf(" "+He+" ")>-1){Et=ht;break}else ht=ht.parentNode;var dt=0,Ae=0,te=0,ee=0,he=0,se=0,de=0;if(Et)dt=Et.offsetWidth,Ae=Math.max(mt?Et.offsetWidth:0,Et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),te=dt):(dt=window.innerWidth,Ae=window.innerHeight,te=window.innerWidth),Ze){var me=Ze.getBoundingClientRect();me.left>0&&me.left<=dt&&(ct===void 0||!ct)&&(document.dir==="rtl"?(he=dt-me.width-me.left,se=te<=480?10:30):(se=me.left,he=te<=480?10:30),ee=se+he)}if(Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var we=Ze.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,de=40)}}return Ze&&((Be===void 0||!Be)&&Ke>0&&Ke+ee1&&(He=!0)),Ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(Ze.hasOwnProperty("disableAutoScale")&&Ze.disableAutoScale))ct=ce(Ze,Ke,He,Be,Ze.scaleContainerClass);else return mt;return He&&(!Ze.hasOwnProperty("scale")||mt===1)?ct:Math.min(mt,ct)}function _e(Ze){var Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Be=Math.min(window.innerHeight,document.documentElement.clientHeight),mt=Ze.getBoundingClientRect(),ct=(Ke-mt.width)/2,He=(Be-mt.height)/2;He<0&&(He=0),Ze.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ct<40?Ze.style.left="40px":Ze.style.left=ct+"px",Ze.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?Ze.style.top="40px":Ze.style.top=He+"px",Ze.style.left=ct+"px")}function Ct(Ze,Ke){var Be=Ze.querySelector(".appletParameters");if(Be){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ke.id!==Be.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ze)}if(Be.parentElement&&/fullscreen/.test(Be.parentElement.className))return;var mt=De(Ke,Ze);Pn()&&Be.setAttribute("data-param-scale",mt);for(var ct=null,He=0;He=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(Pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Pn){var an=c[Pn];return an==null?null:an},r=d,webModule.__errFn=e}function B(){function Pn(Ze){var Ke=Ze.lastIndexOf(rb);Ke==-1&&(Ke=Ze.length);var Be=Ze.indexOf(sb);Be==-1&&(Be=Ze.length);var mt=Ze.lastIndexOf(tb,Math.min(Be,Ke));return mt>=O?Ze.substring(O,mt+P):W}function an(Ze){if(!Ze.match(/^\w+:\/\//)){var Ke=o.createElement(ub);Ke.src=Ze+vb,Ze=Pn(Ke.src)}return Ze}function ve(){var Ze=__gwt_getMetaProperty(wb);return Ze!=null?Ze:W}function ce(){for(var Ze=o.getElementsByTagName(_),Ke=O;KeO?Ze[Ze.length-P].href:W}function _e(){var Ze=o.location;return Ze.href==Ze.protocol+zb+Ze.host+Ze.pathname+Ze.search+Ze.hash}var Ct=ve();return Ct==W&&(Ct=ce()),Ct==W&&(Ct=De()),Ct==W&&_e()&&(Ct=Pn(o.location.href)),Ct=an(Ct),Ct}function C(Pn){return Pn.match(/^\//)||Pn.match(/^[a-zA-Z]+:\/\//)?Pn:webModule.__moduleBase+Pn}function D(){var Pn=[],an=O,ve=[],ce=[];function De(Ze){var Ke=ce[Ze](),Be=ve[Ze];if(Ke in Be)return Ke;var mt=[];for(var ct in Be)mt[Be[ct]]=ct;throw r&&r(Ze,mt,Ke),null}if(__gwt_isKnownPropertyValue=function(Ze,Ke){return Ke in ve[Ze]},webModule.__getPropMap=function(){var Ze={};for(var Ke in ve)ve.hasOwnProperty(Ke)&&(Ze[Ke]=De(Ke));return Ze},webModule.__computePropValue=De,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var Ct=_e.indexOf(Db);Ct!=-1&&(an=parseInt(_e.substring(Ct+P),$),_e=_e.substring(O,Ct))}catch(Ze){}return webModule.__softPermutationId=an,C(_e+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})()},77903:function(Pn,an,ve){"use strict";ve.d(an,{Ax:function(){return Ct},Ds:function(){return Ze},KI:function(){return Be},SI:function(){return _e},f1:function(){return De}});var ce=ve(3294);function De(mt){let ct=!0;if(mt.length>0){for(let He=0;Heee in te?_e(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,He=(te,ee)=>{for(var he in ee||(ee={}))Be.call(ee,he)&&ct(te,he,ee[he]);if(Ke)for(var he of Ke(ee))mt.call(ee,he)&&ct(te,he,ee[he]);return te},Et=(te,ee)=>Ct(te,Ze(ee)),ht=(te,ee)=>{var he={};for(var se in te)Be.call(te,se)&&ee.indexOf(se)<0&&(he[se]=te[se]);if(te!=null&&Ke)for(var se of Ke(te))ee.indexOf(se)<0&&mt.call(te,se)&&(he[se]=te[se]);return he},dt=(te,ee,he)=>new Promise((se,de)=>{var me=Me=>{try{be(he.next(Me))}catch(Ie){de(Ie)}},we=Me=>{try{be(he.throw(Me))}catch(Ie){de(Ie)}},be=Me=>Me.done?se(Me.value):Promise.resolve(Me.value).then(me,we);be((he=he.apply(te,ee)).next())});const Ae=te=>{var ee=te,{children:he}=ee,se=ht(ee,["children"]);const[de,me]=(0,De.useState)(!1);return De.createElement(ce.ZP,Et(He({},se),{loading:de,onClick:we=>dt(void 0,null,function*(){try{me(!0),yield se.onClick(we),me(!1)}catch(be){console.error(be),me(!1)}})}),he)}},59155:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return dt}});var ce=ve(59301),De=ve(8591),_e=ve(92832),Ct={codeBox:"codeBox___WpkVl"},Ze=ve(92310),Ke=ve.n(Ze),Be=Object.defineProperty,mt=(Ae,te,ee)=>te in Ae?Be(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ae[te]=ee,ct=(Ae,te,ee)=>mt(Ae,typeof te!="symbol"?te+"":te,ee),He=(Ae,te,ee)=>new Promise((he,se)=>{var de=be=>{try{we(ee.next(be))}catch(Me){se(Me)}},me=be=>{try{we(ee.throw(be))}catch(Me){se(Me)}},we=be=>be.done?he(be.value):Promise.resolve(be.value).then(de,me);we((ee=ee.apply(Ae,te)).next())});class Et extends ce.Component{constructor(te){super(te),ct(this,"canvas"),ct(this,"randomNum",(ee,he)=>Math.floor(Math.random()*(he-ee)+ee)),ct(this,"drawPic",()=>{this.randomCode()}),ct(this,"reloadPic",()=>{this.drawPic()}),ct(this,"changeCode",ee=>{console.log(ee.target.value,222),this.setState({value:ee.target.value,showError:!1})}),ct(this,"onVerify",()=>{let ee;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(ee=!0,De.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(ee=!0,De.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(ee=!1),this.setState({showError:ee}),ee}),this.canvas=ce.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(te,ee){const he=this.randomNum(te,ee),se=this.randomNum(te,ee),de=this.randomNum(te,ee);return`rgb(${he}, ${se}, ${de})`}drawText(te,ee,he){te.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const se=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);te.font=se+"px SimHei";const de=10,me=(this.state.contentWidth-40)/(this.state.code.length-1);let we=de;he>0&&(we=de+he*me);let be=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);se>40&&(be=40);const Me=this.randomNum(-10,10);te.translate(we,be),te.rotate(Me*Math.PI/180),te.fillText(ee,0,0),te.rotate(-Me*Math.PI/180),te.translate(-we,-be)}drawLine(te){for(let ee=0;ee<1;ee++)te.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),te.beginPath(),te.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.stroke()}drawDot(te){for(let ee=0;ee<100;ee++)te.fillStyle=this.randomColor(0,255),te.beginPath(),te.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),te.fill()}randomCode(){let te="";const ee="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let he=0;he{const se=this.canvas.current.getContext("2d");se.textBaseline="bottom",se.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),se.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let de=0;de{let ee;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,te),React.createElement(Et,{ref:he=>ee=he})),onOk:()=>He(void 0,null,function*(){if(ee.onVerify())return Promise.reject();Ae()})})};var dt=Et},10672:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ct}});var ce=ve(59301),De=ve(92832),_e=ve(12563),Ct=ve(8591),Ze={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Ke=ve(62772);const{TextArea:Be}=De.default;class mt extends ce.Component{constructor(Et){super(Et),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Et,onAnswerChange:ht,addChildAnswer:dt,exerciseIsPublish:Ae,answers:te,activeOptionErrorIndex:ee,flex:he="0 0 1000px"}=this.props;console.log("----",te);let{inputVisible:se,EditInputIndex:de}=this.state;return ce.createElement("div",{className:Ze.flex},ce.createElement("div",{className:`${Ze.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Et+1,"):"),ce.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},te==null?void 0:te.map((me,we)=>ce.createElement(ce.Fragment,null,de!==we?(me==null?void 0:me.length)>0?ce.createElement(_e.default,{className:"edit-tag",key:me,closable:!((te==null?void 0:te.length)===1&&we===0),onClose:be=>{be.preventDefault(),(te==null?void 0:te.length)===1&&we===0?this.props.deleteChildAnswermain(Et,we):this.props.deleteChildAnswer(Et,we)}},ce.createElement("span",{onDoubleClick:be=>{this.setState({EditInputIndex:we}),be.preventDefault()}},me)):ce.createElement(De.default,{defaultValue:me,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:be=>{if(be.target.value.replaceAll(" ","").length<=0){Ct.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ht(Et,we,be.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ce.createElement(De.default,{defaultValue:me,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:be=>{if(be.target.value.replaceAll(" ","").length<=0){Ct.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ht(Et,we,be.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!se&&ce.createElement(_e.default,{className:"site-tag-plus",onClick:()=>{dt(Et),this.setState({inputVisible:!0})}},ce.createElement(Ke.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var ct=mt},65158:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ae}});var ce=ve(59301),De=ve(12290),_e=Object.defineProperty,Ct=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ct=(te,ee,he)=>ee in te?_e(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,He=(te,ee)=>{for(var he in ee||(ee={}))Be.call(ee,he)&&ct(te,he,ee[he]);if(Ke)for(var he of Ke(ee))mt.call(ee,he)&&ct(te,he,ee[he]);return te},Et=(te,ee)=>Ct(te,Ze(ee)),ht=(te,ee,he)=>ct(te,typeof ee!="symbol"?ee+"":ee,he);const dt="\u2581";class Ae extends ce.Component{constructor(){super(...arguments),ht(this,"getChCountBeforeCursor",(ee,he)=>{const se=he.line;let de=0;for(let we=0;we{const se=ee.getRange(he.from,he.to);let de=0;if(he.text.forEach(me=>{de+=me.split(dt).length-1}),se&&se.indexOf(dt)!=-1){const me=se.split(dt).length-1,we=this.getChCountBeforeCursor(ee,he.from);console.log(`\u5220\u9664${me}\u4E2A\uFF0C \u4E4B\u524D\u6709${we}\u4E2A\uFF0C\u65B0\u589E${de}\u4E2A`),this.props.deleteEmptyDisabled?he.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(we,me,de)}else if(de){const me=this.getChCountBeforeCursor(ee,he.from);console.log(`\u65B0\u589E${de}\u4E2A\uFF0C\u4E4B\u524D\u6709${me}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(me,0,de)}})}render(){return ce.createElement(De.Z,Et(He({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},32570:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ke}});var ce=ve(60324),De={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},_e=ve(32637),Ct=ve(59301),Ke=({type:Be,style:mt})=>{const ct=Ct.createElement("div",{className:De.wrap,onClick:He=>{He.preventDefault(),He.stopPropagation()}},Ct.createElement("p",null,Be==="shixun"||Be==="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",Ct.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Be==="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"),Ct.createElement("div",{className:De.contact},Ct.createElement("div",{className:De.img},Ct.createElement("img",{src:_e,width:"124px",height:"124px"})),Ct.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ct.createElement(ce.Z,{content:ct},Ct.createElement("span",{className:De.text,style:mt},"\u9AD8\u6D88\u8017"))}},73524:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Et}});var ce=ve(59301),De={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=ve(92310),Ct=ve.n(_e),Ze=ve(71418),Ke=ve(2859),Be=ve(99064),mt=ve(955),ct=(ht,dt,Ae)=>new Promise((te,ee)=>{var he=me=>{try{de(Ae.next(me))}catch(we){ee(we)}},se=me=>{try{de(Ae.throw(me))}catch(we){ee(we)}},de=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,se);de((Ae=Ae.apply(ht,dt)).next())}),Et=({data:ht,className:dt,fullWidth:Ae,style:te={},onClose:ee,onOk:he,showFullTools:se,noAssociationId:de})=>{const me=(0,ce.useRef)(null),we=(0,ce.useRef)(null),be=(0,ce.useRef)(null),Me=(0,ce.useRef)(null),[Ie,ze]=(0,ce.useState)(!1),[et,$e]=(0,ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ce.useEffect)(()=>(be.current||(be.current=document.createElement("style"),document.head.appendChild(be.current)),ht!=null&&ht.visible?(document.body.setAttribute("data-custom","y-hidden"),be.current.innerHTML=" html { overflow-y: hidden; }",ht!=null&&ht.src&>()):(document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)),()=>{document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)}),[ht==null?void 0:ht.visible]);const gt=()=>ct(void 0,null,function*(){ze(!0),$e("\u6B63\u5728\u52A0\u8F7D\u4E2D");const bt=yield(0,mt.ZJ)(ht==null?void 0:ht.src);me.current.src="",me.current.src=bt,me.current.onload=function(){Qe()},ze(!1),$e("")}),je=bt=>ct(void 0,null,function*(){ze(!0),$e("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Nt=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ht.title,file:bt.dataUrl}});Nt!=null&&Nt.id&&!de?(yield(0,Be.ZP)(`/api/attachments/${ht.id}/add_subitem.json`,{method:"post",body:{subitem_id:Nt==null?void 0:Nt.id,settings:JSON.stringify(bt.state)}})).status===0&&he():Nt!=null&&Nt.id&&he(Nt),ze(!1),$e("")}),Tt=()=>{const bt=document.querySelector('a[href="https://markerjs.com/"]');bt&&bt.parentNode&&(bt.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(At=>{const Zt=document.querySelector(At.name);Zt&&Zt.setAttribute("title",At.title)})},Qe=()=>{we.current=new Ke.hP(me.current),we.current.targetRoot=Me.current,we.current.addEventListener("render",je),we.current.addEventListener("beforeclose",ee),se&&(we.current.availableMarkerTypes=we.current.ALL_MARKER_TYPES,we.current.uiStyleSettings.redoButtonVisible=!0,we.current.uiStyleSettings.notesButtonVisible=!0,we.current.uiStyleSettings.zoomButtonVisible=!0,we.current.uiStyleSettings.zoomOutButtonVisible=!0,we.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=we.current.uiStyleSettings,we.current.show(),ht!=null&&ht.snapshotData&&we.current.restoreState(ht.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Tt()},300)};return ce.createElement(ce.Fragment,null,(ht==null?void 0:ht.visible)&&ce.createElement(Ze.Z,{spinning:Ie,tip:et,style:{position:"absolute",width:"100vw"}},ce.createElement("div",{ref:Me,className:Ct()(De.imageDimensions,dt,Ae?De.fullWidth:""),style:te},ce.createElement("img",{className:De.img,ref:me}))))}},59879:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(88010),_e=ve(48136),Ct=ve(41588),Ze=ve(43418),Ke=ve(59301);const Be=(0,ce.forwardRef)(({callback:mt,width:ct,onChange:He,disabled:Et,readOnly:ht,type:dt="",value:Ae="",style:te={}},ee)=>{const he=(0,ce.useRef)(),se=(0,ce.useRef)(),[de,me]=(0,ce.useState)(0),[we,be]=(0,ce.useState)(0),[Me,Ie]=(0,ce.useState)(!1),ze=()=>{var je=document.createElement("div");je.innerHTML=he.current.getValue();var Tt=je.innerText;return mt&&mt(Tt),Tt};(0,ce.useImperativeHandle)(ee,()=>({getData:ze}));const et=je=>{je.preventDefault();const Tt=je.clientX-de,Qe=je.clientY-we;document.body.onmousemove=bt=>{let Nt=bt.clientX-Tt,At=bt.clientY-Qe;const Zt=document.getElementsByClassName("markdown-popup-form")[0],Yt=window.innerWidth-Zt.offsetWidth,ut=window.innerHeight-Zt.offsetHeight;Nt=Math.max(0,Math.min(Nt,Yt)),At=Math.max(0,Math.min(At,ut)),$e(bt.clientX,bt.clientY,Tt,Qe)&&(me(Nt),be(At))},document.body.onmouseup=function(){document.body.onmousemove=null}},$e=(je,Tt,Qe,bt)=>{const Nt=document.body.clientHeight,At=document.body.clientWidth;return je<20&&Qe>je||je>At-20&&QeTt||Tt>Nt-20&&bt{Me&&setTimeout(()=>{const je=document.getElementsByClassName("markdown-popup-form")[0],Tt=window.innerWidth/2-je.offsetWidth/2,Qe=window.innerHeight/2-je.offsetHeight/2;me(Tt),be(Qe)},0)},[Me]);const gt=()=>{Et||ht||Ie(!0)};return Ke.createElement("div",{style:te},Ke.createElement("div",{style:{width:ct||"100%",position:"relative"},className:`${De.Z.mathFillWrap} ${Et||ht?"cursorDefault":""}`,onClick:()=>gt()},Ke.createElement("math-field",{disabled:Et,locale:"zh_cn",class:`${De.Z.mathField} ${dt}`,readOnly:ht,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Ae?18:14},value:Ae||""})),Ke.createElement(Ze.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:de,top:we},title:Ke.createElement("div",{style:{cursor:"move"},onMouseDown:et},"\u8F93\u5165\u516C\u5F0F"),open:Me,onOk:()=>{const je=se.current.getData();he.current.setValue(je),He(je),Ie(!1)},onCancel:()=>{Ie(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ke.createElement(Ct.Z,{value:Ae,ref:se,onChange:He,showSaveButton:!1})))});an.Z=Be},41588:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(95237),_e=ve(43604),Ct=ve(99313),Ze=ve(3113),Ke=ve(85149),Be=ve(88010),mt=ve(48136),ct=ve(59301);const He=(0,ce.forwardRef)(({callback:Et,showSaveButton:ht,value:dt=""},Ae)=>{const te=(0,ce.useRef)(),ee=[{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 "}]}]}],he=[{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}`}]}]}],se=we=>{te.current.setValue(te.current.getValue()+" "+we.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ct.createElement(De.Z,{className:Be.Z.lists,gutter:[10,10]},ee.map((we,be)=>ct.createElement(_e.Z,{flex:"110px",className:Be.Z.item},ct.createElement("div",null,ct.createElement(Ke.Z,{value:`$$${we.value}$$`}),we.name),ct.createElement("div",{className:Be.Z.children},we.children.map((Me,Ie)=>ct.createElement("div",{key:Ie},ct.createElement("h1",null,Me.name),ct.createElement(De.Z,{gutter:[10,10]},Me.data.map((ze,et)=>ct.createElement(_e.Z,{key:et,onClick:()=>se(ze),className:Be.Z.diamond},ct.createElement(Ke.Z,{value:"`$$"+ze.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ct.createElement(De.Z,{className:Be.Z.lists,gutter:[10,10]},he.map((we,be)=>ct.createElement(_e.Z,{flex:"110px",className:Be.Z.item},ct.createElement("div",null,ct.createElement(Ke.Z,{value:"`$$"+we.value+"$$`"}),we.name),ct.createElement("div",{className:Be.Z.children},we.children.map((Me,Ie)=>ct.createElement("div",{key:Ie},Me.name&&ct.createElement("h1",null,Me.name),ct.createElement(De.Z,{gutter:[10,10]},Me.data.map((ze,et)=>ct.createElement(_e.Z,{key:et,onClick:()=>se(ze),className:Be.Z.diamond},ct.createElement(Ke.Z,{value:"`$$"+ze.value+"$$`"}))))))))))}],me=()=>{var we=document.createElement("div");we.innerHTML=te.current.getValue();var be=we.innerText;return Et&&Et(be),be};return(0,ce.useImperativeHandle)(Ae,()=>({getData:me})),ct.createElement("div",{className:Be.Z.mathWrap},ct.createElement(Ct.default,{defaultActiveKey:"1",items:de}),ct.createElement("math-field",{locale:"zh_cn",className:Be.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},dt||""),ht&&ct.createElement("div",{className:Be.Z.button},ct.createElement(Ze.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});an.Z=He},8797:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(93314),_e=ve(3113),Ct=Object.defineProperty,Ze=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,He=(Ae,te,ee)=>te in Ae?Ct(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Ae[te]=ee,Et=(Ae,te)=>{for(var ee in te||(te={}))mt.call(te,ee)&&He(Ae,ee,te[ee]);if(Be)for(var ee of Be(te))ct.call(te,ee)&&He(Ae,ee,te[ee]);return Ae},ht=(Ae,te)=>Ze(Ae,Ke(te));const dt=({img:Ae,buttonProps:te={},styles:ee={},customText:he,ButtonText:se,ButtonClick:de,Buttonclass:me,ButtonTwo:we,imgStyles:be,loading:Me=!1})=>ce.createElement("section",{className:"tc animated fadeIn",style:Et(Et({},{color:"#999",margin:"100px auto",visibility:Me?"hidden":"visible"}),ee)},ce.createElement("img",{src:Ae||De,style:ht(Et({},be),{pointerEvents:"none",userSelect:"none"})}),ce.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ce.createElement(_e.ZP,Et({className:me,onClick:de},te),se),we&&we);an.Z=dt},23210:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return me}});var ce=ve(59301),De={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},_e=ve(3113),Ct=ve(70557),Ze=ve(23954),Ke=ve(6848),Be=ve(955),mt=ve(94941),ct=ve(8797),He=ve(3294),Et=ve(19381),ht=ve(59301),dt=Object.defineProperty,Ae=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(we,be,Me)=>be in we?dt(we,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[be]=Me,se=(we,be)=>{for(var Me in be||(be={}))te.call(be,Me)&&he(we,Me,be[Me]);if(Ae)for(var Me of Ae(be))ee.call(be,Me)&&he(we,Me,be[Me]);return we},de=(we,be,Me)=>new Promise((Ie,ze)=>{var et=je=>{try{gt(Me.next(je))}catch(Tt){ze(Tt)}},$e=je=>{try{gt(Me.throw(je))}catch(Tt){ze(Tt)}},gt=je=>je.done?Ie(je.value):Promise.resolve(je.value).then(et,$e);gt((Me=Me.apply(we,be)).next())}),me=({editOffice:we="view",data:be,theme:Me,type:Ie,filename:ze,monacoEditor:et,className:$e,style:gt,close:je,onClose:Tt,hasMask:Qe,disabledDownload:bt,onImgDimensions:Nt,showNodata:At,recordInfo:Zt})=>{const[Yt,ut]=(0,ce.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ge,kt]=(0,ce.useState)(""),[ln,sn]=(0,ce.useState)(),Bt=window.ENV==="build"?"/react/build":"",Gt=location.host.startsWith("localhost")?He.Z.PROXY_SERVER:He.Z.API_SERVER,Bn=10*(1024*1024),rn=(0,ce.useRef)();be!=null&&be.startsWith("/api")&&Ie!=="txt"&&(be=He.Z.API_SERVER+be);const Cn=Re=>Re.substring(Re.lastIndexOf("/")+1).split(".").pop();ze&&et&&(et.filename=ze),(0,ce.useEffect)(()=>{var Re,Ce;const Pe=(Ce=(Re=document.cookie)==null?void 0:Re.replace(/\s/g,""))==null?void 0:Ce.split(";");Pe==null||Pe.map(Ne=>{let ke=Ne.split("=");ke[0]==="_educoder_session"&&kt(ke[1])})},[]),(0,ce.useEffect)(()=>{Ie==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?sn({url:be,fileType:Cn(be),model:be.indexOf("model=edit")?"edit":"view"}):ft())},[Ie,be]);const ft=()=>de(void 0,null,function*(){console.log("data:",be);let Re=be;be.startsWith("http")||(Re=location.origin+Re);let Ce=new URL(Re).pathname.split("/").pop();const Pe=yield(0,mt.gJ)({attachment_id:Ce});Pe.url=Gt+Pe.url,sn(Pe)}),En=()=>{if(be.startsWith("http")||be.startsWith("blob:")){Vn();return}(0,Be.Sv)(ze||"educoder",be,ze)},Vn=()=>{Zt&&(0,Et.fc)({id:Zt==null?void 0:Zt.id,watch_type:1,course_id:Zt==null?void 0:Zt.course_id}),(0,Be.Nd)(ze||"educoder",decodeURIComponent(be))};return ht.createElement("div",{style:se({},gt||{}),className:`${Qe&&De.bgBlack} ${Ie?De.wrp:"hide"}`},je&&ht.createElement("div",{className:De.close,ref:rn},!!Nt&&ht.createElement(Ke.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rn.current},ht.createElement("span",{onClick:()=>{Tt(),Nt()}},ht.createElement("i",{className:"icon-yulanpizhu"}))),!bt&&ht.createElement(Ke.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rn.current},ht.createElement("span",{onClick:Vn},ht.createElement("i",{className:"icon-quxiaozhiding"}))),ht.createElement(Ke.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rn.current},ht.createElement("span",{className:"",onClick:Tt},ht.createElement("i",{className:"icon-guanbi1"})))),ht.createElement("div",{className:`${De[$e]} ${$e} ${De.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&ht.createElement(ht.Fragment,null,ht.createElement(Ze.ZP,se({},et)))),Ie==="audio"&&ht.createElement("audio",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${be}`,autoPlay:!0}),Ie==="video"&&ht.createElement(ht.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?ht.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):ht.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),Ie==="office"&&ln&&ht.createElement("iframe",{src:`${Bt}/office.html?key=${ln.key}&url=${btoa(ln.url)}&callbackUrl=${Gt+(ln.callbackUrl||"")}&fileType=${ln.fileType}&title=${ln.title||""}&model=${we}&officeServer=${He.Z.ONLYOFFICE}&disabledDownload=${!!bt}`}),Ie==="html"&&ht.createElement("iframe",{src:be+"&disposition=inline"}),Ie==="pdf"&&ht.createElement("iframe",{src:`${Bt}/js/pdfview/index.html?filename=${ze||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!bt}`}),Ie==="image"&&ht.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(Ie==="other"||Ie==="download")&&ht.createElement(ht.Fragment,null,At?ht.createElement(ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ht.createElement(_e.ZP,{icon:ht.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:En,disabled:bt},"\u4E0B\u8F7D")}):ht.createElement(_e.ZP,{type:"primary",size:"middle",onClick:En,disabled:bt},ht.createElement(Ct.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},90502:function(Pn,an,ve){"use strict";ve.d(an,{t:function(){return Pe}});var ce=ve(59301),De=ve(92832),_e=ve(78241),Ct=ve(43418),Ze=ve(95237),Ke=ve(43604),Be=ve(5871),mt=ve(57809),ct=ve(5112),He=ve(41984),Et=ve(89070),ht=ve(43809),dt=ve(8591),Ae=ve(3113),te=ve(71418),ee=ve(24334),he={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},se=ve(99064),de=ve(88264),me=ve(12290),we=ve(56102),be=ve(74440),Me=ve(59301),Ie=Object.defineProperty,ze=Object.defineProperties,et=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Tt=(Ne,ke,Se)=>ke in Ne?Ie(Ne,ke,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Ne[ke]=Se,Qe=(Ne,ke)=>{for(var Se in ke||(ke={}))gt.call(ke,Se)&&Tt(Ne,Se,ke[Se]);if($e)for(var Se of $e(ke))je.call(ke,Se)&&Tt(Ne,Se,ke[Se]);return Ne},bt=(Ne,ke)=>ze(Ne,et(ke)),Nt=(Ne,ke,Se)=>new Promise((nt,Pt)=>{var qe=vt=>{try{St(Se.next(vt))}catch(lt){Pt(lt)}},Ue=vt=>{try{St(Se.throw(vt))}catch(lt){Pt(lt)}},St=vt=>vt.done?nt(vt.value):Promise.resolve(vt.value).then(qe,Ue);St((Se=Se.apply(Ne,ke)).next())}),Zt=({buttonProps:Ne,buttonText:ke,form:Se,hackIdentifier:nt="",answerKey:Pt,data:qe})=>{const[Ue,St]=(0,ce.useState)(!1),[vt,lt]=(0,ce.useState)(!1),[Dt,un]=(0,ce.useState)(!1),[Xt,$t]=(0,ce.useState)({}),[wn,bn]=(0,ce.useState)(""),[pn,Yn]=(0,ce.useState)(""),ai=(0,ce.useRef)(nt),Wn=(0,ce.useRef)(""),Rn=(0,ce.useRef)(!1);(0,ce.useEffect)(()=>{Dt&&Ri()},[Dt]),(0,ce.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const ii=()=>new Date().getTime(),pi=qe==null?void 0:qe.code,gi=()=>{var $n,ti;let Pi=pi?qe==null?void 0:qe.code:($n=Se.getFieldValue("hack_codes"))==null?void 0:$n.code,mi=pi?qe==null?void 0:qe.answer_content:Se.getFieldValue(Pt),nr=pi?qe==null?void 0:qe.input:(ti=Se.getFieldValue("hack_sets"))==null?void 0:ti.input;mi==null||mi.forEach(ji=>{const Le=ji.value||ji.answer_text||"";Pi=Pi.replace(/(@▁@|@▁▁@)/,Le)}),Yn(nr),bn(Pi),$t({}),un(!0)},Ri=()=>Nt(void 0,null,function*(){var $n,ti,Pi,mi;const nr=ii(),ji=pi?qe==null?void 0:qe.time_limit:($n=Se.getFieldsValue())==null?void 0:$n.hack.time_limit,Le=pi?(ti=qe==null?void 0:qe.answer_content)==null?void 0:ti.length:(mi=(Pi=Se.getFieldsValue())==null?void 0:Pi.standard_answers)==null?void 0:mi.length;St(!0),yield(0,de.bM)(Wn.current,{test_hack_code:wn,test_input:pn});function si(){return Nt(this,null,function*(){const{status:Hi,data:hn}=yield(0,de.rX)(Wn.current,"submit"),vi=ii()-nr>(ji+3)*1e3*Le;if(Rn.current){if(vi){dt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),St(!1);return}if(Hi===0){St(!1),$t(bt(Qe({},hn),{showText:!0}));return}setTimeout(si,1e3)}})}si()}),Ji=()=>Nt(void 0,null,function*(){var $n,ti,Pi,mi,nr,ji,Le;if(!qe){try{yield Se.validateFields()}catch(ni){(Pi=(ti=($n=ni==null?void 0:ni.errorFields)==null?void 0:$n[0])==null?void 0:ti.name)!=null&&Pi.includes("standard_answers")?dt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):dt.ZP.error(ni.errorFields[0].errors[0]),Se.scrollToField(ni.errorFields[0].name,{behavior:"smooth",block:"center"});return}lt(!0);let Hi="";const hn=Se.getFieldsValue();ai.current?Hi=yield(0,se.ZP)(`/api/problems/${ai.current}.json`,{method:"put",body:bt(Qe({},hn),{hack:bt(Qe({},hn==null?void 0:hn.hack),{sub_discipline_id:(Le=(ji=hn==null?void 0:hn.hack)==null?void 0:ji.sub_discipline_id)==null?void 0:Le[1],difficult:hn.difficulty,item_banks_group_id:hn.item_banks_group_id}),hack_codes:bt(Qe({},hn.hack_codes),{code:ee.Base64.encode(hn.hack_codes.code)}),update_hack_sets:[Qe({},hn.hack_sets)],is_blank:!0})}):(Hi=yield(0,se.ZP)("/api/problems.json",{method:"post",body:bt(Qe({},hn),{hack:bt(Qe({},hn==null?void 0:hn.hack),{sub_discipline_id:(nr=(mi=hn==null?void 0:hn.hack)==null?void 0:mi.sub_discipline_id)==null?void 0:nr[1],difficult:hn.difficulty,item_banks_group_id:hn.item_banks_group_id}),hack_codes:bt(Qe({},hn.hack_codes),{code:ee.Base64.encode(hn.hack_codes.code)}),hack_sets:[Qe({},hn.hack_sets)],is_blank:!0})}),ai.current=Hi==null?void 0:Hi.identifier,sessionStorage.projectFill=Hi==null?void 0:Hi.identifier)}const si=yield(0,se.ZP)(`/api/problems/${ai.current}/start.json`,{method:"get"});if((si==null?void 0:si.status)===0){Wn.current=si==null?void 0:si.identifier,Rn.current=!0,lt(!1),gi();return}lt(!1)}),Un=$n=>{const{status:ti,error_msg:Pi,execute_time:mi,output:nr,input:ji,expected_output:Le}=$n;let si=null;switch(ti){case be.h.OK:si=Me.createElement(Me.Fragment,null,Me.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",mi/1e3,"\u79D2"),Me.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case be.h.NOMATCH:si=Me.createElement(Me.Fragment,null,Me.createElement("div",null,"\u8F93\u5165\uFF1A"),Me.createElement("pre",{style:{fontFamily:"initial"}},ji),Me.createElement("div",null,"\u8F93\u51FA\uFF1A"),Me.createElement("pre",{style:{fontFamily:"initial"}},nr&&ee.Base64.decode(nr)),Me.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Me.createElement("pre",{style:{fontFamily:"initial"}},Le&&ee.Base64.decode(Le)));break;case be.h.EXECUTEFAILURE:si=Me.createElement(Me.Fragment,null,Me.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Me.createElement("pre",null,ji)),Me.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Me.createElement("pre",{className:"error"},ee.Base64.decode(Pi)));break;case be.h.COMPILEFAILURE:si=Me.createElement(Me.Fragment,null,Me.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Me.createElement("pre",null,ji)),Me.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Me.createElement("pre",{className:"error"},ee.Base64.decode(Pi)));break;case be.h.PODFAILURE:si=Me.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case be.h.TIMEOUT:si=Me.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Me.createElement(Me.Fragment,null," ",si," ")};return Me.createElement("div",null,Me.createElement(Ae.ZP,bt(Qe({loading:vt},Ne),{onClick:Ji}),ke),Me.createElement(Ct.default,{open:Dt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ue,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ri(),onCancel:()=>{Rn.current=!1,un(!1)}},Me.createElement("div",{className:he.result},Me.createElement("div",{className:he.left},Me.createElement("div",{className:"mb20"},Me.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!qe&&Me.createElement(we.CopyToClipboard,{text:wn,onCopy:()=>dt.ZP.success("\u590D\u5236\u6210\u529F")},Me.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Me.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Me.createElement(me.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:wn,onChange:$n=>bn($n)})),Me.createElement("div",{className:he.right},Me.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Me.createElement("div",{className:he.box},Me.createElement("div",{className:he.li},Me.createElement(De.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:pn,onChange:$n=>Yn($n.target.value),bordered:!1,style:{height:180}}))),Me.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Me.createElement("div",{className:he.box},Me.createElement(te.Z,{spinning:Ue,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Me.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},Un(Xt))))))))},Yt=ve(87169),ut=ve(59301),Ge=Object.defineProperty,kt=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,en=(Ne,ke,Se)=>ke in Ne?Ge(Ne,ke,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Ne[ke]=Se,Bn=(Ne,ke)=>{for(var Se in ke||(ke={}))Bt.call(ke,Se)&&en(Ne,Se,ke[Se]);if(sn)for(var Se of sn(ke))Gt.call(ke,Se)&&en(Ne,Se,ke[Se]);return Ne},rn=(Ne,ke)=>kt(Ne,ln(ke)),Cn=(Ne,ke)=>{var Se={};for(var nt in Ne)Bt.call(Ne,nt)&&ke.indexOf(nt)<0&&(Se[nt]=Ne[nt]);if(Ne!=null&&sn)for(var nt of sn(Ne))ke.indexOf(nt)<0&&Gt.call(Ne,nt)&&(Se[nt]=Ne[nt]);return Se};const{TextArea:ft}=De.default,En=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Vn=({value:Ne,onChange:ke})=>ut.createElement(Switch,{checked:Ne,onChange:Se=>{ke(Se)}}),Re="@\u2581@",Ce="@\u2581\u2581@",Pe=({questionTitlePlaceholder:Ne,form:ke,scoreByBlank:Se=!1,hackidentifier:nt,answerKey:Pt})=>{const[qe,Ue]=(0,ce.useState)(!1),[St,vt]=(0,ce.useState)(!1),Dt=(0,Et.useParams)().type==="edit",un=(Wn,Rn)=>{const ii=Rn.line;let pi=0;for(let Ri=0;Ri{const gi=Wn.getRange(Rn.from,Rn.to);let Ri=0;if(Rn.text.forEach(Ji=>{Ri+=Ji.split(Re).length-1}),Rn.text.forEach(Ji=>{Ri+=Ji.split(Ce).length-1}),Rn.origin!=="setValue"){if(gi&&(gi.indexOf(Re)!==-1||gi.indexOf(Ce)!==-1)){const Ji=gi.split(Re).length-1+gi.split(Ce).length-1,Un=un(Wn,Rn.from);if(console.log(`\u5220\u9664${Ji}\u4E2A\uFF0C \u524D\u9762\u6709${Un}\u4E2A\uFF0C\u65B0\u589E${Ri}\u4E2A`),Ji>1){const $n=Array.from({length:Ji},(ti,Pi)=>Un+Pi);pi($n)}else pi(Un)}else if(Ri>0){const Ji=un(Wn,Rn.from);console.log(`\u65B0\u589E${Ri}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ji}\u4E2A`),ii(Ri,Ji)}}},$t=()=>{const Wn=ke.getFieldValue(Pt);ke.setFieldsValue({[Pt]:Wn==null?void 0:Wn.map((Rn,ii)=>rn(Bn({},Rn),{position:ii+1}))})},wn=(0,ce.useRef)(),bn=(Wn,Rn)=>{for(let ii=0;ii{pn.current(Wn),$t()},ai=_e.default.useWatch(Pt,ke);return ut.createElement("div",{className:ht.Z.wrap},ut.createElement(_e.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ut.createElement(He.h,{scrollId:"name",watch:!0,height:140})),ut.createElement("div",{className:ht.Z.questionTitleEditorWrap},ut.createElement(_e.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ut.createElement(He.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Wn,Rn)=>{const ii=ke.getFieldValue(Pt);console.log("--preAnswerData",ii,Rn),ke.setFieldsValue({[Pt]:ii==null?void 0:ii.map((pi,gi)=>{var Ri;return rn(Bn({},pi),{position:gi+1,multi_line:(Ri=Rn==null?void 0:Rn[gi])==null?void 0:Ri.multiLine})})})},placeholder:Ne,onCMBeforeChange:(Wn,Rn)=>{Xt(Wn,Rn,bn,Yn)}}))),ut.createElement(_e.default.List,{name:Pt,rules:[{validator(Wn,Rn){if(!(Rn!=null&&Rn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const ii of Rn){const{answer_text:pi}=ii||{};if((pi==null?void 0:pi.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Wn,{add:Rn,remove:ii},{errors:pi})=>(wn.current=Rn,pn.current=ii,ut.createElement(ut.Fragment,null,ut.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(_e.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ut.createElement("div",{onClick:()=>{Ct.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ut.createElement("div",null,ut.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ut.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ut.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ut.createElement(Yt.Z,{style:{marginRight:3,color:"#3061D0"}}),ut.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Wn.map((gi,Ri)=>{var Ji=gi,{key:Un,name:$n}=Ji,ti=Cn(Ji,["key","name"]),Pi,mi;return ut.createElement(Ze.Z,{className:"mb20",key:Un,align:"middle",wrap:!1},ut.createElement(Ke.Z,{flex:"0 0 auto",className:`${ht.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ri+1),ut.createElement(Ke.Z,{flex:1},ut.createElement(Ze.Z,{align:"top",justify:"space-between",wrap:!1},ut.createElement(Ke.Z,null,ut.createElement(_e.default.Item,rn(Bn({},ti),{name:[$n,"answer_text"],noStyle:!0}),(Pi=ai==null?void 0:ai[$n])!=null&&Pi.multi_line||(mi=ai==null?void 0:ai[$n])!=null&&mi.multiLine?ut.createElement(ft,{spellCheck:!1,style:{marginLeft:10,width:550}}):ut.createElement(De.default,{style:{marginLeft:10,width:550},className:ht.Z.blankInput,size:"large",maxLength:1e3,onBlur:nr=>{}}))),Se&&ut.createElement(Ke.Z,{flex:"224px"},ut.createElement(_e.default.Item,rn(Bn({},ti),{name:[$n,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ut.createElement(Be.Z,{size:"large",className:ht.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ut.createElement("div",{onClick:()=>Ue(!0)},ut.createElement(_e.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ut.createElement(He.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:qe}))),ut.createElement(_e.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ut.createElement(mt.default,{size:"large"},En.map(Wn=>ut.createElement(mt.default.Option,{key:Wn.title,value:Wn.key}," ",Wn.title)))),ut.createElement(_e.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ut.createElement(_e.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ut.createElement(Be.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ut.createElement("span",{className:"ml10 font14"},"\u79D2")),ut.createElement(_e.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ut.createElement(ct.ZP.Group,{style:{marginTop:-10}},ut.createElement(ct.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ut.createElement(ct.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ut.createElement(ct.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ut.createElement(_e.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ut.createElement("div",{style:{background:"#F6F7F9",padding:15}},ut.createElement(_e.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ut.createElement(ft,{rows:4})),ut.createElement(_e.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ut.createElement(ft,{rows:4}))),ut.createElement(Zt,{form:ke,answerKey:Pt,hackIdentifier:nt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ut.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},65357:function(Pn,an,ve){"use strict";ve.d(an,{u:function(){return Me}});var ce=ve(59301),De=ve(95237),_e=ve(43604),Ct=ve(6848),Ze=ve(78241),Ke=ve(43809),Be=ve(32134),mt=ve(12893),ct=ve(41984),He=ve(59301),Et=Object.defineProperty,ht=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Ie,ze,et)=>ze in Ie?Et(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ie[ze]=et,se=(Ie,ze)=>{for(var et in ze||(ze={}))te.call(ze,et)&&he(Ie,et,ze[et]);if(Ae)for(var et of Ae(ze))ee.call(ze,et)&&he(Ie,et,ze[et]);return Ie},de=(Ie,ze)=>ht(Ie,dt(ze)),me=(Ie,ze)=>{var et={};for(var $e in Ie)te.call(Ie,$e)&&ze.indexOf($e)<0&&(et[$e]=Ie[$e]);if(Ie!=null&&Ae)for(var $e of Ae(Ie))ze.indexOf($e)<0&&ee.call(Ie,$e)&&(et[$e]=Ie[$e]);return et};const we=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],be=({value:Ie,onChange:ze,choiceTextKey:et,answerKey:$e,index:gt,isEdit:je,setInputActive:Tt,form:Qe,choiceOptionsPath:bt,allowChangeMode:Nt,showAddIcon:At,addItem:Zt,deleteItem:Yt})=>{console.log(Ie,"value");const ut=(Ie==null?void 0:Ie[$e])===1,Ge=()=>{const ln=Qe.getFieldValue(bt);Qe.setFieldValue(bt,ln.map(sn=>de(se({},sn),{[$e]:0})))},kt=()=>{ut?ze(de(se({},Ie),{[$e]:0})):(Nt||Ge(),ze(de(se({},Ie),{[$e]:1})))};return He.createElement(De.Z,{className:Ke.Z.choiceWrap,align:"middle",wrap:!1},He.createElement(_e.Z,{onClick:kt,className:`${Ke.Z.choiceIndex} ${ut?Ke.Z.activeAnswer:""}`},we[gt]),He.createElement(_e.Z,{flex:1,className:`${Ke.Z.editorWrap} ml15`,onClick:Tt},He.createElement(ct.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:je,value:Ie==null?void 0:Ie[et],onChange:ln=>{ze(de(se({},Ie),{[et]:ln}))}})),He.createElement(_e.Z,{flex:"0 0 auto",className:"ml15"},He.createElement("div",{onClick:kt,className:`${Ke.Z.setAnswerBtn} ${ut?Ke.Z.activeAnswer:""}`},ut?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),He.createElement(_e.Z,{className:Ke.Z.actionWrapper},He.createElement(Ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},He.createElement(Be.Z,{className:Ke.Z.addIcon,onClick:Zt,style:{visibility:At?"visible":"hidden"}})),He.createElement(Ct.Z,{title:"\u5220\u9664"},He.createElement(mt.Z,{className:Ke.Z.deleteIcon,onClick:Yt,style:{visibility:gt>1?"visible":"hidden"}}))))},Me=({questionTitlePlaceholder:Ie,titleKey:ze,choiceKey:et,analysisKey:$e,choiceTextKey:gt,answerKey:je,choiceOptionsPath:Tt,allowChangeMode:Qe=!0,form:bt,showAnalysis:Nt=!0})=>{const[At,Zt]=(0,ce.useState)(),[Yt,ut]=(0,ce.useState)(!1);return He.createElement("div",{className:Ke.Z.wrap},He.createElement("div",{className:Ke.Z.questionTitleEditorWrap},He.createElement(Ze.default.Item,{label:"\u9898\u5E72",name:ze,labelCol:{span:24},rules:[{required:!0}]},He.createElement(ct.h,{scrollId:Array.isArray(ze)?ze.join("_"):`${ze}`,watch:!0,height:140,placeholder:Ie}))),He.createElement(Ze.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),He.createElement(Ze.default.List,{name:et,rules:[{validator(Ge,kt){const ln=kt.some(Bt=>Bt[je]===1),sn=kt.findIndex(Bt=>{var Gt;return((Gt=Bt[gt])==null?void 0:Gt.length)<=0});return sn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${we[sn]}\u9009\u9879\u7684\u5185\u5BB9`)):ln?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Ge,{add:kt,remove:ln})=>He.createElement("div",{id:Array.isArray(Tt)?Tt.join("_"):`${Tt}`},Ge.map((sn,Bt)=>{var Gt=sn,{key:en,name:Bn}=Gt,rn=me(Gt,["key","name"]);const Cn=At===en,ft=()=>{Zt(en)},En=Bt<7&&Bt===Ge.length-1,Vn=()=>kt({[gt]:"",[je]:0}),Re=()=>ln(Bn);return He.createElement(Ze.default.Item,de(se({},rn),{key:en,name:Bn,className:Ke.Z.choiceListWrap,rules:[{validator(Ce,Pe){return Pe!=null&&Pe.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${we[Bt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),He.createElement(be,{choiceTextKey:gt,answerKey:je,index:Bt,isEdit:Cn,setInputActive:ft,form:bt,choiceOptionsPath:Tt,allowChangeMode:Qe,showAddIcon:En,addItem:Vn,deleteItem:Re}))}),Ge.length<8&&He.createElement("div",{className:`${Ke.Z.addBtn} mb30`,onClick:()=>kt({[gt]:"",[je]:0})},"\u6DFB\u52A0\u9009\u9879"))),Nt&&He.createElement("div",{onClick:()=>ut(!0)},He.createElement(Ze.default.Item,{name:$e,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(ct.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Yt}))))}},70472:function(Pn,an,ve){"use strict";ve.d(an,{u:function(){return Qe}});var ce=ve(59301),De=ve(43418),_e=ve(95237),Ct=ve(43604),Ze=ve(92832),Ke=ve(6848),Be=ve(78673),mt=ve(78241),ct=ve(5112),He=ve(5871),Et=ve(41984),ht=ve(12893),dt=ve(61485),Ae=ve(43809),te=ve(59879),ee=ve(59301),he=Object.defineProperty,se=Object.defineProperties,de=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Me=(bt,Nt,At)=>Nt in bt?he(bt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:At}):bt[Nt]=At,Ie=(bt,Nt)=>{for(var At in Nt||(Nt={}))we.call(Nt,At)&&Me(bt,At,Nt[At]);if(me)for(var At of me(Nt))be.call(Nt,At)&&Me(bt,At,Nt[At]);return bt},ze=(bt,Nt)=>se(bt,de(Nt)),et=(bt,Nt)=>{var At={};for(var Zt in bt)we.call(bt,Zt)&&Nt.indexOf(Zt)<0&&(At[Zt]=bt[Zt]);if(bt!=null&&me)for(var Zt of me(bt))Nt.indexOf(Zt)<0&&be.call(bt,Zt)&&(At[Zt]=bt[Zt]);return At};const $e=({value:bt,onChange:Nt})=>{const At=Yt=>{De.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ae.Z.modal,onOk:()=>{const ut=[...bt];ut.splice(Yt,1),Nt(ut)}})},Zt=()=>{const Yt=[...bt];Yt.push(""),Nt(Yt)};return ee.createElement(_e.Z,{className:"ml20"},ee.createElement(Ct.Z,{flex:1},bt==null?void 0:bt.map((Yt,ut)=>ee.createElement(_e.Z,{key:`${Yt}_${ut}`,className:"mb20"},ee.createElement(Ze.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Yt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Ge=>{const kt=[...bt],ln=Ge.target.value.trim();kt[ut]=ln,Nt(kt)}}),ee.createElement(Ke.Z,{title:"\u5220\u9664"},ee.createElement(ht.Z,{className:Ae.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>At(ut)}))))),ee.createElement(Ct.Z,null,ee.createElement("div",{className:`${Ae.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},gt=({value:bt,onChange:Nt})=>{const At=Yt=>{De.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ae.Z.modal,onOk:()=>{const ut=[...bt];ut.splice(Yt,1),Nt(ut)}})},Zt=()=>{const Yt=[...bt];Yt.push(""),Nt(Yt)};return ee.createElement(_e.Z,{className:"ml20"},ee.createElement(Ct.Z,{flex:1},bt==null?void 0:bt.map((Yt,ut)=>ee.createElement(_e.Z,{key:`${Yt}_${ut}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:Yt,style:{flex:1},onChange:Ge=>{const kt=[...bt];kt[ut]=Ge,Nt(kt)}}),ee.createElement(Ke.Z,{title:"\u5220\u9664"},ee.createElement(ht.Z,{className:Ae.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>At(ut)}))))),ee.createElement(Ct.Z,null,ee.createElement("div",{className:`${Ae.Z.addBtn}`,onClick:()=>{Zt()}},"\u65B0\u589E\u7B54\u6848")))},je=({value:bt=!0,onChange:Nt})=>ee.createElement(Be.Z,{checked:!bt,onChange:At=>{Nt(!At)}}),Tt="\u2581",Qe=({questionTitlePlaceholder:bt,form:Nt,scoreByBlank:At=!1,answerKey:Zt})=>{const[Yt,ut]=(0,ce.useState)(!1),Ge=(rn,Cn)=>{const ft=Cn.line;let En=0;for(let Re=0;Re{const Vn=rn.getRange(Cn.from,Cn.to);let Re=0;if(Cn.text.forEach(Ce=>{Re+=Ce.split(Tt).length-1}),Cn.origin!=="setValue"){if(Vn&&Vn.indexOf(Tt)!==-1){const Ce=Vn.split(Tt).length-1,Pe=Ge(rn,Cn.from);if(console.log(`\u5220\u9664${Ce}\u4E2A\uFF0C \u524D\u9762\u6709${Pe}\u4E2A\uFF0C\u65B0\u589E${Re}\u4E2A`),Ce>1){const Ne=Array.from({length:Ce},(ke,Se)=>Pe+Se);En(Ne)}else En(Pe)}else if(Re>0){const Ce=Ge(rn,Cn.from);console.log(`\u65B0\u589E${Re}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ce}\u4E2A`),ft(Re,Ce)}}},ln=()=>{const rn=Nt.getFieldValue(Zt);Nt.setFieldsValue({[Zt]:rn.map((Cn,ft)=>ze(Ie({},Cn),{position:ft+1}))})},sn=(0,ce.useRef)(),Bt=(rn,Cn)=>{for(let ft=0;ft{Gt.current(rn),ln()},Bn=mt.default.useWatch(Zt,Nt);return ee.createElement("div",{className:Ae.Z.wrap},ee.createElement("div",{className:Ae.Z.questionTitleEditorWrap},ee.createElement(mt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(Et.h,{scrollId:"name",watch:!0,height:140,placeholder:bt,showNullButton:!0,onCMBeforeChange:(rn,Cn)=>{kt(rn,Cn,Bt,en)}}))),ee.createElement(mt.default.List,{name:Zt,rules:[{validator(rn,Cn){if(!(Cn!=null&&Cn.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ft of Cn){const{answer_text:En}=ft||{};if(En!=null&&En.some(Vn=>(Vn==null?void 0:Vn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(rn,{add:Cn,remove:ft},{errors:En})=>(sn.current=Cn,Gt.current=ft,ee.createElement(ee.Fragment,null,ee.createElement(mt.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(rn!=null&&rn.length)&&ee.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),rn.map((Vn,Re)=>{var Ce=Vn,{key:Pe,name:Ne}=Ce,ke=et(Ce,["key","name"]),Se,nt;return ee.createElement("div",{style:{marginBottom:10},key:Pe},ee.createElement(_e.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(Ct.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ae.Z.blankIndex}`},"\u586B\u7A7A\u9879",Re+1),ee.createElement(mt.default.Item,ze(Ie({},ke),{name:[Ne,"model"],noStyle:!0}),ee.createElement(ct.ZP.Group,{onChange:()=>{const Pt=Nt.getFieldValue(Zt);Nt.setFieldsValue({[Zt]:Pt.map((qe,Ue)=>ze(Ie({},qe),{answer_text:Ne===Ue?[""]:qe.answer_text}))})}},ee.createElement(ct.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",ee.createElement(Ke.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},ee.createElement(dt.Z,null))),ee.createElement(ct.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",ee.createElement(Ke.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},ee.createElement(dt.Z,null)))))),ee.createElement(_e.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(Ct.Z,{flex:1},ee.createElement(_e.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(Ct.Z,{flex:1},ee.createElement(mt.default.Item,ze(Ie({},ke),{name:[Ne,"answer_text"],noStyle:!0}),((nt=(Se=Nt.getFieldValue(Zt))==null?void 0:Se[Ne])==null?void 0:nt.model)===1?ee.createElement($e,null):ee.createElement(gt,null))),At&&ee.createElement(Ct.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(mt.default.Item,ze(Ie({},ke),{name:[Ne,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ae.Z.blankInputNumberWrapper}),ee.createElement(He.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(mt.default.Item,ze(Ie({},ke),{name:[Ne,"position"],noStyle:!0}),ee.createElement(Ze.default,{type:"hidden"})))))})))),ee.createElement(_e.Z,{align:"middle"},ee.createElement(mt.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(Be.Z,null)),ee.createElement(Ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(_e.Z,{align:"middle"},ee.createElement(mt.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(Be.Z,null)),ee.createElement(Ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Bn==null?void 0:Bn.length)>1&&ee.createElement(_e.Z,{align:"middle",className:(Bn==null?void 0:Bn.length)>1?"mb30":`${Ae.Z.hide}`},ee.createElement(mt.default.Item,{name:"is_ordered"},ee.createElement(je,null)),ee.createElement(Ct.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ee.createElement("div",{onClick:()=>ut(!0)},ee.createElement(mt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(Et.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Yt}))))}},11832:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return me}});var ce=ve(59301),De=ve(95237),_e=ve(43604),Ct=ve(78241),Ze=ve(43809),Ke=ve(41984),Be=ve(59301),mt=Object.defineProperty,ct=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ae=(we,be,Me)=>be in we?mt(we,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[be]=Me,te=(we,be)=>{for(var Me in be||(be={}))ht.call(be,Me)&&Ae(we,Me,be[Me]);if(Et)for(var Me of Et(be))dt.call(be,Me)&&Ae(we,Me,be[Me]);return we},ee=(we,be)=>ct(we,He(be)),he=(we,be)=>{var Me={};for(var Ie in we)ht.call(we,Ie)&&be.indexOf(Ie)<0&&(Me[Ie]=we[Ie]);if(we!=null&&Et)for(var Ie of Et(we))be.indexOf(Ie)<0&&dt.call(we,Ie)&&(Me[Ie]=we[Ie]);return Me};const se={\u6B63\u786E:"T",\u9519\u8BEF:"F"},de=({value:we,onChange:be,form:Me})=>{const Ie=(we==null?void 0:we.is_answer)===1,ze=we==null?void 0:we.choice_text,et=()=>{const $e=Me.getFieldsValue().choices.map(gt=>({choice_text:gt.choice_text,is_answer:0}));Me.setFieldsValue({choices:$e}),be(ee(te({},we),{is_answer:1}))};return Be.createElement(De.Z,{className:Ze.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Be.createElement(_e.Z,{onClick:et,className:`${Ze.Z.choiceIndex} ${Ze.Z.judgementIndex} ${Ie?Ze.Z.activeAnswer:""}`},se[ze]),Be.createElement(_e.Z,{flex:1,className:`${Ze.Z.editorWrap} ml15`},Be.createElement("div",{className:`${Ze.Z.inputBorder} ${Ze.Z.placeholder} ${Ie?Ze.Z.activeJudgementAnswer:""}`},ze)),Be.createElement(_e.Z,{flex:"0 0 auto",className:"ml15"},Be.createElement("div",{onClick:et,className:`${Ze.Z.setAnswerBtn} ${Ie?Ze.Z.activeAnswer:""}`},Ie?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:we,choiceKey:be,form:Me})=>{const[Ie,ze]=(0,ce.useState)(!1);return Be.createElement("div",{className:Ze.Z.wrap},Be.createElement("div",{className:Ze.Z.questionTitleEditorWrap},Be.createElement(Ct.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Be.createElement(Ke.h,{scrollId:"name",watch:!0,height:140,placeholder:we}))),Be.createElement(Ct.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Be.createElement(Ct.default.List,{name:"choices",rules:[{validator(et,$e){return $e.some(je=>(je==null?void 0:je.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},et=>Be.createElement("div",{id:"choices"},et.map($e=>{var gt=$e,{key:je,name:Tt}=gt,Qe=he(gt,["key","name"]);return Be.createElement(Ct.default.Item,ee(te({},Qe),{key:je,name:Tt,noStyle:!0}),Be.createElement(de,{form:Me}))})))),Be.createElement("div",{onClick:()=>ze(!0)},Be.createElement(Ct.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Be.createElement(Ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ie}))))}},41984:function(Pn,an,ve){"use strict";ve.d(an,{h:function(){return te},x:function(){return ee}});var ce=ve(12290),De=ve(43809),_e=ve(85149),Ct=ve(59301),Ze=Object.defineProperty,Ke=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Et=(he,se,de)=>se in he?Ze(he,se,{enumerable:!0,configurable:!0,writable:!0,value:de}):he[se]=de,ht=(he,se)=>{for(var de in se||(se={}))ct.call(se,de)&&Et(he,de,se[de]);if(mt)for(var de of mt(se))He.call(se,de)&&Et(he,de,se[de]);return he},dt=(he,se)=>Ke(he,Be(se)),Ae=(he,se)=>{var de={};for(var me in he)ct.call(he,me)&&se.indexOf(me)<0&&(de[me]=he[me]);if(he!=null&&mt)for(var me of mt(he))se.indexOf(me)<0&&He.call(he,me)&&(de[me]=he[me]);return de};const te=he=>{var se=he,{value:de,onChange:me,scrollId:we}=se,be=Ae(se,["value","onChange","scrollId"]);return Ct.createElement("div",{id:we||""},Ct.createElement(ce.Z,dt(ht({},be),{defaultValue:de,onChange:(Me,Ie)=>{Ie!=null&&Ie.length?me(Me,Ie):me(Me)}})))},ee=({value:he,onChange:se,placeholder:de,height:me=140,isEdit:we,miniToolbar:be,watch:Me=!0})=>we?Ct.createElement(ce.Z,{watch:Me,isFocus:!0,height:me||void 0,placeholder:de,defaultValue:he,onChange:se,miniToolbar:be}):Ct.createElement("div",{style:{cursor:"pointer"}},he?Ct.createElement(_e.Z,{className:De.Z.inputBorder,value:he}):Ct.createElement("div",{className:`${De.Z.inputBorder} ${De.Z.placeholder} inputBorderError`},de))},35173:function(Pn,an,ve){"use strict";ve.d(an,{W:function(){return gt}});var ce=ve(59301),De=ve(8591),_e=ve(12563),Ct=ve(78241),Ze=ve(78673),Ke=ve(95237),Be=ve(43604),mt=ve(6848),ct=ve(92832),He=ve(5871),Et=ve(43809),ht=ve(41984),dt=ve(12290),Ae=ve(61485),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,we=(je,Tt,Qe)=>Tt in je?te(je,Tt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):je[Tt]=Qe,be=(je,Tt)=>{for(var Qe in Tt||(Tt={}))de.call(Tt,Qe)&&we(je,Qe,Tt[Qe]);if(se)for(var Qe of se(Tt))me.call(Tt,Qe)&&we(je,Qe,Tt[Qe]);return je},Me=(je,Tt)=>ee(je,he(Tt)),Ie=(je,Tt)=>{var Qe={};for(var bt in je)de.call(je,bt)&&Tt.indexOf(bt)<0&&(Qe[bt]=je[bt]);if(je!=null&&se)for(var bt of se(je))Tt.indexOf(bt)<0&&me.call(je,bt)&&(Qe[bt]=je[bt]);return Qe};const ze=je=>{var Tt=je,{value:Qe,onChange:bt}=Tt,Nt=Ie(Tt,["value","onChange"]);const At=Zt=>{bt([Zt])};return ce.createElement(dt.Z,Me(be({},Nt),{defaultValue:Qe==null?void 0:Qe[0],onChange:At}))},et=je=>{if(!je)return!1;if(/^s*$/.test(je)||je.trim()===""){De.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Tt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return je==="|"?(De.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},$e=({value:je=[],onClose:Tt})=>ce.createElement(_e.default,{closable:!0,onClose:Tt,className:Et.Z.keywordTag},ce.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},je.join(" \u6216 "))),gt=({questionTitlePlaceholder:je,form:Tt,showKeywords:Qe,isMustKeyWords:bt=Qe})=>{const[Nt,At]=(0,ce.useState)(!1),[Zt,Yt]=(0,ce.useState)(""),ut=Ct.default.useWatch("use_keywords",Tt),Ge=Ct.default.useWatch("question_score",Tt);return ce.createElement("div",{className:Et.Z.wrap},ce.createElement("div",{className:Et.Z.questionTitleEditorWrap},ce.createElement(Ct.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ce.createElement(ht.h,{scrollId:"name",watch:!0,height:140,placeholder:je}))),ce.createElement(Ct.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},ce.createElement(ze,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Qe&&!bt&&ce.createElement(Ct.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},ce.createElement(Ze.Z,{defaultChecked:!0})),Qe&&bt&&ce.createElement(Ke.Z,{align:"middle",className:"mb30"},ce.createElement(Ct.default.Item,{name:"use_keywords",valuePropName:"checked"},ce.createElement(Ze.Z,null)),ce.createElement(Be.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ce.createElement(Be.Z,null,ce.createElement(mt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},ce.createElement(Ae.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ut||!bt)&&ce.createElement(Ct.default.List,{name:"keywords",rules:[{validator(kt,ln){return bt?ln!=null&&ln.length?(ln==null?void 0:ln.reduce((Bt,Gt)=>Bt+Gt.score,0))>parseFloat(Ge)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(kt,{add:ln,remove:sn})=>ce.createElement(ce.Fragment,null,ce.createElement("div",{className:`${Et.Z.title} mb10`},bt?"\u5173\u952E\u8BCD":ce.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ce.createElement(Ke.Z,{align:"middle",className:"font14 mb30"},ce.createElement(Be.Z,{flex:1},ce.createElement(ct.default,{value:Zt,onChange:Bt=>{Yt(Bt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Bt=>{var Gt,en,Bn,rn;const Cn=`${(Gt=Bt.target)==null?void 0:Gt.value}`,ft=(Bn=(en=Cn==null?void 0:Cn.split("|"))==null?void 0:en.filter(Re=>!!Re))==null?void 0:Bn.map(Re=>Re==null?void 0:Re.trim()),En=Tt.getFieldValue("keywords"),Vn=((rn=En==null?void 0:En.map(Re=>Re==null?void 0:Re.keyword))==null?void 0:rn.flat())||[];for(const Re of ft)if(Vn.includes(Re)){De.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}et(Cn)&&(ln({keyword:ft,score:1}),Yt(""))},className:Et.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),ce.createElement(Be.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),kt.map(Bt=>{var Gt=Bt,{key:en,name:Bn}=Gt,rn=Ie(Gt,["key","name"]);return ce.createElement(Ke.Z,{key:en,className:"mb20",style:{marginRight:148}},ce.createElement(Be.Z,{flex:1},ce.createElement(Ke.Z,{align:"middle",justify:"space-between"},ce.createElement(Ct.default.Item,Me(be({},rn),{name:[Bn,"keyword"]}),ce.createElement($e,{onClose:()=>sn(Bn)})),bt&&ce.createElement(Ct.default.Item,Me(be({},rn),{name:[Bn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Et.Z.blankInputNumberWrapper}),ce.createElement(He.Z,{className:Et.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ce.createElement("div",{onClick:()=>At(!0)},ce.createElement(Ct.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ce.createElement(ht.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nt}))))}},94734:function(Pn,an,ve){"use strict";ve.d(an,{tc:function(){return Ji.t},uh:function(){return ce.u},rL:function(){return Ri},u8:function(){return _e.u},ZZ:function(){return De.Z},Wk:function(){return Ct.W}});var ce=ve(65357),De=ve(11832),_e=ve(70472),Ct=ve(35173),Ze=ve(59301),Ke=ve(36381),Be=ve(78241),mt=ve(95237),ct=ve(43604),He=ve(5871),Et=ve(6848),ht=ve(38854),dt=ve(43809),Ae=ve(12893),te=ve(41984),ee=ve(43418),he=ve(92832),se=ve(78673),de=ve(59301),me=Object.defineProperty,we=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,et=(Un,$n,ti)=>$n in Un?me(Un,$n,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Un[$n]=ti,$e=(Un,$n)=>{for(var ti in $n||($n={}))Ie.call($n,ti)&&et(Un,ti,$n[ti]);if(Me)for(var ti of Me($n))ze.call($n,ti)&&et(Un,ti,$n[ti]);return Un},gt=(Un,$n)=>we(Un,be($n)),je=(Un,$n)=>{var ti={};for(var Pi in Un)Ie.call(Un,Pi)&&$n.indexOf(Pi)<0&&(ti[Pi]=Un[Pi]);if(Un!=null&&Me)for(var Pi of Me(Un))$n.indexOf(Pi)<0&&ze.call(Un,Pi)&&(ti[Pi]=Un[Pi]);return ti};const Tt=({value:Un,onChange:$n})=>{const ti=mi=>{ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:dt.Z.modal,onOk:()=>{const nr=[...Un];nr.splice(mi,1),$n(nr)}})},Pi=()=>{const mi=[...Un];mi.push(""),$n(mi)};return de.createElement(mt.Z,{className:"ml20"},de.createElement(ct.Z,{flex:1},Un==null?void 0:Un.map((mi,nr)=>de.createElement(mt.Z,{key:`${mi}_${nr}`,align:"middle",className:"mb20"},de.createElement(he.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:mi,autoSize:{maxRows:3},maxLength:1e3,onBlur:ji=>{const Le=[...Un],si=ji.target.value.trim();Le[nr]=si,$n(Le)}}),de.createElement(Et.Z,{title:"\u5220\u9664"},de.createElement(Ae.Z,{className:dt.Z.deleteIcon,style:{marginLeft:15,visibility:nr>0?"visible":"hidden"},onClick:()=>ti(nr)}))))),de.createElement(ct.Z,null,de.createElement("div",{className:`${dt.Z.addBtn}`,onClick:()=>{Pi()}},"\u65B0\u589E\u7B54\u6848")))},Qe=({value:Un=!0,onChange:$n})=>de.createElement(se.Z,{checked:!Un,onChange:ti=>{$n(!ti)}}),bt="\u2581",Nt=({questionTitlePlaceholder:Un,form:$n,name:ti,scoreByBlank:Pi=!1,answerKey:mi,titleKey:nr="name",analysisKey:ji="analysis",isOrdered:Le="is_ordered"})=>{var si,Hi;const[hn,ni]=(0,Ze.useState)(!1),vi=(tn,xt)=>{const rt=xt.line;let Vt=0;for(let xn=0;xn{const on=tn.getRange(xt.from,xt.to);let xn=0;if(xt.text.forEach(An=>{xn+=An.split(bt).length-1}),xt.origin!=="setValue"){if(on&&on.indexOf(bt)!==-1){const An=on.split(bt).length-1,yt=vi(tn,xt.from);if(console.log(`\u5220\u9664${An}\u4E2A\uFF0C \u524D\u9762\u6709${yt}\u4E2A\uFF0C\u65B0\u589E${xn}\u4E2A`),An>1){const cn=Array.from({length:An},(On,ri)=>yt+ri);Vt(cn)}else Vt(yt)}else if(xn>0){const An=vi(tn,xt.from);console.log(`\u65B0\u589E${xn}\u4E2A\uFF0C\u4E4B\u524D\u6709${An}\u4E2A`),rt(xn,An)}}},_n=()=>{const tn=$n.getFieldValue(["sub_item_banks",...mi]);$n.setFieldValue(["sub_item_banks",...mi],tn==null?void 0:tn.map((xt,rt)=>gt($e({},xt),{position:rt+1})))},Dn=(0,Ze.useRef)(),Ft=(tn,xt)=>{for(let rt=0;rt{Ot.current(tn),_n()},Ut=(Hi=(si=$n.getFieldValue("sub_item_banks"))==null?void 0:si[mi==null?void 0:mi[0]])==null?void 0:Hi[mi==null?void 0:mi[1]];return(0,Ze.useEffect)(()=>{console.log("========",$n.getFieldsValue())},[$n]),de.createElement("div",{className:dt.Z.wrap},de.createElement("div",{className:dt.Z.questionTitleEditorWrap},de.createElement(Be.default.Item,{label:"\u9898\u5E72",name:nr,labelCol:{span:24},rules:[{required:!0}]},de.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:Un,showNullButton:!0,onCMBeforeChange:(tn,xt)=>{Fi(tn,xt,Ft,Ve)}}))),de.createElement(Be.default.List,{name:mi,rules:[{validator(tn,xt){if((xt==null?void 0:xt.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const rt of xt){const{answer_text:Vt}=rt||{};if(Vt!=null&&Vt.some(on=>(on==null?void 0:on.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(tn,{add:xt,remove:rt},{errors:Vt})=>(Dn.current=xt,Ot.current=rt,de.createElement(de.Fragment,null,de.createElement(Be.default.Item,{label:de.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(tn!=null&&tn.length)&&de.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),tn.map((on,xn)=>{var An=on,{key:yt,name:cn}=An,On=je(An,["key","name"]);return de.createElement(mt.Z,{align:"top",key:yt},de.createElement(ct.Z,{className:`${dt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",xn+1),de.createElement(ct.Z,{flex:1},de.createElement(mt.Z,{align:"top",justify:"space-between"},de.createElement(ct.Z,{flex:1},de.createElement(Be.default.Item,gt($e({},On),{name:[cn,"answer_text"],noStyle:!0}),de.createElement(Tt,null))),Pi&&de.createElement(ct.Z,{flex:"224px"},de.createElement(Be.default.Item,gt($e({},On),{name:[cn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:dt.Z.blankInputNumberWrapper}),de.createElement(He.Z,{className:dt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),de.createElement(Be.default.Item,gt($e({},On),{name:[cn,"position"],noStyle:!0}),de.createElement(he.default,{type:"hidden"}))))})))),de.createElement(mt.Z,{align:"middle"},de.createElement(Be.default.Item,{name:[ti,"downcase"],valuePropName:"checked"},de.createElement(se.Z,null)),de.createElement(ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),de.createElement(mt.Z,{align:"middle"},de.createElement(Be.default.Item,{name:[ti,"no_space"],valuePropName:"checked"},de.createElement(se.Z,null)),de.createElement(ct.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ut==null?void 0:Ut.length)>1&&de.createElement(mt.Z,{align:"middle",className:(Ut==null?void 0:Ut.length)>1?"mb30":`${dt.Z.hide}`},de.createElement(Be.default.Item,{name:Le},de.createElement(Qe,null)),de.createElement(ct.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),de.createElement("div",{className:"mt30",onClick:()=>ni(!0)},de.createElement(Be.default.Item,{name:ji,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},de.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hn}))))};var At=ve(59301),Zt=Object.defineProperty,Yt=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,sn=(Un,$n,ti)=>$n in Un?Zt(Un,$n,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Un[$n]=ti,Bt=(Un,$n)=>{for(var ti in $n||($n={}))kt.call($n,ti)&&sn(Un,ti,$n[ti]);if(Ge)for(var ti of Ge($n))ln.call($n,ti)&&sn(Un,ti,$n[ti]);return Un},Gt=(Un,$n)=>Yt(Un,ut($n)),en=(Un,$n)=>{var ti={};for(var Pi in Un)kt.call(Un,Pi)&&$n.indexOf(Pi)<0&&(ti[Pi]=Un[Pi]);if(Un!=null&&Ge)for(var Pi of Ge(Un))$n.indexOf(Pi)<0&&ln.call(Un,Pi)&&(ti[Pi]=Un[Pi]);return ti};const Bn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},rn=({value:Un,onChange:$n,form:ti,choiceKey:Pi})=>{const mi=(Un==null?void 0:Un.is_answer)===1,nr=Un==null?void 0:Un.choice_text,ji=()=>{var Le;const si=(Le=ti==null?void 0:ti.getFieldValue(["sub_item_banks",...Pi]))==null?void 0:Le.map(Hi=>({choice_text:Hi.choice_text,is_answer:0}));ti==null||ti.setFieldValue(["sub_item_banks",...Pi],si),$n(Gt(Bt({},Un),{is_answer:1}))};return At.createElement(mt.Z,{className:dt.Z.choiceWrap,align:"middle",wrap:!1},At.createElement(ct.Z,{onClick:ji,className:`${dt.Z.choiceIndex} ${dt.Z.judgementIndex} ${mi?dt.Z.activeAnswer:""}`},Bn[nr]),At.createElement(ct.Z,{flex:1,className:`${dt.Z.editorWrap} ml15`},At.createElement("div",{className:`${dt.Z.inputBorder} ${dt.Z.placeholder} ${mi?dt.Z.activeJudgementAnswer:""}`},nr)),At.createElement(ct.Z,{flex:"0 0 auto",className:"ml15"},At.createElement("div",{onClick:ji,className:`${dt.Z.setAnswerBtn} ${mi?dt.Z.activeAnswer:""}`},mi?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Cn=({questionTitlePlaceholder:Un,choiceKey:$n="choices",form:ti,titleKey:Pi="name",analysisKey:mi="analysis"})=>{const[nr,ji]=(0,Ze.useState)(!1);return At.createElement("div",{className:dt.Z.wrap},At.createElement("div",{className:dt.Z.questionTitleEditorWrap},At.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Pi,labelCol:{span:24},rules:[{required:!0}]},At.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:Un}))),At.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},At.createElement(Be.default.List,{name:$n,rules:[{validator(Le,si){return si.some(hn=>(hn==null?void 0:hn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Le=>At.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Le.map(si=>{var Hi=si,{key:hn,name:ni}=Hi,vi=en(Hi,["key","name"]);return At.createElement(Be.default.Item,Gt(Bt({},vi),{key:hn,name:ni,noStyle:!0}),At.createElement(rn,{form:ti,choiceKey:$n}))})))),At.createElement("div",{className:"mt30",onClick:()=>ji(!0)},At.createElement(Be.default.Item,{name:mi,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},At.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:nr}))))};var ft=ve(8591),En=ve(12563),Vn=ve(12290),Re=ve(61485),Ce=Object.defineProperty,Pe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Pt=(Un,$n,ti)=>$n in Un?Ce(Un,$n,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Un[$n]=ti,qe=(Un,$n)=>{for(var ti in $n||($n={}))Se.call($n,ti)&&Pt(Un,ti,$n[ti]);if(ke)for(var ti of ke($n))nt.call($n,ti)&&Pt(Un,ti,$n[ti]);return Un},Ue=(Un,$n)=>Pe(Un,Ne($n)),St=(Un,$n)=>{var ti={};for(var Pi in Un)Se.call(Un,Pi)&&$n.indexOf(Pi)<0&&(ti[Pi]=Un[Pi]);if(Un!=null&&ke)for(var Pi of ke(Un))$n.indexOf(Pi)<0&&nt.call(Un,Pi)&&(ti[Pi]=Un[Pi]);return ti};const vt=Un=>{var $n=Un,{value:ti,onChange:Pi}=$n,mi=St($n,["value","onChange"]);const nr=ji=>{Pi([ji])};return Ze.createElement(Vn.Z,Ue(qe({},mi),{defaultValue:ti==null?void 0:ti[0],onChange:nr}))},lt=Un=>{if(!Un)return!1;let $n=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Un==="|"?(ft.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Dt=({value:Un=[],onClose:$n})=>Ze.createElement(En.default,{closable:!0,onClose:$n,className:dt.Z.keywordTag},Ze.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Un.join(" \u6216 "))),un=({questionTitlePlaceholder:Un,form:$n,showKeywords:ti,isMustKeyWords:Pi=ti,titleKey:mi="name",analysisKey:nr="analysis",answerTexts:ji="answer_texts",keywords:Le="keywords",useKeywords:si="use_keywords",indexs:Hi})=>{const[hn,ni]=(0,Ze.useState)(!1),[vi,Fi]=(0,Ze.useState)(""),[_n,Dn]=(0,Ze.useState)(!1),Ft=Be.default.useWatch("question_score",$n);return Ze.createElement("div",{className:dt.Z.wrap},Ze.createElement("div",{className:dt.Z.questionTitleEditorWrap},Ze.createElement(Be.default.Item,{label:"\u9898\u5E72",name:mi,labelCol:{span:24},rules:[{required:!0}]},Ze.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:Un}))),Ze.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ji,labelCol:{span:24}},Ze.createElement(vt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),ti&&!Pi&&Ze.createElement(Be.default.Item,{hidden:!0,name:si,valuePropName:"checked"},Ze.createElement(se.Z,{defaultChecked:!0})),ti&&Pi&&Ze.createElement(mt.Z,{align:"middle",className:"mb30"},Ze.createElement(Be.default.Item,{name:si,valuePropName:"checked"},Ze.createElement(se.Z,{onChange:()=>{var Ot,Ve,Ut,tn,xt,rt;console.log($n.getFieldsValue()),Dn((Ut=(Ve=(Ot=$n.getFieldsValue())==null?void 0:Ot.sub_item_banks)==null?void 0:Ve[Hi])==null?void 0:Ut.use_keywords),console.log((rt=(xt=(tn=$n.getFieldsValue())==null?void 0:tn.sub_item_banks)==null?void 0:xt[Hi])==null?void 0:rt.use_keywords),console.log(_n)}})),Ze.createElement(ct.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ze.createElement(ct.Z,null,Ze.createElement(Et.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Ze.createElement(Re.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(_n||!Pi)&&Ze.createElement(Be.default.List,{name:Le,rules:[{validator(Ot,Ve){return Pi?Ve!=null&&Ve.length?(Ve==null?void 0:Ve.reduce((tn,xt)=>tn+xt.score,0))>parseFloat(Ft)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ot,{add:Ve,remove:Ut})=>Ze.createElement(Ze.Fragment,null,Ze.createElement("div",{className:`${dt.Z.title} mb10`},Pi?"\u5173\u952E\u8BCD":Ze.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Ze.createElement(mt.Z,{align:"middle",className:"font14 mb30"},Ze.createElement(ct.Z,{flex:1},Ze.createElement(he.default,{value:vi,onChange:tn=>{Fi(tn.target.value)},maxLength:50,allowClear:!0,onPressEnter:tn=>{var xt,rt,Vt,on;const xn=`${(xt=tn.target)==null?void 0:xt.value}`,An=(Vt=(rt=xn==null?void 0:xn.split("|"))==null?void 0:rt.filter(On=>!!On))==null?void 0:Vt.map(On=>On==null?void 0:On.trim()),yt=$n.getFieldValue(["sub_item_banks",...Le]),cn=((on=yt==null?void 0:yt.map(On=>On==null?void 0:On.keyword))==null?void 0:on.flat())||[];for(const On of An)if(cn.includes(On)){ft.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}lt(xn)&&(Ve({keyword:An,score:1}),Fi(""))},className:dt.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Ze.createElement(ct.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ot.map(tn=>{var xt=tn,{key:rt,name:Vt}=xt,on=St(xt,["key","name"]);return Ze.createElement(mt.Z,{key:rt,className:"mb20",style:{marginRight:148}},Ze.createElement(ct.Z,{flex:1},Ze.createElement(mt.Z,{align:"middle",justify:"space-between"},Ze.createElement(Be.default.Item,Ue(qe({},on),{name:[Vt,"keyword"]}),Ze.createElement(Dt,{onClose:()=>Ut(Vt)})),Pi&&Ze.createElement(Be.default.Item,Ue(qe({},on),{name:[Vt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:dt.Z.blankInputNumberWrapper}),Ze.createElement(He.Z,{className:dt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Ze.createElement("div",{onClick:()=>ni(!0)},Ze.createElement(Be.default.Item,{name:nr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ze.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hn}))))};var Xt=ve(59301),$t=Object.defineProperty,wn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,Wn=(Un,$n,ti)=>$n in Un?$t(Un,$n,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Un[$n]=ti,Rn=(Un,$n)=>{for(var ti in $n||($n={}))Yn.call($n,ti)&&Wn(Un,ti,$n[ti]);if(pn)for(var ti of pn($n))ai.call($n,ti)&&Wn(Un,ti,$n[ti]);return Un},ii=(Un,$n)=>wn(Un,bn($n)),pi=(Un,$n)=>{var ti={};for(var Pi in Un)Yn.call(Un,Pi)&&$n.indexOf(Pi)<0&&(ti[Pi]=Un[Pi]);if(Un!=null&&pn)for(var Pi of pn(Un))$n.indexOf(Pi)<0&&ai.call(Un,Pi)&&(ti[Pi]=Un[Pi]);return ti};const{Panel:gi}=Ke.default,Ri=({questionTitlePlaceholder:Un,choiceKey:$n,form:ti,withScore:Pi})=>{const[mi,nr]=(0,Ze.useState)([]),ji=Le=>{nr(Le)};return Xt.createElement("div",{className:dt.Z.wrap},Xt.createElement("div",{className:dt.Z.questionTitleEditorWrap},Xt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Xt.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:Un}))),Xt.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Xt.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(Le,si){return si?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Le,{add:si,remove:Hi,move:hn})=>{const ni=ti.getFieldValue("sub_item_banks");return Xt.createElement(Xt.Fragment,null,Xt.createElement(Ke.default,{className:Le.length>0?dt.Z.collapseWrapper:"",bordered:!1,activeKey:mi,onChange:ji,expandIcon:({isActive:vi})=>Xt.createElement("i",{className:`iconfont icon-weizhankai ${vi?dt.Z.open:dt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Le.map((vi,Fi)=>{var _n=vi,{key:Dn,name:Ft}=_n,Ot=pi(_n,["key","name"]),Ve,Ut,tn,xt,rt,Vt,on,xn,An,yt;return Xt.createElement(gi,{className:dt.Z.panel,forceRender:!0,header:Xt.createElement("div",{className:dt.Z.panelHeader},"\u7B2C",Fi+1,"\u5C0F\u9898",Xt.createElement("span",null,"\uFF08",((Ve=ni==null?void 0:ni[Ft])==null?void 0:Ve.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Ut=ni==null?void 0:ni[Ft])==null?void 0:Ut.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((tn=ni==null?void 0:ni[Ft])==null?void 0:tn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((xt=ni==null?void 0:ni[Ft])==null?void 0:xt.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Ft,extra:Xt.createElement(mt.Z,{align:"middle",onClick:cn=>cn.stopPropagation()},Pi&&Xt.createElement(ct.Z,null,Xt.createElement(Be.default.Item,ii(Rn({},Ot),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Ft,"question_score"],className:dt.Z.blankInputNumberWrapper}),Xt.createElement(He.Z,{className:dt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Xt.createElement(ct.Z,null,Xt.createElement(mt.Z,{align:"middle",className:"pl40",justify:"end"},Fi!==0&&Xt.createElement("div",{onClick:()=>{var cn;hn(Fi,Fi-1);const On=(cn=ti.getFieldValue("sub_item_banks"))==null?void 0:cn.map((ri,Wt)=>(Le.map((Jt,hi)=>{Wt===hi&&(ri.q_position=Number(Jt.name)+1)}),ri));ti.setFieldValue("sub_item_banks",On)}},Xt.createElement(Et.Z,{title:"\u4E0A\u79FB"},Xt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Fi{var cn;hn(Fi,Fi+1);const On=(cn=ti.getFieldValue("sub_item_banks"))==null?void 0:cn.map((ri,Wt)=>(Le.map((Jt,hi)=>{Wt===hi&&(ri.q_position=Number(Jt.name)+1)}),ri));ti.setFieldValue("sub_item_banks",On)},className:Fi===0?"":"ml15"},Xt.createElement(Et.Z,{title:"\u4E0B\u79FB"},Xt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Xt.createElement(ct.Z,null,Xt.createElement(Et.Z,{title:"\u5220\u9664"},Xt.createElement(Ae.Z,{className:`${dt.Z.deleteIcon} ml15`,onClick:()=>Hi(Ft)}))))},Xt.createElement(Be.default.Item,ii(Rn({},Ot),{name:Ft}),(((rt=ni==null?void 0:ni[Ft])==null?void 0:rt.item_type)=="SINGLE"||((Vt=ni==null?void 0:ni[Ft])==null?void 0:Vt.item_type)=="MULTIPLE")&&Xt.createElement(ce.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((on=ni==null?void 0:ni[Ft])==null?void 0:on.item_type)=="MULTIPLE",form:ti,choiceKey:[Ft,"choices"],titleKey:[Ft,"name"],analysisKey:[Ft,"analysis"],choiceOptionsPath:["sub_item_banks",Ft,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xn=ni==null?void 0:ni[Ft])==null?void 0:xn.item_type)=="COMPLETION"&&Xt.createElement(Nt,{form:ti,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:Ft,titleKey:[Ft,"name"],analysisKey:[Ft,"analysis"],isOrdered:[Ft,"is_ordered"],answerKey:[Ft,"standard_answers"]}),((An=ni==null?void 0:ni[Ft])==null?void 0:An.item_type)=="JUDGMENT"&&Xt.createElement(Cn,{form:ti,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Ft,"name"],analysisKey:[Ft,"analysis"],choiceKey:[Ft,"choices"]}),((yt=ni==null?void 0:ni[Ft])==null?void 0:yt.item_type)=="SUBJECTIVE"&&Xt.createElement(un,{showKeywords:!0,isMustKeyWords:!1,form:ti,titleKey:[Ft,"name"],analysisKey:[Ft,"analysis"],answerTexts:[Ft,"answer_texts"],useKeywords:[Ft,"use_keywords"],keywords:[Ft,"keywords"],indexs:Ft,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Le.length<20&&Xt.createElement(ht.Z,{menu:{items:[{label:Xt.createElement("div",{onClick:()=>{si({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),nr([Le==null?void 0:Le.length,...mi])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Xt.createElement("div",{onClick:()=>{si({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),nr([Le==null?void 0:Le.length,...mi])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Xt.createElement("div",{onClick:()=>{si({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),nr([Le==null?void 0:Le.length,...mi])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Xt.createElement("div",{onClick:()=>{si({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),nr([Le==null?void 0:Le.length,...mi])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Xt.createElement("div",{onClick:()=>{si({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),nr([Le==null?void 0:Le.length,...mi])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(vi=>vi.show).map(vi=>({label:vi.label,key:vi.key}))}},Xt.createElement("div",{className:`${dt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Ji=ve(90502)},85149:function(Pn,an,ve){"use strict";ve.d(an,{z:function(){return Ie},Z:function(){return ze}});var ce=ve(59301),De=ve(50304),_e=ve(24768),Ct=ve(64018),Ze=ve(40846),Ke=ve(3294),Be=ve(955),mt=ve(15342),ct=ve(1012),He=ve(23210),Et=ve(59301),dt=({html:et})=>{const $e=(0,ce.useRef)(null),gt=(0,ce.useRef)(null),je=`.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 36px !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,ce.useEffect)(()=>{const Tt=$e.current.attachShadow({mode:"open"});gt.current=document.createElement("div"),gt.current.className="markdown-body",gt.current.innerHTML=et,Tt.appendChild(gt.current);const Qe=document.createElement("style");return Qe.textContent=je,Tt.appendChild(Qe),()=>{Tt.innerHTML=""}},[]),(0,ce.useEffect)(()=>{gt.current&&(gt.current.innerHTML=et)},[et]),Et.createElement("div",{ref:$e})},Ae=Object.defineProperty,te=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(et,$e,gt)=>$e in et?Ae(et,$e,{enumerable:!0,configurable:!0,writable:!0,value:gt}):et[$e]=gt,de=(et,$e)=>{for(var gt in $e||($e={}))ee.call($e,gt)&&se(et,gt,$e[gt]);if(te)for(var gt of te($e))he.call($e,gt)&&se(et,gt,$e[gt]);return et};const me="@\u2581\u2581@",we="@\u2581@",be=/]*>/g;function Me(et){let $e=document.createElement("div");return $e.innerHTML=et,$e.childNodes.length===0?"":$e.childNodes[0].nodeValue}const Ie=(et,$e)=>{et=et||"";const gt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,je=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return $e?et.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(gt,(bt,Nt,At,Zt,Yt,ut,Ge)=>{const kt=Nt||Zt||ut,ln=At||Yt||Ge||"?";return Ke.Z.API_SERVER+"/api/attachments/"+kt+ln+"&t="+(0,Be.Jn)(kt,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(et=et.replace(Qe,(bt,Nt,At,Zt,Yt,ut,Ge)=>{const kt=Nt||Zt||ut,ln=At||Yt||Ge||"?";return Ke.Z.API_SERVER+"/attachments/download/"+kt+ln+"&t="+(0,Be.Jn)(kt,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replace(gt,(bt,Nt,At,Zt,Yt,ut,Ge)=>{const kt=Nt||Zt||ut,ln=At||Yt||Ge||"?";return Ke.Z.API_SERVER+"/api/attachments/"+kt+ln+"&t="+(0,Be.Jn)(kt,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replace(je,(bt,Nt,At,Zt,Yt)=>{const ut=Nt||Zt,Ge=At||Yt||"";return'"'+Ke.Z.API_SERVER+"/api/attachments/"+ut+Ge+ut+Ge+"&t="+(0,Be.Jn)(ut,Date.now())}).replace(Tt,(bt,Nt,At,Zt,Yt)=>{const ut=Nt||Zt,Ge=At||Yt||"";return"("+Ke.Z.API_SERVER+"/files/uploads/"+ut+Ge+ut+Ge+"&t="+(0,Be.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,` `),et)};var ze=({value:et="",className:$e,showTextOnly:gt,showLines:je,style:Tt={},stylesPrev:Qe={},highlightKeywords:bt,showProgramFill:Nt,isProgramFill:At,disabledFill:Zt=!1,programFillValue:Yt,onFillChange:ut=ln=>{},onFillBlur:Ge=()=>{},onFillFocus:kt=()=>{}})=>{let ln=String(et);const[sn,Bt]=(0,ce.useState)(""),[Gt,en]=(0,ce.useState)("office"),[Bn,rn]=(0,ce.useState)([]),Cn=(0,ce.useRef)("a"+(0,ct.Z)()),ft={},En=(St,vt,lt)=>{const Dt=document.createElement(St===we?"input":"textarea");Dt.style.width="100%",Dt.style.height=St===we?"40px":"151px",Dt.rows=5,Dt.spellcheck=!1,Dt.name="edu-program-fill",Dt.placeholder="\u8BF7\u8F93\u5165",Dt.dataset.id=vt;const un=Object.keys(ft).length;return ft[un]=Dt,`${Dt.outerHTML}`};function Vn(St){return St=St.replace(/!\[.*?\]\(.*?\)/g,""),St=St.replace(/\[.*?\]\(.*?\)/g,""),St=St.replace(new RegExp("","gs"),""),St=St.replace(//g,""),St=St.replace(//g,""),St=St.replace(new RegExp(".*?<\\/video>","gs"),""),St=St.replace(new RegExp(".*?<\\/audio>","gs"),""),St=St.replace(new RegExp(".*?<\\/style>","gs"),""),St=St.replace(new RegExp(".*?<\\/script>","gs"),""),St}const Re=St=>St.replace(/([\s\S]+?)<\/style>/gim,function(vt,lt){let Dt=lt.replace(/(\n|\r)/g,"").split("}"),un=[];return Dt.map(Xt=>{Xt!=""&&un.push(`.${Cn.current} ${Xt}`)}),``}),Ce=(0,ce.useMemo)(()=>{try{const Dt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,un=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,$t=/\(\/attachments\/download\//g;ln=ln.replace($t,"("+Ke.Z.API_SERVER+"/attachments/download/").replace(Dt,"("+Ke.Z.API_SERVER+"/api/attachments/").replace(un,'"'+Ke.Z.API_SERVER+"/api/attachments/").replace(Xt,'"'+Ke.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,` `)}catch(Dt){}if(Nt){let Dt=-1;return ln=ln.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(un,Xt,$t){var wn;return++Dt,En(un,Dt,(wn=Yt==null?void 0:Yt[Dt])==null?void 0:wn.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Re(ln||"")}
`}let St=Re(ln);St=(0,_e.ZP)(St);const vt=(0,_e.ez)();ln.match(/\[TOC\]/)&&(St=St.replace("

[TOC]

",(0,_e.Qv)()),(0,_e.Iy)()),St=St.replace(/(__special_katext_id_\d+__)/g,(Dt,un)=>{const{type:Xt,expression:$t}=vt[un];return(0,mt.renderToString)(Me($t)||"",{displayMode:Xt==="block",throwOnError:!1,output:"html"})}),St=St.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,_e.AL)();const lt=document.createElement("div");if(lt.innerHTML=St,gt)return lt.innerText;if(bt){const Dt=bt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Se(lt,Dt),lt.innerHTML}return setTimeout(()=>qe(),500),lt.innerHTML},[ln,bt]);(0,ce.useEffect)(()=>{nt.current&&nt.current.querySelectorAll(["input","textarea"]).forEach(vt=>{vt.oninput=Pe,vt.onblur=Ne,vt.onfocus=ke})},[Bn]),(0,ce.useEffect)(()=>{var St,vt,lt,Dt,un;if(Yt!=null&&Yt.length)try{const Xt=nt.current.querySelectorAll(".edu-program-fill-score"),$t=nt.current.querySelectorAll('[name="edu-program-fill"]');for(const[wn,bn]of $t.entries())bn.value=((St=Yt==null?void 0:Yt[wn])==null?void 0:St.value)||"",((vt=Yt==null?void 0:Yt[wn])==null?void 0:vt.type)==="warning"?bn.className="program-fill-warning":((lt=Yt==null?void 0:Yt[wn])==null?void 0:lt.type)==="success"?bn.className="program-fill-success":bn.className="";for(const[wn,bn]of Xt.entries())bn.innerHTML=(Dt=Yt==null?void 0:Yt[wn])!=null&&Dt.score?`${(un=Yt==null?void 0:Yt[wn])==null?void 0:un.score}\u5206`:"";rn(Yt)}catch(Xt){console.log(Xt,"error")}},[Yt]);const Pe=St=>{Bn[St.target.dataset.id]=Bn[St.target.dataset.id]||{},Bn[St.target.dataset.id].value=St.target.value,rn([...Bn]),ut(Bn,St.target.dataset.id)},Ne=St=>{Bn[St.target.dataset.id]=Bn[St.target.dataset.id]||{},Bn[St.target.dataset.id].value=St.target.value,rn([...Bn]),Ge(Bn,St.target.dataset.id)},ke=St=>{Bn[St.target.dataset.id]=Bn[St.target.dataset.id]||{},Bn[St.target.dataset.id].value=St.target.value,rn([...Bn]),kt(Bn,St.target.dataset.id)};function Se(St,vt){return St.childNodes.forEach(lt=>{var Dt;if(lt.childNodes.length>0)Se(lt,vt);else if(lt.nodeName!=="IMG")if(lt.innerHTML)lt.innerHTML=(Dt=lt.innerHTML)==null?void 0:Dt.replace(new RegExp(vt,"gi"),'$&');else{const un=document.createElement("span");un.innerHTML=lt.textContent.replace(new RegExp(vt,"gi"),'$&'),lt.replaceWith(un)}})}const nt=(0,ce.useRef)();_e.jb.WebkitLineClamp=je,je&&(Tt=de(de({},Tt),_e.jb));function Pt(St){let vt=St.target;if(vt.tagName.toUpperCase()==="A"){let lt=vt.getAttribute("href");if(lt.indexOf("office")>-1)St.preventDefault(),Bt(lt),en("office");else if(lt.indexOf("application/pdf")>-1)St.preventDefault(),Bt(lt),en("pdf");else if(lt.indexOf("text/html")>-1)St.preventDefault(),Bt(lt),en("html");else if(lt.startsWith("#")){St.preventDefault();let Dt=document.getElementById(lt.replace("#",""));Dt&&Dt.scrollIntoView(!0)}}}const qe=()=>{var St;const vt=(St=nt.current)==null?void 0:St.querySelectorAll("video");vt==null||vt.forEach(lt=>{if(lt.oncontextmenu=()=>!1,lt.src.indexOf(".m3u8")>-1&&!lt.canPlayType("application/vnd.apple.mpegurl")){if(Ze.ZP.isSupported()){var Dt=new Ze.ZP;Dt.loadSource(lt.src),Dt.attachMedia(lt)}}})};(0,ce.useEffect)(()=>{if(nt.current&&Ce&&Ce.match(be)&&window.PR.prettyPrint(),nt.current)return nt.current.addEventListener("click",Pt),()=>{var St;(St=nt.current)==null||St.removeEventListener("click",Pt),(0,_e.AL)(),(0,_e.Iy)()}},[Ce,nt.current,Pt]),(0,ce.useEffect)(()=>{var St;const vt=lt=>{lt.preventDefault(),lt.clipboardData.setData("text",window.getSelection().toString())};return(St=nt.current)==null||St.addEventListener("copy",vt),()=>{var lt;(lt=nt.current)==null||lt.removeEventListener("copy",vt)}},[nt.current]);const Ue=St=>//i.test(St||"");return ce.createElement(ce.Fragment,null,gt&&ce.createElement("div",{ref:nt},Ce),!gt&&!Ue(Ce)&&ce.createElement("div",{ref:nt,style:de({},Tt),className:`${$e||""} ${Zt?"disabled-fill":""} markdown-body ${Cn.current}`,dangerouslySetInnerHTML:{__html:Ce}}),!gt&&Ue(Ce)&&ce.createElement(dt,{html:Ce}),ce.createElement(He.Z,{close:!0,data:sn,type:sn!=null&&sn.length?Gt:"",style:de({},Qe),onClose:()=>Bt("")}))}},68042:function(Pn,an,ve){"use strict";ve.d(an,{C:function(){return Nt}});var ce=ve(59301),De={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},_e=ve(92310),Ct=ve.n(_e),Ze=ve(24905),Ke=ve(95237),Be=ve(8591),mt=ve(6848),ct=ve(3113),He=ve(43418),Et=ve(1710),ht=ve(5871),dt=ve(78241),Ae=ve(71418),te=ve(955),ee=ve(99064),he=ve(24065),se=ve(59155),de=ve(85057),me=Object.defineProperty,we=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,et=(At,Zt,Yt)=>Zt in At?me(At,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):At[Zt]=Yt,$e=(At,Zt)=>{for(var Yt in Zt||(Zt={}))Ie.call(Zt,Yt)&&et(At,Yt,Zt[Yt]);if(Me)for(var Yt of Me(Zt))ze.call(Zt,Yt)&&et(At,Yt,Zt[Yt]);return At},gt=(At,Zt)=>we(At,be(Zt)),je=(At,Zt,Yt)=>new Promise((ut,Ge)=>{var kt=Bt=>{try{sn(Yt.next(Bt))}catch(Gt){Ge(Gt)}},ln=Bt=>{try{sn(Yt.throw(Bt))}catch(Gt){Ge(Gt)}},sn=Bt=>Bt.done?ut(Bt.value):Promise.resolve(Bt.value).then(kt,ln);sn((Yt=Yt.apply(At,Zt)).next())});const Tt=Ze.default.Group,Qe=({className:At,title:Zt,items:Yt=[],value:ut,onChange:Ge})=>{const kt=(Yt==null?void 0:Yt.length)===(ut==null?void 0:ut.length),ln=(ut==null?void 0:ut.length)>0&&(ut==null?void 0:ut.length)<(Yt==null?void 0:Yt.length),sn=Bt=>{const Gt=Yt.map(en=>en.id);Ge(Bt.target.checked?Gt:[])};return ce.createElement(Ke.Z,{align:"middle",className:At},!!Zt&&ce.createElement("div",{className:"mr20",style:{color:"#5F6368"}},Zt),ce.createElement(Ze.default,{indeterminate:ln,onChange:sn,checked:kt},"\u5168\u90E8"),ce.createElement(Tt,{value:ut,onChange:Ge},Yt.map(Bt=>ce.createElement(Ze.default,{className:"ml30 c-black",key:Bt.id,value:Bt.id},Bt.name,ce.createElement("span",null,`(${Bt.count})`)))))};var Nt=({className:At,style:Zt,dataSource:Yt})=>{var ut,Ge,kt,ln,sn,Bt,Gt;const[en,Bn]=(0,ce.useState)({}),[rn,Cn]=(0,ce.useState)(!0),[ft,En]=(0,ce.useState)(!1),[Vn,Re]=(0,ce.useState)(!1),[Ce,Pe]=(0,ce.useState)(null),[Ne,ke]=(0,ce.useState)(0),[Se,nt]=(0,ce.useState)({}),[Pt,qe]=(0,ce.useState)(!0),[Ue,St]=(0,ce.useState)(0),[vt,lt]=(0,ce.useState)(0),[Dt,un]=(0,ce.useState)(!1),Xt=(0,ce.useRef)(null),[$t,wn]=(0,ce.useState)(!1),[bn,pn]=(0,ce.useState)(!0),[Yn,ai]=(0,ce.useState)([]),Wn={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Rn,ii]=(0,ce.useState)($e({},Wn));(0,ce.useEffect)(()=>{Yt!=null&&Yt.question_id&&Bn(Yt)},[Yt==null?void 0:Yt.question_id]),(0,ce.useEffect)(()=>{var si;if(((si=en==null?void 0:en.exercise_question_resubmit)==null?void 0:si.status)==="running"){const Hi=setInterval(()=>{Ri()},3e3);return()=>clearInterval(Hi)}},[(ut=en==null?void 0:en.exercise_question_resubmit)==null?void 0:ut.status]),(0,ce.useEffect)(()=>{var si;Vn&&(Vn===1&&(Rn.question_status=Ji.map(Hi=>Hi.value),Rn.review=Un.map(Hi=>Hi.value)),Vn===2&&(Rn.exercise_question_resubmit_id=(si=en==null?void 0:en.exercise_question_resubmit)==null?void 0:si.id,Ce===1&&(Rn.success_status=[1]),Ce===2&&(Rn.success_status=[0])),ii($e({},Rn)),pi(Rn),lt(en!=null&&en.is_mirror?3:10),St(en!=null&&en.is_mirror?1:5))},[Vn]),(0,ce.useEffect)(()=>{$t&&gi()},[$t]);const pi=si=>je(void 0,null,function*(){Cn(!0);const Hi=yield(0,ee.ZP)(`/api/exercise_questions/${en==null?void 0:en.question_id}/resubmit_student_list.json`,{method:"get",params:si});(Hi==null?void 0:Hi.status)==0&&(nt(Hi||[]),ke(Hi==null?void 0:Hi.count)),Cn(!1)}),gi=()=>je(void 0,null,function*(){pn(!0);const si=yield(0,ee.ZP)(`/api/exercise_questions/${en==null?void 0:en.question_id}/resubmit_history.json`,{method:"get"});(si==null?void 0:si.status)==0&&ai((si==null?void 0:si.data)||[]),pn(!1)}),Ri=()=>je(void 0,null,function*(){const si=yield(0,ee.ZP)(`/api/exercise_questions/${en==null?void 0:en.question_id}/resubmit_status.json`,{method:"get"});(si==null?void 0:si.status)==0&&Bn(gt($e({},en),{show_resubmit_history:!0,exercise_question_resubmit:(si==null?void 0:si.data)||{}}))}),Ji=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],Un=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],$n=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],ti=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(si,Hi,hn)=>ce.createElement("span",{className:"c-black"},hn+1+(Rn.page-1)*Rn.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:si=>ce.createElement("span",{className:"c-black"},si)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:si=>ce.createElement("span",{className:"c-grey-666"},si||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:si=>ce.createElement("span",{className:"c-black"},si)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:si=>{const{label:Hi,color:hn}=Ji.find(ni=>ni.value===si)||{};return ce.createElement("span",{style:{color:hn}},Hi)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:si=>ce.createElement("span",{className:"c-black"},si)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:si=>ce.createElement("span",{className:"c-black"},si)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:si=>{const{label:Hi,color:hn}=Un.find(ni=>ni.value===si)||{};return ce.createElement("span",{style:{color:hn}},Hi)}},Vn===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:si=>{const{label:Hi,color:hn}=$n.find(ni=>ni.value===si)||{};return ce.createElement("span",{style:{color:hn}},Hi)}}].filter(Boolean),Pi=(si,Hi,hn)=>{Rn.page=si==null?void 0:si.current,Rn.per_page=si==null?void 0:si.pageSize,hn!=null&&hn.order?(Rn.sort_by=hn==null?void 0:hn.field,Rn.direction=(hn==null?void 0:hn.order)==="ascend"?"asc":"desc"):(Rn.sort_by=null,Rn.direction=null),ii($e({},Rn)),pi(Rn)},mi=()=>{if(!Ue){Be.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}un(!0)},nr=()=>je(void 0,null,function*(){var si,Hi;if((si=Xt.current)!=null&&si.onVerify())return;En(!0);const hn=yield(0,ee.ZP)(`/api/exercise_questions/${en==null?void 0:en.question_id}/resubmit.json`,{method:"post",body:{keyword:Rn.keyword,question_status:Rn.question_status,review:Rn.review_status,success_status:Rn.success_status,use_max_score:Pt,permits:Ue,exercise_question_resubmit_id:Vn===1?null:(Hi=en==null?void 0:en.exercise_question_resubmit)==null?void 0:Hi.id}});(hn==null?void 0:hn.status)==0&&(yield Ri(),Be.ZP.success("\u64CD\u4F5C\u6210\u529F"),un(!1),Re(!1)),En(!1)}),ji=(si,Hi)=>{Rn.page=1,Rn[Hi]=si,ii($e({},Rn)),pi(Rn)},Le=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:Ct()(De.recalculation,At),style:Zt},ce.createElement(mt.Z,{title:Le[(en==null?void 0:en.disable_resubmit_reason)||0]},ce.createElement(ct.ZP,{disabled:(en==null?void 0:en.disable_resubmit)||((Ge=en==null?void 0:en.exercise_question_resubmit)==null?void 0:Ge.status)==="running",onClick:()=>Re(1),icon:ce.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(en==null?void 0:en.show_resubmit_history)&&ce.createElement(ce.Fragment,null,((kt=en==null?void 0:en.exercise_question_resubmit)==null?void 0:kt.status)==="running"?ce.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",ce.createElement("span",{className:"c-light-primary ml3"},(ln=en==null?void 0:en.exercise_question_resubmit)==null?void 0:ln.rate)):ce.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",ce.createElement("span",{onClick:()=>{Re(2),Pe(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(sn=en==null?void 0:en.exercise_question_resubmit)==null?void 0:sn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",ce.createElement("span",{onClick:()=>{Re(2),Pe(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Bt=en==null?void 0:en.exercise_question_resubmit)==null?void 0:Bt.fail_count),"\u4EBA"),ce.createElement(mt.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},ce.createElement("i",{onClick:()=>wn(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),ce.createElement(He.default,{centered:!0,open:!!Vn,title:`\u91CD\u65B0\u8BC4\u6D4B${Vn===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Re(!1),onOk:mi,afterClose:()=>{qe(!0),Pe(null),ii($e({},Wn))}},ce.createElement("div",{className:De.filter},Vn===1&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:De.tips},ce.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},ce.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),ce.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),ce.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),ce.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),ce.createElement(Qe,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(Se==null?void 0:Se.question_status)||[],value:Rn.question_status,onChange:si=>ji(si,"question_status")}),ce.createElement(Qe,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(Se==null?void 0:Se.review_status)||[],value:Rn.review,onChange:si=>ji(si,"review")})),Vn===2&&ce.createElement(ce.Fragment,null,ce.createElement(Qe,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(Se==null?void 0:Se.success_status)||[],value:Rn.success_status,onChange:si=>ji(si,"success_status")})),ce.createElement(de.t7,{className:De.input,style:{bottom:Vn===1?10:-5},value:Rn.keyword,onChange:si=>ji(si,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),ce.createElement(Et.default,{className:"mt20",columns:ti,scroll:((Gt=Se==null?void 0:Se.data)==null?void 0:Gt.length)>7?{y:300}:{},dataSource:(Se==null?void 0:Se.data)||[],loading:rn,onChange:Pi,pagination:{total:Ne,pageSize:Rn.per_page,current:Rn.page,hideOnSinglePage:!Ne,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:te.rU}}),ce.createElement(Ke.Z,{justify:"space-between",align:"middle",className:"mt10"},ce.createElement(Ze.default,{className:"c-black",checked:Pt,onChange:si=>qe(si.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,he.Ny)()&&ce.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",ce.createElement(ht.Z,{className:"ml10 mr10",value:Ue,max:vt,min:1,precision:0,onChange:si=>St(si)}),"\u4EBA",ce.createElement(mt.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},ce.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),ce.createElement(He.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Dt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ft,destroyOnClose:!0,onOk:nr,onCancel:()=>un(!1)},ce.createElement(dt.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},ce.createElement(se.Z,{ref:si=>Xt.current=si}))),ce.createElement(He.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:$t,width:710,onCancel:()=>wn(!1),footer:null},ce.createElement(Ae.Z,{spinning:bn},ce.createElement("div",{className:De.operating},Yn.map((si,Hi)=>ce.createElement("div",{key:Hi,className:De.operatingItem},ce.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},si==null?void 0:si.created_at),ce.createElement("div",{className:"c-black"},si==null?void 0:si.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(si==null?void 0:si.status)==="running"?ce.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",ce.createElement("span",{className:"c-light-primary ml3"},si==null?void 0:si.rate)):ce.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",ce.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},si==null?void 0:si.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",ce.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},si==null?void 0:si.fail_count),"\u4EBA")))),ce.createElement("div",{style:{height:20}}))))}},82438:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(59301),De={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},_e=ve(43418),Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ke=(ct,He,Et)=>new Promise((ht,dt)=>{var Ae=he=>{try{ee(Et.next(he))}catch(se){dt(se)}},te=he=>{try{ee(Et.throw(he))}catch(se){dt(se)}},ee=he=>he.done?ht(he.value):Promise.resolve(he.value).then(Ae,te);ee((Et=Et.apply(ct,He)).next())}),mt=({type:ct,resdata:He,onok:Et,oktext:ht,okloading:dt})=>{const[Ae,te]=(0,ce.useState)(!1),{can_copy_list:ee,can_copy_num:he,challenge_type:se,course_data_list:de,no_copy_list:me,no_copy_num:we,no_use_list:be,no_use_num:Me,repeat_shixun_num:Ie,student_count:ze,total_num:et,use_num:$e}=He;let gt=he>0||ct==="exercise";(0,ce.useEffect)(()=>{(He==null?void 0:He.student_count)>0&&te(!0)},[He]),console.log("---11",dt),(0,ce.useEffect)(()=>{dt||te(!1)},[dt]);const je=()=>{if(ct==="exercise"&&se===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(ct==="exercise"&&se===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixun"&&se===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixun"&&se===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="subject"&&se===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="subject"&&se===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ce.createElement("span",{className:De.orangeColor},ze)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ce.createElement("span",{className:De.orangeColor},$e)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="exercisepush")return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(ct==="shixunpush"&&se===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixunpush"&&se===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},ze),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ce.createElement("span",{className:De.orangeColor},$e),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Tt=()=>{if(ct==="exercise"||ct==="subject"||ct==="exercisepush"||ct==="shixunpush")return ce.createElement("div",{style:{marginTop:20}},we>0&&ce.createElement("div",null,ce.createElement("span",{className:De.flex},ce.createElement("img",{src:Ze,style:{width:14}}),ce.createElement("span",{className:De.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ce.createElement("div",{className:De.statusbody},ct==="exercise"&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(ct==="subject"||ct==="exercisepush")&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",gt&&ce.createElement("span",{className:De.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ct==="shixunpush"&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",gt&&ce.createElement("span",{className:De.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ce.createElement("div",null,me==null?void 0:me.map((Qe,bt)=>ce.createElement("a",{href:`/shixuns/${Qe.identifier}/challenges`,target:"_blank"},"\u300A",Qe==null?void 0:Qe.name,"\u300B",bt+1!==we&&"\u3001"))))),he>0&&ce.createElement("div",{style:{marginTop:20}},ce.createElement("span",{className:De.flex},ce.createElement("img",{src:Ct,style:{width:14}}),ce.createElement("span",{className:De.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ce.createElement("div",{className:De.statusbody},ct==="exercise"&&ce.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(ct==="subject"||ct==="exercisepush")&&ce.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ct==="shixunpush"&&ce.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ce.createElement("div",null,ee==null?void 0:ee.map((Qe,bt)=>ce.createElement("a",{href:`/shixuns/${Qe.identifier}/challenges`,target:"_blank"},"\u300A",Qe==null?void 0:Qe.name,"\u300B",bt+1!==he&&"\u3001"))))));if(ct==="shixun")return ce.createElement("div",{style:{marginTop:20}},he>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ce.createElement(_e.default,{open:Ae,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!gt&&"none"}},zIndex:1003,confirmLoading:dt,okText:gt?ht:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ke(void 0,null,function*(){gt?yield Et([...ee,...be]):te(!1)})},ce.createElement("div",{style:{maxHeight:600,overflow:"auto"}},je(),Tt()))}},69304:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ke}});var ce=ve(59301),De={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},_e=ve(92310),Ct=ve.n(_e),Ke=({className:Be,style:mt,state:ct,onClick:He})=>{var Et,ht;return ce.createElement("div",{onClick:He,className:Ct()(ct?(Et=De)==null?void 0:Et.redBtn:(ht=De)==null?void 0:ht.btn,Be),style:mt},ct?ce.createElement(ce.Fragment,null,ce.createElement("i",{className:"iconfont icon-biaoji1"}),ce.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):ce.createElement(ce.Fragment,null,ce.createElement("i",{className:"iconfont icon-biaojigaiti"}),ce.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},97692:function(Pn,an,ve){"use strict";ve.d(an,{h:function(){return we}});var ce=ve(59301),De=ve(57809),_e=ve(78241),Ct=ve(3113),Ze=ve(89780),Ke=ve.n(Ze),Be=ve(37036),mt=ve(95625),ct=Object.defineProperty,He=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,te=(be,Me,Ie)=>Me in be?ct(be,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):be[Me]=Ie,ee=(be,Me)=>{for(var Ie in Me||(Me={}))dt.call(Me,Ie)&&te(be,Ie,Me[Ie]);if(ht)for(var Ie of ht(Me))Ae.call(Me,Ie)&&te(be,Ie,Me[Ie]);return be},he=(be,Me)=>He(be,Et(Me));const se=De.default.Option,de={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};an.Z=({callback:be,onCancel:Me})=>{const[Ie,ze]=(0,ce.useState)("python");function et(gt){ze(me[gt][1])}function $e(gt){be(gt)}return ce.createElement(_e.default,he(ee({},de),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$e,style:{width:500}}),ce.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ce.createElement(De.default,{getPopupContainer:gt=>gt.parentNode,onChange:et},Object.keys(me).map(gt=>ce.createElement(se,{key:gt,value:gt},me[gt][0])))),ce.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ce.createElement(we,{mode:Ie})),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Ct.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function we({value:be,onChange:Me,mode:Ie,options:ze={}}){const et=(0,ce.useRef)(),[$e,gt]=(0,ce.useState)();return(0,ce.useEffect)(()=>{if($e){let je=function(Tt){const Qe=Tt.getValue();Me&&Me(Qe)};return $e.on("change",je),()=>{$e.off("change",je)}}},[$e,Me]),(0,ce.useEffect)(()=>{$e&&$e.setOption("mode",Ie)},[$e,Ie]),(0,ce.useEffect)(()=>{$e&&(be!==$e.getValue()||be==="")&&setTimeout(()=>{$e.setValue(be||"")},300)},[$e,be]),(0,ce.useEffect)(()=>{if(et.current&&!$e){const je=Ke().fromTextArea(et.current,ee({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ze));gt(je)}},[et.current,$e]),ce.createElement("div",{className:"my-codemirror-container"},ce.createElement("textarea",{ref:et}))}},12290:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Dn}});var ce=ve(59301),De=ve(89780),_e=ve.n(De),Ct=ve(76374),Ze=ve(37036),Ke=ve(6313),Be=ve(25717),mt=ve(99498),ct=ve(25419),He=ve(67549),Et=ve(85149),ht=({value:Ft="",className:Ot,showTextOnly:Ve,showLines:Ut,style:tn={}})=>{const xt=(0,ce.useMemo)(()=>"",[Ft]);return ce.createElement(ce.Fragment,null,ce.createElement("div",{dangerouslySetInnerHTML:{__html:xt}}))},dt=ve(59301),Ae=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,me=(Ft,Ot,Ve)=>Ot in Ft?Ae(Ft,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ft[Ot]=Ve,we=(Ft,Ot)=>{for(var Ve in Ot||(Ot={}))se.call(Ot,Ve)&&me(Ft,Ve,Ot[Ve]);if(he)for(var Ve of he(Ot))de.call(Ot,Ve)&&me(Ft,Ve,Ot[Ve]);return Ft},be=(Ft,Ot)=>te(Ft,ee(Ot));let Me=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Ie({onActionCallback:Ft,title:Ot,icon:Ve,actionName:Ut,className:tn="",children:xt}){function rt(){Ft(Ut)}return dt.createElement("a",{title:Ot,className:tn,onClick:rt},dt.createElement("i",{className:`${Ve}`}),xt)}var ze=({watch:Ft,showNullButton:Ot,showNullProgramButton:Ve,onActionCallback:Ut,fullScreen:tn,insertTemp:xt,hidetoolBar:rt,extraUse:Vt})=>{const on=[...Me,{title:`${Ft?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ft?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return dt.createElement("ul",{className:"markdown-toolbar-container"},!rt&&on.map((xn,An)=>dt.createElement("li",{key:An},xn.actionName?dt.createElement(Ie,be(we({},xn),{onActionCallback:Ut})):dt.createElement("span",{className:"v-line"}))),Ot?dt.createElement("li",null,dt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ut},dt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ve?dt.createElement(dt.Fragment,null,dt.createElement("li",null,dt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ut},dt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),dt.createElement("li",null,dt.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ut},dt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,xt&&dt.createElement("li",null,dt.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xt}`,onActionCallback:Ut},dt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&dt.createElement("li",null,Vt),dt.createElement("li",{className:"btn-full-screen"},dt.createElement(Ie,{icon:`${tn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:tn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ut})))},et=ve(79346),$e=ve(78241),gt=ve(92832),je=ve(3113),Tt=Object.defineProperty,Qe=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Yt=(Ft,Ot,Ve)=>Ot in Ft?Tt(Ft,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ft[Ot]=Ve,ut=(Ft,Ot)=>{for(var Ve in Ot||(Ot={}))At.call(Ot,Ve)&&Yt(Ft,Ve,Ot[Ve]);if(Nt)for(var Ve of Nt(Ot))Zt.call(Ot,Ve)&&Yt(Ft,Ve,Ot[Ve]);return Ft},Ge=(Ft,Ot)=>Qe(Ft,bt(Ot));const kt={labelCol:{span:4},wrapperCol:{span:20}};var ln=({callback:Ft,onCancel:Ot})=>{function Ve(Ut){Ft(Ut)}return ce.createElement($e.default,Ge(ut({},kt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ve,style:{width:500}}),ce.createElement($e.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ce.createElement(gt.default,null)),ce.createElement($e.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ce.createElement(gt.default,null)),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(je.ZP,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},sn=ve(97692),Bt=ve(28451),Gt=ve(43418),en=ve(95237),Bn=ve(73524),rn=ve(59301),Cn=({callback:Ft,onCancel:Ot})=>{const Ve=document.createElement("canvas"),Ut=Ve.getContext("2d");Ve.width=1e3,Ve.height=800,Ut.fillStyle="#ffffff",Ut.fillRect(0,0,Ve.width,Ve.height);const tn=Ve.toDataURL("image/png");return rn.createElement(Gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},rn.createElement(en.Z,{style:{height:"100vh"}},rn.createElement(Bn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:tn,visible:!0,title:String(Date.now())},onOk:xt=>{Ft({src:xt.url})},onClose:Ot})))},ft=ve(12378);function En(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(En,go.CommandHandler),En.prototype.canAlignSelection=function(){var Ft=this.diagram;return!(Ft===null||Ft.isReadOnly||Ft.isModelReadOnly||Ft.selection.count<2)},En.prototype.alignLeft=function(){var Ft=this.diagram;Ft.startTransaction("aligning left");var Ot=1/0;Ft.selection.each(function(Ve){Ve instanceof go.Link||(Ot=Math.min(Ve.position.x,Ot))}),Ft.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ot,Ve.position.y))}),Ft.commitTransaction("aligning left")},En.prototype.alignRight=function(){var Ft=this.diagram;Ft.startTransaction("aligning right");var Ot=-1/0;Ft.selection.each(function(Ve){if(!(Ve instanceof go.Link)){var Ut=Ve.actualBounds.x+Ve.actualBounds.width;Ot=Math.max(Ut,Ot)}}),Ft.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ot-Ve.actualBounds.width,Ve.position.y))}),Ft.commitTransaction("aligning right")},En.prototype.alignTop=function(){var Ft=this.diagram;Ft.startTransaction("alignTop");var Ot=1/0;Ft.selection.each(function(Ve){Ve instanceof go.Link||(Ot=Math.min(Ve.position.y,Ot))}),Ft.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ve.position.x,Ot))}),Ft.commitTransaction("alignTop")},En.prototype.alignBottom=function(){var Ft=this.diagram;Ft.startTransaction("aligning bottom");var Ot=-1/0;Ft.selection.each(function(Ve){if(!(Ve instanceof go.Link)){var Ut=Ve.actualBounds.y+Ve.actualBounds.height;Ot=Math.max(Ut,Ot)}}),Ft.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ve.actualBounds.x,Ot-Ve.actualBounds.height))}),Ft.commitTransaction("aligning bottom")},En.prototype.alignCenterX=function(){var Ft=this.diagram,Ot=Ft.selection.first();if(Ot){Ft.startTransaction("aligning Center X");var Ve=Ot.actualBounds.x+Ot.actualBounds.width/2;Ft.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(Ve-Ut.actualBounds.width/2,Ut.actualBounds.y))}),Ft.commitTransaction("aligning Center X")}},En.prototype.alignCenterY=function(){var Ft=this.diagram,Ot=Ft.selection.first();if(Ot){Ft.startTransaction("aligning Center Y");var Ve=Ot.actualBounds.y+Ot.actualBounds.height/2;Ft.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(Ut.actualBounds.x,Ve-Ut.actualBounds.height/2))}),Ft.commitTransaction("aligning Center Y")}},En.prototype.alignColumn=function(Ft){var Ot=this.diagram;Ot.startTransaction("align Column"),Ft===void 0&&(Ft=0),Ft=parseFloat(Ft);var Ve=new Array;Ot.selection.each(function(Vt){Vt instanceof go.Link||Ve.push(Vt)});for(var Ut=0;Ut0){for(var Vt=xt.elt(rt-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var on=this._sortTreeChildrenByY(Vt);Vt=on.last()}Vt!==null&&Ft.select(Vt)}else Ft.select(tn)}}else if(Ve.key==="Down")if(Ot.isTreeExpanded&&!Ot.isTreeLeaf){var Ut=this._sortTreeChildrenByY(Ot).first();Ut!==null&&Ft.select(Ut)}else for(;Ot!==null;){var tn=Ot.findTreeParentNode();if(tn===null)break;var xt=this._sortTreeChildrenByY(tn),rt=xt.indexOf(Ot);if(rtxt.y?1:tn.xxt.x?1:0}),Ot},En.prototype.copyToClipboard=function(Ft){go.CommandHandler.prototype.copyToClipboard.call(this,Ft),this._lastPasteOffset.set(this.pasteOffset)},En.prototype.pasteFromClipboard=function(){var Ft=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ft,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ft},Object.defineProperty(En.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ft){if(Ft!=="move"&&Ft!=="select"&&Ft!=="scroll"&&Ft!=="tree"&&Ft!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ft);this._arrowKeyBehavior=Ft}}),Object.defineProperty(En.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ft){if(!(Ft instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ft);this._pasteOffset.set(Ft)}});var Vn=En,Re=ve(74413),Ce=ve(43604),Pe=ve(99064),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ke=ve(24065),Se=ve(59301),nt=(Ft,Ot,Ve)=>new Promise((Ut,tn)=>{var xt=on=>{try{Vt(Ve.next(on))}catch(xn){tn(xn)}},rt=on=>{try{Vt(Ve.throw(on))}catch(xn){tn(xn)}},Vt=on=>on.done?Ut(on.value):Promise.resolve(on.value).then(xt,rt);Vt((Ve=Ve.apply(Ft,Ot)).next())});function Pt({onCancel:Ft,callback:Ot}){let Ve=(0,ce.useRef)(),Ut=(0,ce.useRef)(),tn=(0,ce.useRef)(),xt=(0,ce.useRef)(!1);const rt=(0,ce.useRef)(!1),[Vt,on]=(0,ce.useState)(0);function xn(){const yt=ft.bx.make,cn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Ve.current=new ft.S0(Ut.current,{padding:20,grid:yt(ft.s_,"Grid",yt(ft.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),yt(ft.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:jn=>{var Ei=jn.diagram.commandHandler.addTopLevelParts(jn.diagram.selection,!0);Ei||jn.diagram.currentTool.doCancel()},commandHandler:yt(Vn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:jn=>{var Ei=jn.subject;Ei.location=Ei.location.copy().snapToGridPoint(jn.diagram.grid.gridOrigin,jn.diagram.grid.gridCellSize),setTimeout(()=>{jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:jn=>{var Ei=jn.subject;setTimeout(()=>{jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:jn=>{var Ei=jn.parameter.part;Ei.invalidateConnectedLinks();var zi=jn.subject;jn.diagram.toolManager.linkingTool.isForwards?zi.toNode.invalidateConnectedLinks():zi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ve.current.nodeTemplate=yt(ft.NB,"Auto",{locationSpot:ft.z6.Center,locationObjectName:"SHAPE",desiredSize:new ft.$u(120,60),minSize:new ft.$u(40,40),resizable:!0,resizeCellSize:new ft.$u(10,10),rotatable:!0},new ft.KX("location","loc",ft.E9.parse).makeTwoWay(ft.E9.stringify),new ft.KX("desiredSize","size",ft.$u.parse).makeTwoWay(ft.$u.stringify),yt(ft.bn,{name:"SHAPE",fill:cn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ft.z6.AllSides,toSpot:ft.z6.AllSides},new ft.KX("figure"),new ft.KX("fill"),new ft.KX("stroke","borderColor"),new ft.KX("strokeWidth","thickness"),new ft.KX("strokeDashArray","dash")),yt(ft.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),yt(ft.al,{margin:1,textAlign:"center",overflow:ft.al.OverflowEllipsis,editable:!0},new ft.KX("text").makeTwoWay(),new ft.KX("stroke","color"))),Ve.current.nodeTemplate.toolTip=yt("ToolTip",yt(ft.s_,"Vertical",{maxSize:new ft.$u(200,NaN)},yt(ft.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ft.KX("text")),yt(ft.al,{font:"10pt sans-serif",textAlign:"center"},new ft.KX("text","details"))));function On(jn,Ei){var zi=(Ni,Gi)=>{Ni.handled=!0,Ni.diagram.model.commit(ur=>{var Qi=Gi.part.adornedPart,rr=new ft.E9().setRectSpot(Qi.actualBounds,jn);rr.subtract(Qi.location),rr.scale(2,2),rr.x+=Math.sign(rr.x)*130,rr.y+=Math.sign(rr.y)*130,rr.add(Qi.location),rr.snapToGridPoint(Ni.diagram.grid.gridOrigin,Ni.diagram.grid.gridCellSize);var fr=ur.copyNodeData(Qi.data);ur.setGroupKeyForNodeData(fr,ur.getGroupKeyForNodeData(Qi.data)),ur.addNodeData(fr);var Nn={from:Qi.key,to:ur.getKeyForNodeData(fr)};ur.addLinkData(Nn);var Jr=Ni.diagram.findNodeForData(fr);Jr.location=rr,Ni.diagram.select(Jr),setTimeout(()=>{Ni.diagram.commandHandler.editTextBlock()},20)})};return yt(ft.bn,{figure:Ei,alignment:jn,alignmentFocus:jn.opposite(),width:jn.equals(ft.z6.Top)||jn.equals(ft.z6.Bottom)?25:18,height:jn.equals(ft.z6.Top)||jn.equals(ft.z6.Bottom)?18:25,fill:"orange",stroke:cn.white,strokeWidth:4,mouseEnter:(Ni,Gi)=>Gi.fill="dodgerblue",mouseLeave:(Ni,Gi)=>Gi.fill="orange",isActionable:!0,click:zi,contextClick:zi})}function ri(jn){return yt(ft.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ei,zi)=>zi.fill="dodgerblue",mouseLeave:(Ei,zi)=>zi.fill="orange",click:(Ei,zi)=>{Ei.diagram.commandHandler.showContextMenu(zi.part.adornedPart)}},jn||{})}Ve.current.nodeTemplate.selectionAdornmentTemplate=yt(ft.uz,"Spot",yt(ft.Vm,{padding:10}),On(ft.z6.Top,"TriangleUp"),On(ft.z6.Left,"TriangleLeft"),On(ft.z6.Right,"TriangleRight"),On(ft.z6.Bottom,"TriangleDown"),ri({alignment:new ft.z6(.75,0)}));function Wt(jn,Ei){return(zi,Ni)=>{zi.handled=!0,zi.diagram.model.commit(Gi=>{Gi.set(Ni.part.adornedPart.data,jn,Ei)})}}function Jt(jn,Ei){return Ei||(Ei="color"),yt(ft.bn,{width:16,height:16,stroke:"lightgray",fill:jn,margin:1,background:"transparent",mouseEnter:(zi,Ni)=>Ni.stroke="dodgerblue",mouseLeave:(zi,Ni)=>Ni.stroke="lightgray",click:Wt(Ei,jn),contextClick:Wt(Ei,jn)})}function hi(){return[yt("ContextMenuButton",yt(ft.s_,"Horizontal",Jt(cn.white,"fill"),Jt(cn.beige,"fill"),Jt(cn.extralightblue,"fill"),Jt(cn.extralightred,"fill"))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",Jt(cn.lightgray,"fill"),Jt(cn.lightgreen,"fill"),Jt(cn.lightblue,"fill"),Jt(cn.lightred,"fill")))]}function ci(){return[yt("ContextMenuButton",yt(ft.s_,"Horizontal",Jt(cn.black),Jt(cn.green),Jt(cn.blue),Jt(cn.red))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",Jt(cn.white),Jt(cn.magenta),Jt(cn.purple),Jt(cn.orange)))]}function ui(jn,Ei){return Ei||(Ei="thickness"),yt(ft.bn,"LineH",{width:16,height:16,strokeWidth:jn,margin:1,background:"transparent",mouseEnter:(zi,Ni)=>Ni.background="dodgerblue",mouseLeave:(zi,Ni)=>Ni.background="transparent",click:Wt(Ei,jn),contextClick:Wt(Ei,jn)})}function qn(jn,Ei){return Ei||(Ei="dash"),yt(ft.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:jn,margin:1,background:"transparent",mouseEnter:(zi,Ni)=>Ni.background="dodgerblue",mouseLeave:(zi,Ni)=>Ni.background="transparent",click:Wt(Ei,jn),contextClick:Wt(Ei,jn)})}function di(){return[yt("ContextMenuButton",yt(ft.s_,"Horizontal",ui(1),ui(2),ui(3),ui(4))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",qn(null),qn([2,4]),qn([4,4])))]}function li(jn,Ei){return Ei||(Ei="figure"),yt(ft.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:jn,margin:1,background:"transparent",mouseEnter:(zi,Ni)=>Ni.fill="dodgerblue",mouseLeave:(zi,Ni)=>Ni.fill="lightgray",click:Wt(Ei,jn),contextClick:Wt(Ei,jn)})}Ve.current.nodeTemplate.contextMenu=yt("ContextMenu",yt("ContextMenuButton",yt(ft.s_,"Horizontal",li("Rectangle"),li("RoundedRectangle"),li("Ellipse"),li("Diamond"))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",li("Parallelogram2"),li("ManualOperation"),li("Procedure"),li("Cylinder1"))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",li("Terminator"),li("CreateRequest"),li("Document"),li("TriangleDown"))),hi(),ci(),di()),Ve.current.groupTemplate=yt(ft.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ft.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(jn,Ei)=>{var zi=Ei.addMembers(Ei.diagram.selection,!0);zi||Ei.diagram.currentTool.doCancel()},avoidable:!1},new ft.KX("location","loc",ft.E9.parse).makeTwoWay(ft.E9.stringify),yt(ft.s_,"Auto",{name:"BODY"},yt(ft.bn,{parameter1:10,fill:cn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ft.z6.AllSides,toSpot:ft.z6.AllSides},new ft.KX("fill"),new ft.KX("stroke","color"),new ft.KX("strokeWidth","thickness"),new ft.KX("strokeDashArray","dash")),yt(ft.Vm,{background:"transparent",margin:20})),yt(ft.al,{alignment:ft.z6.Top,alignmentFocus:ft.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ft.KX("text"),new ft.KX("stroke","color"))),Ve.current.groupTemplate.selectionAdornmentTemplate=yt(ft.uz,"Spot",yt(ft.s_,"Auto",yt(ft.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),yt(ft.Vm,{margin:1.5})),ri({alignment:ft.z6.TopRight,alignmentFocus:ft.z6.BottomRight})),Ve.current.groupTemplate.contextMenu=yt("ContextMenu",hi(),ci(),di()),Ve.current.linkTemplate=yt(ft.rU,{layerName:"Foreground",routing:ft.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ft.KX("fromSpot","fromSpot",ft.z6.parse),new ft.KX("toSpot","toSpot",ft.z6.parse),new ft.KX("fromShortLength","dir",jn=>jn>=1?10:0),new ft.KX("toShortLength","dir",jn=>jn>=1?10:0),new ft.KX("points").makeTwoWay(),yt(ft.bn,{strokeWidth:2},new ft.KX("stroke","color"),new ft.KX("strokeWidth","thickness"),new ft.KX("strokeDashArray","dash")),yt(ft.bn,{segmentIndex:0,segmentOffset:new ft.E9(15,0),segmentOrientation:ft.rU.OrientAlong,alignmentFocus:ft.z6.Right,figure:"circle",width:10,strokeWidth:0},new ft.KX("fill","color"),new ft.KX("visible","dir",jn=>jn===1)),yt(ft.bn,{segmentIndex:-1,segmentOffset:new ft.E9(-10,6),segmentOrientation:ft.rU.OrientPlus90,alignmentFocus:ft.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ft.KX("fill","color"),new ft.KX("visible","dir",jn=>jn>=1),new ft.KX("width","thickness",jn=>7+3*jn),new ft.KX("height","thickness",jn=>7+3*jn),new ft.KX("segmentOffset","thickness",jn=>new ft.E9(-15,4+1.5*jn))),yt(ft.bn,{segmentIndex:0,segmentOffset:new ft.E9(15,-6),segmentOrientation:ft.rU.OrientMinus90,alignmentFocus:ft.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ft.KX("fill","color"),new ft.KX("visible","dir",jn=>jn===2),new ft.KX("width","thickness",jn=>7+3*jn),new ft.KX("height","thickness",jn=>7+3*jn),new ft.KX("segmentOffset","thickness",jn=>new ft.E9(-15,4+1.5*jn))),yt(ft.al,{alignmentFocus:new ft.z6(0,1,-4,0),editable:!0},new ft.KX("text").makeTwoWay(),new ft.KX("stroke","color"))),Ve.current.linkTemplate.selectionAdornmentTemplate=yt(ft.uz,yt(ft.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ai(2)},new ft.KX("pathPattern","thickness",Ai)),ri({alignmentFocus:new ft.z6(0,0,-6,-4)}));function Ai(jn){return yt(ft.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(jn+4).toString()+" H3"})}function er(jn){var Ei="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return jn===0?Ei="M0 0 M16 16 M0 8 L16 8":jn===2&&(Ei="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),yt(ft.bn,{geometryString:Ei,margin:2,background:"transparent",mouseEnter:(zi,Ni)=>Ni.background="dodgerblue",mouseLeave:(zi,Ni)=>Ni.background="transparent",click:Wt("dir",jn),contextClick:Wt("dir",jn)})}function sr(jn){var Ei=(zi,Ni)=>{zi.handled=!0,zi.diagram.model.commit(Gi=>{var ur=Ni.part.adornedPart;Gi.set(ur.data,jn?"toSpot":"fromSpot",ft.z6.stringify(ft.z6.AllSides)),(jn?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return yt(ft.bn,{width:12,height:12,fill:"transparent",mouseEnter:(zi,Ni)=>Ni.background="dodgerblue",mouseLeave:(zi,Ni)=>Ni.background="transparent",click:Ei,contextClick:Ei})}function vn(jn,Ei){var zi=0,Ni=ft.z6.RightSide;jn.equals(ft.z6.Top)?(zi=270,Ni=ft.z6.TopSide):jn.equals(ft.z6.Left)?(zi=180,Ni=ft.z6.LeftSide):jn.equals(ft.z6.Bottom)&&(zi=90,Ni=ft.z6.BottomSide),Ei||(zi-=180);var Gi=(ur,Qi)=>{ur.handled=!0,ur.diagram.model.commit(rr=>{var fr=Qi.part.adornedPart;rr.set(fr.data,Ei?"toSpot":"fromSpot",ft.z6.stringify(Ni)),(Ei?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return yt(ft.bn,{alignment:jn,alignmentFocus:jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:zi,background:"transparent",mouseEnter:(ur,Qi)=>Qi.background="dodgerblue",mouseLeave:(ur,Qi)=>Qi.background="transparent",click:Gi,contextClick:Gi})}Ve.current.linkTemplate.contextMenu=yt("ContextMenu",ci(),di(),yt("ContextMenuButton",yt(ft.s_,"Horizontal",er(0),er(1),er(2))),yt("ContextMenuButton",yt(ft.s_,"Horizontal",yt(ft.s_,"Spot",sr(!1),vn(ft.z6.Top,!1),vn(ft.z6.Left,!1),vn(ft.z6.Right,!1),vn(ft.z6.Bottom,!1)),yt(ft.s_,"Spot",{margin:new ft.Zt(0,0,0,2)},sr(!0),vn(ft.z6.Top,!0),vn(ft.z6.Left,!0),vn(ft.z6.Right,!0),vn(ft.z6.Bottom,!0)))));const Nr=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, {"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"}, {"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"}, {"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"}, {"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3}, {"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"} ], "linkDataArray": [ {"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1}, {"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1}, {"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]}, {"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2}, {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} ]}`;var Dr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function ir(jn){return console.log("shapeName:",jn),Dr.indexOf(jn)>=0}var fn=new ft.YI(tn.current,{maxSelectionCount:1,linkTemplate:yt(ft.rU,{locationSpot:ft.z6.Center,selectionAdornmentTemplate:yt(ft.uz,"Link",{locationSpot:ft.z6.Center},yt(ft.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),yt(ft.bn,{toArrow:"Standard",stroke:null}))},{routing:ft.rU.AvoidsNodes,curve:ft.rU.JumpOver,corner:5,toShortLength:4},new ft.KX("points"),yt(ft.bn,{isPanelMain:!0,strokeWidth:2}),yt(ft.bn,{toArrow:"Standard",stroke:null})),model:new ft.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ft.bn.getFigureGenerators().toArray().map(jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ve.current.addDiagramListener("TextEdited",function(jn){var Ei;const zi=jn.subject.part;var Ni=(Ei=document.activeElement)==null?void 0:Ei.value;typeof Ni=="string"&&Ni.trim()===""&&Ve.current.model.commit(function(Gi){Gi.set(zi.data,"text","\u672A\u547D\u540D"),Ve.current.commandHandler.stopCommand()},"increment")}),fn.nodeTemplate=yt(ft.NB,"Auto",{locationSpot:ft.z6.Center},new ft.KX("location","location",ft.E9.parse).makeTwoWay(ft.E9.stringify),yt(ft.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ft.KX("stroke").makeTwoWay(),new ft.KX("fill").makeTwoWay(),new ft.KX("figure")),yt(ft.al,{margin:new ft.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ft.$u(16,16),maxSize:new ft.$u(10,NaN),textAlign:"center",editable:!0},new ft.KX("key").makeTwoWay())),setTimeout(()=>{Ve.current.grid=yt(ft.s_,"Grid",yt(ft.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),yt(ft.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ve.current.grid.visible=!0,Ve.current.grid.gridCellStroke="darkgray",Ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ve.current,Ve.current}const An=()=>nt(this,null,function*(){var yt,cn=Ve.current.makeImage();const On=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:cn.src,file_data:JSON.stringify({login:(yt=(0,ke.eY)())==null?void 0:yt.login,data:JSON.parse(Ve.current.model.toJson())})}});Ot({src:On.url})});return(0,ce.useEffect)(()=>(setTimeout(()=>{xn()},500),on(Vt+1),()=>{Ve.current=null}),[]),Se.createElement("div",{ref:rt,className:xt.current?`${Ne.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(Gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(en.Z,null,Se.createElement(Ce.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Ce.Z,{onClick:()=>{var yt,cn,On=Ve.current.selection.first();if(xt.current=!xt.current,document.activeElement&&On){let ri=(cn=(yt=document.activeElement)==null?void 0:yt.value)==null?void 0:cn.trim();typeof ri=="string"&&Ve.current.model.commit(function(Wt){Wt.set(On.data,"text",ri||"\u672A\u547D\u540D"),Ve.current.commandHandler.stopCommand()},"increment")}on(Vt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ft},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ne.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:tn})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:Ut,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(je.ZP,{size:"large",onClick:An,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var qe=Pt,Ue=ve(5112),St=ve(5871);const vt=Ue.ZP.Group,lt={margin:"0 8px"};var Dt=({callback:Ft,onCancel:Ot})=>{function Ve(Ut){Ft(Ut)}return ce.createElement($e.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ve},ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ce.createElement("span",{style:lt},"\u5355\u5143\u683C\u6570\uFF1A"),ce.createElement("span",{style:lt},"\u884C\u6570"),ce.createElement($e.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ce.createElement(St.Z,null)),ce.createElement("span",{style:lt},"\u5217\u6570"),ce.createElement($e.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ce.createElement(St.Z,null))),ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ce.createElement("span",{style:lt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ce.createElement($e.default.Item,{name:"align"},ce.createElement(vt,null,ce.createElement(Ue.ZP,{value:"default"},ce.createElement("i",{className:"fa fa-align-justify"})),ce.createElement(Ue.ZP,{value:"left"},ce.createElement("i",{className:"fa fa-align-left"})),ce.createElement(Ue.ZP,{value:"center"},ce.createElement("i",{className:"fa fa-align-center"})),ce.createElement(Ue.ZP,{value:"right"},ce.createElement("i",{className:"fa fa-align-right"}))))),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(je.ZP,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))},un=ve(78673),Xt=ve(80727),$t=ve.n(Xt),bn=(0,ce.forwardRef)(({use3d:Ft,width:Ot,height:Ve,callback:Ut,showSaveButton:tn},xt)=>{const rt=(0,ce.useRef)(),Vt=(0,ce.useRef)(),[on,xn]=(0,ce.useState)(!1),An=(0,ce.useRef)({id:rt,appName:"graphing",width:Ot||1e3,height:Ve||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ce.useEffect)(()=>{Vt.current=new($t())(An.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const yt=()=>{var cn=window.ggbApplet.getPNGBase64(1,!0,72);return Ut&&Ut(cn),cn};return(0,ce.useEffect)(()=>{An.current.appName=on?"3D":"graphing",Vt.current.inject("applet_container")},[on]),(0,ce.useEffect)(()=>{xn(Ft)},[Ft]),(0,ce.useImperativeHandle)(xt,()=>({getImgData:yt})),ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rt}),ce.createElement(en.Z,{align:"middle"},ce.createElement(Ce.Z,{flex:1},ce.createElement(un.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:on,onChange:cn=>xn(cn)})),ce.createElement(Ce.Z,null,ce.createElement(je.ZP,{size:"large",onClick:yt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=ve(41588),Yn=ve(8591);const ai="link",Wn="upload-image",Rn="add-flowchart",ii="draw-image",pi="add-flowchart",gi="code-block",Ri="add-table",Ji="------------",Un={default:Ji,left:`:${Ji}`,center:`:${Ji}:`,right:`${Ji}:`};var $n=ve(58856);function ti(){}let Pi=0;const mi=1e4,nr="\u2581",ji="@\u2581\u2581@",Le="@\u2581@",si=` **\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`,Hi=["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 hn(Ft){return/^\d+$/.test(Ft)?`${Ft}px`:Ft}const vi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Fi={[vi+"-B"]:"bold",[vi+"-I"]:"italic"},_n={[ai]:"\u6DFB\u52A0\u94FE\u63A5",[gi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Wn]:"\u6DFB\u52A0\u56FE\u7247",[ii]:"\u6DFB\u52A0\u753B\u56FE",[Rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ri]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dn=({defaultValue:Ft="",onChange:Ot,width:Ve="100%",height:Ut=400,miniToolbar:tn=!1,isFocus:xt=!1,watch:rt,insertTemp:Vt,mode:on="markdown",id:xn="markdown-editor-id",showResizeBar:An=!1,noStorage:yt=!1,showNullButton:cn=!1,showNullProgramButton:On=!1,hidetoolBar:ri=!1,fullScreen:Wt=!1,onBlur:Jt,onCMBeforeChange:hi,onFullScreen:ci,className:ui="",disablePaste:qn=!1,disabled:di=!1,disabledFill:li=!1,placeholder:Ai="",values:er="",extraUse:sr})=>{const[vn,Nr]=(0,ce.useState)(null),[Dr,ir]=(0,ce.useState)(Ft),[fn,jn]=(0,ce.useState)(rt),[Ei,zi]=(0,ce.useState)(Wt),[Ni,Gi]=(0,ce.useState)(""),[ur,Qi]=(0,ce.useState)(0),[rr,fr]=(0,ce.useState)(Ut),[Nn,Jr]=(0,ce.useState)(!1),[Ln,Zr]=(0,ce.useState)(0),[co,Bi]=(0,ce.useState)(0),Po=(0,ce.useRef)(),ao=(0,ce.useRef)(),Vi=(0,ce.useRef)(),qi=(0,ce.useRef)();(0,ce.useEffect)(()=>{const Mr=window.scrollY||window.pageYOffset;ir(er),vn==null||vn.setValue(er),window.scrollTo(0,Mr)},[er]),(0,ce.useEffect)(()=>{ci==null||ci(Ei)},[Ei]),(0,ce.useEffect)(()=>{if(Po.current){let Mr=function(Xn,yr){var wo;if(qn){yr.preventDefault();return}const ua=yr.clipboardData;if(ua){const No=ua.types.toString(),yo=ua.items;if(No==="Files"||ua.types.indexOf("Files")>-1){if(yr.preventDefault(),on=="stex")return;try{let ta=yo[1];((wo=yo[0])==null?void 0:wo.kind)==="file"&&(ta=yo[0]);const na=ta.getAsFile(),Na=na.name.split(".").pop();(0,Bt.I)(na,ka=>{var is,gn,Oa;ka.id?((is=na==null?void 0:na.type)==null?void 0:is.indexOf("image"))>-1?hr.replaceSelection(``):((gn=na==null?void 0:na.type)==null?void 0:gn.indexOf("video"))>-1?hr.replaceSelection(``):((Oa=na==null?void 0:na.type)==null?void 0:Oa.indexOf("pdf"))>-1?hr.replaceSelection(`${na.name}`):Hi.includes(Na)?hr.replaceSelection(`${na.name}`):hr.replaceSelection(`[${na.name}](/api/attachments/${ka.id}?type=${ka.content_type})`):(ka==null?void 0:ka.status)===401&&(document.location.href="/user/login")})}catch(ta){Yn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hr=_e().fromTextArea(Po.current,{mode:on,lineNumbers:!tn,lineWrapping:!0,value:Ft,autoCloseTags:!0,autoCloseBrackets:!0});return hr.on("keyup",function(Xn,yr){yr.keyCode===8&&(Xn.getValue()==""?hr.setOption("placeholder",Ai):hr.setOption("placeholder",null))}),hr.on("keydown",function(Xn,yr){if(yr.keyCode===8){var wo=ro(Xn);wo&&yr.preventDefault()}}),xt&&hr.focus(),hr.on("paste",Mr),di&&hr.on("beforeChange",function(Xn,yr){(yr.origin==="paste"||yr.origin==="+input")&&yr.cancel()}),Nr(hr),()=>{hr.off("paste",Mr)}}},[]);const Hr=(0,ce.useCallback)(()=>{if(ao.current)try{}catch(Mr){console.log(Mr,"---- to set md editor body height")}},[rr,ao,Ei]);(0,ce.useEffect)(()=>{function Mr(){let hr=new Ct.Z(Xn=>{for(let yr of Xn)(yr.target.offsetHeight>0||yr.target.offsetWidth>0)&&(Hr(),vn.setSize("100%","100%"),vn.refresh())});return hr.observe(Po.current.parentElement),hr}if(vn){const hr=Mr();return()=>{var Xn,yr;(Xn=Po.current)!=null&&Xn.parentElement&&hr.unobserve((yr=Po.current)==null?void 0:yr.parentElement)}}},[vn,Hr]),(0,ce.useEffect)(()=>{if(vn){let Mr=[];for(const[hr,Xn]of Object.entries(Fi)){let yr={[hr]:()=>{xi(Xn)}};Mr.push(yr),vn.addKeyMap(yr)}return()=>{for(let hr of Mr)vn.removeKeyMap(hr)}}},[vn]),(0,ce.useEffect)(()=>{Wt!==Ei&&zi(Wt)},[Wt]),(0,$n.Z)(()=>{if(!yt&&ur>0){let Mr=new Date().getTime(),hr=window.sessionStorage.getItem(xn);Mr>=ur+mi&&(!hr||hr!==Dr)&&(window.sessionStorage.setItem(xn,Dr),Jr(!0))}},mi),(0,ce.useEffect)(()=>{jn(rt)},[vn,rt]),(0,ce.useEffect)(()=>{vn&&xt&&vn.focus()},[vn,xt]),(0,ce.useEffect)(()=>{if(fn&&vn){let Mr=function(Xn){let yr=Xn.target;if(qi.current){let wo=yr.scrollTop/yr.scrollHeight;qi.current.scrollTop=qi.current.scrollHeight*wo}};const hr=vn.getScrollerElement();return hr.addEventListener("scroll",Mr),()=>{hr.removeEventListener("scroll",Mr)}}},[vn,fn]),(0,ce.useEffect)(()=>{if(vn&&hi){let Mr=function(hr,Xn){hi(hr,Xn)};return vn.on("beforeChange",Mr),()=>{vn.off("beforeChange",Mr)}}},[vn,hi]),(0,ce.useEffect)(()=>{if(vn&&Jt){let Mr=function(){Jt(vn.getValue())};return vn.on("blur",Mr),()=>{vn.off("blur",Mr)}}},[vn,Jt]);function ro(Mr,hr){var Xn=Mr.getDoc(),yr=Xn.getCursor(),wo=Xn.getLine(yr.line),ua=wo.charAt(yr.ch-1),No=wo.lastIndexOf("@\u2581@",yr.ch),yo=wo.lastIndexOf("@\u2581\u2581@",yr.ch),ta=No>yo?No:yo,na=No>yo?3:4;if(ji.indexOf(ua)===-1)return null;if(console.log("change1:",hr,Mr,wo,yr,ta,No,yo,ua),ta>=0&&yr.ch-ta<5){var Na=ta+na;return Xn.replaceRange("",{line:yr.line,ch:ta},{line:yr.line,ch:Na}),{line:yr.line,ch:Na}}return null}(0,ce.useEffect)(()=>{if(vn){let Mr=function(hr,Xn){const yr=hr.getValue();ir(yr),Qi(new Date().getTime()),hr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ot&&(On?Ot(yr,kr(yr)):Ot(yr))};return vn.on("change",Mr),()=>{vn.off("change",Mr)}}},[vn,Ot]),(0,ce.useEffect)(()=>{if(vn)if(Ft==null)vn.setValue(""),ir("");else{const Mr=window.scrollY||window.pageYOffset;Ft!==vn.getValue()&&(vn.setValue(Ft),ir(Ft),vn.setCursor(di?1:vn.lineCount(),0),window.scrollTo(0,Mr))}},[vn,Ft]);const xi=(0,ce.useCallback)(Mr=>{const hr=vn.getCursor(),Xn=vn.getSelection();let yr=Xn.split(` `);switch(Mr){case"bold":return vn.replaceSelection("**"+Xn+"**"),Xn===""&&vn.setCursor(hr.line,hr.ch+2),vn.focus();case"italic":return vn.replaceSelection("*"+Xn+"*"),Xn===""&&vn.setCursor(hr.line,hr.ch+1),vn.focus();case"code":return vn.replaceSelection("`"+Xn+"`"),Xn===""&&vn.setCursor(hr.line,hr.ch+1),vn.focus();case"inline-latex":return Gi("inline-latex"),vn.focus();case"latex":return vn.replaceSelection("```latex\n"+Xn+"\n```"),vn.setCursor(hr.line+1,Xn.length+1),vn.focus();case"line-break":return vn.replaceSelection(`
`),vn.focus();case"list-ul":return Xn===""?vn.replaceSelection("- "+Xn):vn.replaceSelection(yr.map(wo=>wo===""?"":`- ${wo}`).join(` `)),vn.focus();case"list-ol":return Xn===""?vn.replaceSelection("1. "+Xn):vn.replaceSelection(yr.map((wo,ua)=>wo===""?"":`${ua+1}. ${wo}`).join(` `)),vn.focus();case"add-null-ch":return Xn===""&&vn.setCursor(hr.line,hr.ch),vn.replaceSelection(nr),vn.focus();case"add-signal":return Xn===""&&vn.setCursor(hr.line,hr.ch),vn.replaceSelection(Le),vn.focus();case"add-multiple":return Xn===""&&vn.setCursor(hr.line,hr.ch),vn.replaceSelection(ji),vn.focus();case"inster-template-1":return Xn===""&&vn.setCursor(hr.line,hr.ch),vn.replaceSelection(si),vn.focus();case"eraser":return vn.setValue(""),vn.focus();case"trigger-watch":return jn(!fn),vn.focus();case"trigger-full-screen":return zi(!Ei),vn.focus();case ai:Gi(ai);return;case gi:Gi(gi);return;case Wn:Gi(Wn);return;case ii:Gi(ii);return;case"maths-latex":Gi("maths-latex");return;case Rn:Gi(Rn);return;case Ri:Gi(Ri);return;default:throw new Error}},[vn,fn,Ei]),tt=(0,ce.useCallback)((Mr,hr)=>{var Xn,yr,wo,ua,No,yo;switch(Gi(""),Ni){case ai:const{title:is,link:gn}=Mr;return vn.replaceSelection(`[${is}](${gn})`),vn.focus();case gi:const{language:Oa,content:Vl}=Mr;return vn.replaceSelection(["```"+Oa,Vl,"```"].join(` `)),vn.focus();case"maths-latex":for(var ta=atob(Mr),na=new Uint8Array(ta.length),Na=0;Na{$r.id?vn.replaceSelection(`![,](/api/attachments/${$r.id}?type=${$r.content_type})`):($r==null?void 0:$r.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vn.replaceSelection("`$$"+Mr+"$$`");break;case Wn:case ii:case pi:const{src:Hs,alt:wl}=Mr,Ma=hr,yu=(wo=(yr=(Xn=Ma==null?void 0:Ma.name)==null?void 0:Xn.split("."))==null?void 0:yr.pop)==null?void 0:wo.call(yr);return((ua=Ma==null?void 0:Ma.type)==null?void 0:ua.indexOf("image"))>-1||!(Ma!=null&&Ma.type)?Ma!=null&&Ma.align||Ma!=null&&Ma.width?vn.replaceSelection(`

${wl||

`):vn.replaceSelection(`${wl||`):((No=Ma==null?void 0:Ma.type)==null?void 0:No.indexOf("video"))>-1?vn.replaceSelection(``):((yo=Ma==null?void 0:Ma.type)==null?void 0:yo.indexOf("pdf"))>-1?vn.replaceSelection(`${Ma.name}`):Hi.includes(yu)?vn.replaceSelection(`${Ma.name}`):vn.replaceSelection(`[${Ma.name}](${Hs})`),vn.focus();case Ri:const{row:Cl,col:ma,align:Fo}=Mr;let Ul=` `;for(let $r=0;$r{switch(Ni){case ai:return ce.createElement(ln,{callback:tt,onCancel:Zo});case gi:return ce.createElement(sn.Z,{callback:tt,onCancel:Zo});case Wn:return ce.createElement(Bt.Z,{callback:tt,onCancel:Zo});case Rn:return ce.createElement(qe,{callback:tt,onCancel:Zo});case Ri:return ce.createElement(Dt,{callback:tt,onCancel:Zo});case"maths-latex":return ce.createElement(bn,{showSaveButton:!0,callback:tt});case"inline-latex":return ce.createElement(pn.Z,{showSaveButton:!0,callback:tt});default:return null}},[Ni]);function Zo(){Gi("")}(0,ce.useEffect)(()=>{if(Vi.current){let Mr=function(No){wo=!0,ua=No.pageY},hr=function(){wo=!1},Xn=function(No){if(wo){let yo=No.pageY-ua;yo<0&&(yo=0),yo>300&&(yo=300);let ta=Ut+yo+"px";fr(ta)}},yr=Vi.current,wo=!1,ua=0;return yr.addEventListener("mousedown",Mr),document.addEventListener("mousemove",Xn),document.addEventListener("mouseup",hr),()=>{yr.removeEventListener("mousedown",Mr),document.removeEventListener("mousemove",Xn),document.removeEventListener("mouseup",hr)}}},[vn,Vi]),(0,ce.useEffect)(()=>{fr(Ut)},[Ut]);const ga=hn(Ve),Pa=hn(rr),ia={width:ga,height:Pa},Or=(0,ce.useMemo)(()=>{if(ur){let Mr=new Date(ur),hr=Mr.getHours(),Xn=Mr.getMinutes(),yr=Mr.getSeconds();return hr=hr<10?"0"+hr:hr,Xn=Xn<10?"0"+Xn:Xn,yr=yr<10?"0"+yr:yr,`${hr}:${Xn}:${yr}`}return 0},[ur]),kr=Mr=>{const hr=[];if(On){let Xn=-1;Mr=Mr.replace(/(@▁▁@|@▁@)/g,function(yr,wo,ua){hr.push({multiLine:yr!==Le})})}return hr};function fo(){window.sessionStorage.removeItem(xn),Jr(!1),Qi(0)}function jr(){Jr(!1),Qi(0),vn.setValue(window.sessionStorage.getItem(xn))}(0,ce.useEffect)(()=>{_n[Ni]&&Ni!==ii&&Ni!==Rn&&setTimeout(()=>{const Mr=document.getElementsByClassName("markdown-popup-form")[0],hr=window.innerWidth/2-Mr.offsetWidth/2,Xn=window.innerHeight/2-Mr.offsetHeight/2;Zr(hr),Bi(Xn)},0)},[Ni]);const To=Mr=>{Mr.preventDefault();const hr=Mr.clientX-Ln,Xn=Mr.clientY-co;document.body.onmousemove=yr=>{let wo=yr.clientX-hr,ua=yr.clientY-Xn;const No=document.getElementsByClassName("markdown-popup-form")[0],yo=window.innerWidth-No.offsetWidth,ta=window.innerHeight-No.offsetHeight;wo=Math.max(0,Math.min(wo,yo)),ua=Math.max(0,Math.min(ua,ta)),qa(yr.clientX,yr.clientY,hr,Xn)&&(Zr(wo),Bi(ua))},document.body.onmouseup=function(){document.body.onmousemove=null}},qa=(Mr,hr,Xn,yr)=>{const wo=document.body.clientHeight,ua=document.body.clientWidth;return Mr<20&&Xn>Mr||Mr>ua-20&&Xnhr||hr>wo-20&&yr$e in et?Et(et,$e,{enumerable:!0,configurable:!0,writable:!0,value:gt}):et[$e]=gt,se=(et,$e)=>{for(var gt in $e||($e={}))te.call($e,gt)&&he(et,gt,$e[gt]);if(Ae)for(var gt of Ae($e))ee.call($e,gt)&&he(et,gt,$e[gt]);return et},de=(et,$e)=>ht(et,dt($e));const{useForm:me}=ce.default,we={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Me=({callback:et,onCancel:$e})=>{const[gt]=me();let je=(0,ct.useRef)();function Tt(Nt){je.current.width=gt.getFieldValue("width"),je.current.align=gt.getFieldValue("align"),et(Nt,je.current)}function Qe(Nt,At){if(Nt.status===-1){De.ZP.error(Nt.message);return}gt.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:At.type})}function bt(Nt){let At=Nt.target.files[0];je.current=At,ze(At,Qe)}return He.createElement(ce.default,de(se({form:gt},be),{className:"upload-image-panel",onFinish:Tt,style:{width:470,overflow:"hidden"}}),He.createElement(ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},He.createElement(_e.default,{style:we})),He.createElement(Ie,{onFileChange:bt}))),He.createElement(ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(_e.default,{style:{width:264}})),He.createElement(ce.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(Ct.Z,null,He.createElement(ce.default.Item,{name:"width",style:{margin:0}},He.createElement(Ze.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ce.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Ke.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"}]})),He.createElement("aside",null,He.createElement(ce.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Be.ZP,{type:"default",onClick:$e},"\u53D6\u6D88"))))};function Ie({onFileChange:et}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:et}))}function ze(et,$e){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");let gt=new FormData;gt.append("editormd-image-file",et),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var je=new window.XMLHttpRequest;je.withCredentials=!0,je.addEventListener("load",function(Tt){$e(JSON.parse(Tt.target.responseText),et)},!1),je.addEventListener("error",function(Tt){console.error(Tt)},!1),je.open("POST",`${mt.KI}/api/attachments.json`),je.send(gt)}},79346:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return _e}});var ce=ve(59301),De=ve(4676);class _e extends ce.Component{constructor(Ze){super(Ze);const Ke=window.document;this.node=Ke.createElement("div"),Ke.body.appendChild(this.node)}render(){const{children:Ze}=this.props;return(0,De.createPortal)(Ze,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Pn,an,ve){"use strict";ve.d(an,{SV:function(){return nt},ZP:function(){return Se}});var ce=ve(59301),De=ve(76374);const _e={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"]},Ct={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"]},Ze={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(` `)}]},Ke={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Be={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var mt=ve(53184),ct=ve.n(mt),He=Object.defineProperty,Et=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ee=(Pt,qe,Ue)=>qe in Pt?He(Pt,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Pt[qe]=Ue,he=(Pt,qe)=>{for(var Ue in qe||(qe={}))Ae.call(qe,Ue)&&ee(Pt,Ue,qe[Ue]);if(dt)for(var Ue of dt(qe))te.call(qe,Ue)&&ee(Pt,Ue,qe[Ue]);return Pt},se=(Pt,qe)=>Et(Pt,ht(qe)),de=(Pt,qe,Ue)=>new Promise((St,vt)=>{var lt=Xt=>{try{un(Ue.next(Xt))}catch($t){vt($t)}},Dt=Xt=>{try{un(Ue.throw(Xt))}catch($t){vt($t)}},un=Xt=>Xt.done?St(Xt.value):Promise.resolve(Xt.value).then(lt,Dt);un((Ue=Ue.apply(Pt,qe)).next())});const me={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"]}},we=(Pt,qe)=>qe.map(Ue=>({label:Ue,kind:Pt.languages.CompletionItemKind.Keyword,insertText:Ue})),be=Pt=>Object.keys(me.tables).map(qe=>({label:qe,kind:Pt.languages.CompletionItemKind.Variable,insertText:qe})),Me=(Pt,qe)=>{const Ue=me.tables[Pt];return Ue?Ue.map(St=>({label:St,kind:qe.languages.CompletionItemKind.Field,insertText:St})):[]};function Ie(Pt,qe,Ue,St,vt){let lt=qe.getWordUntilPosition(Ue),Dt={startLineNumber:Ue.lineNumber,endLineNumber:Ue.lineNumber,startColumn:lt.startColumn,endColumn:lt.endColumn},un=St.map(Xt=>({label:Xt,kind:Pt.languages.CompletionItemKind.Keyword,insertText:Xt,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Dt}));return vt.map(Xt=>{un.push(se(he({},Xt),{range:Dt}))}),un}var ze=Pt=>{me.languages.map(vt=>(Pt.languages.registerDocumentFormattingEditProvider(vt,{provideDocumentFormattingEdits(lt,Dt,un){return de(this,null,function*(){const Xt=ct()(lt.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:lt.getFullModelRange(),text:Xt}]})}}),vt));const qe=Ze.quickKey.map(vt=>({label:vt.label,kind:Pt.languages.CompletionItemKind.Method,insertText:vt.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ue=Ke.quickKey.map(vt=>({label:vt.label,kind:Pt.languages.CompletionItemKind.Method,insertText:vt.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),St=Ct.quickKey.map(vt=>({label:vt.label,kind:Pt.languages.CompletionItemKind.Method,insertText:vt.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Pt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(vt,lt){var Dt=vt.getWordUntilPosition(lt),un={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:Dt.startColumn,endColumn:Dt.endColumn},Xt=vt.getLineContent(lt.lineNumber).substring(Dt.startColumn-2,Dt.endColumn);return{suggestions:[...Ze.keywords.map($t=>({label:$t,kind:Pt.languages.CompletionItemKind.Function,documentation:$t,insertText:$t,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ze.quickKey.map($t=>({label:$t.label,kind:Pt.languages.CompletionItemKind.Function,documentation:$t.content,insertText:Xt.startsWith("#")?$t.content.replace(/#/,""):$t.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(vt,lt){var Dt=vt.getWordUntilPosition(lt),un={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:Dt.startColumn,endColumn:Dt.endColumn};return{suggestions:[..._e.keywords.map(Xt=>({label:Xt,kind:Pt.languages.CompletionItemKind.Function,documentation:Xt,insertText:Xt,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(vt,lt){var Dt=vt.getWordUntilPosition(lt),un={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:Dt.startColumn,endColumn:Dt.endColumn},Xt=vt.getLineContent(lt.lineNumber).substring(Dt.startColumn-2,Dt.endColumn);return{suggestions:[...Ct.keywords.map($t=>({label:$t,kind:Pt.languages.CompletionItemKind.Function,documentation:$t,insertText:$t,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ct.quickKey.map($t=>({label:$t.label,kind:Pt.languages.CompletionItemKind.Function,documentation:$t.content,insertText:Xt.startsWith("#")?$t.content.replace(/#/,""):$t.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(vt,lt){var Dt=vt.getWordUntilPosition(lt),un={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:Dt.startColumn,endColumn:Dt.endColumn},Xt=vt.getLineContent(lt.lineNumber).substring(Dt.startColumn-2,Dt.endColumn);return{suggestions:[...Be.keywords.map($t=>({label:$t,kind:Pt.languages.CompletionItemKind.Function,documentation:$t,insertText:$t,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Be.quickKey.map($t=>({label:$t.label,kind:Pt.languages.CompletionItemKind.Function,documentation:$t.content,insertText:Xt.startsWith("#")?$t.content.replace(/#/,""):$t.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}}),Pt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(vt,lt){var Dt=vt.getWordUntilPosition(lt),un={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:Dt.startColumn,endColumn:Dt.endColumn},Xt=vt.getLineContent(lt.lineNumber).substring(Dt.startColumn-2,Dt.endColumn);return{suggestions:[...Ke.keywords.map($t=>({label:$t,kind:Pt.languages.CompletionItemKind.Function,documentation:$t,insertText:$t,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un})),...Ke.quickKey.map($t=>({label:$t.label,kind:Pt.languages.CompletionItemKind.Function,documentation:$t.content,insertText:Xt.startsWith("#")?$t.content.replace(/#/,""):$t.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:un}))]}}})};const et="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var $e=Object.defineProperty,gt=(Pt,qe,Ue)=>qe in Pt?$e(Pt,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Pt[qe]=Ue,je=(Pt,qe,Ue)=>gt(Pt,typeof qe!="symbol"?qe+"":qe,Ue);const Tt=class px{constructor(qe,Ue,St){this.placeholder=qe,this.editor=Ue,this.monaco=St,Ue.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};je(Tt,"ID","editor.widget.placeholderHint");var bt=Tt,Nt=ve(96236),At=ve(8591),Zt=ve(6848),Yt=ve(89392),ut=ve(34604),Ge=ve(56102),kt=Object.defineProperty,ln=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,Bn=(Pt,qe,Ue)=>qe in Pt?kt(Pt,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Pt[qe]=Ue,rn=(Pt,qe)=>{for(var Ue in qe||(qe={}))Gt.call(qe,Ue)&&Bn(Pt,Ue,qe[Ue]);if(Bt)for(var Ue of Bt(qe))en.call(qe,Ue)&&Bn(Pt,Ue,qe[Ue]);return Pt},Cn=(Pt,qe)=>ln(Pt,sn(qe)),ft=(Pt,qe)=>{var Ue={};for(var St in Pt)Gt.call(Pt,St)&&qe.indexOf(St)<0&&(Ue[St]=Pt[St]);if(Pt!=null&&Bt)for(var St of Bt(Pt))qe.indexOf(St)<0&&en.call(Pt,St)&&(Ue[St]=Pt[St]);return Ue},En=(Pt,qe,Ue)=>new Promise((St,vt)=>{var lt=Xt=>{try{un(Ue.next(Xt))}catch($t){vt($t)}},Dt=Xt=>{try{un(Ue.throw(Xt))}catch($t){vt($t)}},un=Xt=>Xt.done?St(Xt.value):Promise.resolve(Xt.value).then(lt,Dt);un((Ue=Ue.apply(Pt,qe)).next())});function Vn(Pt){return/^\d+$/.test(Pt)?`${Pt}px`:Pt}function Re(){}let Ce=!1;const Pe={"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 Ne(Pt=[]){let qe=Pt;if(Array.isArray(Pt)){for(let Ue=0;Ue{var qe=Pt,{width:Ue="100%",height:St="100%",value:vt,language:lt="javascript",style:Dt={},options:un={},overrideServices:Xt={},theme:$t="vs-dark",onEditBlur:wn,isCopy:bn=!1,onSave:pn,autoHeight:Yn=!1,forbidCopy:ai=!1,onChange:Wn=Re,editorDidMount:Rn=Re,onFocus:ii=Re,onBreakPoint:pi=Re,breakPointValue:gi=[],filename:Ri="educoder.txt",errorLine:Ji,errorContent:Un="",highlightLine:$n,openBreakPoint:ti=!1,placeholder:Pi=""}=qe,mi=ft(qe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const nr=(0,ce.useRef)(),ji=(0,ce.useRef)({}),Le=(0,ce.useRef)(),si=(0,ce.useRef)(),Hi=(0,ce.useRef)([]),hn=(0,ce.useRef)(!1),ni=(0,ce.useRef)(),vi=(0,ce.useRef)(),Fi=(0,ce.useRef)(!1),[_n,Dn]=(0,ce.useState)(!1);function Ft(){let Wt;return nr.current&&(Wt=new De.Z(Jt=>{for(let hi of Jt)(hi.target.offsetHeight>0||hi.target.offsetWidth>0)&&ji.current.instance.layout()}),Wt.observe(nr.current)),Wt}function Ot(){At.ZP.warning({content:decodeURIComponent(et),key:"monaco-editor-tip"})}const Ve=()=>{let Wt=ji.current.instance;if(vt!=null&&Wt&&_n){const Jt=Wt.getModel();Jt&&vt!==Jt.getValue()&&(Ce=!0,Jt.setValue(vt),Wt.layout(),Ce=!1)}};(0,ce.useEffect)(()=>{const Wt=ut.Z.subscribe("formatDocument",Jt=>{var hi;let ci=ji.current.instance;(hi=ci==null?void 0:ci.getAction)==null||hi.call(ci,"editor.action.formatDocument").run()});return window.updateMonacoValue=Jt=>{Wn(Jt)},Wt},[]),(0,ce.useEffect)(()=>{var Wt;let Jt=ji.current.instance;si.current&&clearTimeout(si.current),si.current=setTimeout(()=>{Ve()},500),vt&&(vt!=null&&vt.length)&&((Wt=Jt==null?void 0:Jt.updateOptions)==null||Wt.call(Jt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(vt.split(/\r\n|\r|\n/g).length))+3,5)}))},[vt,_n,ji.current]),(0,ce.useEffect)(()=>{if(Ji&&ji.current&&ji.current.instance){let Jt=ji.current.instance;Jt.changeViewZones(function(hi){var ci=document.createElement("div");ci.style.padding="10px 20px",ci.style.width="calc(100% - 20px)",ci.className="my-error-line-wrp",ci.innerHTML=Un,hi.addZone({afterLineNumber:Ji||11,heightInLines:3,domNode:ci})});var Wt={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}};Jt.addOverlayWidget(Wt),Jt.revealPositionInCenter({lineNumber:20,column:1})}},[Ji,ji.current,_n]);const Ut=(Wt="",Jt)=>{if(!Wt||Wt.trim()==="")return!0;const ci=ji.current.instance.getModel().getLineTokens(Jt);let ui=!1;for(let qn=0;qn<2;qn++)ci.getStandardTokenType(qn)===1&&(ui=!0);return ui};(0,ce.useEffect)(()=>{var Wt;const Jt=(Wt=ji.current)==null?void 0:Wt.instance;if(Jt&&_n&&ai){const hi=Jt.onDidBlurEditorWidget(()=>{Fi.current=!1}),ci=Jt.onDidFocusEditorText(()=>{Fi.current=!0});return()=>{hi.dispose(),ci.dispose()}}},[ji.current,_n,ai]),(0,ce.useEffect)(()=>{var Wt;if((Wt=ji.current)!=null&&Wt.instance&&_n&&ti){let Jt=ji.current.instance,hi=Jt.getModel();if(!hi)return;(()=>{var ir;let fn=[],jn=[];const Ei=hi.getAllDecorations();for(let Ni of Ei)Ni.options.className==="highlighted-line"&&(fn.push((ir=Ni==null?void 0:Ni.range)==null?void 0:ir.startLineNumber),jn.push(Ni==null?void 0:Ni.id));if($n===fn[0])return;hi.deltaDecorations(jn,[]);const zi=hi.getLineCount();$n&&$n<=zi&&(Jt.deltaDecorations([],[{range:new ke.Range($n,1,$n,hi.getLineMaxColumn($n)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Jt.revealLineInCenter($n))})();const ui=(ir=!1)=>{var fn;let jn=[],Ei=[];const zi=hi.getAllDecorations();for(let Ni of zi)Ni.options.linesDecorationsClassName==="breakpoints-select"&&(jn.push((fn=Ni==null?void 0:Ni.range)==null?void 0:fn.startLineNumber),Ei.push(Ni==null?void 0:Ni.id));if(ir)return{lines:jn,ids:Ei};pi(jn)},qn=ir=>En(void 0,null,function*(){let fn={range:new ke.Range(ir,1,ir,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield hi.deltaDecorations([],[fn]),ui()}),di=ir=>En(void 0,null,function*(){let fn=[];const jn=Jt.getLineDecorations(ir);for(let Ei of jn)Ei.options.linesDecorationsClassName==="breakpoints-select"&&fn.push(Ei.id);yield hi.deltaDecorations(fn,[]),ui()}),li=ir=>{let fn=Jt.getLineDecorations(ir);for(let jn of fn)if(jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Yt.isEqual)(gi,ui(!0).lines)){hi.deltaDecorations(ui(!0).ids,[]);const ir=gi.map(fn=>({range:new ke.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));hi.deltaDecorations([],ir)}const Ai=Jt.onDidChangeModelContent(ir=>{let fn=Jt.getPosition();if(fn){let jn=fn.lineNumber;clearTimeout(vi.current),vi.current=setTimeout(()=>{Ut(hi.getLineContent(jn),jn)?di(jn):li(jn)?(di(jn),qn(jn)):ui()},100)}}),er=Jt.onMouseDown(ir=>{var fn,jn,Ei;if(ir.target.detail&&((Ei=(jn=(fn=ir.target)==null?void 0:fn.element)==null?void 0:jn.className)!=null&&Ei.includes("line-numbers"))){let zi=ir.target.position.lineNumber;if(Ut(hi.getLineContent(zi),zi))return;li(zi)?di(zi):qn(zi)}}),sr=ir=>{let fn={range:new ke.Range(ir,1,ir,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Hi.current=Jt.deltaDecorations(Hi.current,[fn])},vn=()=>{Hi.current=Jt.deltaDecorations(Hi.current,[])},Nr=Jt.onMouseMove(ir=>{var fn,jn,Ei;if(vn(),ir.target.detail&&((Ei=(jn=(fn=ir.target)==null?void 0:fn.element)==null?void 0:jn.className)!=null&&Ei.includes("line-numbers"))){let zi=ir.target.position.lineNumber;if(Ut(hi.getLineContent(zi),zi))return;sr(zi)}}),Dr=Jt.onMouseLeave(()=>{vn()});return()=>{Ai.dispose(),er.dispose(),Nr.dispose(),Dr.dispose()}}},[ji.current,_n,gi,$n,ti,lt]),(0,ce.useEffect)(()=>{var Wt;(Wt=ji.current)!=null&&Wt.instance&&ti&&ji.current.instance.setPosition({lineNumber:0,column:0})},[$n]);function tn(){let Wt=ji.current.instance;if(Wt){const Jt=Wt.getSelection(),hi=ji.current.pastePos||{},ci=new ke.Range(hi.startLineNumber||Jt.endLineNumber,hi.startColumn||Jt.endColumn,hi.endLineNumber||Jt.endLineNumber,hi.endColumn||Jt.endColumn);setTimeout(()=>{Wt.executeEdits("",[{range:ci,text:""}])},300)}}function xt(Wt){(window.navigator.platform.match("Mac")?Wt.metaKey:Wt.ctrlKey)&&Wt.keyCode==83&&(Wt.preventDefault(),pn())}const rt=()=>{if(Yn&&ji.current.instance){const Wt=ji.current.instance.getContentHeight();On(Wt{if(!Fi.current)return;const{keyCode:Jt,ctrlKey:hi,metaKey:ci,target:ui,type:qn}=Wt;return(qn==="paste"||(Jt===67||Jt===86)&&(ci||hi))&&ui.nodeName==="TEXTAREA"&&(Ot(),Wt.preventDefault()),!1};function xn(Wt,Jt){var hi=window.URL||window.webkitURL||window,ci=new Blob([Jt]),ui=document.createElementNS("http://www.w3.org/1999/xhtml","a");ui.href=hi.createObjectURL(ci),ui.download=Wt,Vt(ui)}(0,ce.useEffect)(()=>{rt()},[rt]),(0,ce.useEffect)(()=>{nr.current&&!_n&&Promise.all([ve.e(8909),ve.e(3267)]).then(ve.bind(ve,71448)).then(Wt=>{try{ke=Wt,ji.current.instance=ke.editor.create(nr.current,{value:vt,language:Ne(lt),theme:$t,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Xt);const Jt=ji.current.instance;let ui=[...Nt.BH._menuItems].find(Ai=>Ai[0]._debugName=="EditorContext")[1],qn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],di=(Ai,er)=>{var sr,vn;let Nr=Ai._first;do er.includes((vn=(sr=Nr.element)==null?void 0:sr.command)==null?void 0:vn.id)&&Ai._remove(Nr);while(Nr=Nr.next)};if(Rn(Jt,ke),setTimeout(()=>{rt(),ji.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{xn(Ri||"educoder.txt",Jt.getValue())}})},500),ji.current.subscription=Jt.onDidChangeModelContent(Ai=>{hn.current?clearTimeout(ni.current):(rt(),Wn(Jt.getValue(),Ai)),ni.current=setTimeout(()=>{hn.current=!1},500)}),window.Monaco||ze(ke,Ne(lt)),ai&&(di(ui,qn),nr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",on),window.removeEventListener("paste",on),window.addEventListener("keydown",on),window.addEventListener("paste",on)),window.Monaco=ke,wn&&Jt.onDidBlurEditorWidget(()=>{wn(Jt.getValue())}),ii&&Jt.onDidFocusEditorText(()=>{ii(Jt.getValue())}),ai)try{Jt.onDidPaste(Ai=>{const er=Jt.getSelection(),sr=ji.current.pastePos||{},vn=new ke.Range(sr.startLineNumber||er.endLineNumber,sr.startColumn||er.endColumn,sr.endLineNumber||er.endLineNumber,sr.endColumn||er.endColumn);Jt.executeEdits("",[{range:Ai.range,text:""}])})}catch(Ai){}let li=Ft();return Pi&&typeof Pi=="string"&&new bt(Pi,Jt,ke),Dn(!0),()=>{const Ai=ji.current.instance;Ai.dispose();const er=Ai.getModel();er&&er.dispose(),ji.current.subscription&&ji.current.subscription.dispose(),li.unobserve(nr.current)}}catch(Jt){}})},[]),(0,ce.useEffect)(()=>{if(ji.current.instance&&_n)return document.addEventListener("keydown",xt,!1),()=>{document.removeEventListener("keydown",xt)}},[pn,_n]),(0,ce.useEffect)(()=>{let Wt=ji.current.instance;if(Wt&&_n){let Jt=Ne(lt);ke.editor.setModelLanguage(Wt.getModel(),Jt)}},[lt,_n]),(0,ce.useEffect)(()=>{ji.current.instance&&_n&&ke.editor.setTheme($t)},[$t,_n]),(0,ce.useEffect)(()=>{let Wt=ji.current.instance;Le.current=un,Wt&&_n&&(Wt.updateOptions(rn({},un)),setTimeout(()=>{Wt.getModel().updateOptions(rn({},un))},200))},[JSON.stringify(un),_n]),(0,ce.useEffect)(()=>{let Wt=ji.current.instance;Wt&&_n&&Wt.layout()},[Ue,St,_n]);const[An,yt]=(0,ce.useState)(Vn(Ue)),[cn,On]=(0,ce.useState)(Vn(St)),ri=Cn(rn({},Dt),{width:An,height:cn,position:"relative"});return ce.createElement("div",{className:"my-monaco-editor",ref:nr,style:ri},bn&&ce.createElement(Ge.CopyToClipboard,{text:vt,onCopy:()=>At.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Zt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ce.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ce.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function nt({width:Pt="100%",height:qe="100%",original:Ue,modified:St,language:vt,options:lt={}}){const Dt=(0,ce.useRef)(),[un,Xt]=(0,ce.useState)(null);function $t(Yn){let ai;return Dt.current&&(ai=new De.Z(Wn=>{for(let Rn of Wn)(Rn.target.offsetHeight>0||Rn.target.offsetWidth>0)&&Yn.layout()}),ai.observe(Dt.current)),ai}(0,ce.useEffect)(()=>(Dt.current&&Promise.all([ve.e(8909),ve.e(9404)]).then(ve.bind(ve,2550)).then(Yn=>{ke=Yn;const ai=ke.editor.createDiffEditor(Dt.current,Cn(rn({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},lt),{wordWrap:!0}));Xt(ai);let Wn=$t(ai);return()=>{ai.dispose();const Rn=ai.getModel();Rn&&Rn.dispose(),Wn.unobserve(Dt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ce.useEffect)(()=>{un&&un.setModel({original:ke.editor.createModel(Ue,vt),modified:ke.editor.createModel(St,vt)})},[Ue,St,vt,un]);const wn=Vn(Pt),bn=Vn(qe),pn={width:wn,height:bn};return ce.createElement("div",{className:"my-diff-editor",ref:Dt,style:pn})}},85057:function(Pn,an,ve){"use strict";ve.d(an,{jL:function(){return Ze},w9:function(){return Gt},QD:function(){return Wn},cQ:function(){return Ge},op:function(){return $t},O5:function(){return Fi},_b:function(){return Ji},t7:function(){return se},Gi:function(){return En},YG:function(){return Cn},qp:function(){return Et},vr:function(){return pi},qE:function(){return pn},Je:function(){return we},wb:function(){return Nt},cq:function(){return ke},tp:function(){return Ae}});var ce=ve(59301),De={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"},_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ze=({dataSource:_n=[],img:Dn,imgWidth:Ft=346,title:Ot,sunTitle:Ve,bannerExtraContent:Ut})=>ce.createElement("div",{className:De.banner},ce.createElement("div",{className:De.content},ce.createElement("aside",null,ce.createElement("p",null,ce.createElement("b",null,Ot),ce.createElement("span",null,Ve)),_n.length>0&&ce.createElement("div",{className:De.btns},_n.map((tn,xt)=>ce.createElement("div",{key:xt,onClick:tn.click},tn.name,tn.sign?ce.createElement("img",{src:_e,width:39}):null))),Ut),Dn&&ce.createElement("img",{style:{marginTop:33,marginRight:38},src:Dn,width:Ft}))),Ke={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"},Be=ve(92310),mt=ve.n(Be),ct=ve(89392),Et=({dataSource:_n=[],value:Dn,onChange:Ft,onTitleChange:Ot,className:Ve,title:Ut,titleWidth:tn=41,style:xt={},fontColor:rt="#6A7283",showCount:Vt})=>{const[on,xn]=(0,ce.useState)(0),[An,yt]=(0,ce.useState)(!1),cn=(0,ce.useRef)(null),On=(0,ce.useRef)(null);return(0,ce.useEffect)(()=>{var ri;_n.length!==0&&(((ri=cn==null?void 0:cn.current)==null?void 0:ri.clientHeight)>97?xn(1):xn(0)),_n.length===0&&xn(0),yt(!1)},[_n]),ce.createElement("div",{className:mt()(Ke.row,Ve),style:xt},ce.createElement("div",{onClick:(0,ct.throttle)(()=>Ot==null?void 0:Ot(),2e3),style:{width:tn,marginTop:An?12:4},className:`${Ke.title} ${Ot?"current":""}`},Ut),ce.createElement("div",{className:An?`${Ke.tagsWrap} ${Ke.tagsBorderWrap}`:Ke.tagsWrap},ce.createElement("div",{className:Ke.bar,ref:On,style:on>0?{height:on===1?97:"auto",overflow:on===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ce.createElement("div",{className:Ke.tag,ref:cn},_n==null?void 0:_n.map(ri=>ce.createElement("span",{onClick:()=>Ft(ri.id),key:ri.id,style:{color:rt},className:Dn===ri.id?Ke.active:""},ce.createElement("span",{title:ri.name,className:Ke.name},ri.name),!!Vt&&ce.createElement("span",{className:Ke.num},ri.count))))),!!on&&ce.createElement(ce.Fragment,null,on===1?ce.createElement("div",{onClick:()=>{var ri;xn(2),((ri=cn==null?void 0:cn.current)==null?void 0:ri.clientHeight)>245?yt(!0):yt(!1)},className:Ke.action},"\u5C55\u5F00",ce.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ce.createElement("div",{onClick:()=>{On.current.scrollTop=0,xn(1),yt(!1)},className:Ke.action},"\u6536\u8D77",ce.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ht={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"},Ae=({dataSource:_n=[],value:Dn,onChange:Ft,className:Ot,style:Ve={}})=>ce.createElement("div",{style:Ve,className:mt()(ht.tabs,Ot)},_n.map(Ut=>ce.createElement("span",{onClick:()=>Ft(Ut.id),className:Dn===Ut.id?ht.active:"",key:Ut.id},Ut.name))),te={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"},ee=ve(92832),se=({dataSource:_n=[],value:Dn="",onChange:Ft,onInputChange:Ot=()=>{},className:Ve,style:Ut={},placeholder:tn,allowClear:xt=!1})=>{var rt;const[Vt,on]=(0,ce.useState)(""),[xn,An]=(0,ce.useState)("");(0,ce.useEffect)(()=>{var On;let ri=Dn;(On=JSON.stringify(Dn))!=null&&On.includes("{")&&(on(Dn.id),ri=Dn.value||"");try{An(decodeURIComponent(ri||""))}catch(Wt){An(decodeURIComponent(ri||""))}},[Dn]);const yt=()=>{Ft(encodeURIComponent(xn),Vt||null)},cn=On=>{On!==Vt&&(on(On),Ft(encodeURIComponent(xn),On))};return ce.createElement("div",{className:mt()(te.input,Ve),style:Ut},!!_n.length&&ce.createElement("div",{className:te.dropdown},ce.createElement("div",{className:te.text},(rt=_n.find(On=>On.id===Vt))==null?void 0:rt.name,ce.createElement("i",{className:"iconfont icon-zhankai4"}),ce.createElement("b",{className:te.b1}),ce.createElement("b",{className:te.b2})),ce.createElement("div",{className:te.menu},_n.map((On,ri)=>ce.createElement("div",{key:ri,onClick:()=>cn(On.id)},On.name)))),ce.createElement(ee.default,{onPressEnter:yt,value:xn,onChange:On=>{An(On.target.value),Ot(encodeURIComponent(On.target.value),Vt||null)},bordered:!1,placeholder:tn}),ce.createElement("i",{onClick:yt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},de={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"},we=({value:_n,onChange:Dn,className:Ft,total:Ot,pageSize:Ve,style:Ut={}})=>{const tn=_n<2,xt=_n>=Math.ceil(Ot/Ve);return Ot<=Ve?ce.createElement(ce.Fragment,null):ce.createElement("div",{className:mt()(de.quickPager,Ft),style:Ut},ce.createElement("div",{onClick:()=>{tn||Dn(_n-1,"prev")},className:tn?de.disabled:""},"\u4E0A\u4E00\u9875"),ce.createElement("div",{onClick:()=>{xt||Dn(_n+1,"next")},className:xt?de.disabled:""},"\u4E0B\u4E00\u9875"))},be={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"},Me=ve(71418),Ie=ve(6848),ze=ve(13570),et=ve(3294),$e=ve(955),gt=ve(96908),je=ve(57177),Tt=ve(81378),Qe=ve(8797),Nt=({className:_n,dataSource:Dn=[],col:Ft=4,right:Ot,bottom:Ve=23,precision:Ut=0,wrapWidth:tn=1200,trackEventItems:xt,loading:rt})=>{const Vt=Math.floor((tn-(Ft-1)*Ot)/Ft);return ce.createElement(Me.Z,{spinning:rt},ce.createElement("div",{className:mt()(be.list,_n)},!!Dn.length&&Dn.map((on,xn)=>{const{name:An,id:yt,identifier:cn,power:On,cover_image_id:ri,pic:Wt}=on;return ce.createElement("div",{className:be.wrap,key:yt,style:{width:Vt,marginRight:(1+xn)%Ft===0?0:Ot+Ut,marginBottom:Ve}},ce.createElement("a",{target:"_blank",href:`/shixuns/${cn}/challenges`,className:be.li,onClick:Jt=>{Jt.preventDefault(),xt&&(0,$e.L9)([xt]),On&&(0,$e.xg)(`/shixuns/${cn}/challenges`)}},ce.createElement("div",{className:be.img},ce.createElement("img",{className:be.cover,src:`${Wt}`}),on.is_jupyter&&ce.createElement("img",{className:be.sign,src:gt}),on.is_jupyter_lab&&ce.createElement("img",{className:be.sign,src:je}),on.is_unity_3d&&ce.createElement("img",{className:be.sign,src:Tt})),ce.createElement("div",{className:be.name},ce.createElement(Ie.Z,{title:An||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ce.createElement("span",{className:be.e},An||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ce.createElement("div",{className:be.tags},ce.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ce.createElement("span",null,on.challenges_count))),!!on.myshixuns_count&&ce.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ce.createElement("span",null,on.myshixuns_count))),ce.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ce.createElement("span",null,ce.createElement("span",null,on.level))),ce.createElement("div",{className:be.rate},ce.createElement(ze.Z,{allowHalf:!0,disabled:!0,defaultValue:on.score_info}),ce.createElement("span",null,"\xA0",on.score_info?`${on.score_info}\u5206`:"5\u5206")))),!On&&ce.createElement("div",{className:be.lockWrap},ce.createElement("img",{src:`${et.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ce.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dn.length&&ce.createElement(Qe.Z,null)))},At={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"},Zt=ve(24065),Yt=ve(59301),Ge=({className:_n,dataSource:Dn=[],col:Ft=4,right:Ot,bottom:Ve=23,precision:Ut=0,wrapWidth:tn=1200,trackEventItems:xt,loading:rt,onRemove:Vt=()=>{},isCurrent:on=!0,showAlias:xn=!1})=>{const An=Math.floor((tn-(Ft-1)*Ot)/Ft),yt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Yt.createElement(Me.Z,{spinning:rt},Yt.createElement("div",{className:mt()(At.list,_n)},!!(Dn!=null&&Dn.length)&&(Dn==null?void 0:Dn.map((cn,On)=>{var ri;const{name:Wt,id:Jt,identifier:hi,featured:ci,school_name:ui,image_url:qn,excellent:di,is_plan:li}=cn;return Yt.createElement("div",{key:Jt,className:At.wrap,style:{width:An,marginRight:(1+On)%Ft===0?0:Ot+Ut,marginBottom:Ve}},Yt.createElement("a",{className:At.li,onClick:Ai=>{Ai.preventDefault(),Ai.stopPropagation(),xt&&(0,$e.L9)([xt]),(0,$e.xg)(`/paths/${hi}`)}},Yt.createElement("div",{className:At.img},Yt.createElement("img",{className:At.cover,src:`${qn}`}),on&&(0,Zt.bg)()&&(cn==null?void 0:cn.studying)&&Yt.createElement("div",{className:`${At.movebq} user-path-items`,onClick:Ai=>{Ai.stopPropagation(),Vt(cn)}},Yt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Yt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ri=cn==null?void 0:cn.subject_tags)==null?void 0:ri.map((Ai,er)=>{var sr,vn;if(er===0){const Dr=(sr=yt.find(ir=>ir.name==Ai))==null?void 0:sr.swimg;return Yt.createElement("img",{className:At.sign,src:Dr,style:{left:"-4px"}})}const Nr=(vn=yt.find(Dr=>Dr.name==Ai))==null?void 0:vn.ptimg;return Yt.createElement("img",{className:At.sign,src:Nr,style:{left:`${48+52*(er-1)+2*er}px`}})}),Yt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(cn==null?void 0:cn.excellent)&&Yt.createElement("div",{className:At.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Yt.createElement("div",{className:At.name},Yt.createElement(Ie.Z,{title:xn&&(cn!=null&&cn.excellent_alias_name)?Yt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Wt}`,Yt.createElement("br",null),Yt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${cn==null?void 0:cn.excellent_alias_name}`)):Wt},Yt.createElement("span",{className:At.e},xn&&(cn==null?void 0:cn.excellent_alias_name)||Wt))),Yt.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ui}`},Yt.createElement("div",{className:At.unit},Yt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ui)),Yt.createElement("div",{className:At.tags},Yt.createElement("div",null,Yt.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Yt.createElement("span",null,cn.stages_count))),Yt.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Yt.createElement("span",null,cn.members_count)))))))})),!Dn.length&&Yt.createElement(Qe.Z,null)))},kt={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",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ln="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",sn=ve(59301),Gt=({className:_n,dataSource:Dn=[],col:Ft=4,right:Ot,bottom:Ve=23,precision:Ut=0,wrapWidth:tn=1200,trackEventItems:xt,loading:rt,handleVery:Vt=()=>!0})=>{const on=Math.floor((tn-(Ft-1)*Ot)/Ft);return sn.createElement(Me.Z,{spinning:rt},sn.createElement("div",{className:mt()(kt.list,_n)},!!Dn.length&&Dn.map((xn,An)=>{const{subject_identifier:yt,id:cn,identifier:On,power:ri}=xn,Wt=xn.is_public!=0&&xn.is_public;return sn.createElement("div",{className:kt.wrap,key:cn,style:{width:on,marginRight:(1+An)%Ft===0?0:Ot+Ut,marginBottom:Ve}},sn.createElement("a",{className:kt.li,onClick:Jt=>{Jt.preventDefault(),Vt(xn==null?void 0:xn.first_category_url)&&(xt&&(0,$e.L9)([xt]),(0,$e.xg)(xn.first_category_url))}},sn.createElement("div",{className:kt.top},sn.createElement(Ie.Z,{title:xn.name},sn.createElement("div",{className:kt.name},xn.name)),sn.createElement("img",{className:kt.img,src:et.Z.IMG_SERVER+"/images/"+xn.avatar_url}),sn.createElement("div",{className:kt.text,title:xn.creator},xn.creator),yt&&sn.createElement("div",{className:kt.btns},sn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),sn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Wt&&sn.createElement("div",{className:kt.sign},"\u516C\u5F00")),sn.createElement("div",{className:kt.bottom},xn.visits>0&&sn.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-liulanyan"}),sn.createElement("span",null,xn.visits))),xn.course_members_count>0&&sn.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-chengyuan"}),xn.course_members_count)),xn.tasks_count>0&&sn.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-zuoye"}),xn.tasks_count)),xn.is_end?sn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):sn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xn.is_accessible&&sn.createElement("div",{className:kt.lockWrap},sn.createElement("img",{src:`${et.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),sn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dn.length&&sn.createElement(Qe.Z,null)))},en={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"},Bn=ve(89070),Cn=({dataSource:_n=[],value:Dn,onChange:Ft,className:Ot,style:Ve={},tabBarExtraContent:Ut})=>ce.createElement("div",{className:mt()(en.tabs,Ot),style:Ve},ce.createElement("div",{className:en.tabsWrap},_n.map((tn,xt)=>!(tn!=null&&tn.hide)&&ce.createElement("aside",{className:en.tab,onClick:()=>{Ft(tn.id),tn.link&&Bn.history.push(tn.link)},key:xt},ce.createElement("div",{className:Dn===tn.id?en.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&ce.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&ce.createElement(Ie.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},ce.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ce.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",ce.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),ce.createElement("div",{className:en.tabBar},Ut)),En=({className:_n,style:Dn={},children:Ft})=>ce.createElement("div",{className:mt()(_n),style:Dn},Ft),Vn={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"},Re=ve(38854),Ce=ve(20834);const Pe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ke=({sortValue:_n,dropValue:Dn,className:Ft,onSort:Ot,onDrop:Ve,dataSource:Ut=Pe})=>{var tn;return ce.createElement("div",{className:mt()(Vn.orderWrap,Ft)},ce.createElement(Re.Z,{dropdownRender:()=>ce.createElement(Ce.default,null,Ut.map((xt,rt)=>ce.createElement(Ce.default.Item,{key:rt,onClick:()=>Ve(xt.id)},xt.name)))},ce.createElement("span",{className:Vn.orderTextWrap},(tn=Ut.find(xt=>Dn===xt.id))==null?void 0:tn.name)),ce.createElement("span",{className:Vn.orderIconWrap},ce.createElement("span",{className:Vn.orderAsc},ce.createElement("i",{className:_n==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Vn.cursorPointer} ${Vn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Vn.cursorPointer}`,onClick:()=>Ot(_n==="asc"?"desc":"asc")})),ce.createElement("span",{className:Vn.orderDesc},ce.createElement("i",{className:_n==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Vn.cursorPointer} ${Vn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Vn.cursorPointer}`,onClick:()=>Ot(_n==="asc"?"desc":"asc")}))))},Se={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"},nt=ve(3113),Pt=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,vt=(_n,Dn,Ft)=>Dn in _n?Pt(_n,Dn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):_n[Dn]=Ft,lt=(_n,Dn)=>{for(var Ft in Dn||(Dn={}))Ue.call(Dn,Ft)&&vt(_n,Ft,Dn[Ft]);if(qe)for(var Ft of qe(Dn))St.call(Dn,Ft)&&vt(_n,Ft,Dn[Ft]);return _n},Dt=(_n,Dn)=>{var Ft={};for(var Ot in _n)Ue.call(_n,Ot)&&Dn.indexOf(Ot)<0&&(Ft[Ot]=_n[Ot]);if(_n!=null&&qe)for(var Ot of qe(_n))Dn.indexOf(Ot)<0&&St.call(_n,Ot)&&(Ft[Ot]=_n[Ot]);return Ft},un=(_n,Dn,Ft)=>new Promise((Ot,Ve)=>{var Ut=rt=>{try{xt(Ft.next(rt))}catch(Vt){Ve(Vt)}},tn=rt=>{try{xt(Ft.throw(rt))}catch(Vt){Ve(Vt)}},xt=rt=>rt.done?Ot(rt.value):Promise.resolve(rt.value).then(Ut,tn);xt((Ft=Ft.apply(_n,Dn)).next())}),$t=_n=>{var Dn=_n,{className:Ft,style:Ot,children:Ve,loading:Ut=!1,openLoading:tn,onClick:xt=()=>{},size:rt="middle",shape:Vt="round"}=Dn,on=Dt(Dn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[xn,An]=(0,ce.useState)(!1);return ce.createElement(nt.ZP,lt({onClick:(0,ct.throttle)(yt=>un(void 0,null,function*(){tn&&An(!0);try{yield xt(yt)}catch(cn){console.log("error",cn)}tn&&An(!1)}),2e3,{leading:!0,trailing:!1}),className:mt()(Se.btn,Se[`${rt}-${Vt}`],Ft),style:Ot,size:rt,shape:Vt,loading:xn||Ut},on),Ve)},wn={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"},pn=({className:_n,style:Dn,children:Ft=null,onClick:Ot,title:Ve})=>ce.createElement("div",{className:mt()(wn.head,_n),style:Dn},ce.createElement("span",{className:"primary-hover",onClick:Ot},ce.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ce.createElement("b",{title:Ve},Ve),ce.createElement("div",{className:wn.node},Ft)),Yn={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"},Wn=({confirmShow:_n=!0,confirmTitle:Dn,confirmClick:Ft,cancelShow:Ot=!0,cancelTitle:Ve,cancelClick:Ut,className:tn,style:xt,confirmLoading:rt=!1})=>ce.createElement("div",{className:mt()(Yn.btns,tn),style:xt},_n&&ce.createElement(nt.ZP,{loading:rt,onClick:Ft,type:"primary",className:Yn.confirm},Dn),Ot&&ce.createElement(nt.ZP,{onClick:Ut,className:Yn.cancel},Ve)),Rn={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"},pi=({className:_n,style:Dn={},LeftContent:Ft,children:Ot,RightContent:Ve})=>ce.createElement("div",{className:mt()(Rn.fixedBottom,_n),style:Dn},ce.createElement("div",{className:Rn.wrap},ce.createElement("div",{className:Rn.left},Ft),ce.createElement("div",{className:Rn.center},Ot),ce.createElement("div",{className:Rn.right},Ve))),gi={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"},Ji=({className:_n,style:Dn={},dataSource:Ft=[]})=>ce.createElement("div",{className:mt()(gi.crumbs,_n),style:Dn},Ft.map((Ot,Ve)=>VeBn.history.push(Ot.path)},Ot.name):ce.createElement("span",null,Ot.name),ce.createElement("span",null,"\xA0",">","\xA0")):ce.createElement("span",{key:Ve,style:{color:"#5F6368"}},Ot.name))),Un=ve(31797),$n=Object.defineProperty,ti=Object.defineProperties,Pi=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,Le=(_n,Dn,Ft)=>Dn in _n?$n(_n,Dn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):_n[Dn]=Ft,si=(_n,Dn)=>{for(var Ft in Dn||(Dn={}))nr.call(Dn,Ft)&&Le(_n,Ft,Dn[Ft]);if(mi)for(var Ft of mi(Dn))ji.call(Dn,Ft)&&Le(_n,Ft,Dn[Ft]);return _n},Hi=(_n,Dn)=>ti(_n,Pi(Dn)),hn=(_n,Dn)=>{var Ft={};for(var Ot in _n)nr.call(_n,Ot)&&Dn.indexOf(Ot)<0&&(Ft[Ot]=_n[Ot]);if(_n!=null&&mi)for(var Ot of mi(_n))Dn.indexOf(Ot)<0&&ji.call(_n,Ot)&&(Ft[Ot]=_n[Ot]);return Ft};const{Countdown:ni}=Un.default;var Fi=_n=>{var Dn=_n,{onChange:Ft}=Dn,Ot=hn(Dn,["onChange"]);const[Ve,Ut]=(0,ce.useState)(null);(0,ce.useEffect)(()=>{typeof Ve=="number"&&Ve>=0&&Ft(Ve)},[Ve]);const tn=xt=>{const rt=Math.floor(xt/1e3);Ut(rt)};return ce.createElement(ni,Hi(si({},Ot),{onChange:tn}))}},58856:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return De}});var ce=ve(59301);function De(_e,Ct){const Ze=(0,ce.useRef)();(0,ce.useEffect)(()=>{Ze.current=_e}),(0,ce.useEffect)(()=>{function Ke(){Ze.current()}if(Ct!==null){let Be=setInterval(Ke,Ct);return()=>clearInterval(Be)}},[Ct])}},74440:function(Pn,an,ve){"use strict";ve.d(an,{h:function(){return ce}});var ce=(De=>(De[De.NOMATCH=-1]="NOMATCH",De[De.OK=0]="OK",De[De.TIMEOUT=2]="TIMEOUT",De[De.PODFAILURE=3]="PODFAILURE",De[De.COMPILEFAILURE=4]="COMPILEFAILURE",De[De.EXECUTEFAILURE=5]="EXECUTEFAILURE",De[De.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",De))(ce||{})},88264:function(Pn,an,ve){"use strict";ve.d(an,{H7:function(){return te},MK:function(){return Ae},MU:function(){return He},X6:function(){return ht},bM:function(){return ct},fi:function(){return ee},fu:function(){return mt},n4:function(){return he},rX:function(){return dt},vl:function(){return se},zO:function(){return Et}});var ce=ve(99064),De=Object.defineProperty,_e=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ke=(de,me,we)=>me in de?De(de,me,{enumerable:!0,configurable:!0,writable:!0,value:we}):de[me]=we,Be=(de,me)=>{for(var we in me||(me={}))Ct.call(me,we)&&Ke(de,we,me[we]);if(_e)for(var we of _e(me))Ze.call(me,we)&&Ke(de,we,me[we]);return de};function mt(de,me){return(0,ce.U2)(`myproblems/${de}.json`,Be({hidePopLogin:!0},me||{}))}function ct(de,me){return(0,ce.v_)(`myproblems/${de}/code_submit.json`,me)}function He(de,me){return(0,ce.v_)(`myproblems/${de}/code_debug.json`,me)}function Et(de,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,ce.U2)(`myproblems/${de}/submit_records.json`,me)}function ht(de){return(0,ce.U2)("myproblems/record_detail.json",{id:de})}function dt(de,me){return(0,ce.U2)(`myproblems/${de}/result.json`,{mode:me})}function Ae(de,me){return(0,ce.v_)(`myproblems/${de}/add_notes.json`,me)}function te(de,me){return(0,ce.v_)(`myproblems/${de}/restore_initial_code.json`,me)}function ee(de){return(0,ce.v_)(`myproblems/${de}/sync_code.json`)}function he(de,me){return(0,ce.v_)(`myproblems/${de}/update_code.json`,me)}function se(de,me){return(0,ce.v_)(`discusses/${de}/plus.json`,me)}},92744:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Mc}});var ce=ve(59301),De={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},_e=ve(78241),Ct=ve(6848),Ze=ve(3113),Ke=ve(43418),Be=ve(5871),mt=ve(8591),ct=ve(92832),He=ve(28103),Et=ve(24905),ht=ve(95237),dt=ve(43604),Ae=ve(58421),te=ve(60324),ee=Object.defineProperty,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,me=(Kt,_t,mn)=>_t in Kt?ee(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,we=(Kt,_t)=>{for(var mn in _t||(_t={}))se.call(_t,mn)&&me(Kt,mn,_t[mn]);if(he)for(var mn of he(_t))de.call(_t,mn)&&me(Kt,mn,_t[mn]);return Kt};const be=Kt=>React.createElement("svg",we({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Kt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var Me="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Ie=ve(85149),ze=ve(89070),et=ve(955),$e=ve(99064),gt=Object.defineProperty,je=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,bt=(Kt,_t,mn)=>_t in Kt?gt(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,Nt=(Kt,_t)=>{for(var mn in _t||(_t={}))Tt.call(_t,mn)&&bt(Kt,mn,_t[mn]);if(je)for(var mn of je(_t))Qe.call(_t,mn)&&bt(Kt,mn,_t[mn]);return Kt};const At=Kt=>React.createElement("svg",Nt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Kt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var Zt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Yt=Object.defineProperty,ut=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,ln=(Kt,_t,mn)=>_t in Kt?Yt(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,sn=(Kt,_t)=>{for(var mn in _t||(_t={}))Ge.call(_t,mn)&&ln(Kt,mn,_t[mn]);if(ut)for(var mn of ut(_t))kt.call(_t,mn)&&ln(Kt,mn,_t[mn]);return Kt};const Bt=Kt=>React.createElement("svg",sn({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Kt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var Gt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",en=ve(42678),Bn=ve(12290),rn=ve(65158),Cn=ve(10672),ft={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},En=ve(59301),Vn=Object.defineProperty,Re=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Se=(Kt,_t,mn)=>_t in Kt?Vn(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,nt=(Kt,_t)=>{for(var mn in _t||(_t={}))Ne.call(_t,mn)&&Se(Kt,mn,_t[mn]);if(Pe)for(var mn of Pe(_t))ke.call(_t,mn)&&Se(Kt,mn,_t[mn]);return Kt},Pt=(Kt,_t)=>Re(Kt,Ce(_t)),qe=(Kt,_t)=>{var mn={};for(var it in Kt)Ne.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Pe)for(var it of Pe(Kt))_t.indexOf(it)<0&&ke.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const Ue=null,St=(Kt,_t)=>{var mn=Kt,{globalSetting:it,loading:yn,dispatch:zr,isEdit:Bo,editData:Ir}=mn,_r=qe(mn,["globalSetting","loading","dispatch","isEdit","editData"]);const[jo,po]=(0,ce.useState)(""),[Go,ho]=(0,ce.useState)(""),[_i,$i]=(0,ce.useState)([]),[Tr,Ar]=(0,ce.useState)(""),[or,Cr]=(0,ce.useState)(),[Lo,Rr]=(0,ce.useState)(!1),[tr,cr]=(0,ce.useState)({}),[lr,Ii]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{!Ir||!Bo||(po(Ir==null?void 0:Ir.name),ho(Ir==null?void 0:Ir.analysis),Cr(Ir==null?void 0:Ir.is_ordered),cr(Ir),Rr(!0))},[Ir]),(0,ce.useEffect)(()=>{if(!Lo)return;const Wi=Ir==null?void 0:Ir.standard_answer.map(Vr=>Vr==null?void 0:Vr.answer_text);$i(Wi);const Ia=Ir==null?void 0:Ir.standard_answer.map(Vr=>Vr==null?void 0:Vr.score);Ii(Ia),Rr(!1)},[Lo]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Do,Clear:Yr}));const Do=()=>{let Wi=[],Ia=!1;return jo?(_i.forEach((Vr,_a)=>{Wi.push({position:_a+1,answer_text:[],score:lr[_a]}),Vr==null||Vr.forEach((Is,ju)=>{Wi[_a].answer_text.push(Is),(!Is||!(0,et.eR)(Is,1e4))&&(Ar(`${_a}-${ju}`),mt.ZP.info(Is?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Ia=!0)})}),Ia?!1:(Wi==null?void 0:Wi.length)>20?(mt.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:jo,analysis:Go,standard_answers:Wi,is_ordered:or,downcase:tr==null?void 0:tr.downcase,no_space:tr==null?void 0:tr.no_space,use_blank_score:tr==null?void 0:tr.use_blank_score}):(mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Yr=()=>{po(""),ho(""),$i([]),Cr(!1)},ko=(Wi,Ia,Vr)=>{const _a=_i.slice();if(Ia&&_a.splice(Wi,Ia),Vr)for(let Is=0;Is{Ar("");let _a=_i.slice();_a[Wi][Ia]=Vr,$i(_a)},br=Wi=>{let Ia=_i.slice();Ia[Wi]=[...Ia[Wi],""],$i(Ia)},Oo=(Wi,Ia)=>{let Vr=_i.slice();if(!Vr[Wi][Ia]){Vr[Wi]=Vr[Wi].filter((_a,Is)=>Is!==Ia),$i(Vr);return}Ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ft.modal,onOk:()=>{Vr[Wi]=Vr[Wi].filter((_a,Is)=>Is!==Ia),$i(Vr)}})},Bs=Wi=>{Ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ft.modal,onOk:()=>{let Ia=_i.slice();Ia=_i.filter((Vr,_a)=>Wi!==_a),$i(Ia)}})};return En.createElement("section",{className:ft.wrap},En.createElement("p",{className:ft.titleWrap},En.createElement("span",{className:ft.required},"*"),En.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),En.createElement("div",null,En.createElement(rn.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:jo,onChange:Wi=>po(Wi),showNullButton:!0,onPlaceholderChange:ko})),En.createElement("div",{className:"mt20"},_i.map((Wi,Ia)=>En.createElement("div",{style:{display:"flex"}},En.createElement("div",{style:{flex:1}},En.createElement(Cn.Z,{key:Ia,answers:Wi,index:Ia,flex:1,is_md:!0,activeOptionErrorIndex:Tr,onAnswerChange:Yo,addChildAnswer:br,deleteChildAnswer:Oo,deleteChildAnswermain:Bs})),tr.use_blank_score&&En.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},En.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",En.createElement(Be.Z,{style:{width:"100px"},size:"large",defaultValue:lr[Ia],onBlur:Vr=>{lr[Ia]=Vr.target.value,Ii([...lr])}}))))),En.createElement("div",null,En.createElement(Et.default,{className:`${ft.color333} font14 mt20`,checked:tr.use_blank_score,onChange:Wi=>cr(Pt(nt({},tr),{use_blank_score:Wi.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),En.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),En.createElement("div",null,En.createElement(Et.default,{className:`${ft.color333} font14 mt20`,checked:tr.downcase,onChange:Wi=>cr(Pt(nt({},tr),{downcase:Wi.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),En.createElement("div",null,En.createElement(Et.default,{className:`${ft.color333} font14 mt20`,checked:tr.no_space,onChange:Wi=>cr(Pt(nt({},tr),{no_space:Wi.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),En.createElement("div",{className:"mt20"},(_i==null?void 0:_i.length)>1&&En.createElement("span",null,En.createElement(Et.default,{checked:or,onChange:Wi=>Cr(Wi.target.checked),className:`${ft.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),En.createElement("span",{className:`${ft.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),En.createElement("p",{className:ft.titleWrap},En.createElement("span",{className:ft.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),En.createElement(Bn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Go,onChange:Wi=>ho(Wi)}))};var vt=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(St)),lt=ve(5112),Dt=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,$t=(Kt,_t)=>{var mn={};for(var it in Kt)un.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Dt)for(var it of Dt(Kt))_t.indexOf(it)<0&&Xt.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const wn=null,bn=(Kt,_t)=>{var mn=Kt,{globalSetting:it,loading:yn,editData:zr,dispatch:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=$t(mn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[po,Go]=(0,ce.useState)(),[ho,_i]=(0,ce.useState)(""),[$i,Tr]=(0,ce.useState)("");(0,ce.useEffect)(()=>{if(!zr||!_r)return;_i(zr==null?void 0:zr.name),Tr(zr==null?void 0:zr.analysis);const Cr=zr==null?void 0:zr.choices.find(Lo=>Lo.is_answer);Go(Cr.choice_text==="\u6B63\u786E"?"0":"1")},[zr]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Ar,Clear:or}));const Ar=()=>ho?po?{name:ho,choices:[{choice_text:"\u6B63\u786E",is_answer:po==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:po==="1"?1:0}],analysis:$i}:(mt.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),or=()=>{_i(""),Tr(""),Go("")};return ce.createElement("section",{className:ft.wrap},ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:Cr=>_i(Cr)}),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u7B54\u6848\u9009\u9879\uFF1A",ce.createElement("span",{className:ft.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ce.createElement(lt.ZP.Group,{buttonStyle:"solid",value:po,onChange:Cr=>Go(Cr.target.value)},ce.createElement(lt.ZP.Button,{value:"0",className:`${ft.radio} mr40`},"\u6B63\u786E"),ce.createElement(lt.ZP.Button,{value:"1",className:ft.radio},"\u9519\u8BEF")),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:$i,onChange:Cr=>Tr(Cr)}))};var pn=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(bn)),Yn=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,Rn=(Kt,_t)=>{var mn={};for(var it in Kt)ai.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Yn)for(var it of Yn(Kt))_t.indexOf(it)<0&&Wn.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const ii=null,pi=(Kt,_t)=>{var mn=Kt,{globalSetting:it,loading:yn,editData:zr,dispatch:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=Rn(mn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[po,Go]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{var Tr;if(!zr||!_r)return;const Ar=(Tr=zr==null?void 0:zr.shixun)==null?void 0:Tr.challenges.map(or=>({id:or==null?void 0:or.id,score:or.score}));Go(Ar)},[zr]),(0,ce.useImperativeHandle)(_t,()=>({onSave:ho,Clear:_i}));const ho=()=>({challenges:[...po]}),_i=()=>{Go([])};console.log("editData--",zr);const $i=Tr=>{var Ar,or;return ce.createElement("div",null,(or=(Ar=Tr==null?void 0:Tr.shixun)==null?void 0:Ar.challenges)==null?void 0:or.map((Cr,Lo)=>{var Rr;return ce.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},ce.createElement("div",null,ce.createElement("span",{className:"mr5"},"\u7B2C",Lo+1,"\u5173"),ce.createElement(Ct.Z,{key:Lo,title:Cr==null?void 0:Cr.challenge_name},ce.createElement("span",null,(0,et.Pq)(Cr==null?void 0:Cr.challenge_name,44)))),ce.createElement("p",{style:{marginBottom:0}},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u5206\u503C\uFF1A"),ce.createElement(Be.Z,{precision:1,min:1,max:100,className:ft.baseFormItem,style:{width:176},value:(Rr=po.find(tr=>tr.id===Cr.id))==null?void 0:Rr.score,onChange:tr=>{po.find(cr=>cr.id===Cr.id).score=tr,Go([...po])}})))}),ce.createElement("div",{style:{clear:"both"}}))};return ce.createElement("section",{className:ft.wrap},ce.createElement(Ie.Z,{style:{paddingRight:10},className:ft.titleHtml,value:`${zr==null?void 0:zr.position}\u3001${zr==null?void 0:zr.name}`}),ce.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u5173\u5361")),$i(zr))};var gi=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(pi)),Ri=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,$n=(Kt,_t)=>{var mn={};for(var it in Kt)Ji.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Ri)for(var it of Ri(Kt))_t.indexOf(it)<0&&Un.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const ti=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pi=(Kt,_t)=>{var mn=Kt,{editData:it,globalSetting:yn,loading:zr,dispatch:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=$n(mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[po,Go]=(0,ce.useState)([]),[ho,_i]=(0,ce.useState)(),[$i,Tr]=(0,ce.useState)([]),[Ar,or]=(0,ce.useState)(""),[Cr,Lo]=(0,ce.useState)("");(0,ce.useEffect)(()=>{Go(["","","",""])},[]),(0,ce.useEffect)(()=>{if(!it||!_r)return;or(it==null?void 0:it.name),Lo(it==null?void 0:it.analysis),Go(it==null?void 0:it.choices.map(lr=>lr.choice_text));const cr=[];it==null||it.choices.map((lr,Ii)=>{lr.is_answer&&cr.push(Ii)}),Tr(cr)},[it]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Rr,Clear:tr}));const Rr=()=>{if(!Ar)return mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const cr=po.findIndex(Ii=>!Ii);if(cr>-1)return mt.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${ti[cr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!$i.length)return mt.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if($i.length<2)return mt.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const lr=po.map((Ii,Do)=>({choice_text:Ii,is_answer:$i.includes(Do)?1:0}));return{name:Ar,choices:lr,analysis:Cr}},tr=()=>{Go(["","","",""]),or(""),Lo(""),Tr("")};return ce.createElement("section",{className:ft.wrap},ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ar,onChange:cr=>or(cr)}),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u7B54\u6848\u9009\u9879\uFF1A",ce.createElement("span",{className:ft.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),po.map((cr,lr)=>ce.createElement("div",{className:ft.choiceWrap,key:lr},ce.createElement(Ct.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ce.createElement("div",{className:`${ft.answer} ${$i.includes(lr)?ft.activeAnswer:""}`,onClick:()=>{$i.includes(lr)?Tr($i.filter(Ii=>Ii!==lr)):Tr([...$i,lr])}},ti[lr])),ce.createElement("div",{className:ft.editorWrap},ho===lr?ce.createElement(Bn.Z,{id:`single-question-option-${lr}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:cr,onChange:Ii=>{po[lr]=Ii,Go(po)}}):ce.createElement("div",{className:ft.htmlWrap,onClick:()=>_i(lr)},ce.createElement(Ie.Z,{value:cr}))),lr>1&&ce.createElement(Ct.Z,{title:"\u5220\u9664"},ce.createElement("i",{className:`${ft.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Go(po.filter((Ii,Do)=>Do!==lr)),$i.includes(lr)?Tr($i.filter(Ii=>Ii!==lr)):Tr([...$i,lr])}})),lr<7&&lr===po.length-1&&ce.createElement(Ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ce.createElement("i",{className:`${ft.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Go([...po,""])})))),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Cr,onChange:cr=>Lo(cr)}))};var mi=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(Pi)),nr=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,si=(Kt,_t)=>{var mn={};for(var it in Kt)ji.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&nr)for(var it of nr(Kt))_t.indexOf(it)<0&&Le.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const Hi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],hn=(Kt,_t)=>{var mn=Kt,{editData:it,globalSetting:yn,loading:zr,dispatch:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=si(mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[po,Go]=(0,ce.useState)([]),[ho,_i]=(0,ce.useState)(),[$i,Tr]=(0,ce.useState)(),[Ar,or]=(0,ce.useState)(""),[Cr,Lo]=(0,ce.useState)("");(0,ce.useEffect)(()=>{Go(["","","",""])},[]),(0,ce.useEffect)(()=>{if(!it||!_r)return;const cr=[],lr=[];it==null||it.choices.forEach((Ii,Do)=>{cr.push(Ii.choice_text),Ii.is_answer&&lr.push(Do)}),or(it==null?void 0:it.name),Lo(it==null?void 0:it.analysis),Go(cr),Tr(lr)},[it]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Rr,Clear:tr}));const Rr=()=>{if(!Ar)return mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const cr=po.findIndex(Ii=>!Ii);if(cr>-1)return mt.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Hi[cr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray($i))return mt.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const lr=po.map((Ii,Do)=>({choice_text:Ii,is_answer:$i.includes(Do)?1:0}));return{name:Ar,choices:lr,analysis:Cr}},tr=()=>{Go(["","","",""]),or(""),Lo(""),Tr("")};return ce.createElement("section",{className:ft.wrap},ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ar,onChange:cr=>or(cr)}),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.required},"*"),ce.createElement("span",{className:ft.title},"\u7B54\u6848\u9009\u9879\uFF1A",ce.createElement("span",{className:ft.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),po.map((cr,lr)=>ce.createElement("div",{className:ft.choiceWrap,key:lr},ce.createElement(Ct.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ce.createElement("div",{className:`${ft.answer} ${$i!=null&&$i.includes(lr)?ft.activeAnswer:""}`,onClick:()=>Tr([lr])},Hi[lr])),ce.createElement("div",{className:ft.editorWrap},ho===lr?ce.createElement(Bn.Z,{id:`single-question-option-${lr}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:cr,onChange:Ii=>{po[lr]=Ii,Go(po)}}):ce.createElement("div",{className:ft.htmlWrap,onClick:()=>_i(lr)},ce.createElement(Ie.Z,{value:cr}))),lr>1&&ce.createElement(Ct.Z,{title:"\u5220\u9664"},ce.createElement("i",{className:`${ft.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Go(po.filter((Ii,Do)=>Do!==lr)),lr===$i&&Tr(null)}})),lr<7&&lr===po.length-1&&ce.createElement(Ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ce.createElement("i",{className:`${ft.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Go([...po,""])})))),ce.createElement("p",{className:ft.titleWrap},ce.createElement("span",{className:ft.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ce.createElement(Bn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Cr,onChange:cr=>Lo(cr)}))};var ni=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(hn)),vi=ve(12563),Fi=ve(78673),_n=ve(61485),Dn=ve(59301),Ft=Object.defineProperty,Ot=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,rt=(Kt,_t,mn)=>_t in Kt?Ft(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,Vt=(Kt,_t)=>{for(var mn in _t||(_t={}))tn.call(_t,mn)&&rt(Kt,mn,_t[mn]);if(Ut)for(var mn of Ut(_t))xt.call(_t,mn)&&rt(Kt,mn,_t[mn]);return Kt},on=(Kt,_t)=>Ot(Kt,Ve(_t)),xn=(Kt,_t)=>{var mn={};for(var it in Kt)tn.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Ut)for(var it of Ut(Kt))_t.indexOf(it)<0&&xt.call(Kt,it)&&(mn[it]=Kt[it]);return mn},An=(Kt,_t,mn)=>new Promise((it,yn)=>{var zr=_r=>{try{Ir(mn.next(_r))}catch(jo){yn(jo)}},Bo=_r=>{try{Ir(mn.throw(_r))}catch(jo){yn(jo)}},Ir=_r=>_r.done?it(_r.value):Promise.resolve(_r.value).then(zr,Bo);Ir((mn=mn.apply(Kt,_t)).next())});const yt=Kt=>{if(!Kt)return!1;if(/^s*$/.test(Kt)||Kt.trim()===""){mt.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Kt==="|"?(mt.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},cn=({value:Kt=[],onClose:_t})=>Dn.createElement(vi.default,{closable:!0,onClose:_t,className:ft.keywordTag},Dn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Kt.join(" \u6216 "))),On=(Kt,_t)=>{var mn=Kt,{editData:it,globalSetting:yn,loading:zr,dispatch:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=xn(mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[po,Go]=(0,ce.useState)(""),[ho,_i]=(0,ce.useState)(""),[$i,Tr]=(0,ce.useState)(""),[Ar,or]=(0,ce.useState)(""),[Cr]=_e.default.useForm(),Lo=_e.default.useWatch("use_keywords",Cr);(0,ce.useEffect)(()=>{var lr;!it||!_r||(Go(it==null?void 0:it.name),_i(it==null?void 0:it.analysis),Tr((lr=it==null?void 0:it.answer_texts)==null?void 0:lr[0]),Cr.setFieldsValue(Vt({},it)))},[it]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Rr,Clear:tr}));const Rr=()=>An(void 0,null,function*(){if(!po)return mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Cr.validateFields()}catch(Ii){mt.ZP.error(Ii.errorFields[0].errors[0]);return}const lr=Cr.getFieldsValue();return console.log(lr,"values"),Vt({name:po,answer_texts:[$i],analysis:ho},lr)}),tr=()=>{Go(""),_i(""),Tr(""),Cr.resetFields()},cr=it==null?void 0:it.score;return Dn.createElement("section",{className:ft.wrap},Dn.createElement("p",{className:ft.titleWrap},Dn.createElement("span",{className:ft.required},"*"),Dn.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),Dn.createElement(Bn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:po,onChange:lr=>Go(lr)}),Dn.createElement("p",{className:ft.titleWrap},Dn.createElement("span",{className:ft.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Dn.createElement(Bn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:$i,onChange:lr=>Tr(lr)}),Dn.createElement("p",{className:ft.titleWrap},Dn.createElement("span",{className:ft.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Dn.createElement(Bn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ho,onChange:lr=>_i(lr)}),Dn.createElement(_e.default,{form:Cr,size:"large",onFinishFailed:lr=>An(void 0,null,function*(){var Ii,Do;mt.ZP.error(lr.errorFields[0].errors[0]),Cr.scrollToField((Do=(Ii=lr==null?void 0:lr.errorFields)==null?void 0:Ii[0])==null?void 0:Do.name,{behavior:"smooth",block:"center"})})},Dn.createElement(ht.Z,{align:"middle",className:"mb30 mt20"},Dn.createElement(_e.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Dn.createElement(Fi.Z,null)),Dn.createElement(dt.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Dn.createElement(dt.Z,null,Dn.createElement(Ct.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Dn.createElement(_n.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Lo&&Dn.createElement(_e.default.List,{name:"keywords",rules:[{validator(lr,Ii){return Ii!=null&&Ii.length?(Ii==null?void 0:Ii.reduce((Yr,ko)=>Yr+ko.score,0))>parseFloat(cr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(lr,{add:Ii,remove:Do})=>Dn.createElement(Dn.Fragment,null,Dn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Dn.createElement(ht.Z,{align:"middle",className:"font14 mb30"},Dn.createElement(dt.Z,{flex:1},Dn.createElement(ct.default,{value:Ar,onChange:Yr=>{or(Yr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Yr=>{var ko,Yo,br,Oo;const Bs=`${(ko=Yr.target)==null?void 0:ko.value}`,Wi=(br=(Yo=Bs==null?void 0:Bs.split("|"))==null?void 0:Yo.filter(_a=>!!_a))==null?void 0:br.map(_a=>_a==null?void 0:_a.trim()),Ia=Cr.getFieldValue("keywords"),Vr=((Oo=Ia==null?void 0:Ia.map(_a=>_a==null?void 0:_a.keyword))==null?void 0:Oo.flat())||[];for(const _a of Wi)if(Vr.includes(_a)){mt.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}yt(Bs)&&(Ii({keyword:Wi,score:1}),or(""))},className:ft.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Dn.createElement(dt.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),lr.map(Yr=>{var ko=Yr,{key:Yo,name:br}=ko,Oo=xn(ko,["key","name"]);return Dn.createElement(ht.Z,{key:Yo,style:{marginRight:148}},Dn.createElement(dt.Z,{flex:1},Dn.createElement(ht.Z,{align:"middle",justify:"space-between"},Dn.createElement(_e.default.Item,on(Vt({},Oo),{name:[br,"keyword"]}),Dn.createElement(cn,{onClose:()=>Do(br)})),Dn.createElement(_e.default.Item,on(Vt({},Oo),{name:[br,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Dn.createElement(Be.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var ri=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(On)),Wt=ve(36381),Jt={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},hi=ve(32134),ci=ve(12893),ui=Object.defineProperty,qn=Object.defineProperties,di=Object.getOwnPropertyDescriptors,li=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,sr=(Kt,_t,mn)=>_t in Kt?ui(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,vn=(Kt,_t)=>{for(var mn in _t||(_t={}))Ai.call(_t,mn)&&sr(Kt,mn,_t[mn]);if(li)for(var mn of li(_t))er.call(_t,mn)&&sr(Kt,mn,_t[mn]);return Kt},Nr=(Kt,_t)=>qn(Kt,di(_t)),Dr=(Kt,_t)=>{var mn={};for(var it in Kt)Ai.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&li)for(var it of li(Kt))_t.indexOf(it)<0&&er.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const ir=Kt=>{var _t=Kt,{value:mn,onChange:it,scrollId:yn}=_t,zr=Dr(_t,["value","onChange","scrollId"]);return ce.createElement("div",{id:yn||""},ce.createElement(Bn.Z,Nr(vn({},zr),{defaultValue:mn,onChange:(Bo,Ir)=>{Ir!=null&&Ir.length?it(Bo,Ir):it(Bo)}})))},fn=({value:Kt,onChange:_t,placeholder:mn,height:it=140,isEdit:yn})=>yn?ce.createElement(Bn.Z,{watch:!0,isFocus:!0,height:it,placeholder:mn,defaultValue:Kt,onChange:_t}):ce.createElement("div",{style:{cursor:"pointer"}},Kt?ce.createElement(Ie.Z,{className:Jt.inputBorder,value:Kt}):ce.createElement("div",{className:`${Jt.inputBorder} ${Jt.placeholder}`},mn));var jn=ve(59301),Ei=Object.defineProperty,zi=Object.defineProperties,Ni=Object.getOwnPropertyDescriptors,Gi=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,rr=(Kt,_t,mn)=>_t in Kt?Ei(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,fr=(Kt,_t)=>{for(var mn in _t||(_t={}))ur.call(_t,mn)&&rr(Kt,mn,_t[mn]);if(Gi)for(var mn of Gi(_t))Qi.call(_t,mn)&&rr(Kt,mn,_t[mn]);return Kt},Nn=(Kt,_t)=>zi(Kt,Ni(_t)),Jr=(Kt,_t)=>{var mn={};for(var it in Kt)ur.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&Gi)for(var it of Gi(Kt))_t.indexOf(it)<0&&Qi.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const Ln=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zr=({value:Kt,onChange:_t,choiceTextKey:mn,answerKey:it,index:yn,isEdit:zr,setInputActive:Bo,form:Ir,choiceOptionsPath:_r,allowChangeMode:jo,showAddIcon:po,addItem:Go,deleteItem:ho})=>{const _i=(Kt==null?void 0:Kt[it])===!0,$i=()=>{const Ar=Ir.getFieldValue(_r);Ir.setFieldValue(_r,Ar.map(or=>Nn(fr({},or),{[it]:!1})))},Tr=()=>{_i?_t(Nn(fr({},Kt),{[it]:!1})):(jo||$i(),_t(Nn(fr({},Kt),{[it]:!0})))};return jn.createElement(ht.Z,{className:Jt.choiceWrap,align:"middle",wrap:!1},jn.createElement(dt.Z,{onClick:Tr,className:`${Jt.choiceIndex} ${_i?Jt.activeAnswer:""}`},Ln[yn]),jn.createElement(dt.Z,{flex:1,className:`${Jt.editorWrap} ml15`,onClick:Bo},jn.createElement(fn,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:zr,value:Kt==null?void 0:Kt[mn],onChange:Ar=>{_t(Nn(fr({},Kt),{[mn]:Ar}))}})),jn.createElement(dt.Z,{flex:"0 0 auto",className:"ml15"},jn.createElement("div",{onClick:Tr,className:`${Jt.setAnswerBtn} ${_i?Jt.activeAnswer:""}`},_i?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),jn.createElement(dt.Z,{className:Jt.actionWrapper},jn.createElement(Ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},jn.createElement(hi.Z,{className:Jt.addIcon,onClick:Go,style:{visibility:po?"visible":"hidden"}})),jn.createElement(Ct.Z,{title:"\u5220\u9664"},jn.createElement(ci.Z,{className:Jt.deleteIcon,onClick:ho,style:{visibility:yn>1?"visible":"hidden"}}))))},co=({questionTitlePlaceholder:Kt,titleKey:_t,choiceKey:mn,analysisKey:it,choiceTextKey:yn,answerKey:zr,choiceOptionsPath:Bo,allowChangeMode:Ir=!0,form:_r,showAnalysis:jo=!0})=>{const[po,Go]=(0,ce.useState)(),[ho,_i]=(0,ce.useState)(!1);return jn.createElement("div",{className:Jt.wrap},jn.createElement("div",{className:Jt.questionTitleEditorWrap},jn.createElement(_e.default.Item,{label:"\u9898\u5E72",name:_t,labelCol:{span:24},rules:[{required:!0}]},jn.createElement(ir,{scrollId:Array.isArray(_t)?_t.join("_"):`${_t}`,watch:!0,height:140,placeholder:Kt}))),jn.createElement(_e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),jn.createElement(_e.default.List,{name:mn,rules:[{validator($i,Tr){const Ar=Tr.some(Cr=>Cr[zr]),or=Tr.findIndex(Cr=>{var Lo;return((Lo=Cr[yn])==null?void 0:Lo.length)<=0});return or!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ln[or]}\u9009\u9879\u7684\u5185\u5BB9`)):Ar?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},($i,{add:Tr,remove:Ar})=>jn.createElement("div",{id:Array.isArray(Bo)?Bo.join("_"):`${Bo}`},$i.map((or,Cr)=>{var Lo=or,{key:Rr,name:tr}=Lo,cr=Jr(Lo,["key","name"]);const lr=po===Rr,Ii=()=>{Go(Rr)},Do=Cr<7&&Cr===$i.length-1,Yr=()=>Tr({[yn]:"",[zr]:0}),ko=()=>Ar(tr);return jn.createElement(_e.default.Item,Nn(fr({},cr),{key:Rr,name:tr,noStyle:!0}),jn.createElement(Zr,{choiceTextKey:yn,answerKey:zr,index:Cr,isEdit:lr,setInputActive:Ii,form:_r,choiceOptionsPath:Bo,allowChangeMode:Ir,showAddIcon:Do,addItem:Yr,deleteItem:ko}))}),$i.length<8&&jn.createElement("div",{className:`${Jt.addBtn} mb30`,onClick:()=>Tr({[yn]:"",[zr]:0})},"\u6DFB\u52A0\u9009\u9879"))),jo&&jn.createElement("div",{onClick:()=>_i(!0)},jn.createElement(_e.default.Item,{name:it,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},jn.createElement(fn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var Bi=ve(59301),Po=Object.defineProperty,ao=Object.defineProperties,Vi=Object.getOwnPropertyDescriptors,qi=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,xi=(Kt,_t,mn)=>_t in Kt?Po(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,tt=(Kt,_t)=>{for(var mn in _t||(_t={}))Hr.call(_t,mn)&&xi(Kt,mn,_t[mn]);if(qi)for(var mn of qi(_t))ro.call(_t,mn)&&xi(Kt,mn,_t[mn]);return Kt},uo=(Kt,_t)=>ao(Kt,Vi(_t)),Zo=(Kt,_t)=>{var mn={};for(var it in Kt)Hr.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&qi)for(var it of qi(Kt))_t.indexOf(it)<0&&ro.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const ga=({value:Kt,onChange:_t})=>{const mn=yn=>{Ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Jt.modal,onOk:()=>{const zr=[...Kt];zr.splice(yn,1),_t(zr)}})},it=()=>{const yn=[...Kt];yn.push(""),_t(yn)};return Bi.createElement(ht.Z,{align:"middle",className:"ml20",gutter:[40,20]},Kt==null?void 0:Kt.map((yn,zr)=>Bi.createElement(dt.Z,{key:`${yn}_${zr}`,className:Jt.blankWrapper},Bi.createElement(ct.default,{className:Jt.blankInput,defaultValue:yn,maxLength:1e3,onBlur:Bo=>{const Ir=[...Kt],_r=Bo.target.value.trim();Ir[zr]=_r,_t(Ir)}}),Bi.createElement(Ct.Z,{title:"\u5220\u9664"},Bi.createElement(ci.Z,{className:Jt.deleteIcon,style:{marginLeft:15,visibility:zr>0?"visible":"hidden"},onClick:()=>mn(zr)})))),Bi.createElement(dt.Z,null,Bi.createElement("div",{className:`${Jt.addBtn}`,onClick:()=>{it()}},"\u65B0\u589E\u7B54\u6848")))},Pa=({value:Kt=!0,onChange:_t})=>Bi.createElement(Fi.Z,{checked:!Kt,onChange:mn=>{_t(!mn)}}),ia="\u2581",Or=({questionTitlePlaceholder:Kt,form:_t,name:mn,scoreByBlank:it="use_blank_score",answerKey:yn,titleKey:zr="name",analysisKey:Bo="analysis",isOrdered:Ir="is_ordered"})=>{var _r,jo;const[po,Go]=(0,ce.useState)(!1),ho=(Rr,tr)=>{const cr=tr.line;let lr=0;for(let Do=0;Do{const Ii=Rr.getRange(tr.from,tr.to);let Do=0;if(tr.text.forEach(Yr=>{Do+=Yr.split(ia).length-1}),tr.origin!=="setValue"){if(Ii&&Ii.indexOf(ia)!==-1){const Yr=Ii.split(ia).length-1,ko=ho(Rr,tr.from);if(console.log(`\u5220\u9664${Yr}\u4E2A\uFF0C \u524D\u9762\u6709${ko}\u4E2A\uFF0C\u65B0\u589E${Do}\u4E2A`),Yr>1){const Yo=Array.from({length:Yr},(br,Oo)=>ko+Oo);lr(Yo)}else lr(ko)}else if(Do>0){const Yr=ho(Rr,tr.from);console.log(`\u65B0\u589E${Do}\u4E2A\uFF0C\u4E4B\u524D\u6709${Yr}\u4E2A`),cr(Do,Yr)}}},$i=()=>{const Rr=_t.getFieldValue(["sub_item_banks",...yn]);_t.setFieldValue(["sub_item_banks",...yn],Rr==null?void 0:Rr.map((tr,cr)=>uo(tt({},tr),{position:cr+1})))},Tr=(0,ce.useRef)(),Ar=(Rr,tr)=>{for(let cr=0;cr{or.current(Rr),$i()},Lo=(jo=(_r=_t.getFieldValue("sub_item_banks"))==null?void 0:_r[yn==null?void 0:yn[0]])==null?void 0:jo[yn==null?void 0:yn[1]];return Bi.createElement("div",{className:Jt.wrap},Bi.createElement("div",{className:Jt.questionTitleEditorWrap},Bi.createElement(_e.default.Item,{label:"\u9898\u5E72",name:zr,labelCol:{span:24},rules:[{required:!0}]},Bi.createElement(ir,{scrollId:"name",watch:!0,height:140,placeholder:Kt,showNullButton:!0,onCMBeforeChange:(Rr,tr)=>{_i(Rr,tr,Ar,Cr)}}))),Bi.createElement(_e.default.List,{name:yn,rules:[{validator(Rr,tr){if((tr==null?void 0:tr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const cr of tr){const{answer_text:lr}=cr||{};if(lr!=null&&lr.some(Ii=>(Ii==null?void 0:Ii.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Rr,{add:tr,remove:cr},{errors:lr})=>(Tr.current=tr,or.current=cr,Bi.createElement(Bi.Fragment,null,Bi.createElement(_e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Rr.map((Ii,Do)=>{var Yr=Ii,{key:ko,name:Yo}=Yr,br=Zo(Yr,["key","name"]);return Bi.createElement(ht.Z,{className:"mb20",key:ko,align:"middle",wrap:!1},Bi.createElement(dt.Z,{flex:"0 0 auto",className:`${Jt.blankIndex}`},"\u586B\u7A7A\u9879",Do+1),Bi.createElement(dt.Z,{flex:1},Bi.createElement(ht.Z,{align:"top",justify:"space-between",wrap:!1},Bi.createElement(dt.Z,null,Bi.createElement(_e.default.Item,uo(tt({},br),{name:[Yo,"answer_text"],noStyle:!0}),Bi.createElement(ga,null))),(_t==null?void 0:_t.getFieldValue(["sub_item_banks",...it]))&&Bi.createElement(dt.Z,{flex:"224px"},Bi.createElement(_e.default.Item,uo(tt({},br),{name:[Yo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jt.blankInputNumberWrapper}),Bi.createElement(Be.Z,{className:Jt.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Bi.createElement(_e.default.Item,uo(tt({},br),{name:[Yo,"position"],noStyle:!0}),Bi.createElement(ct.default,{type:"hidden"}))))})))),Bi.createElement(ht.Z,{align:"middle"},Bi.createElement(_e.default.Item,{name:[mn,"downcase"],valuePropName:"checked"},Bi.createElement(Fi.Z,null)),Bi.createElement(dt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Bi.createElement(ht.Z,{align:"middle"},Bi.createElement(_e.default.Item,{name:[mn,"no_space"],valuePropName:"checked"},Bi.createElement(Fi.Z,null)),Bi.createElement(dt.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Lo==null?void 0:Lo.length)>1&&Bi.createElement(ht.Z,{align:"middle",className:(Lo==null?void 0:Lo.length)>1?"mb30":`${Jt.hide}`},Bi.createElement(_e.default.Item,{name:Ir},Bi.createElement(Pa,null)),Bi.createElement(dt.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Bi.createElement("div",{onClick:()=>Go(!0)},Bi.createElement(_e.default.Item,{name:Bo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Bi.createElement(fn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:po}))))};var kr=Object.defineProperty,fo=Object.defineProperties,jr=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,hr=(Kt,_t,mn)=>_t in Kt?kr(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,Xn=(Kt,_t)=>{for(var mn in _t||(_t={}))qa.call(_t,mn)&&hr(Kt,mn,_t[mn]);if(To)for(var mn of To(_t))Mr.call(_t,mn)&&hr(Kt,mn,_t[mn]);return Kt},yr=(Kt,_t)=>fo(Kt,jr(_t)),wo=(Kt,_t)=>{var mn={};for(var it in Kt)qa.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&To)for(var it of To(Kt))_t.indexOf(it)<0&&Mr.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const ua={\u6B63\u786E:"T",\u9519\u8BEF:"F"},No=({value:Kt,onChange:_t,form:mn,choiceKey:it})=>{const yn=(Kt==null?void 0:Kt.is_answer)===!0,zr=Kt==null?void 0:Kt.choice_text,Bo=()=>{var Ir;const _r=(Ir=mn==null?void 0:mn.getFieldValue(["sub_item_banks",...it]))==null?void 0:Ir.map(jo=>({choice_text:jo==null?void 0:jo.choice_text,is_answer:!1}));mn==null||mn.setFieldValue(["sub_item_banks",...it],_r),_t(yr(Xn({},Kt),{is_answer:!0}))};return ce.createElement(ht.Z,{className:Jt.choiceWrap,align:"middle",wrap:!1},ce.createElement(dt.Z,{onClick:Bo,className:`${Jt.choiceIndex} ${Jt.judgementIndex} ${yn?Jt.activeAnswer:""}`},ua[zr]),ce.createElement(dt.Z,{flex:1,className:`${Jt.editorWrap} ml15`},ce.createElement("div",{className:`${Jt.inputBorder} ${Jt.placeholder} ${yn?Jt.activeJudgementAnswer:""}`},zr)),ce.createElement(dt.Z,{flex:"0 0 auto",className:"ml15"},ce.createElement("div",{onClick:Bo,className:`${Jt.setAnswerBtn} ${yn?Jt.activeAnswer:""}`},yn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},yo=({questionTitlePlaceholder:Kt,choiceKey:_t="choices",form:mn,titleKey:it="name",analysisKey:yn="analysis"})=>{const[zr,Bo]=(0,ce.useState)(!1);return ce.createElement("div",{className:Jt.wrap},ce.createElement("div",{className:Jt.questionTitleEditorWrap},ce.createElement(_e.default.Item,{label:"\u9898\u5E72",name:it,labelCol:{span:24},rules:[{required:!0}]},ce.createElement(ir,{scrollId:"name",watch:!0,height:140,placeholder:Kt}))),ce.createElement(_e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ce.createElement(_e.default.List,{name:_t,rules:[{validator(Ir,_r){return _r.some(po=>(po==null?void 0:po.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ir=>ce.createElement("div",{id:"choices"},Ir.map(_r=>{var jo=_r,{key:po,name:Go}=jo,ho=wo(jo,["key","name"]);return ce.createElement(_e.default.Item,yr(Xn({},ho),{key:po,name:Go,noStyle:!0}),ce.createElement(No,{form:mn,choiceKey:_t}))})))),ce.createElement("div",{onClick:()=>Bo(!0)},ce.createElement(_e.default.Item,{name:yn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ce.createElement(fn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zr}))))};var ta=Object.defineProperty,na=Object.defineProperties,Na=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Oa=(Kt,_t,mn)=>_t in Kt?ta(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,Vl=(Kt,_t)=>{for(var mn in _t||(_t={}))is.call(_t,mn)&&Oa(Kt,mn,_t[mn]);if(ka)for(var mn of ka(_t))gn.call(_t,mn)&&Oa(Kt,mn,_t[mn]);return Kt},Hs=(Kt,_t)=>na(Kt,Na(_t)),wl=(Kt,_t)=>{var mn={};for(var it in Kt)is.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&ka)for(var it of ka(Kt))_t.indexOf(it)<0&&gn.call(Kt,it)&&(mn[it]=Kt[it]);return mn};const Ma=Kt=>{var _t=Kt,{value:mn,onChange:it}=_t,yn=wl(_t,["value","onChange"]);const zr=Bo=>{it([Bo])};return ce.createElement(Bn.Z,Hs(Vl({},yn),{defaultValue:mn==null?void 0:mn[0],onChange:zr}))},yu=Kt=>{if(!Kt)return!1;let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Kt==="|"?(mt.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Cl=({value:Kt=[],onClose:_t})=>ce.createElement(vi.default,{closable:!0,onClose:_t,className:Jt.keywordTag},Kt==null?void 0:Kt.join(" \u6216 ")),ma=({questionTitlePlaceholder:Kt,form:_t,showKeywords:mn,isMustKeyWords:it=mn,titleKey:yn="name",analysisKey:zr="analysis",answerTexts:Bo="answer_texts",keywords:Ir="keywords",useKeywords:_r="use_keywords",indexs:jo})=>{const[po,Go]=(0,ce.useState)(!1),[ho,_i]=(0,ce.useState)(""),$i=_e.default.useWatch("sub_item_banks",_t),{use_keywords:Tr,score:Ar}=($i==null?void 0:$i[jo])||{};return console.log(Tr,Ar,"itemValues"),ce.createElement("div",{className:Jt.wrap},ce.createElement("div",{className:Jt.questionTitleEditorWrap},ce.createElement(_e.default.Item,{label:"\u9898\u5E72",name:yn,labelCol:{span:24},rules:[{required:!0}]},ce.createElement(ir,{scrollId:"name",watch:!0,height:140,placeholder:Kt}))),ce.createElement(_e.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Bo,labelCol:{span:24}},ce.createElement(Ma,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),mn&&!it&&ce.createElement(_e.default.Item,{hidden:!0,name:_r,valuePropName:"checked"},ce.createElement(Fi.Z,{defaultChecked:!0})),mn&&it&&ce.createElement(ht.Z,{align:"middle",className:"mb30"},ce.createElement(_e.default.Item,{name:_r,valuePropName:"checked"},ce.createElement(Fi.Z,null)),ce.createElement(dt.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ce.createElement(dt.Z,null,ce.createElement(Ct.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},ce.createElement(_n.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Tr||!it)&&ce.createElement(_e.default.List,{name:Ir,rules:[{validator(or,Cr){return it?Cr!=null&&Cr.length?(Cr==null?void 0:Cr.reduce((Rr,tr)=>Rr+tr.score,0))>parseFloat(Ar)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(or,{add:Cr,remove:Lo})=>ce.createElement(ce.Fragment,null,ce.createElement("div",{className:`${Jt.title} mb10`},it?"\u5173\u952E\u8BCD":ce.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ce.createElement(ht.Z,{align:"middle",className:"font14 mb30"},ce.createElement(dt.Z,{flex:1},ce.createElement(ct.default,{value:ho,onChange:Rr=>{_i(Rr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Rr=>{var tr,cr,lr,Ii;const Do=`${(tr=Rr.target)==null?void 0:tr.value}`,Yr=(lr=(cr=Do==null?void 0:Do.split("|"))==null?void 0:cr.filter(br=>!!br))==null?void 0:lr.map(br=>br==null?void 0:br.trim()),ko=_t.getFieldValue(["sub_item_banks",...Ir]),Yo=((Ii=ko==null?void 0:ko.map(br=>br==null?void 0:br.keyword))==null?void 0:Ii.flat())||[];for(const br of Yr)if(Yo.includes(br)){mt.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}yu(Do)&&(Cr({keyword:Yr,score:1}),_i(""))},className:Jt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),ce.createElement(dt.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),or.map(Rr=>{var tr=Rr,{key:cr,name:lr}=tr,Ii=wl(tr,["key","name"]);return ce.createElement(ht.Z,{key:cr,className:"mb20",style:{marginRight:148}},ce.createElement(dt.Z,{flex:1},ce.createElement(ht.Z,{align:"middle",justify:"space-between"},ce.createElement(_e.default.Item,Hs(Vl({},Ii),{name:[lr,"keyword"]}),ce.createElement(Cl,{onClose:()=>Lo(lr)})),it&&ce.createElement(_e.default.Item,Hs(Vl({},Ii),{name:[lr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jt.blankInputNumberWrapper}),ce.createElement(Be.Z,{className:Jt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ce.createElement("div",{onClick:()=>Go(!0)},ce.createElement(_e.default.Item,{name:zr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ce.createElement(fn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:po}))))};var Fo=ve(59301),Ul=Object.defineProperty,$r=Object.defineProperties,Ko=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,$a=(Kt,_t,mn)=>_t in Kt?Ul(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,bs=(Kt,_t)=>{for(var mn in _t||(_t={}))Di.call(_t,mn)&&$a(Kt,mn,_t[mn]);if(So)for(var mn of So(_t))Ga.call(_t,mn)&&$a(Kt,mn,_t[mn]);return Kt},El=(Kt,_t)=>$r(Kt,Ko(_t)),Dl=(Kt,_t)=>{var mn={};for(var it in Kt)Di.call(Kt,it)&&_t.indexOf(it)<0&&(mn[it]=Kt[it]);if(Kt!=null&&So)for(var it of So(Kt))_t.indexOf(it)<0&&Ga.call(Kt,it)&&(mn[it]=Kt[it]);return mn},bi=(Kt,_t,mn)=>new Promise((it,yn)=>{var zr=_r=>{try{Ir(mn.next(_r))}catch(jo){yn(jo)}},Bo=_r=>{try{Ir(mn.throw(_r))}catch(jo){yn(jo)}},Ir=_r=>_r.done?it(_r.value):Promise.resolve(_r.value).then(zr,Bo);Ir((mn=mn.apply(Kt,_t)).next())});const{Panel:Fa}=Wt.default,cs=null,bl=(Kt,_t)=>{var mn=Kt,{globalSetting:it,loading:yn,dispatch:zr,editData:Bo,onRef:Ir=()=>{},isEdit:_r}=mn,jo=Dl(mn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[po,Go]=(0,ce.useState)(""),[ho,_i]=(0,ce.useState)([]),[$i]=_e.default.useForm();(0,ce.useEffect)(()=>{!Bo||!_r||(Go(Bo==null?void 0:Bo.name),_i(Bo==null?void 0:Bo.sub_item_banks),$i.setFieldsValue(bs({},Bo)))},[Bo]),(0,ce.useEffect)(()=>{_i($i.getFieldValue("sub_item_banks"))},[_e.default.useWatch("sub_item_banks",$i)]),(0,ce.useImperativeHandle)(_t,()=>({onSave:Tr,Clear:Ar}));const Tr=()=>bi(void 0,null,function*(){if(!po)return mt.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield $i.validateFields()}catch(cr){return console.log(cr,"errInfo"),mt.ZP.error(cr.errorFields[0].errors[0]),!1}const tr=ho.map(cr=>bs({id:cr.id>1?cr.id:null},cr));return{name:po,sub_item_banks:tr}}),Ar=()=>{Go(""),_i([])},or={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Cr=({value:tr})=>Fo.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},tr),[Lo,Rr]=(0,ce.useState)();return Fo.createElement("section",{className:ft.wrap},Fo.createElement("p",{className:ft.titleWrap},Fo.createElement("span",{className:ft.required},"*"),Fo.createElement("span",{className:ft.title},"\u9898\u5E72\uFF1A")),Fo.createElement(Bn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:po,onChange:tr=>Go(tr)}),Fo.createElement(_e.default,{form:$i,autoComplete:"off"},Fo.createElement(_e.default.List,{name:"sub_item_banks",rules:[{validator(tr,cr){return cr?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(tr,{add:cr,remove:lr})=>{const Ii=$i.getFieldValue("sub_item_banks");return Fo.createElement(Fo.Fragment,null,Fo.createElement(Wt.default,{className:tr.length>0?ft.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Do})=>Fo.createElement("i",{className:`iconfont icon-weizhankai ${Do?ft.open:ft.close}`,style:{fontSize:14,transition:"all .2s"}})},tr.map((Do,Yr)=>{var ko=Do,{key:Yo,name:br}=ko,Oo=Dl(ko,["key","name"]),Bs,Wi,Ia,Vr,_a,Is,ju,Wh,Bh,ru,zu,aa;return Fo.createElement(Fa,{className:ft.panel,forceRender:!0,header:Fo.createElement("div",{className:ft.panelHeader},"\u7B2C",Yr+1,"\u5C0F\u9898",Fo.createElement("span",null,"\uFF08",or[(Bs=Ii==null?void 0:Ii[br])==null?void 0:Bs.item_type],"\uFF09")),extra:Fo.createElement(ht.Z,{align:"middle",onClick:Ml=>Ml.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Wi=Ii==null?void 0:Ii[br])==null?void 0:Wi.item_type)=="completion"&&Fo.createElement(_e.default.Item,El(bs({},Oo),{name:[br,"score"],className:ft.blankInputNumberWrapper,style:{marginBottom:0}}),((Ia=Ii==null?void 0:Ii[br])==null?void 0:Ia.item_type)=="completion"&&Fo.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Fo.createElement(Cr,{value:(Vr=Ii==null?void 0:Ii[br])==null?void 0:Vr.score}),"\u5206")),((_a=Ii==null?void 0:Ii[br])==null?void 0:_a.item_type)=="completion"&&Fo.createElement(Fo.Fragment,null,Fo.createElement(lt.ZP.Group,{defaultValue:(Is=Ii==null?void 0:Ii[br])==null?void 0:Is.use_blank_score,className:ft.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Ml=>{var Gh;console.log($i.getFieldsValue()),$i==null||$i.setFieldValue(["sub_item_banks",br,"use_blank_score"],(Gh=Ml==null?void 0:Ml.target)==null?void 0:Gh.value),Rr(new Date)}}),Fo.createElement(Ct.Z,{overlayInnerStyle:{width:460},title:Fo.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Fo.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Fo.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Yo},Fo.createElement(_e.default.Item,El(bs({},Oo),{name:br}),(((ju=Ii==null?void 0:Ii[br])==null?void 0:ju.item_type)=="single"||((Wh=Ii==null?void 0:Ii[br])==null?void 0:Wh.item_type)=="multiple")&&Fo.createElement(co,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Bh=Ii==null?void 0:Ii[br])==null?void 0:Bh.item_type)!="single",form:$i,choiceKey:[br,"choices"],titleKey:[br,"name"],analysisKey:[br,"analysis"],choiceOptionsPath:["sub_item_banks",br,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((ru=Ii==null?void 0:Ii[br])==null?void 0:ru.item_type)=="completion"&&Fo.createElement(Or,{form:$i,name:br,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[br,"use_blank_score"],titleKey:[br,"name"],analysisKey:[br,"analysis"],isOrdered:[br,"is_ordered"],answerKey:[br,"standard_answer"],key:Lo}),((zu=Ii==null?void 0:Ii[br])==null?void 0:zu.item_type)=="judgement"&&Fo.createElement(yo,{form:$i,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[br,"name"],analysisKey:[br,"analysis"],choiceKey:[br,"choices"]}),((aa=Ii==null?void 0:Ii[br])==null?void 0:aa.item_type)=="subjective"&&Fo.createElement(ma,{showKeywords:!0,form:$i,titleKey:[br,"name"],analysisKey:[br,"analysis"],answerTexts:[br,"answer_texts"],useKeywords:[br,"use_keywords"],keywords:[br,"keywords"],indexs:br,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ol=(0,ze.connect)(({loading:Kt,globalSetting:_t})=>({globalSetting:_t,loading:Kt.effects}),null,null,{forwardRef:!0})((0,ce.forwardRef)(bl)),Il=ve(6021),Qr=ve(19842),Ju=ve(57809),nl=ve(1710),vs={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},ys=ve(85057),Su=ve(94860),Iu=ve(92365),Ys=ve(83312),ul=ve(8797),Mh=ve(32570),Lh=({open:Kt,onCancel:_t,onOk:mn})=>{const it=(0,Su.g)(),[yn,zr,Bo,Ir]=(0,Ys.U)(Iu.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[_r,jo]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{Kt&&Bo({page:1,limit:10,type:0},!0).then($i=>{($i==null?void 0:$i.shixuns_count)===0&&jo(!0)})},[Kt]);const[po,Go]=(0,ce.useState)([]),[ho,_i]=(0,ce.useState)([]);return ce.createElement(Ke.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Kt,width:948,centered:!0,closable:!0,onCancel:_t,onOk:()=>mn(ho),destroyOnClose:!0},ce.createElement(ht.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},ce.createElement(dt.Z,null,ce.createElement(Qr.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:it,onChange:$i=>{Bo({page:1,discipline_id:$i==null?void 0:$i[0],sub_discipline_id:$i==null?void 0:$i[1]})}}),ce.createElement(Ju.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:$i=>Bo({page:1,diff:$i})}),ce.createElement(Ju.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:$i=>Bo({page:1,shixun_publish_status:$i})})),ce.createElement(ys.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:$i=>{Bo({keyword:$i,page:1})}})),_r?ce.createElement("div",null,ce.createElement(ul.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,et.xg)("/shixuns")})):ce.createElement(nl.default,{loading:zr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:($i,Tr)=>ce.createElement("div",{style:{display:"flex",alignItems:"center"}},ce.createElement("div",{className:Tr!=null&&Tr.high_resources_consume?vs.title:"",title:$i||"--"},ce.createElement(Ie.Z,{key:1,showLines:1,showTextOnly:!0,value:$i||"--"})),(Tr==null?void 0:Tr.high_resources_consume)&&ce.createElement(Mh.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:($i,Tr,Ar)=>ce.createElement("span",null,$i||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",ce.createElement(Ct.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},ce.createElement(_n.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:($i,Tr,Ar)=>ce.createElement("span",null,$i||"- -")},{title:"\u64CD\u4F5C",render($i,Tr){const{title:Ar,challenge_names:or,author_name:Cr,identifier:Lo,author_school_name:Rr,study_count:tr}=Tr||{};return ce.createElement("div",null,ce.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Ke.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:ce.createElement("div",null,ce.createElement(Ie.Z,{value:Ar,style:{marginBottom:18}}),ce.createElement("div",{className:vs.challengeNameWrapper},or.map((cr,lr)=>ce.createElement("div",{className:vs.challengeName,key:lr},"\u7B2C",(0,et.EM)(lr+1),"\u9898\xA0",cr))),ce.createElement(ht.Z,{className:vs.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},ce.createElement(dt.Z,{className:vs.shixunInfoWrapper},ce.createElement("span",null,"\u521B\u5EFA\u8005"),ce.createElement("span",{className:vs.shixunInfo},Cr.split("\u3001")[0]),ce.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),ce.createElement("span",{className:vs.shixunInfo},Rr),ce.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),ce.createElement("span",{className:vs.shixunInfo},tr)),ce.createElement(Ze.ZP,{type:"primary",className:vs.btnToDetail,onClick:()=>(0,et.xg)(`/shixuns/${Lo}/challenges?exercise=true`)},ce.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Tr==null?void 0:Tr.shixun_tag_num)===1&&ce.createElement("a",{target:"_blank",href:`/shixuns/${Tr==null?void 0:Tr.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Ir==null?void 0:Ir.items,rowSelection:{type:"radio",selectedRowKeys:po,preserveSelectedRowKeys:!0,getCheckboxProps:$i=>({disabled:$i.shixun_tag_num===1}),onChange($i,Tr){var Ar,or,Cr;console.log($i),Go($i);const Lo=[];for(const tr of ho)$i.includes(tr.id)&&Lo.push(tr);const Rr=Lo.map(tr=>tr.id);for(const tr of Tr)tr&&$i.includes(tr.id)&&!Rr.includes(tr.id)&&Lo.push({id:tr.id,difficulty:tr.level,identifier:tr.identifier,name:tr.name,real_name:(Ar=tr==null?void 0:tr.author_name)==null?void 0:Ar.split("\u3001")[0],school_name:tr.author_school_name,challenge_names:tr.challenge_names,challenges:(or=tr.challenge_names)==null?void 0:or.map((cr,lr)=>({subject:cr,id:lr,score:5})),score:((Cr=tr.challenge_names)==null?void 0:Cr.length)*5,study_count:tr.study_count,challenges_count:tr.challenges_count});_i(Lo)}},pagination:{current:yn.page,pageSize:yn.limit,total:Ir==null?void 0:Ir.items_count,showTotal:$i=>ce.createElement("span",null,"\u5171\xA0",ce.createElement("span",{style:{color:"#165DFF"}},$i),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange($i,Tr){Bo({page:$i,limit:Tr})},size:"default"},scroll:{y:400}}))},hc=ve(82438),Fh=ve(49692),Ru=(Kt,_t,mn)=>new Promise((it,yn)=>{var zr=_r=>{try{Ir(mn.next(_r))}catch(jo){yn(jo)}},Bo=_r=>{try{Ir(mn.throw(_r))}catch(jo){yn(jo)}},Ir=_r=>_r.done?it(_r.value):Promise.resolve(_r.value).then(zr,Bo);Ir((mn=mn.apply(Kt,_t)).next())}),Rl=({visible:Kt,getdata:_t,onCancel:mn,onRandomExchange:it,selectFromProblemSet:yn,questionParams:zr})=>{const[Bo,Ir]=(0,ce.useState)(!1),[_r,jo]=(0,ce.useState)(!1),[po,Go]=(0,ce.useState)({}),ho=(0,ze.useParams)(),[_i,$i]=(0,ce.useState)(),Tr=(Ar,or)=>Ru(void 0,null,function*(){jo(!0);const Cr=yield(0,$e.ZP)(`/api/exercises/${ho.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:zr.id,item_bank_id:Ar,shixuns_info:[{id:Ar,is_copy:or!=1,is_use:or!=1}]}});jo(!1),Cr!=null&&Cr.status||(mt.ZP.info("\u6362\u9898\u6210\u529F"),mn(),_t())});return ce.createElement(Ke.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Kt,onCancel:mn,centered:!0,maskClosable:!0,footer:null},ce.createElement(ht.Z,{justify:"center",className:"pb20"},ce.createElement(Il.Z,{onClick:it},"\u968F\u673A\u66F4\u6362"),(zr==null?void 0:zr.type)!=="PRACTICAL"&&ce.createElement(Ze.ZP,{style:{marginLeft:24},onClick:yn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(zr==null?void 0:zr.type)==="PRACTICAL"&&ce.createElement(Ze.ZP,{style:{marginLeft:24},onClick:()=>{Ir(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),ce.createElement(Lh,{open:Bo,onCancel:()=>Ir(!1),onOk:Ar=>Ru(void 0,null,function*(){if(console.log("----selectedRows",Ar,ho),(Ar==null?void 0:Ar.length)<=0){mt.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let or=Ar==null?void 0:Ar.map(Lo=>Lo==null?void 0:Lo.id),Cr=yield(0,Fh.Tr)({id:[...or],course_id:ho.coursesId,type:"shixun"});(Cr==null?void 0:Cr.student_count)===0?Tr(or==null?void 0:or[0],1):($i(or),Go(Cr)),Ir(!1)})}),ce.createElement(hc.Z,{resdata:po,type:"shixun",okloading:_r,oktext:(po==null?void 0:po.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ar=>Ru(void 0,null,function*(){Tr(_i==null?void 0:_i[0],2)})}))},Hh=ve(94734),qu=ve(24334),eh=ve(69304),Co=ve(68042),Uo=ve(14165),Ws=Object.defineProperty,ds=Object.defineProperties,es=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,za=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,Ka=(Kt,_t,mn)=>_t in Kt?Ws(Kt,_t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Kt[_t]=mn,Gs=(Kt,_t)=>{for(var mn in _t||(_t={}))za.call(_t,mn)&&Ka(Kt,mn,_t[mn]);if(Aa)for(var mn of Aa(_t))rs.call(_t,mn)&&Ka(Kt,mn,_t[mn]);return Kt},$s=(Kt,_t)=>ds(Kt,es(_t)),va=(Kt,_t,mn)=>new Promise((it,yn)=>{var zr=_r=>{try{Ir(mn.next(_r))}catch(jo){yn(jo)}},Bo=_r=>{try{Ir(mn.throw(_r))}catch(jo){yn(jo)}},Ir=_r=>_r.done?it(_r.value):Promise.resolve(_r.value).then(zr,Bo);Ir((mn=mn.apply(Kt,_t)).next())}),Mc=({data:Kt,submit:_t,goBack:mn,loading:it,onTypeScore:yn,editPreview:zr=!1,onSkipExamination:Bo,selectValue:Ir,onExchange:_r,getdata:jo,handleMarkWrongQuestion:po})=>{var Go,ho,_i,$i,Tr,Ar,or,Cr,Lo,Rr,tr;const cr=(0,ce.useRef)(),[lr,Ii]=(0,ce.useState)(null),[Do,Yr]=(0,ce.useState)(!1),[ko,Yo]=(0,ce.useState)(!1),br=(0,ce.useRef)(),[Oo]=_e.default.useForm(),Bs=(0,ze.useParams)(),[Wi,Ia]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{Yr(!0)},[]),(0,ce.useEffect)(()=>{zr||(0,et.Dk)("\u8BD5\u5377\u9884\u89C8")},[zr]);const Vr=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],_a={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},Is={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},ju=Zn=>{var Sr;const Jo=[];return ce.createElement(ce.Fragment,null,ce.createElement("aside",{className:De.single},(Sr=Zn==null?void 0:Zn.choices)==null?void 0:Sr.map((Je,Ye)=>(Je.is_answer&&Jo.push(Uo.k4[Ye]),ce.createElement("ul",{key:Ye},ce.createElement("li",null,Uo.k4[Ye],"\u3001"),ce.createElement("li",null,ce.createElement(Ie.Z,{value:Je.choice_text})))))),ce.createElement("div",{className:De.analysis},ce.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Jo.join(""),ce.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Vr[Zn.difficulty])),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Zn.analysis?Zn.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Zn==null?void 0:Zn.tag_discipline_name)))))},Wh=(Zn,Sr)=>{var Jo;const Je=(Jo=Zn==null?void 0:Zn.standard_answer)==null?void 0:Jo.map((Ye,jt)=>{var zt;return ce.createElement("div",{key:jt},`\u7B54\u6848\uFF08\u586B\u7A7A${Ye==null?void 0:Ye.position}\uFF09\uFF1A${(zt=Ye==null?void 0:Ye.answer_text)==null?void 0:zt.join("\u3001")}`)});return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:De.analysis},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),ce.createElement("div",null,Je)),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Zn.analysis?Zn.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Sr?`${(Sr==null?void 0:Sr.discipline_name)||"--"}/${Sr==null?void 0:Sr.sub_discipline_name}`:`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Sr?Sr==null?void 0:Sr.tag_discipline_name:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Sr?Sr==null?void 0:Sr.tag_discipline_name:Zn==null?void 0:Zn.tag_discipline_name)))))},Bh=Zn=>{var Sr;const Jo=(Sr=Zn==null?void 0:Zn.standard_answer)==null?void 0:Sr.map((Je,Ye)=>ce.createElement("div",{key:Ye},`\u7B54\u6848\uFF08\u586B\u7A7A${(Je==null?void 0:Je.position)||(Je==null?void 0:Je.exercise_choice_id)}\uFF09\uFF1A${Je==null?void 0:Je.answer_text}`));return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:De.analysis},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),ce.createElement("div",null,Jo)),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Zn.analysis?Zn.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Zn==null?void 0:Zn.tag_discipline_name)))))},ru=(Zn,Sr)=>{var Jo;return ce.createElement("div",{className:De.analysis},ce.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Jo=Zn==null?void 0:Zn.answer_texts)==null?void 0:Jo[0]),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Zn.analysis?Zn.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Sr?`${(Sr==null?void 0:Sr.discipline_name)||"--"}/${Sr==null?void 0:Sr.sub_discipline_name}`:`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Sr?Sr==null?void 0:Sr.tag_discipline_name:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Sr?Sr==null?void 0:Sr.tag_discipline_name:Zn==null?void 0:Zn.tag_discipline_name))))},zu=Zn=>{var Sr,Jo;return ce.createElement("div",{className:De.analysis},ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u9884\u671F\u8F93\u51FA:"),ce.createElement(Ie.Z,{value:(Sr=Zn==null?void 0:Zn.program_attr)==null?void 0:Sr.description})),ce.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Jo=Zn==null?void 0:Zn.program_attr)==null?void 0:Jo.answer_text)||"--"),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Zn.analysis?Zn.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Zn==null?void 0:Zn.tag_discipline_name))))},aa=(Zn,Sr)=>{var Jo;return ce.createElement("div",null,(Jo=Zn==null?void 0:Zn.sub_item_banks)==null?void 0:Jo.map((Je,Ye)=>{var jt,zt;const nn=[];return ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Sr+1+"."+(Ye+1),"\uFF08",_a[Je.item_type]||Is[Je.item_type],"\uFF09",Je.name),(Je.item_type=="SINGLE"||Je.item_type=="MULTIPLE"||Je.item_type=="JUDGMENT"||Je.item_type=="single"||Je.item_type=="multiple"||Je.item_type=="judgement")&&ce.createElement(ce.Fragment,null,ce.createElement("aside",{className:De.single},(jt=Je==null?void 0:Je.choices)==null?void 0:jt.map((Ht,Mn)=>(Ht.is_answer&&nn.push(Uo.k4[Mn]),ce.createElement("ul",{key:Mn},ce.createElement("li",null,Uo.k4[Mn],"\u3001"),ce.createElement("li",null,ce.createElement(Ie.Z,{value:Ht.choice_text})))))),ce.createElement("div",{className:De.analysis},ce.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",nn.join(""),ce.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Vr[Je.difficulty])),ce.createElement("aside",null,ce.createElement("span",{className:De.text},"\u89E3\u6790:"),ce.createElement(Ie.Z,{value:Je.analysis?Je.analysis:"\u6682\u65E0\u89E3\u6790"})),ce.createElement("ul",null,ce.createElement("li",null,ce.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Zn==null?void 0:Zn.discipline_name)||"--"}/${Zn==null?void 0:Zn.sub_discipline_name}`),ce.createElement(Ct.Z,{title:Zn==null?void 0:Zn.tag_discipline_name},ce.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ce.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Zn==null?void 0:Zn.tag_discipline_name))))),(Je.item_type=="COMPLETION"||Je.item_type=="completion")&&Wh(Je,Zn),(Je.item_type=="SUBJECTIVE"||Je.item_type=="subjective")&&ru(Je,Zn),((zt=Kt==null?void 0:Kt.exam)==null?void 0:zt.exercise_status)===3&&ce.createElement("div",{className:"flex gap-20px mt20"},ce.createElement(eh.Z,{state:Je==null?void 0:Je.is_wrong,onClick:()=>{po==null||po({value:$s(Gs({},Je),{question_id:Je==null?void 0:Je.id,question_score:Je==null?void 0:Je.score})})}}),Je.item_type=="single"&&ce.createElement(Ze.ZP,{style:{color:"#3061D0"},onClick:()=>{Fc({value:Je})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Ml=Zn=>{var Sr,Jo,Je;return ce.createElement("div",{style:{marginTop:"12px"}},(Jo=(Sr=Zn==null?void 0:Zn.shixun)==null?void 0:Sr.challenges)==null?void 0:Jo.map((Ye,jt)=>ce.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ce.createElement("div",null,ce.createElement("span",{className:"mr5"},"\u7B2C",jt+1,"\u5173"),ce.createElement(Ct.Z,{key:jt,title:Ye==null?void 0:Ye.challenge_name},ce.createElement("span",null,(0,et.Pq)(Ye==null?void 0:Ye.challenge_name,44)))),zr&&ce.createElement("div",null,"\u5206\u503C\uFF1A",Ye.score,"\u5206"))),ce.createElement(ze.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Je=Zn==null?void 0:Zn.shixun)==null?void 0:Je.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),ce.createElement("div",{style:{clear:"both"}}))},Gh=Zn=>{let Sr=Zn.questions_score/Zn.questions_count;Ke.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:ce.createElement("div",{className:De.modalColumn},ce.createElement("div",{className:De.modalRow,style:{justifyContent:"flex-start"}},ce.createElement("sup",{className:De.sup},"*"),ce.createElement("span",null,Zn==null?void 0:Zn.name,"\uFF1A"),ce.createElement(Be.Z,{min:0,precision:1,defaultValue:Sr,onChange:Jo=>{Sr=Jo}}),ce.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>va(void 0,null,function*(){var Jo;if(!Sr)return mt.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Je={type:Zn==null?void 0:Zn.type,score:Sr,scoreTotal:Number((Jo=Sr*Zn.questions_count)==null?void 0:Jo.toFixed(1))};yn(Je)})})},Nh=()=>{let Zn="";Ke.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:ce.createElement("div",{className:De.modalColumn},ce.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},ce.createElement("img",{style:{marginRight:5},src:en.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),ce.createElement("div",{className:De.modalRow,style:{marginTop:20}},ce.createElement("sup",{className:De.sup},"*"),ce.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),ce.createElement(ct.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Zn,onChange:Sr=>{Zn=Sr.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>va(void 0,null,function*(){var Sr;if(!Zn)return mt.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Jo=[],Je=[],Ye=[],jt=[];(Sr=Kt==null?void 0:Kt.questionList)==null||Sr.forEach(nn=>{var Ht;(Ht=nn.questions)==null||Ht.forEach(Mn=>{let Sn=nn.questions_score/nn.questions_count;Sn=Sn&&Sn.toFixed(1),nn.type==="COMBINATION"&&Ye.push({id:Mn.id,sub_item_bank_ids:Mn.sub_item_banks.map(Fn=>Fn.id)}),nn.type==="PRACTICAL"?jt.push(Mn.id):(Jo.push(Mn.id),Je.push(Sn))})}),console.log("-----",Ye),yield _t({item_bank_ids:Jo,item_bank_scores:Je,name:Zn,combination_item_banks:Ye,shixun_ids:jt})})})},Od=(Zn,Sr,Jo,Je)=>{var Ye;const jt=`${location.pathname}${location.search}`,zt=(Ye=Je.questions)==null?void 0:Ye.map(nn=>nn==null?void 0:nn.id);if(jt.includes("exercise"))br.current={id:Zn,ids:zt,type:Sr,index:Jo},Yo(!0);else{let nn=Ke.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>va(void 0,null,function*(){nn.update({cancelButtonProps:{disabled:!0}}),yield _r({single_question_id:Zn,seleted_item_bank_ids:zt},{type:Sr,index:Jo}),nn.update({cancelButtonProps:{disabled:!1}}),mt.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},_u=Zn=>{var Sr;const Jo=(Sr=Zn.questions)==null?void 0:Sr.map(jt=>jt==null?void 0:jt.id),Je=Zn.name;let Ye=Ke.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Je}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>va(void 0,null,function*(){Ye.update({cancelButtonProps:{disabled:!0}}),yield _r({seleted_item_bank_ids:Jo},{type:Zn.type}),Ye.update({cancelButtonProps:{disabled:!1}}),mt.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Je}\u8BD5\u9898`)})})},ou=()=>{let Zn=Ke.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>va(void 0,null,function*(){Zn.update({cancelButtonProps:{disabled:!0}}),yield _r(),Zn.update({cancelButtonProps:{disabled:!1}}),mt.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},xu=Zn=>{console.log(Zn,"key"),Bo(Zn-1)},Pu=(Zn,Sr)=>{var Jo,Je;if(Sr==="SINGLE")return ce.createElement(ce.Fragment,null,ce.createElement(ni,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="MULTIPLE")return ce.createElement(ce.Fragment,null,ce.createElement(mi,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="JUDGMENT")return ce.createElement(ce.Fragment,null,ce.createElement(pn,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="COMPLETION")return ce.createElement(ce.Fragment,null,ce.createElement(vt,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="SUBJECTIVE")return ce.createElement(ce.Fragment,null,ce.createElement(ri,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="COMBINATION")return ce.createElement(ce.Fragment,null,ce.createElement(Ol,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null));if(Sr==="BPROGRAM")return ce.createElement(ce.Fragment,null,ce.createElement(_e.default,{form:Oo,style:{marginTop:20},onFinishFailed:Ye=>{var jt,zt;Ye.errorFields[0].name.includes("standard_answers")?mt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):mt.ZP.error(Ye.errorFields[0].errors[0]),Oo.scrollToField((zt=(jt=Ye==null?void 0:Ye.errorFields)==null?void 0:jt[0])==null?void 0:zt.name,{behavior:"smooth",block:"center"})},onFinish:Ye=>va(void 0,null,function*(){var jt;let zt=$s(Gs({question_score:Zn.score},Ye),{question_type:8,hack:$s(Gs({},Ye.hack),{difficult:Zn.program_attr.difficult}),hack_codes:$s(Gs({},Ye.hack_codes),{code:qu.Base64.encode((jt=Ye.hack_codes)==null?void 0:jt.code)})});Wi&&(zt.is_cover=1);const nn=yield(0,$e.ZP)(`/api/exercise_questions/${Zn.id}.json`,{method:"put",body:zt});(nn==null?void 0:nn.status)===0&&(mt.ZP.success("\u7F16\u8F91\u6210\u529F"),xu(Ir+1)),Ii(null)})},ce.createElement(Hh.tc,{form:Oo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Jo=Zn==null?void 0:Zn.program_attr)==null?void 0:Jo.identifier,answerKey:"standard_answers"}),ce.createElement(He.Z,null)));if(Sr==="PROGRAM"&&ze.history.push(`/problems/${(Je=Zn==null?void 0:Zn.program_attr)==null?void 0:Je.identifier}/edit?type=exercises&express_id=${Bs.categoryId}&question_id=${Zn==null?void 0:Zn.id}&score=${Zn==null?void 0:Zn.score}&callback_url=${location.pathname}&select=${Ir}&exercise=true`),Sr==="PRACTICAL")return ce.createElement(ce.Fragment,null,ce.createElement(gi,{ref:cr,editData:Zn,isEdit:!0}),ce.createElement(He.Z,null))},dh=(Zn,Sr)=>va(void 0,null,function*(){var Jo,Je,Ye,jt,zt,nn;const Ht=yield(Jo=cr.current)==null?void 0:Jo.onSave();if(!Ht)return;const Mn=kn=>{const Jn=kn.map(wi=>wi.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Jn).size!==Jn.length},Sn={question_score:Sr.score,analysis:Ht.analysis};if(Zn==="SINGLE"||Zn==="MULTIPLE"||Zn==="JUDGMENT"){if(Zn!=="JUDGMENT"&&Mn(Ht==null?void 0:Ht.choices)){mt.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const kn=[],Jn=[];Sn.question_type=Zn==="JUDGMENT"?2:1,Sn.question_title=Ht==null?void 0:Ht.name,(Je=Ht==null?void 0:Ht.choices)==null||Je.forEach((ki,wi)=>{kn.push(ki.choice_text),ki!=null&&ki.is_answer&&Jn.push(wi+1)}),Sn.question_choices=kn,Sn.standard_answers=Jn}if(Zn==="COMPLETION"){let kn=(Ye=Ht==null?void 0:Ht.standard_answers)==null?void 0:Ye.map((wi,yi)=>(wi==null?void 0:wi.score)<=0?yi+1:null).filter(wi=>wi!==null);if((kn==null?void 0:kn.length)>0)return mt.ZP.warning(`\u7B2C${kn.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Jn=(jt=Ht==null?void 0:Ht.standard_answers)==null?void 0:jt.reduce((wi,yi)=>wi+(Number(yi==null?void 0:yi.score)||0),0);if(parseFloat(Jn.toFixed(2))!=(Sn==null?void 0:Sn.question_score))return mt.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Sn.is_ordered=Ht.is_ordered,Sn.question_title=Ht==null?void 0:Ht.name,Sn.use_blank_score=Ht==null?void 0:Ht.use_blank_score,Sn.question_type=3;const ki=[];(zt=Ht==null?void 0:Ht.standard_answers)==null||zt.forEach((wi,yi)=>{ki.push({choice_id:wi.position,answer_text:wi.answer_text,score:wi.score})}),Sn.standard_answers=ki,Sn.downcase=Ht==null?void 0:Ht.downcase,Sn.no_space=Ht==null?void 0:Ht.no_space}if(Zn==="SUBJECTIVE"&&(console.log("editorData"),console.log(Ht),Sn.question_title=Ht==null?void 0:Ht.name,Sn.question_type=4,Sn.answer_texts=Ht==null?void 0:Ht.answer_texts,Sn.use_keywords=Ht==null?void 0:Ht.use_keywords,Sn.keywords=Ht==null?void 0:Ht.keywords),Zn==="COMBINATION"){Sn.question_title=Ht==null?void 0:Ht.name,Sn.question_type=7;try{Sn.sub_questions=(nn=Ht==null?void 0:Ht.sub_item_banks)==null?void 0:nn.map((kn,Jn)=>{var ki,wi,yi;if((kn==null?void 0:kn.item_type)=="single"||(kn==null?void 0:kn.item_type)=="multiple"){if(Mn(kn==null?void 0:kn.choices))throw new Error(`\u7B2C${Jn+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const ar=[],Mi=[];return(ki=kn==null?void 0:kn.choices)==null||ki.forEach((Ui,Yi)=>{ar.push(Ui.choice_text),Ui!=null&&Ui.is_answer&&Mi.push(Yi+1)}),{id:kn.id,question_id:kn.id,question_title:kn.name,difficulty:kn.difficulty,question_type:(kn==null?void 0:kn.item_type)=="single"?0:(kn==null?void 0:kn.item_type)=="multiple"?1:2,question_choices:ar,standard_answers:Mi,analysis:kn.analysis,question_score:kn==null?void 0:kn.score}}else if((kn==null?void 0:kn.item_type)=="completion"){let ar=(wi=kn==null?void 0:kn.standard_answer)==null?void 0:wi.reduce((Ui,Yi)=>Ui+(Number(Yi==null?void 0:Yi.score)||0),0);if(parseFloat(ar.toFixed(2))!=(kn==null?void 0:kn.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Mi=[];return(yi=kn==null?void 0:kn.standard_answer)==null||yi.forEach((Ui,Yi)=>{Mi.push({choice_id:Ui.position,answer_text:Ui.answer_text,score:Ui.score})}),{id:kn.id,question_id:kn.id,is_ordered:kn.is_ordered,question_title:kn.name,difficulty:kn.difficulty,question_type:3,standard_answers:Mi,use_blank_score:kn.use_blank_score,analysis:kn.analysis,downcase:kn==null?void 0:kn.downcase,no_space:kn==null?void 0:kn.no_space,question_score:kn==null?void 0:kn.score}}else if((kn==null?void 0:kn.item_type)=="subjective")return{id:kn.id,question_id:kn.id,question_title:kn.name,question_type:4,difficulty:kn.difficulty,answer_texts:kn==null?void 0:kn.answer_texts,analysis:kn.analysis,question_score:kn==null?void 0:kn.score,use_keywords:kn.use_keywords,keywords:kn==null?void 0:kn.keywords}})}catch(kn){mt.ZP.warning(kn.message);return}delete Sn.analysis}let Fn=!1;(Sr==null?void 0:Sr.is_my)===1&&(Fn=yield new Promise((Jn,ki)=>{Ke.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{Jn(!0)},onCancel:()=>{Jn(!1)}})})),Fn&&(Sn.is_cover=1);const Qn=Zn!=="PRACTICAL"?yield(0,$e.ZP)(`/api/exercise_questions/${Sr.id}.json`,{method:"put",body:Sn}):yield(0,$e.ZP)(`/api/exercise_questions/${Sr.id}/update_shixun_score.json`,{method:"post",body:Gs({},Ht)});(Qn==null?void 0:Qn.status)===0&&(mt.ZP.success("\u7F16\u8F91\u6210\u529F"),xu(Ir+1),Ii(null))}),Lc=()=>va(void 0,null,function*(){(0,ze.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,$e.ZP)(`/api/exercises/${Bs.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Bo(Ir),mt.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ze.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Fc=({value:Zn}={})=>{var Sr;const Jo=[];let Je=[];const Ye=(Sr=Zn==null?void 0:Zn.choices)==null?void 0:Sr.map((zt,nn)=>{var Ht;const Mn=nn+1;return zt!=null&&zt.is_answer&&(Jo.push(Mn),Je.push(Mn)),{value:Mn,label:ce.createElement(Ie.Z,{className:"c-black font14",value:`${(Ht=Uo.k4)==null?void 0:Ht[nn]}. ${zt==null?void 0:zt.choice_text}`}),disabled:zt==null?void 0:zt.origin_standard_answer}}),jt=Ke.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:ce.createElement(ce.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Jo==null?void 0:Jo.map(zt=>{var nn;return(nn=Uo.k4)==null?void 0:nn[zt-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",ce.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",ce.createElement("br",null),ce.createElement(Et.default.Group,{className:"flex-col mt20",options:Ye,defaultValue:Je,onChange:zt=>{Je=zt}})),onOk:()=>va(void 0,null,function*(){const zt=yield(0,$e.ZP)(`/api/exercises/${Bs.categoryId}/questions/${Zn==null?void 0:Zn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Je}});(zt==null?void 0:zt.status)===0&&(mt.ZP.success("\u4FEE\u6539\u6210\u529F"),xu(Ir+1))})})},Bc=(Go=Kt==null?void 0:Kt.questionList)==null?void 0:Go.reduce((Zn,Sr)=>Zn+Number(Sr.questions_score),0),od=zr&&((ho=Kt==null?void 0:Kt.exam)==null?void 0:ho.exercise_status)!==1;return ce.createElement("section",{className:De.wrap},ce.createElement("div",{id:"id_left_preview",className:De.left,onMouseEnter:Zn=>{const Sr=document.getElementById("id_left_preview");Sr.style.overflowY="auto"},onMouseLeave:Zn=>{const Sr=document.getElementById("id_left_preview");Sr.style.overflowY="hidden"}},ce.createElement("div",{className:De.title},ce.createElement("div",{className:"body-overflow-initial"},ce.createElement("b",null),ce.createElement("span",null,"\u7B54\u9898\u5361"))),ce.createElement("div",{className:De.total},ce.createElement("div",null,ce.createElement("img",{src:Zt}),ce.createElement("span",null,"\u9898\u6570(\u9053)"),ce.createElement("aside",null,Kt==null?void 0:Kt.all_questions_count)),ce.createElement("div",{className:"mr30 ml30"},ce.createElement("img",{src:Gt}),ce.createElement("span",null,"\u603B\u5206(\u5206)"),ce.createElement("aside",null,Bc&&Bc.toFixed(1))),ce.createElement("div",null,ce.createElement("img",{src:Me}),ce.createElement("span",null,"\u65F6\u957F(\u5206)"),ce.createElement("aside",null,((_i=Kt==null?void 0:Kt.exam)==null?void 0:_i.time)===-1||(($i=Kt==null?void 0:Kt.exam)==null?void 0:$i.time)===null?"\u4E0D\u9650":(Tr=Kt==null?void 0:Kt.exam)==null?void 0:Tr.time))),(Ar=Kt==null?void 0:Kt.questionList)==null?void 0:Ar.map((Zn,Sr)=>{var Jo;return ce.createElement("div",{className:De.list,key:Sr},ce.createElement("div",{className:De.name},ce.createElement("b",null),ce.createElement("span",null,Zn.name)),ce.createElement("aside",null,ce.createElement("div",null,"\u5171",ce.createElement("span",{className:De.b},Zn.questions_count),"\u9898 ",ce.createElement("span",{className:De.l},"|"),"\u5171",ce.createElement("span",{className:De.r},Zn.questions_score),"\u5206"),ce.createElement("div",{className:De.answerSheet},(Jo=Zn==null?void 0:Zn.questions)==null?void 0:Jo.map((Je,Ye)=>ce.createElement("div",{onClick:()=>{const jt=`Anchor_${Je==null?void 0:Je.id}`;let zt=document.getElementById(jt);zt&&setTimeout(()=>zt.scrollIntoView({block:"center",behavior:"smooth"}))},key:Je==null?void 0:Je.id,className:De.tag},Ye+1)))))})),ce.createElement("div",{className:De.right},ce.createElement("div",{className:De.examName,id:"examName"},ce.createElement("div",{className:De.name},ce.createElement(Ct.Z,{title:(or=Kt==null?void 0:Kt.exam)==null?void 0:or.name,getPopupContainer:Zn=>Zn.parentNode},ce.createElement("span",{className:De.t},(Cr=Kt==null?void 0:Kt.exam)==null?void 0:Cr.name))),zr&&((Lo=Kt==null?void 0:Kt.exam)==null?void 0:Lo.exercise_status)===1&&ce.createElement(ys.op,{openLoading:!0,shape:"default",onClick:()=>{Ke.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{Lc()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!zr&&ce.createElement(Ze.ZP,{onClick:ou,type:"primary"},"\u968F\u673A\u66F4\u6362")),ce.createElement("div",{className:De.topWarp},(Rr=Kt==null?void 0:Kt.questionList)==null?void 0:Rr.map((Zn,Sr)=>{var Jo,Je;return ce.createElement(ce.Fragment,{key:Sr},ce.createElement("div",{className:De.head,style:Sr===0?{border:0,marginTop:-16}:{}},ce.createElement("div",{className:De.name},ce.createElement("b",null),ce.createElement("span",null,Zn.name)),ce.createElement("div",{className:De.so},"\u5171",ce.createElement("span",{className:De.b},Zn.questions_count," "),"\u9898 ",Zn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Jo=Zn==null?void 0:Zn.questions)==null?void 0:Jo.map(Ye=>{var jt;return(jt=Ye==null?void 0:Ye.sub_item_banks)==null?void 0:jt.length}).reduce((Ye,jt)=>Ye+jt)}\u5C0F\u9898\uFF09`,ce.createElement("span",{className:De.l},"|"),"\u5171",ce.createElement("span",{className:De.r},Zn.questions_score),"\u5206"),!zr&&ce.createElement("div",{className:De.btn},ce.createElement(Ze.ZP,{onClick:()=>{Gh(Zn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),ce.createElement(Ze.ZP,{onClick:()=>_u(Zn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Je=Zn==null?void 0:Zn.questions)==null?void 0:Je.map((Ye,jt)=>{var zt,nn,Ht,Mn;return lr===(Ye==null?void 0:Ye.id)?ce.createElement("div",{id:`Anchor_${Ye==null?void 0:Ye.id}`,className:De.content,style:{padding:0,marginTop:24},key:Ye==null?void 0:Ye.id},ce.createElement("div",{style:{float:"right",marginTop:`${(Zn==null?void 0:Zn.type)==="PRACTICAL"?"-2px":"-6px"}`}},ce.createElement(Ze.ZP,{onClick:()=>Ii(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),ce.createElement(Ze.ZP,{onClick:()=>{dh(Zn==null?void 0:Zn.type,Ye)},type:"primary"},"\u4FDD\u5B58")),Pu(Ye,Zn.type)):ce.createElement("div",{id:`Anchor_${Ye==null?void 0:Ye.id}`,className:De.content,key:Ye==null?void 0:Ye.id},ce.createElement("div",{className:De.titleWrap},(Ye==null?void 0:Ye.item_type)==="bprogram"?ce.createElement(Ie.Z,{style:{paddingRight:10},value:jt+1+"\u3001"+((zt=Ye==null?void 0:Ye.program_attr)==null?void 0:zt.description)}):ce.createElement(Ie.Z,{style:{paddingRight:10},className:De.titleHtml,value:jt+1+`\u3001${(Ye==null?void 0:Ye.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Ye==null?void 0:Ye.name)}),zr&&ce.createElement(Ze.ZP,{onClick:()=>{var Sn,Fn,Qn;if(lr){mt.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Oo.setFieldsValue({standard_answers:Ye==null?void 0:Ye.standard_answer,hack:Gs(Gs({},Ye),Ye==null?void 0:Ye.program_attr),hack_codes:$s(Gs({},Ye==null?void 0:Ye.program_attr),{code:qu.Base64.decode(((Sn=Ye==null?void 0:Ye.program_attr)==null?void 0:Sn.code)||"")}),hack_sets:Gs({},(Fn=Ye==null?void 0:Ye.hack_sets)==null?void 0:Fn[0])}),(Ye==null?void 0:Ye.item_type)=="program"?ze.history.push(`/problems/newedit/${(Qn=Ye==null?void 0:Ye.program_attr)==null?void 0:Qn.identifier}?type=exercises&express_id=${Bs.categoryId}&question_id=${Ye==null?void 0:Ye.id}&score=${Ye==null?void 0:Ye.score}&exercise=true&callback_url=/classrooms/${Bs.coursesId}/exercise/${Bs.categoryId}/detail?random=true`):Ii(Ye==null?void 0:Ye.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!od&&ce.createElement(Ze.ZP,{disabled:od,className:"ml20",onClick:()=>Od(Ye==null?void 0:Ye.id,Zn.type,jt,Zn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Ye==null?void 0:Ye.item_type)==="bprogram"&&ce.createElement(Ie.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:De.titleHtml,value:qu.Base64.decode(((nn=Ye==null?void 0:Ye.program_attr)==null?void 0:nn.code)||"")}),(Zn.type==="SINGLE"||Zn.type==="JUDGMENT"||Zn.type==="MULTIPLE")&&ju(Ye),Zn.type==="COMPLETION"&&Wh(Ye),Zn.type==="SUBJECTIVE"&&ru(Ye),Zn.type==="PROGRAM"&&zu(Ye),Zn.type==="BPROGRAM"&&Bh(Ye),Zn.type==="COMBINATION"&&aa(Ye,jt),Zn.type==="PRACTICAL"&&Ml(Ye),ce.createElement(ht.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((Ht=Kt==null?void 0:Kt.exam)==null?void 0:Ht.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Zn.type)&&ce.createElement(dt.Z,null,ce.createElement(eh.Z,{state:Ye==null?void 0:Ye.is_wrong,onClick:()=>{po==null||po({value:$s(Gs({},Ye),{question_id:Ye==null?void 0:Ye.id,question_score:Ye==null?void 0:Ye.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Zn.type)&&(Ye==null?void 0:Ye.show_resubmit)&&ce.createElement(dt.Z,null,ce.createElement(Co.C,{dataSource:$s(Gs({},Ye),{question_id:Ye==null?void 0:Ye.id})})),((Mn=Kt==null?void 0:Kt.exam)==null?void 0:Mn.exercise_status)===3&&["SINGLE"].includes(Zn.type)&&ce.createElement(dt.Z,null,ce.createElement(Ze.ZP,{style:{color:"#3061D0"},onClick:()=>{Fc({value:Ye})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),zr?ce.createElement(ys.vr,null,ce.createElement(Ae.Z,{showTotal:et.rU,total:(tr=Kt==null?void 0:Kt.exam)==null?void 0:tr.total_num,pageSize:1,current:Ir+1,showSizeChanger:!1,onChange:xu,showQuickJumper:!1,hideOnSinglePage:!1})):ce.createElement(ys.vr,{LeftContent:ce.createElement(ys.op,{onClick:mn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:ce.createElement(ht.Z,{align:"middle"},ce.createElement(te.Z,{color:"#55575D",overlayClassName:De.popover,open:Do,getPopupContainer:Zn=>Zn==null?void 0:Zn.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},ce.createElement(ys.op,{onMouseEnter:()=>Yr(!0),onMouseLeave:()=>Yr(!1),onClick:()=>Nh(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),ce.createElement(ys.op,{shape:"default",type:"primary",onClick:()=>_t(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),ce.createElement(Rl,{visible:ko,questionParams:br.current,getdata:jo,onRandomExchange:()=>va(void 0,null,function*(){const Zn=br.current;yield _r({single_question_id:Zn.id,seleted_item_bank_ids:Zn.ids},{type:Zn.type,index:Zn.index}),Yo(!1)}),selectFromProblemSet:()=>{const Zn=br.current,Sr=`${location.pathname}${location.search}`;Sr.includes("exercise")&&ze.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Zn.id}&qtype=${Zn.type}&exerciseid=${Bs.categoryId}&from=${Sr}`)},onCancel:()=>{Yo(!1)}}))}},76175:function(Pn,an,ve){"use strict";ve.r(an),ve.d(an,{default:function(){return se}});var ce=ve(59301),De=ve(89070),_e={flex_box_center:"flex_box_center___kQBcj",flex_space_between:"flex_space_between___Znlbo",flex_box_vertical_center:"flex_box_vertical_center___CPD50",flex_box_center_end:"flex_box_center_end___jzPvK",flex_box_column:"flex_box_column___cvIBS",wrap:"wrap___lab8O",crumbs:"crumbs___qvTza"},Ct=ve(92744),Ze=ve(8591),Ke=ve(61621),Be=ve(99064),mt=ve(955),ct=ve(59301),He=Object.defineProperty,Et=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ae=(de,me,we)=>me in de?He(de,me,{enumerable:!0,configurable:!0,writable:!0,value:we}):de[me]=we,te=(de,me)=>{for(var we in me||(me={}))ht.call(me,we)&&Ae(de,we,me[we]);if(Et)for(var we of Et(me))dt.call(me,we)&&Ae(de,we,me[we]);return de},ee=(de,me,we)=>new Promise((be,Me)=>{var Ie=$e=>{try{et(we.next($e))}catch(gt){Me(gt)}},ze=$e=>{try{et(we.throw($e))}catch(gt){Me(gt)}},et=$e=>$e.done?be($e.value):Promise.resolve($e.value).then(Ie,ze);et((we=we.apply(de,me)).next())});const he=({paperlibrary:de,user:me,globalSetting:we,dispatch:be,location:Me})=>{var Ie,ze,et,$e;const[gt]=(0,De.useSearchParams)(),je=gt.get("select")||0,[Tt,Qe]=(0,ce.useState)(!1),[bt,Nt]=(0,ce.useState)(!0),[At,Zt]=(0,ce.useState)(Number(je)),[Yt,ut]=(0,ce.useState)({}),Ge=(0,De.useParams)(),{userInfo:kt}=me,{actionTabs:ln}=de;(0,ce.useEffect)(()=>(be({type:"globalSetting/footerToggle",payload:!1}),()=>{be({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ce.useEffect)(()=>(be({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),be({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),be({type:"exercise/getWorkSetting",payload:te({},Ge)}),()=>{be({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),be({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,ce.useEffect)(()=>{sn(At)},[]),(0,ce.useEffect)(()=>{var Cn;(Cn=ln==null?void 0:ln.params)!=null&&Cn.isUpdateData&&sn(At)},[(Ie=ln==null?void 0:ln.params)==null?void 0:Ie.isUpdateData]);const sn=(Cn=0)=>ee(void 0,null,function*(){console.log(Ge),Nt(!0);const ft=yield(0,Be.ZP)(`/api/exercises/${Ge.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:Cn}});be({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),Nt(!1),ut((0,mt.PF)(ft))}),Bt=()=>{De.history.push(`/classrooms/${Ge.coursesId}/exercise`)},Gt=()=>{alert("\u4FDD\u5B58")},en=(Cn,ft)=>ee(void 0,null,function*(){const En=yield(0,Be.ZP)(`/api/exercises/${Ge.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Cn==null?void 0:Cn.single_question_id}});En!=null&&En.question&&(Ze.ZP.info("\u6362\u9898\u6210\u529F"),sn(At))}),Bn=Cn=>ee(void 0,null,function*(){document.body.scrollIntoView(),Zt(Cn),yield sn(Cn)}),rn=Cn=>{be({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:Cn}})};return console.log((0,De.useLocation)(),"location333"),ct.createElement("section",{className:_e.wrap},ct.createElement(Ke.Z,{loading:bt,active:!0,paragraph:{rows:5}},((et=(ze=(0,De.useLocation)())==null?void 0:ze.pathname)==null?void 0:et.includes("preview"))&&ct.createElement("div",{className:_e.crumbs},ct.createElement("b",null),ct.createElement("span",{className:"current",onClick:()=>De.history.push(`/classrooms/${Ge.coursesId}/exercise`)},`${($e=kt==null?void 0:kt.course)==null?void 0:$e.course_name}>`),ct.createElement("span",{className:"current",onClick:()=>De.history.push(`/classrooms/${Ge.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),ct.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),ct.createElement(Ct.Z,{loading:Tt,submit:Gt,goBack:Bt,data:Yt,getdata:()=>{sn(At)},selectValue:At,editPreview:!0,onExchange:en,onSkipExamination:Bn,handleMarkWrongQuestion:rn})))};var se=(0,De.connect)(({paperlibrary:de,user:me,globalSetting:we})=>({paperlibrary:de,user:me,globalSetting:we}))(he)},94860:function(Pn,an,ve){"use strict";ve.d(an,{g:function(){return Ze}});var ce=ve(59301),De=ve(80401),_e=ve(26422),Ct=(Ke,Be,mt)=>new Promise((ct,He)=>{var Et=Ae=>{try{dt(mt.next(Ae))}catch(te){He(te)}},ht=Ae=>{try{dt(mt.throw(Ae))}catch(te){He(te)}},dt=Ae=>Ae.done?ct(Ae.value):Promise.resolve(Ae.value).then(Et,ht);dt((mt=mt.apply(Ke,Be)).next())});const Ze=()=>{const[Ke,Be]=(0,ce.useState)([]);return(0,ce.useEffect)(()=>{Ct(void 0,null,function*(){const ct=yield(0,De.d1)({source:"question"});ct!=null&&ct.disciplines&&Be((0,_e.L)(ct==null?void 0:ct.disciplines))})},[]),Ke}},83312:function(Pn,an,ve){"use strict";ve.d(an,{U:function(){return ct}});var ce=ve(59301),De=Object.defineProperty,_e=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ke=(He,Et,ht)=>Et in He?De(He,Et,{enumerable:!0,configurable:!0,writable:!0,value:ht}):He[Et]=ht,Be=(He,Et)=>{for(var ht in Et||(Et={}))Ct.call(Et,ht)&&Ke(He,ht,Et[ht]);if(_e)for(var ht of _e(Et))Ze.call(Et,ht)&&Ke(He,ht,Et[ht]);return He},mt=(He,Et,ht)=>new Promise((dt,Ae)=>{var te=se=>{try{he(ht.next(se))}catch(de){Ae(de)}},ee=se=>{try{he(ht.throw(se))}catch(de){Ae(de)}},he=se=>se.done?dt(se.value):Promise.resolve(se.value).then(te,ee);he((ht=ht.apply(He,Et)).next())});function ct(He,Et){const[ht,dt]=(0,ce.useState)(Et),[Ae,te]=(0,ce.useState)(!1),[ee,he]=(0,ce.useState)();return[ht,Ae,(de,me=!1)=>mt(this,null,function*(){const we=me?Et:Be(Be({},ht),de);te(!0),dt(we);const be=yield He(we);return te(!1),he(be),be}),ee,he]}},24768:function(Pn,an,ve){"use strict";ve.d(an,{AL:function(){return we},Iy:function(){return Et},Qv:function(){return Ae},ez:function(){return me},jb:function(){return ht}});var ce=ve(32834),De=ve.n(ce),_e=ve(11690),Ct=ve.n(_e);let Ze=1;function Ke(et,$e){const gt=et.match(/^(\s+)(?:```)/);if(gt===null)return $e;const je=gt[1];return $e.split(` `).map(Tt=>{const Qe=Tt.match(/^\s+/);if(Qe===null)return Tt;const[bt]=Qe;return bt.length>=je.length?Tt.slice(je.length):Tt}).join(` `)}let Be=[],mt=["
    "];const ct=new(De()).Renderer,He=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Et(){Be.length=0,mt=["
      "]}const ht={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function dt(et,$e,gt,je){if($e>=et.length||et[$e].level<=gt)return $e;var Tt=et[$e];je.push("
    • "+Tt.text+""),$e++;var Qe=[];return $e=dt(et,$e,Tt.level,Qe),Qe.length>0&&(je.push("
        "),Qe.forEach(function(bt){je.push(bt)}),je.push("
      ")),je.push("
    • "),$e=dt(et,$e,gt,je),$e}function Ae(){return dt(Be,0,0,mt),mt.push("
    "),mt.join("")}const te={heading(et){const $e=He.exec(et);if(Ze+=1,$e)return{type:"heading",raw:$e[0],depth:$e[1].length,text:$e[2]}},fences(et){const $e=this.rules.block.fences.exec(et);if($e){const gt=$e[0];let je=Ke(gt,$e[3]||"");const Tt=$e[2]?$e[2].trim():$e[2];if(["latex","katex","math"].indexOf(Tt)>=0){const Qe=se(),bt=je;je=Qe,de[Qe]={type:"block",expression:bt}}return{type:"code",raw:gt,lang:Tt,text:je}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let de={};function me(){return de}function we(){he=0,de={}}function be(et){return et=et.replace(ee,($e,gt)=>{const je=se();return de[je]={type:"inline",expression:gt},je}),et}const Me=ct.listitem;ct.listitem=function(et){return Me(be(et))};const Ie=ct.paragraph;ct.paragraph=function(et){return Ie(be(et))};const ze=ct.tablecell;ct.tablecell=function(et,$e){return ze(be(et),$e)},ct.code=function(et,$e,gt){const je=($e||"").match(/\S*/)[0];return je?["latex","katex","math"].indexOf(je)>=0?`

    ${et}

    `:`
    ${gt?et:(0,_e.escape)(et,!0)}
    `:'
    '+(gt?et:(0,_e.escape)(et,!0))+"
    "},ct.heading=function(et,$e,gt){let je=this.options.headerPrefix+gt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Be.push({anchor:je,level:$e,text:et}),"'+et+""},De().setOptions({silent:!0,gfm:!0,pedantic:!1}),De().use({tokenizer:te,renderer:ct}),an.ZP=De()},50371:function(Pn,an){"use strict";function ve(){const ce=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let De=1;De{const Ze=_e[Ct];Ze!==void 0&&(ce[Ct]=Ze)})}return ce}an.Z=ve},77578:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ce}});const ce=De=>De?typeof De=="function"?De():De:null},13845:function(Pn,an,ve){"use strict";ve.d(an,{F:function(){return ce},Z:function(){return De}});function ce(_e){return _e!=null&&_e===_e.window}function De(_e,Ct){var Ze,Ke;if(typeof window=="undefined")return 0;const Be=Ct?"scrollTop":"scrollLeft";let mt=0;return ce(_e)?mt=_e[Ct?"pageYOffset":"pageXOffset"]:_e instanceof Document?mt=_e.documentElement[Be]:(_e instanceof HTMLElement||_e)&&(mt=_e[Be]),_e&&!ce(_e)&&typeof mt!="number"&&(mt=(Ke=((Ze=_e.ownerDocument)!==null&&Ze!==void 0?Ze:_e).documentElement)===null||Ke===void 0?void 0:Ke[Be]),mt}},56762:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return De}});var ce=ve(59301);function De(){const[,_e]=ce.useReducer(Ct=>Ct+1,0);return _e}},68031:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ct}});var ce=ve(16089);function De(Ze,Ke,Be,mt){const ct=Be-Ke;return Ze/=mt/2,Ze<1?ct/2*Ze*Ze*Ze+Ke:ct/2*((Ze-=2)*Ze*Ze+2)+Ke}var _e=ve(13845);function Ct(Ze){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Be=()=>window,callback:mt,duration:ct=450}=Ke,He=Be(),Et=(0,_e.Z)(He,!0),ht=Date.now(),dt=()=>{const te=Date.now()-ht,ee=De(te>ct?ct:te,Et,Ze,ct);(0,_e.F)(He)?He.scrollTo(window.pageXOffset,ee):He instanceof Document||He.constructor.name==="HTMLDocument"?He.documentElement.scrollTop=ee:He.scrollTop=ee,te2&&arguments[2]!==void 0?arguments[2]:!1;xn.forEach(function(cn){if(!(!rt&&xt!==!1&&xt>0&&Vt.length>=xt)){var On=[].concat((0,ce.Z)(An),[cn]),ri=cn[vi.children],Wt=yt||cn.disabled;if((!ri||ri.length===0||Dn)&&Ot(hn,On,{label:vi.label})){var Jt;Vt.push((0,me.Z)((0,me.Z)({},cn),{},(Jt={disabled:Wt},(0,de.Z)(Jt,vi.label,Ut(hn,On,Fi,vi)),(0,de.Z)(Jt,we,On),(0,de.Z)(Jt,vi.children,void 0),Jt)))}ri&&on(cn[vi.children],On,Wt)}})}return on(ni,[]),rt&&Vt.sort(function(xn,An){return rt(xn[we],An[we],hn,vi)}),xt!==!1&&xt>0?Vt.slice(0,xt):Vt},[hn,ni,vi,Fi,Ut,Dn,Ot,rt,xt])},ze="__RC_CASCADER_SPLIT__",et="SHOW_PARENT",$e="SHOW_CHILD";function gt(hn){return hn.join(ze)}function je(hn){return hn.map(gt)}function Tt(hn){return hn.split(ze)}function Qe(hn){var ni=hn||{},vi=ni.label,Fi=ni.value,_n=ni.children,Dn=Fi||"value";return{label:vi||"label",value:Dn,key:Dn,children:_n||"children"}}function bt(hn,ni){var vi,Fi;return(vi=hn.isLeaf)!==null&&vi!==void 0?vi:!((Fi=hn[ni.children])!==null&&Fi!==void 0&&Fi.length)}function Nt(hn){var ni=hn.parentElement;if(ni){var vi=hn.offsetTop-ni.offsetTop;vi-ni.scrollTop<0?ni.scrollTo({top:vi}):vi+hn.offsetHeight-ni.scrollTop>ni.offsetHeight&&ni.scrollTo({top:vi+hn.offsetHeight-ni.offsetHeight})}}function At(hn,ni){return hn.map(function(vi){var Fi;return(Fi=vi[we])===null||Fi===void 0?void 0:Fi.map(function(_n){return _n[ni.value]})})}function Zt(hn,ni,vi){var Fi=new Set(hn),_n=ni();return hn.filter(function(Dn){var Ft=_n[Dn],Ot=Ft?Ft.parent:null,Ve=Ft?Ft.children:null;return Ft&&Ft.node.disabled?!0:vi===$e?!(Ve&&Ve.some(function(Ut){return Ut.key&&Fi.has(Ut.key)})):!(Ot&&!Ot.node.disabled&&Fi.has(Ot.key))})}function Yt(hn,ni,vi){for(var Fi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,_n=ni,Dn=[],Ft=function(){var Ut,tn,xt,rt=hn[Ot],Vt=(Ut=_n)===null||Ut===void 0?void 0:Ut.findIndex(function(xn){var An=xn[vi.value];return Fi?String(An)===String(rt):An===rt}),on=Vt!==-1?(tn=_n)===null||tn===void 0?void 0:tn[Vt]:null;Dn.push({value:(xt=on==null?void 0:on[vi.value])!==null&&xt!==void 0?xt:rt,index:Vt,option:on}),_n=on==null?void 0:on[vi.children]},Ot=0;Ot1){var hi=on.slice(0,-1);cn(hi)}else Ut(!1)},Wt=function(){var hi,ci=((hi=An[xn])===null||hi===void 0?void 0:hi[vi.children])||[],ui=ci.find(function(di){return!di.disabled});if(ui){var qn=[].concat((0,ce.Z)(on),[ui[vi.value]]);cn(qn)}};De.useImperativeHandle(hn,function(){return{onKeyDown:function(hi){var ci=hi.which;switch(ci){case En.Z.UP:case En.Z.DOWN:{var ui=0;ci===En.Z.UP?ui=-1:ci===En.Z.DOWN&&(ui=1),ui!==0&&On(ui);break}case En.Z.LEFT:{if(Ve)break;xt?Wt():ri();break}case En.Z.RIGHT:{if(Ve)break;xt?ri():Wt();break}case En.Z.BACKSPACE:{Ve||ri();break}case En.Z.ENTER:{if(on.length){var qn=An[xn],di=(qn==null?void 0:qn[we])||[];di.length?Dn(di.map(function(li){return li[vi.value]}),di[di.length-1]):Dn(on,An[xn])}break}case En.Z.ESC:Ut(!1),tn&&hi.stopPropagation()}},onKeyUp:function(){}}})},Re=De.forwardRef(function(hn,ni){var vi,Fi,_n,Dn,Ft=(0,Et.lk)(),Ot=Ft.prefixCls,Ve=Ft.multiple,Ut=Ft.searchValue,tn=Ft.toggleOpen,xt=Ft.notFoundContent,rt=Ft.direction,Vt=Ft.open,on=De.useRef(),xn=rt==="rtl",An=De.useContext(he),yt=An.options,cn=An.values,On=An.halfValues,ri=An.fieldNames,Wt=An.changeOnSelect,Jt=An.onSelect,hi=An.searchOptions,ci=An.dropdownPrefixCls,ui=An.loadData,qn=An.expandTrigger,di=ci||Ot,li=De.useState([]),Ai=(0,ct.Z)(li,2),er=Ai[0],sr=Ai[1],vn=function(Bi){if(!(!ui||Ut)){var Po=Yt(Bi,yt,ri),ao=Po.map(function(Hr){var ro=Hr.option;return ro}),Vi=ao[ao.length-1];if(Vi&&!bt(Vi,ri)){var qi=gt(Bi);sr(function(Hr){return[].concat((0,ce.Z)(Hr),[qi])}),ui(ao)}}};De.useEffect(function(){er.length&&er.forEach(function(co){var Bi=Tt(co),Po=Yt(Bi,yt,ri,!0).map(function(Vi){var qi=Vi.option;return qi}),ao=Po[Po.length-1];(!ao||ao[ri.children]||bt(ao,ri))&&sr(function(Vi){return Vi.filter(function(qi){return qi!==co})})})},[yt,er,ri]);var Nr=De.useMemo(function(){return new Set(je(cn))},[cn]),Dr=De.useMemo(function(){return new Set(je(On))},[On]),ir=ft(),fn=(0,ct.Z)(ir,2),jn=fn[0],Ei=fn[1],zi=function(Bi){Ei(Bi),vn(Bi)},Ni=function(Bi){var Po=Bi.disabled,ao=bt(Bi,ri);return!Po&&(ao||Wt||Ve)},Gi=function(Bi,Po){var ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jt(Bi),!Ve&&(Po||Wt&&(qn==="hover"||ao))&&tn(!1)},ur=De.useMemo(function(){return Ut?hi:yt},[Ut,hi,yt]),Qi=De.useMemo(function(){for(var co=[{options:ur}],Bi=ur,Po=At(Bi,ri),ao=function(){var ro=jn[Vi],xi=Bi.find(function(uo,Zo){return(Po[Zo]?gt(Po[Zo]):uo[ri.value])===ro}),tt=xi==null?void 0:xi[ri.children];if(!(tt!=null&&tt.length))return"break";Bi=tt,co.push({options:tt})},Vi=0;Vi":er,vn=hn.loadingIcon,Nr=hn.children,Dr=hn.dropdownMatchSelectWidth,ir=Dr===void 0?!1:Dr,fn=hn.showCheckedStrategy,jn=fn===void 0?et:fn,Ei=(0,He.Z)(hn,Se),zi=(0,ht.ZP)(vi),Ni=!!xt,Gi=(0,te.Z)(Ft,{value:Ot,postState:Pt}),ur=(0,ct.Z)(Gi,2),Qi=ur[0],rr=ur[1],fr=De.useMemo(function(){return Qe(Dn)},[JSON.stringify(Dn)]),Nn=De.useMemo(function(){return cn||[]},[cn]),Jr=kt(Nn,fr),Ln=De.useCallback(function(No){var yo=Jr();return No.map(function(ta){var na=yo[ta].nodes;return na.map(function(Na){return Na[fr.value]})})},[Jr,fr]),Zr=(0,te.Z)("",{value:on,postState:function(yo){return yo||""}}),co=(0,ct.Z)(Zr,2),Bi=co[0],Po=co[1],ao=function(yo,ta){Po(yo),ta.source!=="blur"&&xn&&xn(yo)},Vi=Bt(An),qi=(0,ct.Z)(Vi,2),Hr=qi[0],ro=qi[1],xi=Ie(Bi,Nn,fr,On||_n,ro,Ve),tt=ln(Nn,fr),uo=De.useMemo(function(){var No=tt(Qi),yo=(0,ct.Z)(No,2),ta=yo[0],na=yo[1];if(!Ni||!Qi.length)return[ta,[],na];var Na=je(ta),ka=Jr(),is=(0,dt.S)(Na,!0,ka),gn=is.checkedKeys,Oa=is.halfCheckedKeys;return[Ln(gn),Ln(Oa),na]},[Ni,Qi,Jr,Ln,tt]),Zo=(0,ct.Z)(uo,3),ga=Zo[0],Pa=Zo[1],ia=Zo[2],Or=De.useMemo(function(){var No=je(ga),yo=Zt(No,Jr,jn);return[].concat((0,ce.Z)(ia),(0,ce.Z)(Ln(yo)))},[ga,Jr,Ln,ia,jn]),kr=ut(Or,Nn,fr,Ni,tn),fo=(0,Ae.Z)(function(No){if(rr(No),Ut){var yo=Pt(No),ta=yo.map(function(ka){return Yt(ka,Nn,fr).map(function(is){return is.option})}),na=Ni?yo:yo[0],Na=Ni?ta:ta[0];Ut(na,Na)}}),jr=(0,Ae.Z)(function(No){if((!Ni||Vt)&&Po(""),!Ni)fo(No);else{var yo=gt(No),ta=je(ga),na=je(Pa),Na=ta.includes(yo),ka=ia.some(function(Cl){return gt(Cl)===yo}),is=ga,gn=ia;if(ka&&!Na)gn=ia.filter(function(Cl){return gt(Cl)!==yo});else{var Oa=Na?ta.filter(function(Cl){return Cl!==yo}):[].concat((0,ce.Z)(ta),[yo]),Vl=Jr(),Hs;if(Na){var wl=(0,dt.S)(Oa,{checked:!1,halfCheckedKeys:na},Vl);Hs=wl.checkedKeys}else{var Ma=(0,dt.S)(Oa,!0,Vl);Hs=Ma.checkedKeys}var yu=Zt(Hs,Jr,jn);is=Ln(yu)}fo([].concat((0,ce.Z)(gn),(0,ce.Z)(is)))}}),To=function(yo,ta){if(ta.type==="clear"){fo([]);return}var na=ta.values[0],Na=na.valueCells;jr(Na)},qa=Jt!==void 0?Jt:Wt,Mr=ci||hi,hr=di||qn,Xn=function(yo){li==null||li(yo),Ai==null||Ai(yo)},yr=De.useMemo(function(){return{options:Nn,fieldNames:fr,values:ga,halfValues:Pa,changeOnSelect:Ve,onSelect:jr,checkable:xt,searchOptions:xi,dropdownPrefixCls:On,loadData:ri,expandTrigger:yt,expandIcon:sr,loadingIcon:vn,dropdownMenuColumnStyle:ui}},[Nn,fr,ga,Pa,Ve,jr,xt,xi,On,ri,yt,sr,vn,ui]),wo=!(Bi?xi:Nn).length,ua=Bi&&ro.matchInputWidth||wo?{}:{minWidth:"auto"};return De.createElement(he.Provider,{value:yr},De.createElement(Et.Ac,(0,mt.Z)({},Ei,{ref:ni,id:zi,prefixCls:_n,autoClearSearchValue:Vt,dropdownMatchSelectWidth:ir,dropdownStyle:ua,displayValues:kr,onDisplayValuesChange:To,mode:Ni?"multiple":void 0,searchValue:Bi,onSearch:ao,showSearch:Hr,OptionList:Ce,emptyOptions:wo,open:qa,dropdownClassName:Mr,placement:hr,onDropdownVisibleChange:Xn,getRawInputElement:function(){return Nr}})))});qe.SHOW_PARENT=et,qe.SHOW_CHILD=$e;var Ue=qe,St=Ue,vt=ve(2738),lt=ve(62892),Dt=ve(53487),un=ve(19080),Xt=ve(36355),$t=ve(93891),wn=ve(1684),bn=ve(19716),pn=ve(32441),Yn=ve(14154),ai=ve(58582),Wn=ve(84443),Rn=ve(66339),ii=ve(33234),pi=ve(98447),gi=ve(17313),Ri=ve(74207),Ji=ve(83116);const Un=hn=>{const{prefixCls:ni,componentCls:vi,antCls:Fi}=hn,_n=`${vi}-menu-item`,Dn=` &${_n}-expand ${_n}-expand-icon, ${_n}-loading-icon `;return[{[vi]:{width:hn.controlWidth}},{[`${vi}-dropdown`]:[(0,pi.C2)(`${ni}-checkbox`,hn),{[`&${Fi}-select-dropdown`]:{padding:0}},{[vi]:{"&-checkbox":{top:0,marginInlineEnd:hn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${vi}-menu-empty`]:{[`${vi}-menu`]:{width:"100%",height:"auto",[_n]:{color:hn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:hn.controlItemWidth,height:hn.dropdownHeight,margin:0,padding:hn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${hn.lineWidth}px ${hn.lineType} ${hn.colorSplit}`},"&-item":Object.assign(Object.assign({},gi.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:hn.optionPadding,lineHeight:hn.lineHeight,cursor:"pointer",transition:`all ${hn.motionDurationMid}`,borderRadius:hn.borderRadiusSM,"&:hover":{background:hn.controlItemBgHover},"&-disabled":{color:hn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Dn]:{color:hn.colorTextDisabled}},[`&-active:not(${_n}-disabled)`]:{"&, &:hover":{fontWeight:hn.optionSelectedFontWeight,backgroundColor:hn.optionSelectedBg}},"&-content":{flex:"auto"},[Dn]:{marginInlineStart:hn.paddingXXS,color:hn.colorTextDescription,fontSize:hn.fontSizeIcon},"&-keyword":{color:hn.colorHighlight}})}}}]},{[`${vi}-dropdown-rtl`]:{direction:"rtl"}},(0,Ri.c)(hn)]};var $n=(0,Ji.Z)("Cascader",hn=>[Un(hn)],hn=>{const ni=Math.round((hn.controlHeight-hn.fontSize*hn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:hn.controlItemBgActive,optionSelectedFontWeight:hn.fontWeightStrong,optionPadding:`${ni}px ${hn.paddingSM}px`,menuPadding:hn.paddingXXS}}),ti=function(hn,ni){var vi={};for(var Fi in hn)Object.prototype.hasOwnProperty.call(hn,Fi)&&ni.indexOf(Fi)<0&&(vi[Fi]=hn[Fi]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Fi=Object.getOwnPropertySymbols(hn);_nVe===0?[Ot]:[].concat((0,ce.Z)(Ft),[ni,Ot]),[]),_n=[];let Dn=0;return Fi.forEach((Ft,Ot)=>{const Ve=Dn+Ft.length;let Ut=hn.slice(Dn,Ve);Dn=Ve,Ot%2===1&&(Ut=De.createElement("span",{className:`${vi}-menu-item-keyword`,key:`separator-${Ot}`},Ut)),_n.push(Ut)}),_n}const ji=(hn,ni,vi,Fi)=>{const _n=[],Dn=hn.toLowerCase();return ni.forEach((Ft,Ot)=>{Ot!==0&&_n.push(" / ");let Ve=Ft[Fi.label];const Ut=typeof Ve;(Ut==="string"||Ut==="number")&&(Ve=nr(String(Ve),Dn,vi)),_n.push(Ve)}),_n},Le=De.forwardRef((hn,ni)=>{const{prefixCls:vi,size:Fi,disabled:_n,className:Dn,rootClassName:Ft,multiple:Ot,bordered:Ve=!0,transitionName:Ut,choiceTransitionName:tn="",popupClassName:xt,dropdownClassName:rt,expandIcon:Vt,placement:on,showSearch:xn,allowClear:An=!0,notFoundContent:yt,direction:cn,getPopupContainer:On,status:ri,showArrow:Wt,builtinPlacements:Jt,style:hi}=hn,ci=ti(hn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),ui=(0,vt.Z)(ci,["suffixIcon"]),{getPopupContainer:qn,getPrefixCls:di,renderEmpty:li,direction:Ai,popupOverflow:er,cascader:sr}=De.useContext(Xt.E_),vn=cn||Ai,Nr=vn==="rtl",{status:Dr,hasFeedback:ir,isFormItemInput:fn,feedbackIcon:jn}=De.useContext(pn.aM),Ei=(0,un.F)(Dr,ri),zi=yt||(li==null?void 0:li("Cascader"))||De.createElement($t.Z,{componentName:"Cascader"}),Ni=di(),Gi=di("select",vi),ur=di("cascader",vi),[Qi,rr]=(0,Yn.Z)(Gi),[fr]=$n(ur),{compactSize:Nn,compactItemClassnames:Jr}=(0,ii.ri)(Gi,cn),Ln=Be()(xt||rt,`${ur}-dropdown`,{[`${ur}-dropdown-rtl`]:vn==="rtl"},Ft,rr),Zr=De.useMemo(()=>{if(!xn)return xn;let ia={render:ji};return typeof xn=="object"&&(ia=Object.assign(Object.assign({},ia),xn)),ia},[xn]),co=(0,bn.Z)(ia=>{var Or;return(Or=Fi!=null?Fi:Nn)!==null&&Or!==void 0?Or:ia}),Bi=De.useContext(wn.Z),Po=_n!=null?_n:Bi;let ao=Vt;Vt||(ao=Nr?De.createElement(_e.Z,null):De.createElement(Ze.Z,null));const Vi=De.createElement("span",{className:`${Gi}-menu-item-loading-icon`},De.createElement(Ct.Z,{spin:!0})),qi=De.useMemo(()=>Ot?De.createElement("span",{className:`${ur}-checkbox-inner`}):!1,[Ot]),Hr=(0,Wn.Z)(hn.suffixIcon,Wt),{suffixIcon:ro,removeIcon:xi,clearIcon:tt}=(0,Rn.Z)(Object.assign(Object.assign({},hn),{hasFeedback:ir,feedbackIcon:jn,showSuffixIcon:Hr,multiple:Ot,prefixCls:Gi,componentName:"Cascader"})),uo=De.useMemo(()=>on!==void 0?on:Nr?"bottomRight":"bottomLeft",[on,Nr]),Zo=(0,ai.Z)(Jt,er),ga=An===!0?{clearIcon:tt}:An,Pa=De.createElement(St,Object.assign({prefixCls:Gi,className:Be()(!vi&&ur,{[`${Gi}-lg`]:co==="large",[`${Gi}-sm`]:co==="small",[`${Gi}-rtl`]:Nr,[`${Gi}-borderless`]:!Ve,[`${Gi}-in-form-item`]:fn},(0,un.Z)(Gi,Ei,ir),Jr,sr==null?void 0:sr.className,Dn,Ft,rr),disabled:Po,style:Object.assign(Object.assign({},sr==null?void 0:sr.style),hi)},ui,{builtinPlacements:Zo,direction:vn,placement:uo,notFoundContent:zi,allowClear:ga,showSearch:Zr,expandIcon:ao,suffixIcon:ro,removeIcon:xi,loadingIcon:Vi,checkable:qi,dropdownClassName:Ln,dropdownPrefixCls:vi||ur,choiceTransitionName:(0,lt.m)(Ni,"",tn),transitionName:(0,lt.m)(Ni,"slide-up",Ut),getPopupContainer:On||qn,ref:ni}));return fr(Qi(Pa))}),si=(0,Dt.Z)(Le);Le.SHOW_PARENT=mi,Le.SHOW_CHILD=Pi,Le._InternalPanelDoNotUseOrYouWillBeFired=si;var Hi=Le},24905:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Ie}});var ce=ve(92310),De=ve.n(ce),_e=ve(5630),Ct=ve(59301),Ze=ve(36355),Ke=ve(1684),Be=ve(32441),ct=Ct.createContext(null),He=ve(98447),Et=ve(14088),ht=ve(4572),dt=function(ze,et){var $e={};for(var gt in ze)Object.prototype.hasOwnProperty.call(ze,gt)&&et.indexOf(gt)<0&&($e[gt]=ze[gt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,gt=Object.getOwnPropertySymbols(ze);je{var $e;const{prefixCls:gt,className:je,rootClassName:Tt,children:Qe,indeterminate:bt=!1,style:Nt,onMouseEnter:At,onMouseLeave:Zt,skipGroup:Yt=!1,disabled:ut}=ze,Ge=dt(ze,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:kt,direction:ln,checkbox:sn}=Ct.useContext(Ze.E_),Bt=Ct.useContext(ct),{isFormItemInput:Gt}=Ct.useContext(Be.aM),en=Ct.useContext(Ke.Z),Bn=($e=(Bt==null?void 0:Bt.disabled)||ut)!==null&&$e!==void 0?$e:en,rn=Ct.useRef(Ge.value);Ct.useEffect(()=>{Bt==null||Bt.registerValue(Ge.value)},[]),Ct.useEffect(()=>{if(!Yt)return Ge.value!==rn.current&&(Bt==null||Bt.cancelValue(rn.current),Bt==null||Bt.registerValue(Ge.value),rn.current=Ge.value),()=>Bt==null?void 0:Bt.cancelValue(Ge.value)},[Ge.value]);const Cn=kt("checkbox",gt),[ft,En]=(0,He.ZP)(Cn),Vn=Object.assign({},Ge);Bt&&!Yt&&(Vn.onChange=function(){Ge.onChange&&Ge.onChange.apply(Ge,arguments),Bt.toggleOption&&Bt.toggleOption({label:Qe,value:Ge.value})},Vn.name=Bt.name,Vn.checked=Bt.value.includes(Ge.value));const Re=De()(`${Cn}-wrapper`,{[`${Cn}-rtl`]:ln==="rtl",[`${Cn}-wrapper-checked`]:Vn.checked,[`${Cn}-wrapper-disabled`]:Bn,[`${Cn}-wrapper-in-form-item`]:Gt},sn==null?void 0:sn.className,je,Tt,En),Ce=De()({[`${Cn}-indeterminate`]:bt},ht.A,En),Pe=bt?"mixed":void 0;return ft(Ct.createElement(Et.Z,{component:"Checkbox",disabled:Bn},Ct.createElement("label",{className:Re,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Nt),onMouseEnter:At,onMouseLeave:Zt},Ct.createElement(_e.Z,Object.assign({"aria-checked":Pe},Vn,{prefixCls:Cn,className:Ce,disabled:Bn,ref:et})),Qe!==void 0&&Ct.createElement("span",null,Qe))))};var ee=Ct.forwardRef(Ae),he=ve(19127),se=ve(2738),de=function(ze,et){var $e={};for(var gt in ze)Object.prototype.hasOwnProperty.call(ze,gt)&&et.indexOf(gt)<0&&($e[gt]=ze[gt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,gt=Object.getOwnPropertySymbols(ze);je{const{defaultValue:$e,children:gt,options:je=[],prefixCls:Tt,className:Qe,rootClassName:bt,style:Nt,onChange:At}=ze,Zt=de(ze,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Yt,direction:ut}=Ct.useContext(Ze.E_),[Ge,kt]=Ct.useState(Zt.value||$e||[]),[ln,sn]=Ct.useState([]);Ct.useEffect(()=>{"value"in Zt&&kt(Zt.value||[])},[Zt.value]);const Bt=Ct.useMemo(()=>je.map(Ne=>typeof Ne=="string"||typeof Ne=="number"?{label:Ne,value:Ne}:Ne),[je]),Gt=Ne=>{sn(ke=>ke.filter(Se=>Se!==Ne))},en=Ne=>{sn(ke=>[].concat((0,he.Z)(ke),[Ne]))},Bn=Ne=>{const ke=Ge.indexOf(Ne.value),Se=(0,he.Z)(Ge);ke===-1?Se.push(Ne.value):Se.splice(ke,1),"value"in Zt||kt(Se),At==null||At(Se.filter(nt=>ln.includes(nt)).sort((nt,Pt)=>{const qe=Bt.findIndex(St=>St.value===nt),Ue=Bt.findIndex(St=>St.value===Pt);return qe-Ue}))},rn=Yt("checkbox",Tt),Cn=`${rn}-group`,[ft,En]=(0,He.ZP)(rn),Vn=(0,se.Z)(Zt,["value","disabled"]),Re=je.length?Bt.map(Ne=>Ct.createElement(ee,{prefixCls:rn,key:Ne.value.toString(),disabled:"disabled"in Ne?Ne.disabled:Zt.disabled,value:Ne.value,checked:Ge.includes(Ne.value),onChange:Ne.onChange,className:`${Cn}-item`,style:Ne.style,title:Ne.title},Ne.label)):gt,Ce={toggleOption:Bn,value:Ge,disabled:Zt.disabled,name:Zt.name,registerValue:en,cancelValue:Gt},Pe=De()(Cn,{[`${Cn}-rtl`]:ut==="rtl"},Qe,bt,En);return ft(Ct.createElement("div",Object.assign({className:Pe,style:Nt},Vn,{ref:et}),Ct.createElement(ct.Provider,{value:Ce},Re)))},we=Ct.forwardRef(me);var be=Ct.memo(we);const Me=ee;Me.Group=be,Me.__ANT_CHECKBOX=!0;var Ie=Me},98447:function(Pn,an,ve){"use strict";ve.d(an,{C2:function(){return Ze}});var ce=ve(17313),De=ve(37613),_e=ve(83116);const Ct=Ke=>{const{checkboxCls:Be}=Ke,mt=`${Be}-wrapper`;return[{[`${Be}-group`]:Object.assign(Object.assign({},(0,ce.Wf)(Ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ke.marginXS,[`> ${Ke.antCls}-row`]:{flex:1}}),[mt]:Object.assign(Object.assign({},(0,ce.Wf)(Ke)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${mt}`]:{marginInlineStart:0},[`&${mt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Be]:Object.assign(Object.assign({},(0,ce.Wf)(Ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ke.borderRadiusSM,alignSelf:"center",[`${Be}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Be}-inner`]:Object.assign({},(0,ce.oN)(Ke))},[`${Be}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ke.checkboxSize,height:Ke.checkboxSize,direction:"ltr",backgroundColor:Ke.colorBgContainer,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,borderRadius:Ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ke.checkboxSize/14*5,height:Ke.checkboxSize/14*8,border:`${Ke.lineWidthBold}px solid ${Ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ke.motionDurationFast} ${Ke.motionEaseInBack}, opacity ${Ke.motionDurationFast}`}},"& + span":{paddingInlineStart:Ke.paddingXS,paddingInlineEnd:Ke.paddingXS}})},{[` ${mt}:not(${mt}-disabled), ${Be}:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{borderColor:Ke.colorPrimary}},[`${mt}:not(${mt}-disabled)`]:{[`&:hover ${Be}-checked:not(${Be}-disabled) ${Be}-inner`]:{backgroundColor:Ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Be}-checked:not(${Be}-disabled):after`]:{borderColor:Ke.colorPrimaryHover}}},{[`${Be}-checked`]:{[`${Be}-inner`]:{backgroundColor:Ke.colorPrimary,borderColor:Ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ke.motionDurationMid} ${Ke.motionEaseOutBack} ${Ke.motionDurationFast}`}}},[` ${mt}-checked:not(${mt}-disabled), ${Be}-checked:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{backgroundColor:Ke.colorPrimaryHover,borderColor:"transparent"}}},{[Be]:{"&-indeterminate":{[`${Be}-inner`]:{backgroundColor:Ke.colorBgContainer,borderColor:Ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ke.fontSizeLG/2,height:Ke.fontSizeLG/2,backgroundColor:Ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${mt}-disabled`]:{cursor:"not-allowed"},[`${Be}-disabled`]:{[`&, ${Be}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Be}-inner`]:{background:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,"&:after":{borderColor:Ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ke.colorTextDisabled},[`&${Be}-indeterminate ${Be}-inner::after`]:{background:Ke.colorTextDisabled}}}]};function Ze(Ke,Be){const mt=(0,De.TS)(Be,{checkboxCls:`.${Ke}`,checkboxSize:Be.controlInteractiveSize});return[Ct(mt)]}an.ZP=(0,_e.Z)("Checkbox",(Ke,Be)=>{let{prefixCls:mt}=Be;return[Ze(mt,Ke)]})},36381:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Vn}});var ce=ve(38819),De=ve(92310),_e=ve.n(De),Ct=ve(96663),Ze=ve(19127),Ke=ve(72071),Be=ve(20135),mt=ve(18929),ct=ve(48736),He=ve(59301),Et=ve(6620),ht=ve(11592),dt=ve(90493),Ae=ve(77900),te=ve(10228),ee=He.forwardRef(function(Re,Ce){var Pe=Re.prefixCls,Ne=Re.forceRender,ke=Re.className,Se=Re.style,nt=Re.children,Pt=Re.isActive,qe=Re.role,Ue=He.useState(Pt||Ne),St=(0,Ke.Z)(Ue,2),vt=St[0],lt=St[1];return He.useEffect(function(){(Ne||Pt)&<(!0)},[Ne,Pt]),vt?He.createElement("div",{ref:Ce,className:_e()("".concat(Pe,"-content"),(0,dt.Z)((0,dt.Z)({},"".concat(Pe,"-content-active"),Pt),"".concat(Pe,"-content-inactive"),!Pt),ke),style:Se,role:qe},He.createElement("div",{className:"".concat(Pe,"-content-box")},nt)):null});ee.displayName="PanelContent";var he=ee,se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],de=He.forwardRef(function(Re,Ce){var Pe=Re.showArrow,Ne=Pe===void 0?!0:Pe,ke=Re.headerClass,Se=Re.isActive,nt=Re.onItemClick,Pt=Re.forceRender,qe=Re.className,Ue=Re.prefixCls,St=Re.collapsible,vt=Re.accordion,lt=Re.panelKey,Dt=Re.extra,un=Re.header,Xt=Re.expandIcon,$t=Re.openMotion,wn=Re.destroyInactivePanel,bn=Re.children,pn=(0,Et.Z)(Re,se),Yn=St==="disabled",ai=St==="header",Wn=St==="icon",Rn=Dt!=null&&typeof Dt!="boolean",ii=function(){nt==null||nt(lt)},pi=function(ti){(ti.key==="Enter"||ti.keyCode===te.Z.ENTER||ti.which===te.Z.ENTER)&&ii()},gi=typeof Xt=="function"?Xt(Re):He.createElement("i",{className:"arrow"});gi&&(gi=He.createElement("div",{className:"".concat(Ue,"-expand-icon"),onClick:["header","icon"].includes(St)?ii:void 0},gi));var Ri=_e()((0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(Ue,"-item"),!0),"".concat(Ue,"-item-active"),Se),"".concat(Ue,"-item-disabled"),Yn),qe),Ji=_e()(ke,(0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(Ue,"-header"),!0),"".concat(Ue,"-header-collapsible-only"),ai),"".concat(Ue,"-icon-collapsible-only"),Wn)),Un={className:Ji,"aria-expanded":Se,"aria-disabled":Yn,onKeyDown:pi};return!ai&&!Wn&&(Un.onClick=ii,Un.role=vt?"tab":"button",Un.tabIndex=Yn?-1:0),He.createElement("div",(0,Ct.Z)({},pn,{ref:Ce,className:Ri}),He.createElement("div",Un,Ne&&gi,He.createElement("span",{className:"".concat(Ue,"-header-text"),onClick:St==="header"?ii:void 0},un),Rn&&He.createElement("div",{className:"".concat(Ue,"-extra")},Dt)),He.createElement(Ae.default,(0,Ct.Z)({visible:Se,leavedClassName:"".concat(Ue,"-content-hidden")},$t,{forceRender:Pt,removeOnLeave:wn}),function($n,ti){var Pi=$n.className,mi=$n.style;return He.createElement(he,{ref:ti,prefixCls:Ue,className:Pi,style:mi,isActive:Se,forceRender:Pt,role:vt?"tabpanel":void 0},bn)}))}),me=de,we=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],be=function(Ce,Pe){var Ne=Pe.prefixCls,ke=Pe.accordion,Se=Pe.collapsible,nt=Pe.destroyInactivePanel,Pt=Pe.onItemClick,qe=Pe.activeKey,Ue=Pe.openMotion,St=Pe.expandIcon;return Ce.map(function(vt,lt){var Dt=vt.children,un=vt.label,Xt=vt.key,$t=vt.collapsible,wn=vt.onItemClick,bn=vt.destroyInactivePanel,pn=(0,Et.Z)(vt,we),Yn=String(Xt!=null?Xt:lt),ai=$t!=null?$t:Se,Wn=bn!=null?bn:nt,Rn=function(gi){ai!=="disabled"&&(Pt(gi),wn==null||wn(gi))},ii=!1;return ke?ii=qe[0]===Yn:ii=qe.indexOf(Yn)>-1,He.createElement(me,(0,Ct.Z)({},pn,{prefixCls:Ne,key:Yn,panelKey:Yn,isActive:ii,accordion:ke,openMotion:Ue,expandIcon:St,header:un,collapsible:ai,onItemClick:Rn,destroyInactivePanel:Wn}),Dt)})},Me=function(Ce,Pe,Ne){if(!Ce)return null;var ke=Ne.prefixCls,Se=Ne.accordion,nt=Ne.collapsible,Pt=Ne.destroyInactivePanel,qe=Ne.onItemClick,Ue=Ne.activeKey,St=Ne.openMotion,vt=Ne.expandIcon,lt=Ce.key||String(Pe),Dt=Ce.props,un=Dt.header,Xt=Dt.headerClass,$t=Dt.destroyInactivePanel,wn=Dt.collapsible,bn=Dt.onItemClick,pn=!1;Se?pn=Ue[0]===lt:pn=Ue.indexOf(lt)>-1;var Yn=wn!=null?wn:nt,ai=function(ii){Yn!=="disabled"&&(qe(ii),bn==null||bn(ii))},Wn={key:lt,panelKey:lt,header:un,headerClass:Xt,isActive:pn,prefixCls:ke,destroyInactivePanel:$t!=null?$t:Pt,openMotion:St,accordion:Se,children:Ce.props.children,onItemClick:ai,expandIcon:vt,collapsible:Yn};return typeof Ce.type=="string"?Ce:(Object.keys(Wn).forEach(function(Rn){typeof Wn[Rn]=="undefined"&&delete Wn[Rn]}),He.cloneElement(Ce,Wn))};function Ie(Re,Ce,Pe){return Array.isArray(Re)?be(Re,Pe):(0,ht.Z)(Ce).map(function(Ne,ke){return Me(Ne,ke,Pe)})}var ze=Ie,et=ve(26112);function $e(Re){var Ce=Re;if(!Array.isArray(Ce)){var Pe=(0,Be.Z)(Ce);Ce=Pe==="number"||Pe==="string"?[Ce]:[]}return Ce.map(function(Ne){return String(Ne)})}var gt=He.forwardRef(function(Re,Ce){var Pe=Re.prefixCls,Ne=Pe===void 0?"rc-collapse":Pe,ke=Re.destroyInactivePanel,Se=ke===void 0?!1:ke,nt=Re.style,Pt=Re.accordion,qe=Re.className,Ue=Re.children,St=Re.collapsible,vt=Re.openMotion,lt=Re.expandIcon,Dt=Re.activeKey,un=Re.defaultActiveKey,Xt=Re.onChange,$t=Re.items,wn=_e()(Ne,qe),bn=(0,mt.Z)([],{value:Dt,onChange:function(pi){return Xt==null?void 0:Xt(pi)},defaultValue:un,postState:$e}),pn=(0,Ke.Z)(bn,2),Yn=pn[0],ai=pn[1],Wn=function(pi){return ai(function(){if(Pt)return Yn[0]===pi?[]:[pi];var gi=Yn.indexOf(pi),Ri=gi>-1;return Ri?Yn.filter(function(Ji){return Ji!==pi}):[].concat((0,Ze.Z)(Yn),[pi])})};(0,ct.ZP)(!Ue,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Rn=ze($t,Ue,{prefixCls:Ne,accordion:Pt,openMotion:vt,expandIcon:lt,collapsible:St,destroyInactivePanel:Se,onItemClick:Wn,activeKey:Yn});return He.createElement("div",(0,Ct.Z)({ref:Ce,className:wn,style:nt,role:Pt?"tablist":void 0},(0,et.Z)(Re,{aria:!0,data:!0})),Rn)}),je=Object.assign(gt,{Panel:me}),Tt=je,Qe=je.Panel,bt=ve(2738),Nt=ve(62892),At=ve(92343),Zt=ve(36355),Yt=ve(19716),Ge=He.forwardRef((Re,Ce)=>{const{getPrefixCls:Pe}=He.useContext(Zt.E_),{prefixCls:Ne,className:ke,showArrow:Se=!0}=Re,nt=Pe("collapse",Ne),Pt=_e()({[`${nt}-no-arrow`]:!Se},ke);return He.createElement(Tt.Panel,Object.assign({ref:Ce},Re,{prefixCls:nt,className:Pt}))}),kt=ve(17313),ln=ve(8378),sn=ve(83116),Bt=ve(37613);const Gt=Re=>{const{componentCls:Ce,contentBg:Pe,padding:Ne,headerBg:ke,headerPadding:Se,collapseHeaderPaddingSM:nt,collapseHeaderPaddingLG:Pt,collapsePanelBorderRadius:qe,lineWidth:Ue,lineType:St,colorBorder:vt,colorText:lt,colorTextHeading:Dt,colorTextDisabled:un,fontSize:Xt,fontSizeLG:$t,lineHeight:wn,marginSM:bn,paddingSM:pn,paddingLG:Yn,paddingXS:ai,motionDurationSlow:Wn,fontSizeIcon:Rn,contentPadding:ii}=Re,pi=`${Ue}px ${St} ${vt}`;return{[Ce]:Object.assign(Object.assign({},(0,kt.Wf)(Re)),{backgroundColor:ke,border:pi,borderBottom:0,borderRadius:`${qe}px`,"&-rtl":{direction:"rtl"},[`& > ${Ce}-item`]:{borderBottom:pi,"&:last-child":{[` &, & > ${Ce}-header`]:{borderRadius:`0 0 ${qe}px ${qe}px`}},[`> ${Ce}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Se,color:Dt,lineHeight:wn,cursor:"pointer",transition:`all ${Wn}, visibility 0s`,[`> ${Ce}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Ce}-expand-icon`]:{height:Xt*wn,display:"flex",alignItems:"center",paddingInlineEnd:bn},[`${Ce}-arrow`]:Object.assign(Object.assign({},(0,kt.Ro)()),{fontSize:Rn,svg:{transition:`transform ${Wn}`}}),[`${Ce}-header-text`]:{marginInlineEnd:"auto"}},[`${Ce}-header-collapsible-only`]:{cursor:"default",[`${Ce}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Ce}-icon-collapsible-only`]:{cursor:"default",[`${Ce}-expand-icon`]:{cursor:"pointer"}}},[`${Ce}-content`]:{color:lt,backgroundColor:Pe,borderTop:pi,[`& > ${Ce}-content-box`]:{padding:ii},"&-hidden":{display:"none"}},"&-small":{[`> ${Ce}-item`]:{[`> ${Ce}-header`]:{padding:nt,paddingInlineStart:ai,[`> ${Ce}-expand-icon`]:{marginInlineStart:pn-ai}},[`> ${Ce}-content > ${Ce}-content-box`]:{padding:pn}}},"&-large":{[`> ${Ce}-item`]:{fontSize:$t,[`> ${Ce}-header`]:{padding:Pt,paddingInlineStart:Ne,[`> ${Ce}-expand-icon`]:{height:$t*wn,marginInlineStart:Yn-Ne}},[`> ${Ce}-content > ${Ce}-content-box`]:{padding:Yn}}},[`${Ce}-item:last-child`]:{[`> ${Ce}-content`]:{borderRadius:`0 0 ${qe}px ${qe}px`}},[`& ${Ce}-item-disabled > ${Ce}-header`]:{"\n &,\n & > .arrow\n ":{color:un,cursor:"not-allowed"}},[`&${Ce}-icon-position-end`]:{[`& > ${Ce}-item`]:{[`> ${Ce}-header`]:{[`${Ce}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:bn}}}}})}},en=Re=>{const{componentCls:Ce}=Re,Pe=`> ${Ce}-item > ${Ce}-header ${Ce}-arrow svg`;return{[`${Ce}-rtl`]:{[Pe]:{transform:"rotate(180deg)"}}}},Bn=Re=>{const{componentCls:Ce,headerBg:Pe,paddingXXS:Ne,colorBorder:ke}=Re;return{[`${Ce}-borderless`]:{backgroundColor:Pe,border:0,[`> ${Ce}-item`]:{borderBottom:`1px solid ${ke}`},[` > ${Ce}-item:last-child, > ${Ce}-item:last-child ${Ce}-header `]:{borderRadius:0},[`> ${Ce}-item:last-child`]:{borderBottom:0},[`> ${Ce}-item > ${Ce}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Ce}-item > ${Ce}-content > ${Ce}-content-box`]:{paddingTop:Ne}}}},rn=Re=>{const{componentCls:Ce,paddingSM:Pe}=Re;return{[`${Ce}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Ce}-item`]:{borderBottom:0,[`> ${Ce}-content`]:{backgroundColor:"transparent",border:0,[`> ${Ce}-content-box`]:{paddingBlock:Pe}}}}}};var Cn=(0,sn.Z)("Collapse",Re=>{const Ce=(0,Bt.TS)(Re,{collapseHeaderPaddingSM:`${Re.paddingXS}px ${Re.paddingSM}px`,collapseHeaderPaddingLG:`${Re.padding}px ${Re.paddingLG}px`,collapsePanelBorderRadius:Re.borderRadiusLG});return[Gt(Ce),Bn(Ce),rn(Ce),en(Ce),(0,ln.Z)(Ce)]},Re=>({headerPadding:`${Re.paddingSM}px ${Re.padding}px`,headerBg:Re.colorFillAlter,contentPadding:`${Re.padding}px 16px`,contentBg:Re.colorBgContainer})),En=Object.assign(He.forwardRef((Re,Ce)=>{const{getPrefixCls:Pe,direction:Ne,collapse:ke}=He.useContext(Zt.E_),{prefixCls:Se,className:nt,rootClassName:Pt,style:qe,bordered:Ue=!0,ghost:St,size:vt,expandIconPosition:lt="start",children:Dt,expandIcon:un}=Re,Xt=(0,Yt.Z)(pi=>{var gi;return(gi=vt!=null?vt:pi)!==null&&gi!==void 0?gi:"middle"}),$t=Pe("collapse",Se),wn=Pe(),[bn,pn]=Cn($t),Yn=He.useMemo(()=>lt==="left"?"start":lt==="right"?"end":lt,[lt]),ai=function(){let pi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const gi=un?un(pi):He.createElement(ce.Z,{rotate:pi.isActive?90:void 0});return(0,At.Tm)(gi,()=>({className:_e()(gi.props.className,`${$t}-arrow`)}))},Wn=_e()(`${$t}-icon-position-${Yn}`,{[`${$t}-borderless`]:!Ue,[`${$t}-rtl`]:Ne==="rtl",[`${$t}-ghost`]:!!St,[`${$t}-${Xt}`]:Xt!=="middle"},ke==null?void 0:ke.className,nt,Pt,pn),Rn=Object.assign(Object.assign({},(0,Nt.Z)(wn)),{motionAppear:!1,leavedClassName:`${$t}-content-hidden`}),ii=He.useMemo(()=>Dt?(0,ht.Z)(Dt).map((pi,gi)=>{var Ri,Ji;if(!((Ri=pi.props)===null||Ri===void 0)&&Ri.disabled){const Un=(Ji=pi.key)!==null&&Ji!==void 0?Ji:String(gi),{disabled:$n,collapsible:ti}=pi.props,Pi=Object.assign(Object.assign({},(0,bt.Z)(pi.props,["disabled"])),{key:Un,collapsible:ti!=null?ti:$n?"disabled":void 0});return(0,At.Tm)(pi,Pi)}return pi}):null,[Dt]);return bn(He.createElement(Tt,Object.assign({ref:Ce,openMotion:Rn},(0,bt.Z)(Re,["rootClassName"]),{expandIcon:ai,prefixCls:$t,className:Wn,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),qe)}),ii))}),{Panel:Ge}),Vn=En},93891:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(36355),_e=ve(64165);const Ct=Ze=>{const{componentName:Ke}=Ze,{getPrefixCls:Be}=(0,ce.useContext)(De.E_),mt=Be("empty");switch(Ke){case"Table":case"List":return ce.createElement(_e.Z,{image:_e.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(_e.Z,{image:_e.Z.PRESENTED_IMAGE_SIMPLE,className:`${mt}-small`});default:return ce.createElement(_e.Z,null)}};an.Z=Ct},28103:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ht}});var ce=ve(92310),De=ve.n(ce),_e=ve(59301),Ct=ve(36355),Ze=ve(17313),Ke=ve(83116),Be=ve(37613);const mt=dt=>{const{componentCls:Ae,sizePaddingEdgeHorizontal:te,colorSplit:ee,lineWidth:he,textPaddingInline:se,orientationMargin:de,verticalMarginInline:me}=dt;return{[Ae]:Object.assign(Object.assign({},(0,Ze.Wf)(dt)),{borderBlockStart:`${he}px solid ${ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:me,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${he}px solid ${ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${dt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${dt.dividerHorizontalWithTextGutterMargin}px 0`,color:dt.colorTextHeading,fontWeight:500,fontSize:dt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${he}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ae}-with-text-left`]:{"&::before":{width:`${de*100}%`},"&::after":{width:`${100-de*100}%`}},[`&-horizontal${Ae}-with-text-right`]:{"&::before":{width:`${100-de*100}%`},"&::after":{width:`${de*100}%`}},[`${Ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:se},"&-dashed":{background:"none",borderColor:ee,borderStyle:"dashed",borderWidth:`${he}px 0 0`},[`&-horizontal${Ae}-with-text${Ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ae}-dashed`]:{borderInlineStartWidth:he,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ae}-with-text`]:{color:dt.colorText,fontWeight:"normal",fontSize:dt.fontSize},[`&-horizontal${Ae}-with-text-left${Ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ae}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Ae}-with-text-right${Ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ae}-inner-text`]:{paddingInlineEnd:te}}})}};var ct=(0,Ke.Z)("Divider",dt=>{const Ae=(0,Be.TS)(dt,{dividerHorizontalWithTextGutterMargin:dt.margin,dividerHorizontalGutterMargin:dt.marginLG,sizePaddingEdgeHorizontal:0});return[mt(Ae)]},dt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:dt.marginXS})),He=function(dt,Ae){var te={};for(var ee in dt)Object.prototype.hasOwnProperty.call(dt,ee)&&Ae.indexOf(ee)<0&&(te[ee]=dt[ee]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ee=Object.getOwnPropertySymbols(dt);he{const{getPrefixCls:Ae,direction:te,divider:ee}=_e.useContext(Ct.E_),{prefixCls:he,type:se="horizontal",orientation:de="center",orientationMargin:me,className:we,rootClassName:be,children:Me,dashed:Ie,plain:ze,style:et}=dt,$e=He(dt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),gt=Ae("divider",he),[je,Tt]=ct(gt),Qe=de.length>0?`-${de}`:de,bt=!!Me,Nt=de==="left"&&me!=null,At=de==="right"&&me!=null,Zt=De()(gt,ee==null?void 0:ee.className,Tt,`${gt}-${se}`,{[`${gt}-with-text`]:bt,[`${gt}-with-text${Qe}`]:bt,[`${gt}-dashed`]:!!Ie,[`${gt}-plain`]:!!ze,[`${gt}-rtl`]:te==="rtl",[`${gt}-no-default-orientation-margin-left`]:Nt,[`${gt}-no-default-orientation-margin-right`]:At},we,be),Yt=_e.useMemo(()=>typeof me=="number"?me:/^\d+$/.test(me)?Number(me):me,[me]),ut=Object.assign(Object.assign({},Nt&&{marginLeft:Yt}),At&&{marginRight:Yt});return je(_e.createElement("div",Object.assign({className:Zt,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),et)},$e,{role:"separator"}),Me&&se!=="vertical"&&_e.createElement("span",{className:`${gt}-inner-text`,style:ut},Me)))}},91857:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(38819),_e=ve(92310),Ct=ve.n(_e),Ze=ve(31561),Ke=ve(70425),Be=ve(18929),mt=ve(2738),ct=ve(79676),He=ve(53487),Et=ve(92343),ht=ve(36355),dt=ve(20834),Ae=ve(40875),te=ve(88088),ee=ve(47211);const he=null,se=be=>{const{menu:Me,arrow:Ie,prefixCls:ze,children:et,trigger:$e,disabled:gt,dropdownRender:je,getPopupContainer:Tt,overlayClassName:Qe,rootClassName:bt,open:Nt,onOpenChange:At,visible:Zt,onVisibleChange:Yt,mouseEnterDelay:ut=.15,mouseLeaveDelay:Ge=.1,autoAdjustOverflow:kt=!0,placement:ln="",overlay:sn,transitionName:Bt}=be,{getPopupContainer:Gt,getPrefixCls:en,direction:Bn}=ce.useContext(ht.E_),rn=ce.useMemo(()=>{const lt=en();return Bt!==void 0?Bt:ln.includes("top")?`${lt}-slide-down`:`${lt}-slide-up`},[en,ln,Bt]),Cn=ce.useMemo(()=>ln?ln.includes("Center")?ln.slice(0,ln.indexOf("Center")):ln:Bn==="rtl"?"bottomRight":"bottomLeft",[ln,Bn]),ft=en("dropdown",ze),[En,Vn]=(0,ee.Z)(ft),[,Re]=(0,te.Z)(),Ce=ce.Children.only(et),Pe=(0,Et.Tm)(Ce,{className:Ct()(`${ft}-trigger`,{[`${ft}-rtl`]:Bn==="rtl"},Ce.props.className),disabled:gt}),Ne=gt?[]:$e;let ke;Ne&&Ne.includes("contextMenu")&&(ke=!0);const[Se,nt]=(0,Be.Z)(!1,{value:Nt!=null?Nt:Zt}),Pt=(0,Ke.useEvent)(lt=>{At==null||At(lt),Yt==null||Yt(lt),nt(lt)}),qe=Ct()(Qe,bt,Vn,{[`${ft}-rtl`]:Bn==="rtl"}),Ue=(0,ct.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:kt,offset:Re.marginXXS,arrowWidth:Ie?Re.sizePopupArrow:0,borderRadius:Re.borderRadius}),St=ce.useCallback(()=>{nt(!1)},[]),vt=()=>{let lt;return Me!=null&&Me.items?lt=ce.createElement(dt.default,Object.assign({},Me)):typeof sn=="function"?lt=sn():lt=sn,je&&(lt=je(lt)),lt=ce.Children.only(typeof lt=="string"?ce.createElement("span",null,lt):lt),ce.createElement(Ae.J,{prefixCls:`${ft}-menu`,expandIcon:ce.createElement("span",{className:`${ft}-menu-submenu-arrow`},ce.createElement(De.Z,{className:`${ft}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:St,validator:Dt=>{let{mode:un}=Dt}},lt)};return En(ce.createElement(Ze.Z,Object.assign({alignPoint:ke},(0,mt.Z)(be,["rootClassName"]),{mouseEnterDelay:ut,mouseLeaveDelay:Ge,visible:Se,builtinPlacements:Ue,arrow:!!Ie,overlayClassName:qe,prefixCls:ft,getPopupContainer:Tt||Gt,transitionName:rn,trigger:Ne,overlay:vt,placement:Cn,onVisibleChange:Pt}),Pe))};function de(be){return Object.assign(Object.assign({},be),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const me=(0,He.Z)(se,"dropdown",be=>be,de),we=be=>ce.createElement(me,Object.assign({},be),ce.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=we,an.Z=se},38854:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return te}});var ce=ve(91857),De=ve(92310),_e=ve.n(De),Ct=ve(59301),Ze=ve(18785),Ke=ve(3113),Be=ve(36355),mt=ve(81327),ct=ve(33234),He=ve(47211),Et=function(ee,he){var se={};for(var de in ee)Object.prototype.hasOwnProperty.call(ee,de)&&he.indexOf(de)<0&&(se[de]=ee[de]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,de=Object.getOwnPropertySymbols(ee);me{const{getPopupContainer:he,getPrefixCls:se,direction:de}=Ct.useContext(Be.E_),{prefixCls:me,type:we="default",danger:be,disabled:Me,loading:Ie,onClick:ze,htmlType:et,children:$e,className:gt,menu:je,arrow:Tt,autoFocus:Qe,overlay:bt,trigger:Nt,align:At,open:Zt,onOpenChange:Yt,placement:ut,getPopupContainer:Ge,href:kt,icon:ln=Ct.createElement(Ze.Z,null),title:sn,buttonsRender:Bt=vt=>vt,mouseEnterDelay:Gt,mouseLeaveDelay:en,overlayClassName:Bn,overlayStyle:rn,destroyPopupOnHide:Cn,dropdownRender:ft}=ee,En=Et(ee,["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"]),Vn=se("dropdown",me),Re=`${Vn}-button`,[Ce,Pe]=(0,He.Z)(Vn),Ne={menu:je,arrow:Tt,autoFocus:Qe,align:At,disabled:Me,trigger:Me?[]:Nt,onOpenChange:Yt,getPopupContainer:Ge||he,mouseEnterDelay:Gt,mouseLeaveDelay:en,overlayClassName:Bn,overlayStyle:rn,destroyPopupOnHide:Cn,dropdownRender:ft},{compactSize:ke,compactItemClassnames:Se}=(0,ct.ri)(Vn,de),nt=_e()(Re,Se,gt,Pe);"overlay"in ee&&(Ne.overlay=bt),"open"in ee&&(Ne.open=Zt),"placement"in ee?Ne.placement=ut:Ne.placement=de==="rtl"?"bottomLeft":"bottomRight";const Pt=Ct.createElement(Ke.ZP,{type:we,danger:be,disabled:Me,loading:Ie,onClick:ze,htmlType:et,href:kt,title:sn},$e),qe=Ct.createElement(Ke.ZP,{type:we,danger:be,icon:ln}),[Ue,St]=Bt([Pt,qe]);return Ce(Ct.createElement(mt.Z.Compact,Object.assign({className:nt,size:ke,block:!0},En),Ue,Ct.createElement(ce.Z,Object.assign({},Ne),St)))};ht.__ANT_BUTTON=!0;var dt=ht;const Ae=ce.Z;Ae.Button=dt;var te=Ae},47211:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Et}});var ce=ve(17313),De=ve(13826),_e=ve(92899),Ct=ve(29878),Ze=ve(19447),Ke=ve(83116),Be=ve(37613),ct=ht=>{const{componentCls:dt,menuCls:Ae,colorError:te,colorTextLightSolid:ee}=ht,he=`${Ae}-item`;return{[`${dt}, ${dt}-menu-submenu`]:{[`${Ae} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:te,"&:hover":{color:ee,backgroundColor:te}}}}}};const He=ht=>{const{componentCls:dt,menuCls:Ae,zIndexPopup:te,dropdownArrowDistance:ee,sizePopupArrow:he,antCls:se,iconCls:de,motionDurationMid:me,dropdownPaddingVertical:we,fontSize:be,dropdownEdgeChildPadding:Me,colorTextDisabled:Ie,fontSizeIcon:ze,controlPaddingHorizontal:et,colorBgElevated:$e}=ht;return[{[dt]:Object.assign(Object.assign({},(0,ce.Wf)(ht)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ee+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${de}-down, & > ${se}-btn-icon > ${de}-down`]:{fontSize:ze}},[`${dt}-wrap`]:{position:"relative",[`${se}-btn > ${de}-down`]:{fontSize:ze},[`${de}-down::before`]:{transition:`transform ${me}`}},[`${dt}-wrap-open`]:{[`${de}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${se}-slide-down-enter${se}-slide-down-enter-active${dt}-placement-bottomLeft, &${se}-slide-down-appear${se}-slide-down-appear-active${dt}-placement-bottomLeft, &${se}-slide-down-enter${se}-slide-down-enter-active${dt}-placement-bottom, &${se}-slide-down-appear${se}-slide-down-appear-active${dt}-placement-bottom, &${se}-slide-down-enter${se}-slide-down-enter-active${dt}-placement-bottomRight, &${se}-slide-down-appear${se}-slide-down-appear-active${dt}-placement-bottomRight`]:{animationName:De.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${dt}-placement-topLeft, &${se}-slide-up-appear${se}-slide-up-appear-active${dt}-placement-topLeft, &${se}-slide-up-enter${se}-slide-up-enter-active${dt}-placement-top, &${se}-slide-up-appear${se}-slide-up-appear-active${dt}-placement-top, &${se}-slide-up-enter${se}-slide-up-enter-active${dt}-placement-topRight, &${se}-slide-up-appear${se}-slide-up-appear-active${dt}-placement-topRight`]:{animationName:De.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${dt}-placement-bottomLeft, &${se}-slide-down-leave${se}-slide-down-leave-active${dt}-placement-bottom, &${se}-slide-down-leave${se}-slide-down-leave-active${dt}-placement-bottomRight`]:{animationName:De.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${dt}-placement-topLeft, &${se}-slide-up-leave${se}-slide-up-leave-active${dt}-placement-top, &${se}-slide-up-leave${se}-slide-up-leave-active${dt}-placement-topRight`]:{animationName:De.ly}})},(0,Ze.ZP)(ht,{colorBg:$e,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${dt} ${Ae}`]:{position:"relative",margin:0},[`${Ae}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${dt}, ${dt}-menu-submenu`]:{[Ae]:Object.assign(Object.assign({padding:Me,listStyleType:"none",backgroundColor:$e,backgroundClip:"padding-box",borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary},(0,ce.Qy)(ht)),{[`${Ae}-item-group-title`]:{padding:`${we}px ${et}px`,color:ht.colorTextDescription,transition:`all ${me}`},[`${Ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ae}-item-icon`]:{minWidth:be,marginInlineEnd:ht.marginXS,fontSize:ht.fontSizeSM},[`${Ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${me}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ae}-item, ${Ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${we}px ${et}px`,color:ht.colorText,fontWeight:"normal",fontSize:be,lineHeight:ht.lineHeight,cursor:"pointer",transition:`all ${me}`,borderRadius:ht.borderRadiusSM,"&:hover, &-active":{backgroundColor:ht.controlItemBgHover}},(0,ce.Qy)(ht)),{"&-selected":{color:ht.colorPrimary,backgroundColor:ht.controlItemBgActive,"&:hover, &-active":{backgroundColor:ht.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:$e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ht.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ht.colorSplit},[`${dt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ht.paddingXS,[`${dt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ht.colorTextDescription,fontSize:ze,fontStyle:"normal"}}}),[`${Ae}-item-group-list`]:{margin:`0 ${ht.marginXS}px`,padding:0,listStyle:"none"},[`${Ae}-submenu-title`]:{paddingInlineEnd:et+ht.fontSizeSM},[`${Ae}-submenu-vertical`]:{position:"relative"},[`${Ae}-submenu${Ae}-submenu-disabled ${dt}-menu-submenu-title`]:{[`&, ${dt}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:$e,cursor:"not-allowed"}},[`${Ae}-submenu-selected ${dt}-menu-submenu-title`]:{color:ht.colorPrimary}})}},[(0,De.oN)(ht,"slide-up"),(0,De.oN)(ht,"slide-down"),(0,_e.Fm)(ht,"move-up"),(0,_e.Fm)(ht,"move-down"),(0,Ct._y)(ht,"zoom-big")]]};var Et=(0,Ke.Z)("Dropdown",(ht,dt)=>{let{rootPrefixCls:Ae}=dt;const{marginXXS:te,sizePopupArrow:ee,controlHeight:he,fontSize:se,lineHeight:de,paddingXXS:me,componentCls:we,borderRadiusLG:be}=ht,Me=(he-se*de)/2,{dropdownArrowOffset:Ie}=(0,Ze.fS)({contentRadius:be}),ze=(0,Be.TS)(ht,{menuCls:`${we}-menu`,rootPrefixCls:Ae,dropdownArrowDistance:ee/2+te,dropdownArrowOffset:Ie,dropdownPaddingVertical:Me,dropdownEdgeChildPadding:me});return[He(ze),ct(ze)]},ht=>({zIndexPopup:ht.zIndexPopupBase+50}))},64165:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return me}});var ce=ve(92310),De=ve.n(ce),_e=ve(59301),Ct=ve(36355),Ze=ve(9763),Ke=ve(64993),Be=ve(88088),ct=()=>{const[,we]=(0,Be.Z)(),Me=new Ke.C(we.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return _e.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",{fill:"none",fillRule:"evenodd"},_e.createElement("g",{transform:"translate(24 31.67)"},_e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),_e.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"}),_e.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)"}),_e.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"}),_e.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"})),_e.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"}),_e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},_e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),_e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Et=()=>{const[,we]=(0,Be.Z)(),{colorFill:be,colorFillTertiary:Me,colorFillQuaternary:Ie,colorBgContainer:ze}=we,{borderColor:et,shadowColor:$e,contentColor:gt}=(0,_e.useMemo)(()=>({borderColor:new Ke.C(be).onBackground(ze).toHexShortString(),shadowColor:new Ke.C(Me).onBackground(ze).toHexShortString(),contentColor:new Ke.C(Ie).onBackground(ze).toHexShortString()}),[be,Me,Ie,ze]);return _e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},_e.createElement("ellipse",{fill:$e,cx:"32",cy:"33",rx:"32",ry:"7"}),_e.createElement("g",{fillRule:"nonzero",stroke:et},_e.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"}),_e.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:gt}))))},ht=ve(83116),dt=ve(37613);const Ae=we=>{const{componentCls:be,margin:Me,marginXS:Ie,marginXL:ze,fontSize:et,lineHeight:$e}=we;return{[be]:{marginInline:Ie,fontSize:et,lineHeight:$e,textAlign:"center",[`${be}-image`]:{height:we.emptyImgHeight,marginBottom:Ie,opacity:we.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${be}-description`]:{color:we.colorText},[`${be}-footer`]:{marginTop:Me},"&-normal":{marginBlock:ze,color:we.colorTextDisabled,[`${be}-description`]:{color:we.colorTextDisabled},[`${be}-image`]:{height:we.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:we.colorTextDisabled,[`${be}-image`]:{height:we.emptyImgHeightSM}}}}};var te=(0,ht.Z)("Empty",we=>{const{componentCls:be,controlHeightLG:Me}=we,Ie=(0,dt.TS)(we,{emptyImgCls:`${be}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[Ae(Ie)]}),ee=function(we,be){var Me={};for(var Ie in we)Object.prototype.hasOwnProperty.call(we,Ie)&&be.indexOf(Ie)<0&&(Me[Ie]=we[Ie]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ie=Object.getOwnPropertySymbols(we);ze{var{className:be,rootClassName:Me,prefixCls:Ie,image:ze=he,description:et,children:$e,imageStyle:gt,style:je}=we,Tt=ee(we,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Qe,direction:bt,empty:Nt}=_e.useContext(Ct.E_),At=Qe("empty",Ie),[Zt,Yt]=te(At),[ut]=(0,Ze.Z)("Empty"),Ge=typeof et!="undefined"?et:ut==null?void 0:ut.description,kt=typeof Ge=="string"?Ge:"empty";let ln=null;return typeof ze=="string"?ln=_e.createElement("img",{alt:kt,src:ze}):ln=ze,Zt(_e.createElement("div",Object.assign({className:De()(Yt,At,Nt==null?void 0:Nt.className,{[`${At}-normal`]:ze===se,[`${At}-rtl`]:bt==="rtl"},be,Me),style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),je)},Tt),_e.createElement("div",{className:`${At}-image`,style:gt},ln),Ge&&_e.createElement("div",{className:`${At}-description`},Ge),$e&&_e.createElement("div",{className:`${At}-footer`},$e)))};de.PRESENTED_IMAGE_DEFAULT=he,de.PRESENTED_IMAGE_SIMPLE=se;var me=de},78241:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Ot}});var ce=ve(19127),De=ve(92310),_e=ve.n(De),Ct=ve(77900),Ze=ve(59301),Ke=ve(62892),Be=ve(32441);function mt(Ve){const[Ut,tn]=Ze.useState(Ve);return Ze.useEffect(()=>{const xt=setTimeout(()=>{tn(Ve)},Ve.length?0:10);return()=>{clearTimeout(xt)}},[Ve]),Ut}var ct=ve(17313),He=ve(29878),Et=ve(8378),ht=ve(37613),dt=ve(83116),te=Ve=>{const{componentCls:Ut}=Ve,tn=`${Ut}-show-help`,xt=`${Ut}-show-help-item`;return{[tn]:{transition:`opacity ${Ve.motionDurationSlow} ${Ve.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${Ve.motionDurationSlow} ${Ve.motionEaseInOut}, opacity ${Ve.motionDurationSlow} ${Ve.motionEaseInOut}, transform ${Ve.motionDurationSlow} ${Ve.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Ve=>({legend:{display:"block",width:"100%",marginBottom:Ve.marginLG,padding:0,color:Ve.colorTextDescription,fontSize:Ve.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`},label:{fontSize:Ve.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ve.controlOutlineWidth}px ${Ve.controlOutline}`},output:{display:"block",paddingTop:15,color:Ve.colorText,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight}}),he=(Ve,Ut)=>{const{formItemCls:tn}=Ve;return{[tn]:{[`${tn}-label > label`]:{height:Ut},[`${tn}-control-input`]:{minHeight:Ut}}}},se=Ve=>{const{componentCls:Ut}=Ve;return{[Ve.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(Ve)),ee(Ve)),{[`${Ut}-text`]:{display:"inline-block",paddingInlineEnd:Ve.paddingSM},"&-small":Object.assign({},he(Ve,Ve.controlHeightSM)),"&-large":Object.assign({},he(Ve,Ve.controlHeightLG))})}},de=Ve=>{const{formItemCls:Ut,iconCls:tn,componentCls:xt,rootPrefixCls:rt,labelRequiredMarkColor:Vt,labelColor:on,labelFontSize:xn,labelHeight:An,labelColonMarginInlineStart:yt,labelColonMarginInlineEnd:cn,itemMarginBottom:On}=Ve;return{[Ut]:Object.assign(Object.assign({},(0,ct.Wf)(Ve)),{marginBottom:On,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${rt}-row`]:{display:"none"},"&-has-warning":{[`${Ut}-split`]:{color:Ve.colorError}},"&-has-error":{[`${Ut}-split`]:{color:Ve.colorWarning}},[`${Ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ve.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:An,color:on,fontSize:xn,[`> ${tn}`]:{fontSize:Ve.fontSize,verticalAlign:"top"},[`&${Ut}-required:not(${Ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ve.marginXXS,color:Vt,fontSize:Ve.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${xt}-hide-required-mark &`]:{display:"none"}},[`${Ut}-optional`]:{display:"inline-block",marginInlineStart:Ve.marginXXS,color:Ve.colorTextDescription,[`${xt}-hide-required-mark &`]:{display:"none"}},[`${Ut}-tooltip`]:{color:Ve.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ve.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:yt,marginInlineEnd:cn},[`&${Ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ut}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${rt}-col-'"]):not([class*="' ${rt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ve.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ut]:{"&-explain, &-extra":{clear:"both",color:Ve.colorTextDescription,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ve.controlHeightSM,transition:`color ${Ve.motionDurationMid} ${Ve.motionEaseOut}`},"&-explain":{"&-error":{color:Ve.colorError},"&-warning":{color:Ve.colorWarning}}},[`&-with-help ${Ut}-explain`]:{height:"auto",opacity:1},[`${Ut}-feedback-icon`]:{fontSize:Ve.fontSize,textAlign:"center",visibility:"visible",animationName:He.kr,animationDuration:Ve.motionDurationMid,animationTimingFunction:Ve.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ve.colorSuccess},"&-error":{color:Ve.colorError},"&-warning":{color:Ve.colorWarning},"&-validating":{color:Ve.colorPrimary}}})}},me=Ve=>{const{componentCls:Ut,formItemCls:tn}=Ve;return{[`${Ut}-horizontal`]:{[`${tn}-label`]:{flexGrow:0},[`${tn}-control`]:{flex:"1 1 0",minWidth:0},[`${tn}-label[class$='-24'], ${tn}-label[class*='-24 ']`]:{[`& + ${tn}-control`]:{minWidth:"unset"}}}}},we=Ve=>{const{componentCls:Ut,formItemCls:tn}=Ve;return{[`${Ut}-inline`]:{display:"flex",flexWrap:"wrap",[tn]:{flex:"none",marginInlineEnd:Ve.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${tn}-label, > ${tn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${tn}-label`]:{flex:"none"},[`${Ut}-text`]:{display:"inline-block"},[`${tn}-has-feedback`]:{display:"inline-block"}}}}},be=Ve=>({padding:Ve.verticalLabelPadding,margin:Ve.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=Ve=>{const{componentCls:Ut,formItemCls:tn,rootPrefixCls:xt}=Ve;return{[`${tn} ${tn}-label`]:be(Ve),[Ut]:{[tn]:{flexWrap:"wrap",[`${tn}-label, ${tn}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=Ve=>{const{componentCls:Ut,formItemCls:tn,rootPrefixCls:xt}=Ve;return{[`${Ut}-vertical`]:{[tn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ut}-item-control`]:{width:"100%"}}},[`${Ut}-vertical ${tn}-label, .${xt}-col-24${tn}-label, .${xt}-col-xl-24${tn}-label`]:be(Ve),[`@media (max-width: ${Ve.screenXSMax}px)`]:[Me(Ve),{[Ut]:{[`.${xt}-col-xs-24${tn}-label`]:be(Ve)}}],[`@media (max-width: ${Ve.screenSMMax}px)`]:{[Ut]:{[`.${xt}-col-sm-24${tn}-label`]:be(Ve)}},[`@media (max-width: ${Ve.screenMDMax}px)`]:{[Ut]:{[`.${xt}-col-md-24${tn}-label`]:be(Ve)}},[`@media (max-width: ${Ve.screenLGMax}px)`]:{[Ut]:{[`.${xt}-col-lg-24${tn}-label`]:be(Ve)}}}},ze=(Ve,Ut)=>(0,ht.TS)(Ve,{formItemCls:`${Ve.componentCls}-item`,rootPrefixCls:Ut});var et=(0,dt.Z)("Form",(Ve,Ut)=>{let{rootPrefixCls:tn}=Ut;const xt=ze(Ve,tn);return[se(xt),de(xt),te(xt),me(xt),we(xt),Ie(xt),(0,Et.Z)(xt),He.kr]},Ve=>({labelRequiredMarkColor:Ve.colorError,labelColor:Ve.colorTextHeading,labelFontSize:Ve.fontSize,labelHeight:Ve.controlHeight,labelColonMarginInlineStart:Ve.marginXXS/2,labelColonMarginInlineEnd:Ve.marginXS,itemMarginBottom:Ve.marginLG,verticalLabelPadding:`0 0 ${Ve.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const $e=[];function gt(Ve,Ut,tn){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ve=="string"?Ve:`${Ut}-${xt}`,error:Ve,errorStatus:tn}}var Tt=Ve=>{let{help:Ut,helpStatus:tn,errors:xt=$e,warnings:rt=$e,className:Vt,fieldId:on,onVisibleChanged:xn}=Ve;const{prefixCls:An}=Ze.useContext(Be.Rk),yt=`${An}-item-explain`,[,cn]=et(An),On=(0,Ze.useMemo)(()=>(0,Ke.Z)(An),[An]),ri=mt(xt),Wt=mt(rt),Jt=Ze.useMemo(()=>Ut!=null?[gt(Ut,"help",tn)]:[].concat((0,ce.Z)(ri.map((ci,ui)=>gt(ci,"error","error",ui))),(0,ce.Z)(Wt.map((ci,ui)=>gt(ci,"warning","warning",ui)))),[Ut,tn,ri,Wt]),hi={};return on&&(hi.id=`${on}_help`),Ze.createElement(Ct.default,{motionDeadline:On.motionDeadline,motionName:`${An}-show-help`,visible:!!Jt.length,onVisibleChanged:xn},ci=>{const{className:ui,style:qn}=ci;return Ze.createElement("div",Object.assign({},hi,{className:_e()(yt,ui,Vt,cn),style:qn,role:"alert"}),Ze.createElement(Ct.CSSMotionList,Object.assign({keys:Jt},(0,Ke.Z)(An),{motionName:`${An}-show-help-item`,component:!1}),di=>{const{key:li,error:Ai,errorStatus:er,className:sr,style:vn}=di;return Ze.createElement("div",{key:li,className:_e()(sr,{[`${yt}-${er}`]:er}),style:vn},Ai)}))})},Qe=ve(95013),bt=ve(36355),Nt=ve(1684),At=ve(52946),Zt=ve(19716),Yt=ve(16722);const ut=["parentNode"],Ge="form_item";function kt(Ve){return Ve===void 0||Ve===!1?[]:Array.isArray(Ve)?Ve:[Ve]}function ln(Ve,Ut){if(!Ve.length)return;const tn=Ve.join("_");return Ut?`${Ut}_${tn}`:ut.includes(tn)?`${Ge}_${tn}`:tn}function sn(Ve,Ut,tn,xt,rt,Vt){let on=xt;return Vt!==void 0?on=Vt:tn.validating?on="validating":Ve.length?on="error":Ut.length?on="warning":(tn.touched||rt&&tn.validated)&&(on="success"),on}function Bt(Ve){return kt(Ve).join("_")}function Gt(Ve){const[Ut]=(0,Qe.useForm)(),tn=Ze.useRef({}),xt=Ze.useMemo(()=>Ve!=null?Ve:Object.assign(Object.assign({},Ut),{__INTERNAL__:{itemRef:rt=>Vt=>{const on=Bt(rt);Vt?tn.current[on]=Vt:delete tn.current[on]}},scrollToField:function(rt){let Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const on=kt(rt),xn=ln(on,xt.__INTERNAL__.name),An=xn?document.getElementById(xn):null;An&&(0,Yt.Z)(An,Object.assign({scrollMode:"if-needed",block:"nearest"},Vt))},getFieldInstance:rt=>{const Vt=Bt(rt);return tn.current[Vt]}}),[Ve,Ut]);return[xt]}var en=ve(28726),Bn=function(Ve,Ut){var tn={};for(var xt in Ve)Object.prototype.hasOwnProperty.call(Ve,xt)&&Ut.indexOf(xt)<0&&(tn[xt]=Ve[xt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,xt=Object.getOwnPropertySymbols(Ve);rt{const tn=Ze.useContext(Nt.Z),{getPrefixCls:xt,direction:rt,form:Vt}=Ze.useContext(bt.E_),{prefixCls:on,className:xn,rootClassName:An,size:yt,disabled:cn=tn,form:On,colon:ri,labelAlign:Wt,labelWrap:Jt,labelCol:hi,wrapperCol:ci,hideRequiredMark:ui,layout:qn="horizontal",scrollToFirstError:di,requiredMark:li,onFinishFailed:Ai,name:er,style:sr,feedbackIcons:vn}=Ve,Nr=Bn(Ve,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Dr=(0,Zt.Z)(yt),ir=Ze.useContext(en.Z),fn=(0,Ze.useMemo)(()=>li!==void 0?li:Vt&&Vt.requiredMark!==void 0?Vt.requiredMark:!ui,[ui,li,Vt]),jn=ri!=null?ri:Vt==null?void 0:Vt.colon,Ei=xt("form",on),[zi,Ni]=et(Ei),Gi=_e()(Ei,`${Ei}-${qn}`,{[`${Ei}-hide-required-mark`]:fn===!1,[`${Ei}-rtl`]:rt==="rtl",[`${Ei}-${Dr}`]:Dr},Ni,Vt==null?void 0:Vt.className,xn,An),[ur]=Gt(On),{__INTERNAL__:Qi}=ur;Qi.name=er;const rr=(0,Ze.useMemo)(()=>({name:er,labelAlign:Wt,labelCol:hi,labelWrap:Jt,wrapperCol:ci,vertical:qn==="vertical",colon:jn,requiredMark:fn,itemRef:Qi.itemRef,form:ur,feedbackIcons:vn}),[er,Wt,hi,ci,qn,jn,fn,ur,vn]);Ze.useImperativeHandle(Ut,()=>ur);const fr=(Jr,Ln)=>{if(Jr){let Zr={block:"nearest"};typeof Jr=="object"&&(Zr=Jr),ur.scrollToField(Ln,Zr)}},Nn=Jr=>{if(Ai==null||Ai(Jr),Jr.errorFields.length){const Ln=Jr.errorFields[0].name;if(di!==void 0){fr(di,Ln);return}Vt&&Vt.scrollToFirstError!==void 0&&fr(Vt.scrollToFirstError,Ln)}};return zi(Ze.createElement(Nt.n,{disabled:cn},Ze.createElement(At.q,{size:Dr},Ze.createElement(Be.RV,Object.assign({},{validateMessages:ir}),Ze.createElement(Be.q3.Provider,{value:rr},Ze.createElement(Qe.default,Object.assign({id:er},Nr,{name:er,onFinishFailed:Nn,form:ur,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),sr),className:Gi})))))))};var ft=Ze.forwardRef(rn),En=ve(41799),Vn=ve(8654),Re=ve(92343),Ce=ve(11592);function Pe(Ve){if(typeof Ve=="function")return Ve;const Ut=(0,Ce.Z)(Ve);return Ut.length<=1?Ut[0]:Ut}const Ne=()=>{const{status:Ve,errors:Ut=[],warnings:tn=[]}=(0,Ze.useContext)(Be.aM);return{status:Ve,errors:Ut,warnings:tn}};Ne.Context=Be.aM;var ke=Ne,Se=ve(16089);function nt(Ve){const[Ut,tn]=Ze.useState(Ve),xt=(0,Ze.useRef)(null),rt=(0,Ze.useRef)([]),Vt=(0,Ze.useRef)(!1);Ze.useEffect(()=>(Vt.current=!1,()=>{Vt.current=!0,Se.Z.cancel(xt.current),xt.current=null}),[]);function on(xn){Vt.current||(xt.current===null&&(rt.current=[],xt.current=(0,Se.Z)(()=>{xt.current=null,tn(An=>{let yt=An;return rt.current.forEach(cn=>{yt=cn(yt)}),yt})})),rt.current.push(xn))}return[Ut,on]}function Pt(){const{itemRef:Ve}=Ze.useContext(Be.q3),Ut=Ze.useRef({});function tn(xt,rt){const Vt=rt&&typeof rt=="object"&&rt.ref,on=xt.join("_");return(Ut.current.name!==on||Ut.current.originRef!==Vt)&&(Ut.current.name=on,Ut.current.originRef=Vt,Ut.current.ref=(0,Vn.sQ)(Ve(xt),Vt)),Ut.current.ref}return tn}var qe=ve(29194),Ue=ve(34280),St=ve(2738),vt=ve(27382),lt=ve(37028);const Dt=Ve=>{const{formItemCls:Ut}=Ve;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ut}-control`]:{display:"flex"}}}};var un=(0,dt.b)(["Form","item-item"],(Ve,Ut)=>{let{rootPrefixCls:tn}=Ut;const xt=ze(Ve,tn);return[Dt(xt)]}),$t=Ve=>{const{prefixCls:Ut,status:tn,wrapperCol:xt,children:rt,errors:Vt,warnings:on,_internalItemRender:xn,extra:An,help:yt,fieldId:cn,marginBottom:On,onErrorVisibleChanged:ri}=Ve,Wt=`${Ut}-item`,Jt=Ze.useContext(Be.q3),hi=xt||Jt.wrapperCol||{},ci=_e()(`${Wt}-control`,hi.className),ui=Ze.useMemo(()=>Object.assign({},Jt),[Jt]);delete ui.labelCol,delete ui.wrapperCol;const qn=Ze.createElement("div",{className:`${Wt}-control-input`},Ze.createElement("div",{className:`${Wt}-control-input-content`},rt)),di=Ze.useMemo(()=>({prefixCls:Ut,status:tn}),[Ut,tn]),li=On!==null||Vt.length||on.length?Ze.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ze.createElement(Be.Rk.Provider,{value:di},Ze.createElement(Tt,{fieldId:cn,errors:Vt,warnings:on,help:yt,helpStatus:tn,className:`${Wt}-explain-connected`,onVisibleChanged:ri})),!!On&&Ze.createElement("div",{style:{width:0,height:On}})):null,Ai={};cn&&(Ai.id=`${cn}_extra`);const er=An?Ze.createElement("div",Object.assign({},Ai,{className:`${Wt}-extra`}),An):null,sr=xn&&xn.mark==="pro_table_render"&&xn.render?xn.render(Ve,{input:qn,errorList:li,extra:er}):Ze.createElement(Ze.Fragment,null,qn,li,er);return Ze.createElement(Be.q3.Provider,{value:ui},Ze.createElement(lt.Z,Object.assign({},hi,{className:ci}),sr),Ze.createElement(un,{prefixCls:Ut}))},wn=ve(61485),bn=ve(31724),pn=ve(9763),Yn=ve(6848),ai=function(Ve,Ut){var tn={};for(var xt in Ve)Object.prototype.hasOwnProperty.call(Ve,xt)&&Ut.indexOf(xt)<0&&(tn[xt]=Ve[xt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,xt=Object.getOwnPropertySymbols(Ve);rt{let{prefixCls:Ut,label:tn,htmlFor:xt,labelCol:rt,labelAlign:Vt,colon:on,required:xn,requiredMark:An,tooltip:yt}=Ve;var cn;const[On]=(0,pn.Z)("Form"),{vertical:ri,labelAlign:Wt,labelCol:Jt,labelWrap:hi,colon:ci}=Ze.useContext(Be.q3);if(!tn)return null;const ui=rt||Jt||{},qn=Vt||Wt,di=`${Ut}-item-label`,li=_e()(di,qn==="left"&&`${di}-left`,ui.className,{[`${di}-wrap`]:!!hi});let Ai=tn;const er=on===!0||ci!==!1&&on!==!1;er&&!ri&&typeof tn=="string"&&tn.trim()!==""&&(Ai=tn.replace(/[:|:]\s*$/,""));const vn=Wn(yt);if(vn){const{icon:fn=Ze.createElement(wn.Z,null)}=vn,jn=ai(vn,["icon"]),Ei=Ze.createElement(Yn.Z,Object.assign({},jn),Ze.cloneElement(fn,{className:`${Ut}-item-tooltip`,title:""}));Ai=Ze.createElement(Ze.Fragment,null,Ai,Ei)}const Nr=An==="optional",Dr=typeof An=="function";Dr?Ai=An(Ai,{required:!!xn}):Nr&&!xn&&(Ai=Ze.createElement(Ze.Fragment,null,Ai,Ze.createElement("span",{className:`${Ut}-item-optional`,title:""},(On==null?void 0:On.optional)||((cn=bn.Z.Form)===null||cn===void 0?void 0:cn.optional))));const ir=_e()({[`${Ut}-item-required`]:xn,[`${Ut}-item-required-mark-optional`]:Nr||Dr,[`${Ut}-item-no-colon`]:!er});return Ze.createElement(lt.Z,Object.assign({},ui,{className:li}),Ze.createElement("label",{htmlFor:xt,className:ir,title:typeof tn=="string"?tn:""},Ai))},pi=ve(29679),gi=ve(19248),Ri=ve(96512),Ji=ve(58617);const Un={success:pi.Z,warning:Ri.Z,error:gi.Z,validating:Ji.Z};function $n(Ve){let{children:Ut,errors:tn,warnings:xt,hasFeedback:rt,validateStatus:Vt,prefixCls:on,meta:xn,noStyle:An}=Ve;const yt=`${on}-item`,{feedbackIcons:cn}=Ze.useContext(Be.q3),On=sn(tn,xt,xn,null,!!rt,Vt),{isFormItemInput:ri,status:Wt}=Ze.useContext(Be.aM),Jt=Ze.useMemo(()=>{var hi;let ci;if(rt){const di=rt!==!0&&rt.icons||cn,li=On&&((hi=di==null?void 0:di({status:On,errors:tn,warnings:xt}))===null||hi===void 0?void 0:hi[On]),Ai=On&&Un[On];ci=li!==!1&&Ai?Ze.createElement("span",{className:_e()(`${yt}-feedback-icon`,`${yt}-feedback-icon-${On}`)},li||Ze.createElement(Ai,null)):null}let ui=!0,qn=On||"";return An&&(ui=ri,qn=(On!=null?On:Wt)||""),{status:qn,errors:tn,warnings:xt,hasFeedback:!!rt,feedbackIcon:ci,isFormItemInput:ui}},[On,rt,An,ri,Wt]);return Ze.createElement(Be.aM.Provider,{value:Jt},Ut)}var ti=function(Ve,Ut){var tn={};for(var xt in Ve)Object.prototype.hasOwnProperty.call(Ve,xt)&&Ut.indexOf(xt)<0&&(tn[xt]=Ve[xt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,xt=Object.getOwnPropertySymbols(Ve);rt{if(vn&&li.current){const Ni=getComputedStyle(li.current);ir(parseInt(Ni.marginBottom,10))}},[vn,Nr]);const fn=Ni=>{Ni||ir(null)},Ei=function(){let Ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Gi=Ni?Ai:yt.errors,ur=Ni?er:yt.warnings;return sn(Gi,ur,yt,"",!!cn,An)}(),zi=_e()(qn,tn,xt,{[`${qn}-with-help`]:sr||Ai.length||er.length,[`${qn}-has-feedback`]:Ei&&cn,[`${qn}-has-success`]:Ei==="success",[`${qn}-has-warning`]:Ei==="warning",[`${qn}-has-error`]:Ei==="error",[`${qn}-is-validating`]:Ei==="validating",[`${qn}-hidden`]:On});return Ze.createElement("div",{className:zi,style:rt,ref:li},Ze.createElement(vt.Z,Object.assign({className:`${qn}-row`},(0,St.Z)(ui,["_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"])),Ze.createElement(ii,Object.assign({htmlFor:Wt},Ve,{requiredMark:di,required:Jt!=null?Jt:hi,prefixCls:Ut})),Ze.createElement($t,Object.assign({},Ve,yt,{errors:Ai,warnings:er,prefixCls:Ut,status:Ei,help:Vt,marginBottom:Dr,onErrorVisibleChanged:fn}),Ze.createElement(Be.qI.Provider,{value:ci},Ze.createElement($n,{prefixCls:Ut,meta:yt,errors:yt.errors,warnings:yt.warnings,hasFeedback:cn,validateStatus:Ei},ri)))),!!Dr&&Ze.createElement("div",{className:`${qn}-margin-offset`,style:{marginBottom:-Dr}}))}const mi="__SPLIT__",nr=null,ji=Ze.memo(Ve=>{let{children:Ut}=Ve;return Ut},(Ve,Ut)=>Ve.value===Ut.value&&Ve.update===Ut.update&&Ve.childProps.length===Ut.childProps.length&&Ve.childProps.every((tn,xt)=>tn===Ut.childProps[xt]));function Le(Ve){return Ve!=null}function si(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Hi(Ve){const{name:Ut,noStyle:tn,className:xt,dependencies:rt,prefixCls:Vt,shouldUpdate:on,rules:xn,children:An,required:yt,label:cn,messageVariables:On,trigger:ri="onChange",validateTrigger:Wt,hidden:Jt,help:hi}=Ve,{getPrefixCls:ci}=Ze.useContext(bt.E_),{name:ui}=Ze.useContext(Be.q3),qn=Pe(An),di=typeof qn=="function",li=Ze.useContext(Be.qI),{validateTrigger:Ai}=Ze.useContext(Qe.FieldContext),er=Wt!==void 0?Wt:Ai,sr=Le(Ut),vn=ci("form",Vt),[Nr,Dr]=et(vn),ir=Ze.useContext(Qe.ListContext),fn=Ze.useRef(),[jn,Ei]=nt({}),[zi,Ni]=(0,En.Z)(()=>si()),Gi=Ln=>{const Zr=ir==null?void 0:ir.getKey(Ln.name);if(Ni(Ln.destroy?si():Ln,!0),tn&&hi!==!1&&li){let co=Ln.name;if(Ln.destroy)co=fn.current||co;else if(Zr!==void 0){const[Bi,Po]=Zr;co=[Bi].concat((0,ce.Z)(Po)),fn.current=co}li(Ln,co)}},ur=(Ln,Zr)=>{Ei(co=>{const Bi=Object.assign({},co),ao=[].concat((0,ce.Z)(Ln.name.slice(0,-1)),(0,ce.Z)(Zr)).join(mi);return Ln.destroy?delete Bi[ao]:Bi[ao]=Ln,Bi})},[Qi,rr]=Ze.useMemo(()=>{const Ln=(0,ce.Z)(zi.errors),Zr=(0,ce.Z)(zi.warnings);return Object.values(jn).forEach(co=>{Ln.push.apply(Ln,(0,ce.Z)(co.errors||[])),Zr.push.apply(Zr,(0,ce.Z)(co.warnings||[]))}),[Ln,Zr]},[jn,zi.errors,zi.warnings]),fr=Pt();function Nn(Ln,Zr,co){return tn&&!Jt?Ze.createElement($n,{prefixCls:vn,hasFeedback:Ve.hasFeedback,validateStatus:Ve.validateStatus,meta:zi,errors:Qi,warnings:rr,noStyle:!0},Ln):Ze.createElement(Pi,Object.assign({key:"row"},Ve,{className:_e()(xt,Dr),prefixCls:vn,fieldId:Zr,isRequired:co,errors:Qi,warnings:rr,meta:zi,onSubItemMetaChange:ur}),Ln)}if(!sr&&!di&&!rt)return Nr(Nn(qn));let Jr={};return typeof cn=="string"?Jr.label=cn:Ut&&(Jr.label=String(Ut)),On&&(Jr=Object.assign(Object.assign({},Jr),On)),Nr(Ze.createElement(Qe.Field,Object.assign({},Ve,{messageVariables:Jr,trigger:ri,validateTrigger:er,onMetaChange:Gi}),(Ln,Zr,co)=>{const Bi=kt(Ut).length&&Zr?Zr.name:[],Po=ln(Bi,ui),ao=yt!==void 0?yt:!!(xn&&xn.some(Hr=>{if(Hr&&typeof Hr=="object"&&Hr.required&&!Hr.warningOnly)return!0;if(typeof Hr=="function"){const ro=Hr(co);return ro&&ro.required&&!ro.warningOnly}return!1})),Vi=Object.assign({},Ln);let qi=null;if(Array.isArray(qn)&&sr)qi=qn;else if(!(di&&(!(on||rt)||sr))){if(!(rt&&!di&&!sr))if((0,Re.l$)(qn)){const Hr=Object.assign(Object.assign({},qn.props),Vi);if(Hr.id||(Hr.id=Po),hi||Qi.length>0||rr.length>0||Ve.extra){const tt=[];(hi||Qi.length>0)&&tt.push(`${Po}_help`),Ve.extra&&tt.push(`${Po}_extra`),Hr["aria-describedby"]=tt.join(" ")}Qi.length>0&&(Hr["aria-invalid"]="true"),ao&&(Hr["aria-required"]="true"),(0,Vn.Yr)(qn)&&(Hr.ref=fr(Bi,qn)),new Set([].concat((0,ce.Z)(kt(ri)),(0,ce.Z)(kt(er)))).forEach(tt=>{Hr[tt]=function(){for(var uo,Zo,ga,Pa,ia,Or=arguments.length,kr=new Array(Or),fo=0;fo{var{prefixCls:Ut,children:tn}=Ve,xt=vi(Ve,["prefixCls","children"]);const{getPrefixCls:rt}=Ze.useContext(bt.E_),Vt=rt("form",Ut),on=Ze.useMemo(()=>({prefixCls:Vt,status:"error"}),[Vt]);return Ze.createElement(Qe.List,Object.assign({},xt),(xn,An,yt)=>Ze.createElement(Be.Rk.Provider,{value:on},tn(xn.map(cn=>Object.assign(Object.assign({},cn),{fieldKey:cn.key})),An,{errors:yt.errors,warnings:yt.warnings})))};function Dn(){const{form:Ve}=(0,Ze.useContext)(Be.q3);return Ve}const Ft=ft;Ft.Item=ni,Ft.List=_n,Ft.ErrorList=Tt,Ft.useForm=Gt,Ft.useFormInstance=Dn,Ft.useWatch=Qe.useWatch,Ft.Provider=Be.RV,Ft.create=()=>{};var Ot=Ft},8628:function(Pn,an,ve){"use strict";var ce=ve(59301),De=ve(34280),_e=ve(56762),Ct=ve(69507);function Ze(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Be=(0,ce.useRef)({}),mt=(0,_e.Z)(),ct=(0,Ct.ZP)();return(0,De.Z)(()=>{const He=ct.subscribe(Et=>{Be.current=Et,Ke&&mt()});return()=>ct.unsubscribe(He)},[]),Be.current}an.Z=Ze},9432:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return de},n:function(){return he}});var ce=ve(19248),De=ve(92310),_e=ve.n(De),Ct=ve(93681),Ze=ve(8654),Ke=ve(59301),Be=ve(19080),mt=ve(36355),ct=ve(1684),He=ve(19716),Et=ve(32441),ht=ve(33234),dt=ve(59412),Ae=ve(9937);function te(me){return!!(me.prefix||me.suffix||me.allowClear)}var ee=function(me,we){var be={};for(var Me in me)Object.prototype.hasOwnProperty.call(me,Me)&&we.indexOf(Me)<0&&(be[Me]=me[Me]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Me=Object.getOwnPropertySymbols(me);Ie{var be;const{prefixCls:Me,bordered:Ie=!0,status:ze,size:et,disabled:$e,onBlur:gt,onFocus:je,suffix:Tt,allowClear:Qe,addonAfter:bt,addonBefore:Nt,className:At,style:Zt,styles:Yt,rootClassName:ut,onChange:Ge,classNames:kt}=me,ln=ee(me,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:sn,direction:Bt,input:Gt}=Ke.useContext(mt.E_),en=sn("input",Me),Bn=(0,Ke.useRef)(null),[rn,Cn]=(0,Ae.ZP)(en),{compactSize:ft,compactItemClassnames:En}=(0,ht.ri)(en,Bt),Vn=(0,He.Z)(un=>{var Xt;return(Xt=et!=null?et:ft)!==null&&Xt!==void 0?Xt:un}),Re=Ke.useContext(ct.Z),Ce=$e!=null?$e:Re,{status:Pe,hasFeedback:Ne,feedbackIcon:ke}=(0,Ke.useContext)(Et.aM),Se=(0,Be.F)(Pe,ze),nt=te(me)||!!Ne,Pt=(0,Ke.useRef)(nt);(0,Ke.useEffect)(()=>{var un;nt&&Pt.current,Pt.current=nt},[nt]);const qe=(0,dt.Z)(Bn,!0),Ue=un=>{qe(),gt==null||gt(un)},St=un=>{qe(),je==null||je(un)},vt=un=>{qe(),Ge==null||Ge(un)},lt=(Ne||Tt)&&Ke.createElement(Ke.Fragment,null,Tt,Ne&&ke);let Dt;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?Dt=Qe:Qe&&(Dt={clearIcon:Ke.createElement(ce.Z,null)}),rn(Ke.createElement(Ct.default,Object.assign({ref:(0,Ze.sQ)(we,Bn),prefixCls:en,autoComplete:Gt==null?void 0:Gt.autoComplete},ln,{disabled:Ce,onBlur:Ue,onFocus:St,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Zt),styles:Object.assign(Object.assign({},Gt==null?void 0:Gt.styles),Yt),suffix:lt,allowClear:Dt,className:_e()(At,ut,En,Gt==null?void 0:Gt.className),onChange:vt,addonAfter:bt&&Ke.createElement(ht.BR,null,Ke.createElement(Et.Ux,{override:!0,status:!0},bt)),addonBefore:Nt&&Ke.createElement(ht.BR,null,Ke.createElement(Et.Ux,{override:!0,status:!0},Nt)),classNames:Object.assign(Object.assign(Object.assign({},kt),Gt==null?void 0:Gt.classNames),{input:_e()({[`${en}-sm`]:Vn==="small",[`${en}-lg`]:Vn==="large",[`${en}-rtl`]:Bt==="rtl",[`${en}-borderless`]:!Ie},!nt&&(0,Be.Z)(en,Se),kt==null?void 0:kt.input,(be=Gt==null?void 0:Gt.classNames)===null||be===void 0?void 0:be.input,Cn)}),classes:{affixWrapper:_e()({[`${en}-affix-wrapper-sm`]:Vn==="small",[`${en}-affix-wrapper-lg`]:Vn==="large",[`${en}-affix-wrapper-rtl`]:Bt==="rtl",[`${en}-affix-wrapper-borderless`]:!Ie},(0,Be.Z)(`${en}-affix-wrapper`,Se,Ne),Cn),wrapper:_e()({[`${en}-group-rtl`]:Bt==="rtl"},Cn),group:_e()({[`${en}-group-wrapper-sm`]:Vn==="small",[`${en}-group-wrapper-lg`]:Vn==="large",[`${en}-group-wrapper-rtl`]:Bt==="rtl",[`${en}-group-wrapper-disabled`]:Ce},(0,Be.Z)(`${en}-group-wrapper`,Se,Ne),Cn)}})))})},1643:function(Pn,an,ve){"use strict";var ce=ve(19248),De=ve(92310),_e=ve.n(De),Ct=ve(9296),Ze=ve(59301),Ke=ve(19080),Be=ve(36355),mt=ve(1684),ct=ve(19716),He=ve(32441),Et=ve(9432),ht=ve(9937),dt=function(te,ee){var he={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ee.indexOf(se)<0&&(he[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,se=Object.getOwnPropertySymbols(te);de{const{prefixCls:he,bordered:se=!0,size:de,disabled:me,status:we,allowClear:be,showCount:Me,classNames:Ie,rootClassName:ze,className:et}=te,$e=dt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:gt,direction:je}=Ze.useContext(Be.E_),Tt=(0,ct.Z)(de),Qe=Ze.useContext(mt.Z),bt=me!=null?me:Qe,{status:Nt,hasFeedback:At,feedbackIcon:Zt}=Ze.useContext(He.aM),Yt=(0,Ke.F)(Nt,we),ut=Ze.useRef(null);Ze.useImperativeHandle(ee,()=>{var Bt;return{resizableTextArea:(Bt=ut.current)===null||Bt===void 0?void 0:Bt.resizableTextArea,focus:Gt=>{var en,Bn;(0,Et.n)((Bn=(en=ut.current)===null||en===void 0?void 0:en.resizableTextArea)===null||Bn===void 0?void 0:Bn.textArea,Gt)},blur:()=>{var Gt;return(Gt=ut.current)===null||Gt===void 0?void 0:Gt.blur()}}});const Ge=gt("input",he);let kt;typeof be=="object"&&(be!=null&&be.clearIcon)?kt=be:be&&(kt={clearIcon:Ze.createElement(ce.Z,null)});const[ln,sn]=(0,ht.ZP)(Ge);return ln(Ze.createElement(Ct.default,Object.assign({},$e,{disabled:bt,allowClear:kt,className:_e()(et,ze),classes:{affixWrapper:_e()(`${Ge}-textarea-affix-wrapper`,{[`${Ge}-affix-wrapper-rtl`]:je==="rtl",[`${Ge}-affix-wrapper-borderless`]:!se,[`${Ge}-affix-wrapper-sm`]:Tt==="small",[`${Ge}-affix-wrapper-lg`]:Tt==="large",[`${Ge}-textarea-show-count`]:Me},(0,Ke.Z)(`${Ge}-affix-wrapper`,Yt),sn)},classNames:Object.assign(Object.assign({},Ie),{textarea:_e()({[`${Ge}-borderless`]:!se,[`${Ge}-sm`]:Tt==="small",[`${Ge}-lg`]:Tt==="large"},(0,Ke.Z)(Ge,Yt),sn,Ie==null?void 0:Ie.textarea)}),prefixCls:Ge,suffix:At&&Ze.createElement("span",{className:`${Ge}-textarea-suffix`},Zt),showCount:Me,ref:ut})))});an.Z=Ae},59412:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return De}});var ce=ve(59301);function De(_e,Ct){const Ze=(0,ce.useRef)([]),Ke=()=>{Ze.current.push(setTimeout(()=>{var Be,mt,ct,He;!((Be=_e.current)===null||Be===void 0)&&Be.input&&((mt=_e.current)===null||mt===void 0?void 0:mt.input.getAttribute("type"))==="password"&&(!((ct=_e.current)===null||ct===void 0)&&ct.input.hasAttribute("value"))&&((He=_e.current)===null||He===void 0||He.input.removeAttribute("value"))}))};return(0,ce.useEffect)(()=>(Ct&&Ke(),()=>Ze.current.forEach(Be=>{Be&&clearTimeout(Be)})),[]),Ke}},92832:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Tt}});var ce=ve(92310),De=ve.n(ce),_e=ve(59301),Ct=ve(36355),Ze=ve(32441),Ke=ve(9937),mt=Qe=>{const{getPrefixCls:bt,direction:Nt}=(0,_e.useContext)(Ct.E_),{prefixCls:At,className:Zt}=Qe,Yt=bt("input-group",At),ut=bt("input"),[Ge,kt]=(0,Ke.ZP)(ut),ln=De()(Yt,{[`${Yt}-lg`]:Qe.size==="large",[`${Yt}-sm`]:Qe.size==="small",[`${Yt}-compact`]:Qe.compact,[`${Yt}-rtl`]:Nt==="rtl"},kt,Zt),sn=(0,_e.useContext)(Ze.aM),Bt=(0,_e.useMemo)(()=>Object.assign(Object.assign({},sn),{isFormItemInput:!1}),[sn]);return Ge(_e.createElement("span",{className:ln,style:Qe.style,onMouseEnter:Qe.onMouseEnter,onMouseLeave:Qe.onMouseLeave,onFocus:Qe.onFocus,onBlur:Qe.onBlur},_e.createElement(Ze.aM.Provider,{value:Bt},Qe.children)))},ct=ve(9432),He=ve(73331),Et=ve(15277),ht=ve(2738),dt=ve(8654),Ae=ve(59412),te=function(Qe,bt){var Nt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&bt.indexOf(At)<0&&(Nt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,At=Object.getOwnPropertySymbols(Qe);ZtQe?_e.createElement(Et.Z,null):_e.createElement(He.Z,null),he={click:"onClick",hover:"onMouseOver"};var de=_e.forwardRef((Qe,bt)=>{const{visibilityToggle:Nt=!0}=Qe,At=typeof Nt=="object"&&Nt.visible!==void 0,[Zt,Yt]=(0,_e.useState)(()=>At?Nt.visible:!1),ut=(0,_e.useRef)(null);_e.useEffect(()=>{At&&Yt(Nt.visible)},[At,Nt]);const Ge=(0,Ae.Z)(ut),kt=()=>{const{disabled:Ce}=Qe;Ce||(Zt&&Ge(),Yt(Pe=>{var Ne;const ke=!Pe;return typeof Nt=="object"&&((Ne=Nt.onVisibleChange)===null||Ne===void 0||Ne.call(Nt,ke)),ke}))},ln=Ce=>{const{action:Pe="click",iconRender:Ne=ee}=Qe,ke=he[Pe]||"",Se=Ne(Zt),nt={[ke]:kt,className:`${Ce}-icon`,key:"passwordIcon",onMouseDown:Pt=>{Pt.preventDefault()},onMouseUp:Pt=>{Pt.preventDefault()}};return _e.cloneElement(_e.isValidElement(Se)?Se:_e.createElement("span",null,Se),nt)},{className:sn,prefixCls:Bt,inputPrefixCls:Gt,size:en}=Qe,Bn=te(Qe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rn}=_e.useContext(Ct.E_),Cn=rn("input",Gt),ft=rn("input-password",Bt),En=Nt&&ln(ft),Vn=De()(ft,sn,{[`${ft}-${en}`]:!!en}),Re=Object.assign(Object.assign({},(0,ht.Z)(Bn,["suffix","iconRender","visibilityToggle"])),{type:Zt?"text":"password",className:Vn,prefixCls:Cn,suffix:En});return en&&(Re.size=en),_e.createElement(ct.Z,Object.assign({ref:(0,dt.sQ)(bt,ut)},Re))}),me=ve(47472),we=ve(92343),be=ve(3113),Me=ve(19716),Ie=ve(33234),ze=function(Qe,bt){var Nt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&bt.indexOf(At)<0&&(Nt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,At=Object.getOwnPropertySymbols(Qe);Zt{const{prefixCls:Nt,inputPrefixCls:At,className:Zt,size:Yt,suffix:ut,enterButton:Ge=!1,addonAfter:kt,loading:ln,disabled:sn,onSearch:Bt,onChange:Gt,onCompositionStart:en,onCompositionEnd:Bn}=Qe,rn=ze(Qe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Cn,direction:ft}=_e.useContext(Ct.E_),En=_e.useRef(!1),Vn=Cn("input-search",Nt),Re=Cn("input",At),{compactSize:Ce}=(0,Ie.ri)(Vn,ft),Pe=(0,Me.Z)($t=>{var wn;return(wn=Yt!=null?Yt:Ce)!==null&&wn!==void 0?wn:$t}),Ne=_e.useRef(null),ke=$t=>{$t&&$t.target&&$t.type==="click"&&Bt&&Bt($t.target.value,$t,{source:"clear"}),Gt&&Gt($t)},Se=$t=>{var wn;document.activeElement===((wn=Ne.current)===null||wn===void 0?void 0:wn.input)&&$t.preventDefault()},nt=$t=>{var wn,bn;Bt&&Bt((bn=(wn=Ne.current)===null||wn===void 0?void 0:wn.input)===null||bn===void 0?void 0:bn.value,$t,{source:"input"})},Pt=$t=>{En.current||ln||nt($t)},qe=typeof Ge=="boolean"?_e.createElement(me.Z,null):null,Ue=`${Vn}-button`;let St;const vt=Ge||{},lt=vt.type&&vt.type.__ANT_BUTTON===!0;lt||vt.type==="button"?St=(0,we.Tm)(vt,Object.assign({onMouseDown:Se,onClick:$t=>{var wn,bn;(bn=(wn=vt==null?void 0:vt.props)===null||wn===void 0?void 0:wn.onClick)===null||bn===void 0||bn.call(wn,$t),nt($t)},key:"enterButton"},lt?{className:Ue,size:Pe}:{})):St=_e.createElement(be.ZP,{className:Ue,type:Ge?"primary":void 0,size:Pe,disabled:sn,key:"enterButton",onMouseDown:Se,onClick:nt,loading:ln,icon:qe},Ge),kt&&(St=[St,(0,we.Tm)(kt,{key:"addonAfter"})]);const Dt=De()(Vn,{[`${Vn}-rtl`]:ft==="rtl",[`${Vn}-${Pe}`]:!!Pe,[`${Vn}-with-button`]:!!Ge},Zt),un=$t=>{En.current=!0,en==null||en($t)},Xt=$t=>{En.current=!1,Bn==null||Bn($t)};return _e.createElement(ct.Z,Object.assign({ref:(0,dt.sQ)(Ne,bt),onPressEnter:Pt},rn,{size:Pe,onCompositionStart:un,onCompositionEnd:Xt,prefixCls:Re,addonAfter:St,suffix:ut,onChange:ke,className:Dt,disabled:sn}))}),gt=ve(1643);const je=ct.Z;je.Group=mt,je.Search=$e,je.TextArea=gt.Z,je.Password=de;var Tt=je},45818:function(Pn,an,ve){"use strict";ve.d(an,{D:function(){return me},Z:function(){return Me}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(ze,et){return De.createElement(Ze.Z,(0,ce.Z)({},ze,{ref:et,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be,ct=ve(33853),He=ve(38819),Et=ve(92310),ht=ve.n(Et),dt=ve(2738),te=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ee=ve(36355),he=ve(84966),se=function(Ie,ze){var et={};for(var $e in Ie)Object.prototype.hasOwnProperty.call(Ie,$e)&&ze.indexOf($e)<0&&(et[$e]=Ie[$e]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,$e=Object.getOwnPropertySymbols(Ie);gt<$e.length;gt++)ze.indexOf($e[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,$e[gt])&&(et[$e[gt]]=Ie[$e[gt]]);return et};const de={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},me=De.createContext({}),we=(()=>{let Ie=0;return function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${ze}${Ie}`}})();var Me=De.forwardRef((Ie,ze)=>{const{prefixCls:et,className:$e,trigger:gt,children:je,defaultCollapsed:Tt=!1,theme:Qe="dark",style:bt={},collapsible:Nt=!1,reverseArrow:At=!1,width:Zt=200,collapsedWidth:Yt=80,zeroWidthTriggerStyle:ut,breakpoint:Ge,onCollapse:kt,onBreakpoint:ln}=Ie,sn=se(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bt}=(0,De.useContext)(he.Gs),[Gt,en]=(0,De.useState)("collapsed"in Ie?Ie.collapsed:Tt),[Bn,rn]=(0,De.useState)(!1);(0,De.useEffect)(()=>{"collapsed"in Ie&&en(Ie.collapsed)},[Ie.collapsed]);const Cn=(Pe,Ne)=>{"collapsed"in Ie||en(Pe),kt==null||kt(Pe,Ne)},ft=(0,De.useRef)();ft.current=Pe=>{rn(Pe.matches),ln==null||ln(Pe.matches),Gt!==Pe.matches&&Cn(Pe.matches,"responsive")},(0,De.useEffect)(()=>{function Pe(ke){return ft.current(ke)}let Ne;if(typeof window!="undefined"){const{matchMedia:ke}=window;if(ke&&Ge&&Ge in de){Ne=ke(`(max-width: ${de[Ge]})`);try{Ne.addEventListener("change",Pe)}catch(Se){Ne.addListener(Pe)}Pe(Ne)}}return()=>{try{Ne==null||Ne.removeEventListener("change",Pe)}catch(ke){Ne==null||Ne.removeListener(Pe)}}},[Ge]),(0,De.useEffect)(()=>{const Pe=we("ant-sider-");return Bt.addSider(Pe),()=>Bt.removeSider(Pe)},[]);const En=()=>{Cn(!Gt,"clickTrigger")},{getPrefixCls:Vn}=(0,De.useContext)(ee.E_),Re=()=>{const Pe=Vn("layout-sider",et),Ne=(0,dt.Z)(sn,["collapsed"]),ke=Gt?Yt:Zt,Se=te(ke)?`${ke}px`:String(ke),nt=parseFloat(String(Yt||0))===0?De.createElement("span",{onClick:En,className:ht()(`${Pe}-zero-width-trigger`,`${Pe}-zero-width-trigger-${At?"right":"left"}`),style:ut},gt||De.createElement(mt,null)):null,Ue={expanded:At?De.createElement(He.Z,null):De.createElement(ct.Z,null),collapsed:At?De.createElement(ct.Z,null):De.createElement(He.Z,null)}[Gt?"collapsed":"expanded"],St=gt!==null?nt||De.createElement("div",{className:`${Pe}-trigger`,onClick:En,style:{width:Se}},gt||Ue):null,vt=Object.assign(Object.assign({},bt),{flex:`0 0 ${Se}`,maxWidth:Se,minWidth:Se,width:Se}),lt=ht()(Pe,`${Pe}-${Qe}`,{[`${Pe}-collapsed`]:!!Gt,[`${Pe}-has-trigger`]:Nt&>!==null&&!nt,[`${Pe}-below`]:!!Bn,[`${Pe}-zero-width`]:parseFloat(Se)===0},$e);return De.createElement("aside",Object.assign({className:lt},Ne,{style:vt,ref:ze}),De.createElement("div",{className:`${Pe}-children`},je),Nt||Bn&&nt?St:null)},Ce=De.useMemo(()=>({siderCollapsed:Gt}),[Gt]);return De.createElement(me.Provider,{value:Ce},Re())})},84966:function(Pn,an,ve){"use strict";ve.d(an,{VY:function(){return me},$_:function(){return de},h4:function(){return se},Gs:function(){return dt},ZP:function(){return we}});var ce=ve(19127),De=ve(92310),_e=ve.n(De),Ct=ve(2738),Ze=ve(59301),Ke=ve(36355),Be=ve(83116),ct=be=>{const{componentCls:Me,bodyBg:Ie,lightSiderBg:ze,lightTriggerBg:et,lightTriggerColor:$e}=be;return{[`${Me}-sider-light`]:{background:ze,[`${Me}-sider-trigger`]:{color:$e,background:et},[`${Me}-sider-zero-width-trigger`]:{color:$e,background:et,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const He=be=>{const{antCls:Me,componentCls:Ie,colorText:ze,triggerColor:et,footerBg:$e,triggerBg:gt,headerHeight:je,headerPadding:Tt,headerColor:Qe,footerPadding:bt,triggerHeight:Nt,zeroTriggerHeight:At,zeroTriggerWidth:Zt,motionDurationMid:Yt,motionDurationSlow:ut,fontSize:Ge,borderRadius:kt,bodyBg:ln,headerBg:sn,siderBg:Bt}=be;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ln,"&, *":{boxSizing:"border-box"},[`&${Ie}-has-sider`]:{flexDirection:"row",[`> ${Ie}, > ${Ie}-content`]:{width:0}},[`${Ie}-header, &${Ie}-footer`]:{flex:"0 0 auto"},[`${Ie}-sider`]:{position:"relative",minWidth:0,background:Bt,transition:`all ${Yt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Me}-menu${Me}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Nt,color:et,lineHeight:`${Nt}px`,textAlign:"center",background:gt,cursor:"pointer",transition:`all ${Yt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:je,insetInlineEnd:-Zt,zIndex:1,width:Zt,height:At,color:et,fontSize:be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Bt,borderStartStartRadius:0,borderStartEndRadius:kt,borderEndEndRadius:kt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ut} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ut}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Zt,borderStartStartRadius:kt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:kt}}}}},ct(be)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:je,padding:Tt,color:Qe,lineHeight:`${je}px`,background:sn,[`${Me}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:bt,color:ze,fontSize:Ge,background:$e},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var Et=(0,Be.Z)("Layout",be=>[He(be)],be=>{const{colorBgLayout:Me,controlHeight:Ie,controlHeightLG:ze,colorText:et,controlHeightSM:$e,marginXXS:gt,colorTextLightSolid:je,colorBgContainer:Tt}=be,Qe=ze*1.25;return{colorBgHeader:"#001529",colorBgBody:Me,colorBgTrigger:"#002140",bodyBg:Me,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${Qe}px`,headerColor:et,footerPadding:`${$e}px ${Qe}px`,footerBg:Me,siderBg:"#001529",triggerHeight:ze+gt*2,triggerBg:"#002140",triggerColor:je,zeroTriggerWidth:ze,zeroTriggerHeight:ze,lightSiderBg:Tt,lightTriggerBg:Tt,lightTriggerColor:et}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ht=function(be,Me){var Ie={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&Me.indexOf(ze)<0&&(Ie[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ze=Object.getOwnPropertySymbols(be);etnull,removeSider:()=>null}});function Ae(be){let{suffixCls:Me,tagName:Ie,displayName:ze}=be;return et=>Ze.forwardRef((gt,je)=>Ze.createElement(et,Object.assign({ref:je,suffixCls:Me,tagName:Ie},gt)))}const te=Ze.forwardRef((be,Me)=>{const{prefixCls:Ie,suffixCls:ze,className:et,tagName:$e}=be,gt=ht(be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:je}=Ze.useContext(Ke.E_),Tt=je("layout",Ie),[Qe,bt]=Et(Tt),Nt=ze?`${Tt}-${ze}`:Tt;return Qe(Ze.createElement($e,Object.assign({className:_e()(Ie||Nt,et,bt),ref:Me},gt)))}),ee=Ze.forwardRef((be,Me)=>{const{direction:Ie}=Ze.useContext(Ke.E_),[ze,et]=Ze.useState([]),{prefixCls:$e,className:gt,rootClassName:je,children:Tt,hasSider:Qe,tagName:bt,style:Nt}=be,At=ht(be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Zt=(0,Ct.Z)(At,["suffixCls"]),{getPrefixCls:Yt,layout:ut}=Ze.useContext(Ke.E_),Ge=Yt("layout",$e),[kt,ln]=Et(Ge),sn=_e()(Ge,{[`${Ge}-has-sider`]:typeof Qe=="boolean"?Qe:ze.length>0,[`${Ge}-rtl`]:Ie==="rtl"},ut==null?void 0:ut.className,gt,je,ln),Bt=Ze.useMemo(()=>({siderHook:{addSider:Gt=>{et(en=>[].concat((0,ce.Z)(en),[Gt]))},removeSider:Gt=>{et(en=>en.filter(Bn=>Bn!==Gt))}}}),[]);return kt(Ze.createElement(dt.Provider,{value:Bt},Ze.createElement(bt,Object.assign({ref:Me,className:sn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Nt)},Zt),Tt)))}),he=Ae({tagName:"div",displayName:"Layout"})(ee),se=Ae({suffixCls:"header",tagName:"header",displayName:"Header"})(te),de=Ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),me=Ae({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var we=he},40875:function(Pn,an,ve){"use strict";ve.d(an,{J:function(){return Ke}});var ce=ve(59301),De=ve(33234),_e=ve(70425),Ct=function(Be,mt){var ct={};for(var He in Be)Object.prototype.hasOwnProperty.call(Be,He)&&mt.indexOf(He)<0&&(ct[He]=Be[He]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,He=Object.getOwnPropertySymbols(Be);Et{const{children:ct}=Be,He=Ct(Be,["children"]),Et=ce.useContext(Ze),ht=ce.useMemo(()=>Object.assign(Object.assign({},Et),He),[Et,He.prefixCls,He.mode,He.selectable]);return ce.createElement(Ze.Provider,{value:ht},ce.createElement(De.BR,null,(0,_e.supportNodeRef)(ct)?ce.cloneElement(ct,{ref:mt}):ct))});an.Z=Ze},20834:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Ce}});var ce=ve(15285),De=ve(59301),_e=ve(45818),Ct=ve(92310),Ze=ve.n(Ct),Ke=ve(36355),Be=function(Pe,Ne){var ke={};for(var Se in Pe)Object.prototype.hasOwnProperty.call(Pe,Se)&&Ne.indexOf(Se)<0&&(ke[Se]=Pe[Se]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Se=Object.getOwnPropertySymbols(Pe);nt{const{prefixCls:Ne,className:ke,dashed:Se}=Pe,nt=Be(Pe,["prefixCls","className","dashed"]),{getPrefixCls:Pt}=De.useContext(Ke.E_),qe=Pt("menu",Ne),Ue=Ze()({[`${qe}-item-divider-dashed`]:!!Se},ke);return De.createElement(ce.iz,Object.assign({className:Ue},nt))},He=ve(11592),Et=ve(2738),ht=ve(6848),dt=ve(92343),te=(0,De.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=Pe=>{var Ne;const{className:ke,children:Se,icon:nt,title:Pt,danger:qe}=Pe,{prefixCls:Ue,firstLevel:St,direction:vt,disableMenuItemTitleTooltip:lt,inlineCollapsed:Dt}=De.useContext(te),un=Yn=>{const ai=De.createElement("span",{className:`${Ue}-title-content`},Se);return(!nt||(0,dt.l$)(Se)&&Se.type==="span")&&Se&&Yn&&St&&typeof Se=="string"?De.createElement("div",{className:`${Ue}-inline-collapsed-noicon`},Se.charAt(0)):ai},{siderCollapsed:Xt}=De.useContext(_e.D);let $t=Pt;typeof Pt=="undefined"?$t=St?Se:"":Pt===!1&&($t="");const wn={title:$t};!Xt&&!Dt&&(wn.title=null,wn.open=!1);const bn=(0,He.Z)(Se).length;let pn=De.createElement(ce.ck,Object.assign({},(0,Et.Z)(Pe,["title","icon","danger"]),{className:Ze()({[`${Ue}-item-danger`]:qe,[`${Ue}-item-only-child`]:(nt?bn+1:bn)===1},ke),title:typeof Pt=="string"?Pt:void 0}),(0,dt.Tm)(nt,{className:Ze()((0,dt.l$)(nt)?(Ne=nt.props)===null||Ne===void 0?void 0:Ne.className:"",`${Ue}-item-icon`)}),un(Dt));return lt||(pn=De.createElement(ht.Z,Object.assign({},wn,{placement:vt==="rtl"?"left":"right",overlayClassName:`${Ue}-inline-collapsed-tooltip`}),pn)),pn},de=Pe=>{var Ne;const{popupClassName:ke,icon:Se,title:nt,theme:Pt}=Pe,qe=De.useContext(te),{prefixCls:Ue,inlineCollapsed:St,theme:vt}=qe,lt=(0,ce.Xl)();let Dt;if(!Se)Dt=St&&!lt.length&&nt&&typeof nt=="string"?De.createElement("div",{className:`${Ue}-inline-collapsed-noicon`},nt.charAt(0)):De.createElement("span",{className:`${Ue}-title-content`},nt);else{const Xt=(0,dt.l$)(nt)&&nt.type==="span";Dt=De.createElement(De.Fragment,null,(0,dt.Tm)(Se,{className:Ze()((0,dt.l$)(Se)?(Ne=Se.props)===null||Ne===void 0?void 0:Ne.className:"",`${Ue}-item-icon`)}),Xt?nt:De.createElement("span",{className:`${Ue}-title-content`},nt))}const un=De.useMemo(()=>Object.assign(Object.assign({},qe),{firstLevel:!1}),[qe]);return De.createElement(te.Provider,{value:un},De.createElement(ce.Wd,Object.assign({},(0,Et.Z)(Pe,["icon"]),{title:Dt,popupClassName:Ze()(Ue,ke,`${Ue}-${Pt||vt}`)})))},me=ve(18785),we=ve(70425),be=ve(62892),Me=ve(40875),Ie=function(Pe,Ne){var ke={};for(var Se in Pe)Object.prototype.hasOwnProperty.call(Pe,Se)&&Ne.indexOf(Se)<0&&(ke[Se]=Pe[Se]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Se=Object.getOwnPropertySymbols(Pe);nt{if(Ne&&typeof Ne=="object"){const Se=Ne,{label:nt,children:Pt,key:qe,type:Ue}=Se,St=Ie(Se,["label","children","key","type"]),vt=qe!=null?qe:`tmp-${ke}`;return Pt||Ue==="group"?Ue==="group"?De.createElement(ce.BW,Object.assign({key:vt},St,{title:nt}),ze(Pt)):De.createElement(de,Object.assign({key:vt},St,{title:nt}),ze(Pt)):Ue==="divider"?De.createElement(ct,Object.assign({key:vt},St)):De.createElement(he,Object.assign({key:vt},St),nt)}return null}).filter(Ne=>Ne)}function et(Pe){return De.useMemo(()=>Pe&&ze(Pe),[Pe])}var $e=ve(64993),gt=ve(17313),je=ve(8378),Tt=ve(13826),Qe=ve(29878),bt=ve(83116),Nt=ve(37613),Zt=Pe=>{const{componentCls:Ne,motionDurationSlow:ke,horizontalLineHeight:Se,colorSplit:nt,lineWidth:Pt,lineType:qe,itemPaddingInline:Ue}=Pe;return{[`${Ne}-horizontal`]:{lineHeight:Se,border:0,borderBottom:`${Pt}px ${qe} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ne}-item, ${Ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ue},[`> ${Ne}-item:hover, > ${Ne}-item-active, > ${Ne}-submenu ${Ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ne}-item, ${Ne}-submenu-title`]:{transition:[`border-color ${ke}`,`background ${ke}`].join(",")},[`${Ne}-submenu-arrow`]:{display:"none"}}}},ut=Pe=>{let{componentCls:Ne,menuArrowOffset:ke}=Pe;return{[`${Ne}-rtl`]:{direction:"rtl"},[`${Ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ne}-rtl${Ne}-vertical, ${Ne}-submenu-rtl ${Ne}-vertical`]:{[`${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ke})`},"&::after":{transform:`rotate(45deg) translateY(${ke})`}}}}};const Ge=Pe=>Object.assign({},(0,gt.oN)(Pe));var ln=(Pe,Ne)=>{const{componentCls:ke,itemColor:Se,itemSelectedColor:nt,groupTitleColor:Pt,itemBg:qe,subMenuItemBg:Ue,itemSelectedBg:St,activeBarHeight:vt,activeBarWidth:lt,activeBarBorderWidth:Dt,motionDurationSlow:un,motionEaseInOut:Xt,motionEaseOut:$t,itemPaddingInline:wn,motionDurationMid:bn,itemHoverColor:pn,lineType:Yn,colorSplit:ai,itemDisabledColor:Wn,dangerItemColor:Rn,dangerItemHoverColor:ii,dangerItemSelectedColor:pi,dangerItemActiveBg:gi,dangerItemSelectedBg:Ri,itemHoverBg:Ji,itemActiveBg:Un,menuSubMenuBg:$n,horizontalItemSelectedColor:ti,horizontalItemSelectedBg:Pi,horizontalItemBorderRadius:mi,horizontalItemHoverBg:nr,popupBg:ji}=Pe;return{[`${ke}-${Ne}, ${ke}-${Ne} > ${ke}`]:{color:Se,background:qe,[`&${ke}-root:focus-visible`]:Object.assign({},Ge(Pe)),[`${ke}-item-group-title`]:{color:Pt},[`${ke}-submenu-selected`]:{[`> ${ke}-submenu-title`]:{color:nt}},[`${ke}-item-disabled, ${ke}-submenu-disabled`]:{color:`${Wn} !important`},[`${ke}-item:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{[`&:hover, > ${ke}-submenu-title:hover`]:{color:pn}},[`&:not(${ke}-horizontal)`]:{[`${ke}-item:not(${ke}-item-selected)`]:{"&:hover":{backgroundColor:Ji},"&:active":{backgroundColor:Un}},[`${ke}-submenu-title`]:{"&:hover":{backgroundColor:Ji},"&:active":{backgroundColor:Un}}},[`${ke}-item-danger`]:{color:Rn,[`&${ke}-item:hover`]:{[`&:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{color:ii}},[`&${ke}-item:active`]:{background:gi}},[`${ke}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ke}-item-selected`]:{color:nt,[`&${ke}-item-danger`]:{color:pi},"a, a:hover":{color:"inherit"}},[`& ${ke}-item-selected`]:{backgroundColor:St,[`&${ke}-item-danger`]:{backgroundColor:Ri}},[`${ke}-item, ${ke}-submenu-title`]:{[`&:not(${ke}-item-disabled):focus-visible`]:Object.assign({},Ge(Pe))},[`&${ke}-submenu > ${ke}`]:{backgroundColor:$n},[`&${ke}-popup > ${ke}`]:{backgroundColor:ji},[`&${ke}-horizontal`]:Object.assign(Object.assign({},Ne==="dark"?{borderBottom:0}:{}),{[`> ${ke}-item, > ${ke}-submenu`]:{top:Dt,marginTop:-Dt,marginBottom:0,borderRadius:mi,"&::after":{position:"absolute",insetInline:wn,bottom:0,borderBottom:`${vt}px solid transparent`,transition:`border-color ${un} ${Xt}`,content:'""'},"&:hover, &-active, &-open":{background:nr,"&::after":{borderBottomWidth:vt,borderBottomColor:ti}},"&-selected":{color:ti,backgroundColor:Pi,"&:hover":{backgroundColor:Pi},"&::after":{borderBottomWidth:vt,borderBottomColor:ti}}}}),[`&${ke}-root`]:{[`&${ke}-inline, &${ke}-vertical`]:{borderInlineEnd:`${Dt}px ${Yn} ${ai}`}},[`&${ke}-inline`]:{[`${ke}-sub${ke}-inline`]:{background:Ue},[`${ke}-item, ${ke}-submenu-title`]:Dt&<?{width:`calc(100% + ${Dt}px)`}:{},[`${ke}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${lt}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${bn} ${$t}`,`opacity ${bn} ${$t}`].join(","),content:'""'},[`&${ke}-item-danger`]:{"&::after":{borderInlineEndColor:pi}}},[`${ke}-selected, ${ke}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${bn} ${Xt}`,`opacity ${bn} ${Xt}`].join(",")}}}}}};const sn=Pe=>{const{componentCls:Ne,itemHeight:ke,itemMarginInline:Se,padding:nt,menuArrowSize:Pt,marginXS:qe,itemMarginBlock:Ue}=Pe,St=nt+Pt+qe;return{[`${Ne}-item`]:{position:"relative",overflow:"hidden"},[`${Ne}-item, ${Ne}-submenu-title`]:{height:ke,lineHeight:`${ke}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Se,marginBlock:Ue,width:`calc(100% - ${Se*2}px)`},[`> ${Ne}-item, > ${Ne}-submenu > ${Ne}-submenu-title`]:{height:ke,lineHeight:`${ke}px`},[`${Ne}-item-group-list ${Ne}-submenu-title, ${Ne}-submenu-title`]:{paddingInlineEnd:St}}};var Gt=Pe=>{const{componentCls:Ne,iconCls:ke,itemHeight:Se,colorTextLightSolid:nt,dropdownWidth:Pt,controlHeightLG:qe,motionDurationMid:Ue,motionEaseOut:St,paddingXL:vt,itemMarginInline:lt,fontSizeLG:Dt,motionDurationSlow:un,paddingXS:Xt,boxShadowSecondary:$t,collapsedWidth:wn,collapsedIconSize:bn}=Pe,pn={height:Se,lineHeight:`${Se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ne]:{"&-inline, &-vertical":Object.assign({[`&${Ne}-root`]:{boxShadow:"none"}},sn(Pe))},[`${Ne}-submenu-popup`]:{[`${Ne}-vertical`]:Object.assign(Object.assign({},sn(Pe)),{boxShadow:$t})}},{[`${Ne}-submenu-popup ${Ne}-vertical${Ne}-sub`]:{minWidth:Pt,maxHeight:`calc(100vh - ${qe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ne}-inline`]:{width:"100%",[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${un}`,`background ${un}`,`padding ${Ue} ${St}`].join(","),[`> ${Ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ne}-sub${Ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ne}-submenu > ${Ne}-submenu-title`]:pn,[`& ${Ne}-item-group-title`]:{paddingInlineStart:vt}},[`${Ne}-item`]:pn}},{[`${Ne}-inline-collapsed`]:{width:wn,[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu ${Ne}-submenu-title`]:{[`> ${Ne}-inline-collapsed-noicon`]:{fontSize:Dt,textAlign:"center"}}},[`> ${Ne}-item, > ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-item, > ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-submenu > ${Ne}-submenu-title, > ${Ne}-submenu > ${Ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Dt/2}px - ${lt}px)`,textOverflow:"clip",[` ${Ne}-submenu-arrow, ${Ne}-submenu-expand-icon `]:{opacity:0},[`${Ne}-item-icon, ${ke}`]:{margin:0,fontSize:bn,lineHeight:`${Se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ne}-item-icon, ${ke}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ne}-item-icon, ${ke}`]:{display:"none"},"a, a:hover":{color:nt}},[`${Ne}-item-group-title`]:Object.assign(Object.assign({},gt.vS),{paddingInline:Xt})}}]};const en=Pe=>{const{componentCls:Ne,motionDurationSlow:ke,motionDurationMid:Se,motionEaseInOut:nt,motionEaseOut:Pt,iconCls:qe,iconSize:Ue,iconMarginInlineEnd:St}=Pe;return{[`${Ne}-item, ${Ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ke}`,`background ${ke}`,`padding ${ke} ${nt}`].join(","),[`${Ne}-item-icon, ${qe}`]:{minWidth:Ue,fontSize:Ue,transition:[`font-size ${Se} ${Pt}`,`margin ${ke} ${nt}`,`color ${ke}`].join(","),"+ span":{marginInlineStart:St,opacity:1,transition:[`opacity ${ke} ${nt}`,`margin ${ke}`,`color ${ke}`].join(",")}},[`${Ne}-item-icon`]:Object.assign({},(0,gt.Ro)()),[`&${Ne}-item-only-child`]:{[`> ${qe}, > ${Ne}-item-icon`]:{marginInlineEnd:0}}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bn=Pe=>{const{componentCls:Ne,motionDurationSlow:ke,motionEaseInOut:Se,borderRadius:nt,menuArrowSize:Pt,menuArrowOffset:qe}=Pe;return{[`${Ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Pe.margin,width:Pt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ke} ${Se}, opacity ${ke}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Pt*.6,height:Pt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${ke} ${Se}`,`transform ${ke} ${Se}`,`top ${ke} ${Se}`,`color ${ke} ${Se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${qe})`},"&::after":{transform:`rotate(-45deg) translateY(${qe})`}}}}},rn=Pe=>{const{antCls:Ne,componentCls:ke,fontSize:Se,motionDurationSlow:nt,motionDurationMid:Pt,motionEaseInOut:qe,paddingXS:Ue,padding:St,colorSplit:vt,lineWidth:lt,zIndexPopup:Dt,borderRadiusLG:un,subMenuItemBorderRadius:Xt,menuArrowSize:$t,menuArrowOffset:wn,lineType:bn,menuPanelMaskInset:pn,groupTitleLineHeight:Yn,groupTitleFontSize:ai}=Pe;return[{"":{[`${ke}`]:Object.assign(Object.assign({},(0,gt.dF)()),{"&-hidden":{display:"none"}})},[`${ke}-submenu-hidden`]:{display:"none"}},{[ke]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(Pe)),(0,gt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ke}-item`]:{flex:"none"}},[`${ke}-item, ${ke}-submenu, ${ke}-submenu-title`]:{borderRadius:Pe.itemBorderRadius},[`${ke}-item-group-title`]:{padding:`${Ue}px ${St}px`,fontSize:ai,lineHeight:Yn,transition:`all ${nt}`},[`&-horizontal ${ke}-submenu`]:{transition:[`border-color ${nt} ${qe}`,`background ${nt} ${qe}`].join(",")},[`${ke}-submenu, ${ke}-submenu-inline`]:{transition:[`border-color ${nt} ${qe}`,`background ${nt} ${qe}`,`padding ${Pt} ${qe}`].join(",")},[`${ke}-submenu ${ke}-sub`]:{cursor:"initial",transition:[`background ${nt} ${qe}`,`padding ${nt} ${qe}`].join(",")},[`${ke}-title-content`]:{transition:`color ${nt}`},[`${ke}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ke}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:vt,borderStyle:bn,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),en(Pe)),{[`${ke}-item-group`]:{[`${ke}-item-group-list`]:{margin:0,padding:0,[`${ke}-item, ${ke}-submenu-title`]:{paddingInline:`${Se*2}px ${St}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Dt,borderRadius:un,boxShadow:"none",transformOrigin:"0 0",[`&${ke}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pn},"\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:Pe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Pe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Pe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Pe.paddingXS},[`> ${ke}`]:Object.assign(Object.assign(Object.assign({borderRadius:un},en(Pe)),Bn(Pe)),{[`${ke}-item, ${ke}-submenu > ${ke}-submenu-title`]:{borderRadius:Xt},[`${ke}-submenu-title::after`]:{transition:`transform ${nt} ${qe}`}})}}),Bn(Pe)),{[`&-inline-collapsed ${ke}-submenu-arrow, &-inline ${ke}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wn})`},"&::after":{transform:`rotate(45deg) translateX(-${wn})`}},[`${ke}-submenu-open${ke}-submenu-inline > ${ke}-submenu-title > ${ke}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${wn})`},"&::before":{transform:`rotate(45deg) translateX(${wn})`}}})},{[`${Ne}-layout-header`]:{[ke]:{lineHeight:"inherit"}}}]};var Cn=(Pe,Ne)=>(0,bt.Z)("Menu",Se=>{if(Ne===!1)return[];const{colorBgElevated:nt,colorPrimary:Pt,colorTextLightSolid:qe,controlHeightLG:Ue,fontSize:St,darkItemColor:vt,darkDangerItemColor:lt,darkItemBg:Dt,darkSubMenuItemBg:un,darkItemSelectedColor:Xt,darkItemSelectedBg:$t,darkDangerItemSelectedBg:wn,darkItemHoverBg:bn,darkGroupTitleColor:pn,darkItemHoverColor:Yn,darkItemDisabledColor:ai,darkDangerItemHoverColor:Wn,darkDangerItemSelectedColor:Rn,darkDangerItemActiveBg:ii}=Se,pi=St/7*5,gi=(0,Nt.TS)(Se,{menuArrowSize:pi,menuHorizontalHeight:Ue*1.15,menuArrowOffset:`${pi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),Ri=(0,Nt.TS)(gi,{itemColor:vt,itemHoverColor:Yn,groupTitleColor:pn,itemSelectedColor:Xt,itemBg:Dt,popupBg:Dt,subMenuItemBg:un,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:bn,itemDisabledColor:ai,dangerItemColor:lt,dangerItemHoverColor:Wn,dangerItemSelectedColor:Rn,dangerItemActiveBg:ii,dangerItemSelectedBg:wn,menuSubMenuBg:un,horizontalItemSelectedColor:qe,horizontalItemSelectedBg:Pt});return[rn(gi),Zt(gi),Gt(gi),ln(gi,"light"),ln(Ri,"dark"),ut(gi),(0,je.Z)(gi),(0,Tt.oN)(gi,"slide-up"),(0,Tt.oN)(gi,"slide-down"),(0,Qe._y)(gi,"zoom-big")]},Se=>{const{colorPrimary:nt,colorError:Pt,colorTextDisabled:qe,colorErrorBg:Ue,colorText:St,colorTextDescription:vt,colorBgContainer:lt,colorFillAlter:Dt,colorFillContent:un,lineWidth:Xt,lineWidthBold:$t,controlItemBgActive:wn,colorBgTextHover:bn,controlHeightLG:pn,lineHeight:Yn,colorBgElevated:ai,marginXXS:Wn,padding:Rn,fontSize:ii,controlHeightSM:pi,fontSizeLG:gi,colorTextLightSolid:Ri,colorErrorHover:Ji}=Se,Un=new $e.C(Ri).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Se.zIndexPopupBase+50,radiusItem:Se.borderRadiusLG,itemBorderRadius:Se.borderRadiusLG,radiusSubMenuItem:Se.borderRadiusSM,subMenuItemBorderRadius:Se.borderRadiusSM,colorItemText:St,itemColor:St,colorItemTextHover:St,itemHoverColor:St,colorItemTextHoverHorizontal:nt,horizontalItemHoverColor:nt,colorGroupTitle:vt,groupTitleColor:vt,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:lt,itemBg:lt,colorItemBgHover:bn,itemHoverBg:bn,colorItemBgActive:un,itemActiveBg:wn,colorSubItemBg:Dt,subMenuItemBg:Dt,colorItemBgSelected:wn,itemSelectedBg:wn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:Xt,activeBarBorderWidth:Xt,colorItemTextDisabled:qe,itemDisabledColor:qe,colorDangerItemText:Pt,dangerItemColor:Pt,colorDangerItemTextHover:Pt,dangerItemHoverColor:Pt,colorDangerItemTextSelected:Pt,dangerItemSelectedColor:Pt,colorDangerItemBgActive:Ue,dangerItemActiveBg:Ue,colorDangerItemBgSelected:Ue,dangerItemSelectedBg:Ue,itemMarginInline:Se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pn,groupTitleLineHeight:Yn,collapsedWidth:pn*2,popupBg:ai,itemMarginBlock:Wn,itemPaddingInline:Rn,horizontalLineHeight:`${pn*1.15}px`,iconSize:ii,iconMarginInlineEnd:pi-ii,collapsedIconSize:gi,groupTitleFontSize:ii,darkItemDisabledColor:new $e.C(Ri).setAlpha(.25).toRgbString(),darkItemColor:Un,darkDangerItemColor:Pt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ri,darkItemSelectedBg:nt,darkDangerItemSelectedBg:Pt,darkItemHoverBg:"transparent",darkGroupTitleColor:Un,darkItemHoverColor:Ri,darkDangerItemHoverColor:Ji,darkDangerItemSelectedColor:Ri,darkDangerItemActiveBg: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"]]})(Pe),ft=function(Pe,Ne){var ke={};for(var Se in Pe)Object.prototype.hasOwnProperty.call(Pe,Se)&&Ne.indexOf(Se)<0&&(ke[Se]=Pe[Se]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Se=Object.getOwnPropertySymbols(Pe);nt{var ke,Se;const nt=De.useContext(Me.Z),Pt=nt||{},{getPrefixCls:qe,getPopupContainer:Ue,direction:St,menu:vt}=De.useContext(Ke.E_),lt=qe(),{prefixCls:Dt,className:un,style:Xt,theme:$t="light",expandIcon:wn,_internalDisableMenuItemTitleTooltip:bn,inlineCollapsed:pn,siderCollapsed:Yn,items:ai,children:Wn,rootClassName:Rn,mode:ii,selectable:pi,onClick:gi,overflowedIndicatorPopupClassName:Ri}=Pe,Ji=ft(Pe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Un=(0,Et.Z)(Ji,["collapsedWidth"]),$n=et(ai)||Wn;(ke=Pt.validator)===null||ke===void 0||ke.call(Pt,{mode:ii});const ti=(0,we.useEvent)(function(){var Fi;gi==null||gi.apply(void 0,arguments),(Fi=Pt.onClick)===null||Fi===void 0||Fi.call(Pt)}),Pi=Pt.mode||ii,mi=pi!=null?pi:Pt.selectable,nr=De.useMemo(()=>Yn!==void 0?Yn:pn,[pn,Yn]),ji={horizontal:{motionName:`${lt}-slide-up`},inline:(0,be.Z)(lt),other:{motionName:`${lt}-zoom-big`}},Le=qe("menu",Dt||Pt.prefixCls),[si,Hi]=Cn(Le,!nt),hn=Ze()(`${Le}-${$t}`,vt==null?void 0:vt.className,un);let ni;if(typeof wn=="function")ni=wn;else if(wn===null||wn===!1)ni=null;else if(Pt.expandIcon===null||Pt.expandIcon===!1)ni=null;else{const Fi=wn!=null?wn:Pt.expandIcon;ni=(0,dt.Tm)(Fi,{className:Ze()(`${Le}-submenu-expand-icon`,(0,dt.l$)(Fi)?(Se=Fi.props)===null||Se===void 0?void 0:Se.className:"")})}const vi=De.useMemo(()=>({prefixCls:Le,inlineCollapsed:nr||!1,direction:St,firstLevel:!0,theme:$t,mode:Pi,disableMenuItemTitleTooltip:bn}),[Le,nr,St,bn,$t]);return si(De.createElement(Me.Z.Provider,{value:null},De.createElement(te.Provider,{value:vi},De.createElement(ce.ZP,Object.assign({getPopupContainer:Ue,overflowedIndicator:De.createElement(me.Z,null),overflowedIndicatorPopupClassName:Ze()(Le,`${Le}-${$t}`,Ri),mode:Pi,selectable:mi,onClick:ti},Un,{inlineCollapsed:nr,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Xt),className:hn,prefixCls:Le,direction:St,defaultMotions:ji,expandIcon:ni,ref:Ne,rootClassName:Ze()(Rn,Hi)}),$n))))});const Re=(0,De.forwardRef)((Pe,Ne)=>{const ke=(0,De.useRef)(null),Se=De.useContext(_e.D);return(0,De.useImperativeHandle)(Ne,()=>({menu:ke.current,focus:nt=>{var Pt;(Pt=ke.current)===null||Pt===void 0||Pt.focus(nt)}})),De.createElement(Vn,Object.assign({ref:ke},Pe,Se))});Re.Item=he,Re.SubMenu=de,Re.Divider=ct,Re.ItemGroup=ce.BW;var Ce=Re},58421:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Pt}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(Ue,St){return De.createElement(Ze.Z,(0,ce.Z)({},Ue,{ref:St,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be,ct=ve(49198),He=ve(33853),Et=ve(38819),ht=ve(92310),dt=ve.n(ht),Ae=ve(90493),te=ve(44127),ee=ve(52884),he=ve(95727),se=ve(65711),de=ve(85745),me=ve(26112),we={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},be=we,Me=ve(91735),Ie=function(qe){(0,se.Z)(St,qe);var Ue=(0,de.Z)(St);function St(){var vt;(0,ee.Z)(this,St);for(var lt=arguments.length,Dt=new Array(lt),un=0;un=0||Xt.relatedTarget.className.indexOf("".concat(pn,"-item"))>=0))&&bn(vt.getValidValue()))},vt.go=function(Xt){var $t=vt.state.goInputText;$t!==""&&(Xt.keyCode===be.ENTER||Xt.type==="click")&&(vt.setState({goInputText:""}),vt.props.quickGo(vt.getValidValue()))},vt}return(0,he.Z)(St,[{key:"getPageSizeOptions",value:function(){var lt=this.props,Dt=lt.pageSize,un=lt.pageSizeOptions;return un.some(function(Xt){return Xt.toString()===Dt.toString()})?un:un.concat([Dt.toString()]).sort(function(Xt,$t){var wn=Number.isNaN(Number(Xt))?0:Number(Xt),bn=Number.isNaN(Number($t))?0:Number($t);return wn-bn})}},{key:"render",value:function(){var lt=this,Dt=this.props,un=Dt.pageSize,Xt=Dt.locale,$t=Dt.rootPrefixCls,wn=Dt.changeSize,bn=Dt.quickGo,pn=Dt.goButton,Yn=Dt.selectComponentClass,ai=Dt.buildOptionText,Wn=Dt.selectPrefixCls,Rn=Dt.disabled,ii=this.state.goInputText,pi="".concat($t,"-options"),gi=Yn,Ri=null,Ji=null,Un=null;if(!wn&&!bn)return null;var $n=this.getPageSizeOptions();if(wn&&gi){var ti=$n.map(function(Pi,mi){return De.createElement(gi.Option,{key:mi,value:Pi.toString()},(ai||lt.buildOptionText)(Pi))});Ri=De.createElement(gi,{disabled:Rn,prefixCls:Wn,showSearch:!1,className:"".concat(pi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(un||$n[0]).toString(),onChange:this.changeSize,getPopupContainer:function(mi){return mi.parentNode},"aria-label":Xt.page_size,defaultOpen:!1},ti)}return bn&&(pn&&(Un=typeof pn=="boolean"?De.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Rn,className:"".concat(pi,"-quick-jumper-button")},Xt.jump_to_confirm):De.createElement("span",{onClick:this.go,onKeyUp:this.go},pn)),Ji=De.createElement("div",{className:"".concat(pi,"-quick-jumper")},Xt.jump_to,De.createElement("input",{disabled:Rn,type:"text",value:ii,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Xt.page}),Xt.page,Un)),De.createElement("li",{className:"".concat(pi)},Ri,Ji)}}]),St}(De.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var ze=Ie,et=function(Ue){var St,vt=Ue.rootPrefixCls,lt=Ue.page,Dt=Ue.active,un=Ue.className,Xt=Ue.showTitle,$t=Ue.onClick,wn=Ue.onKeyPress,bn=Ue.itemRender,pn="".concat(vt,"-item"),Yn=dt()(pn,"".concat(pn,"-").concat(lt),(St={},(0,Ae.Z)(St,"".concat(pn,"-active"),Dt),(0,Ae.Z)(St,"".concat(pn,"-disabled"),!lt),(0,Ae.Z)(St,Ue.className,un),St)),ai=function(){$t(lt)},Wn=function(pi){wn(pi,$t,lt)},Rn=bn(lt,"page",De.createElement("a",{rel:"nofollow"},lt));return Rn?De.createElement("li",{title:Xt?lt.toString():null,className:Yn,onClick:ai,onKeyPress:Wn,tabIndex:0},Rn):null},$e=et;function gt(){}function je(qe){var Ue=Number(qe);return typeof Ue=="number"&&!Number.isNaN(Ue)&&isFinite(Ue)&&Math.floor(Ue)===Ue}var Tt=function(Ue,St,vt){return vt};function Qe(qe,Ue,St){var vt=typeof qe=="undefined"?Ue.pageSize:qe;return Math.floor((St.total-1)/vt)+1}var bt=function(qe){(0,se.Z)(St,qe);var Ue=(0,de.Z)(St);function St(vt){var lt;(0,ee.Z)(this,St),lt=Ue.call(this,vt),lt.paginationNode=De.createRef(),lt.getJumpPrevPage=function(){return Math.max(1,lt.state.current-(lt.props.showLessItems?3:5))},lt.getJumpNextPage=function(){return Math.min(Qe(void 0,lt.state,lt.props),lt.state.current+(lt.props.showLessItems?3:5))},lt.getItemIcon=function(wn,bn){var pn=lt.props.prefixCls,Yn=wn||De.createElement("button",{type:"button","aria-label":bn,className:"".concat(pn,"-item-link")});return typeof wn=="function"&&(Yn=De.createElement(wn,(0,te.Z)({},lt.props))),Yn},lt.isValid=function(wn){var bn=lt.props.total;return je(wn)&&wn!==lt.state.current&&je(bn)&&bn>0},lt.shouldDisplayQuickJumper=function(){var wn=lt.props,bn=wn.showQuickJumper,pn=wn.total,Yn=lt.state.pageSize;return pn<=Yn?!1:bn},lt.handleKeyDown=function(wn){(wn.keyCode===be.ARROW_UP||wn.keyCode===be.ARROW_DOWN)&&wn.preventDefault()},lt.handleKeyUp=function(wn){var bn=lt.getValidValue(wn),pn=lt.state.currentInputValue;bn!==pn&<.setState({currentInputValue:bn}),wn.keyCode===be.ENTER?lt.handleChange(bn):wn.keyCode===be.ARROW_UP?lt.handleChange(bn-1):wn.keyCode===be.ARROW_DOWN&<.handleChange(bn+1)},lt.handleBlur=function(wn){var bn=lt.getValidValue(wn);lt.handleChange(bn)},lt.changePageSize=function(wn){var bn=lt.state.current,pn=Qe(wn,lt.state,lt.props);bn=bn>pn?pn:bn,pn===0&&(bn=lt.state.current),typeof wn=="number"&&("pageSize"in lt.props||lt.setState({pageSize:wn}),"current"in lt.props||lt.setState({current:bn,currentInputValue:bn})),lt.props.onShowSizeChange(bn,wn),"onChange"in lt.props&<.props.onChange&<.props.onChange(bn,wn)},lt.handleChange=function(wn){var bn=lt.props,pn=bn.disabled,Yn=bn.onChange,ai=lt.state,Wn=ai.pageSize,Rn=ai.current,ii=ai.currentInputValue;if(lt.isValid(wn)&&!pn){var pi=Qe(void 0,lt.state,lt.props),gi=wn;return wn>pi?gi=pi:wn<1&&(gi=1),"current"in lt.props||lt.setState({current:gi}),gi!==ii&<.setState({currentInputValue:gi}),Yn(gi,Wn),gi}return Rn},lt.prev=function(){lt.hasPrev()&<.handleChange(lt.state.current-1)},lt.next=function(){lt.hasNext()&<.handleChange(lt.state.current+1)},lt.jumpPrev=function(){lt.handleChange(lt.getJumpPrevPage())},lt.jumpNext=function(){lt.handleChange(lt.getJumpNextPage())},lt.hasPrev=function(){return lt.state.current>1},lt.hasNext=function(){return lt.state.current2?pn-2:0),ai=2;ai=un?$t=un:$t=Number(Dt),$t}},{key:"getShowSizeChanger",value:function(){var lt=this.props,Dt=lt.showSizeChanger,un=lt.total,Xt=lt.totalBoundaryShowSizeChanger;return typeof Dt!="undefined"?Dt:un>Xt}},{key:"render",value:function(){var lt=this.props,Dt=lt.prefixCls,un=lt.className,Xt=lt.style,$t=lt.disabled,wn=lt.hideOnSinglePage,bn=lt.total,pn=lt.locale,Yn=lt.showQuickJumper,ai=lt.showLessItems,Wn=lt.showTitle,Rn=lt.showTotal,ii=lt.simple,pi=lt.itemRender,gi=lt.showPrevNextJumpers,Ri=lt.jumpPrevIcon,Ji=lt.jumpNextIcon,Un=lt.selectComponentClass,$n=lt.selectPrefixCls,ti=lt.pageSizeOptions,Pi=this.state,mi=Pi.current,nr=Pi.pageSize,ji=Pi.currentInputValue;if(wn===!0&&bn<=nr)return null;var Le=Qe(void 0,this.state,this.props),si=[],Hi=null,hn=null,ni=null,vi=null,Fi=null,_n=Yn&&Yn.goButton,Dn=ai?1:2,Ft=mi-1>0?mi-1:0,Ot=mi+1bn?bn:mi*nr]));if(ii){_n&&(typeof _n=="boolean"?Fi=De.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},pn.jump_to_confirm):Fi=De.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_n),Fi=De.createElement("li",{title:Wn?"".concat(pn.jump_to).concat(mi,"/").concat(Le):null,className:"".concat(Dt,"-simple-pager")},Fi));var tn=this.renderPrev(Ft);return De.createElement("ul",(0,ce.Z)({className:dt()(Dt,"".concat(Dt,"-simple"),(0,Ae.Z)({},"".concat(Dt,"-disabled"),$t),un),style:Xt,ref:this.paginationNode},Ve),Ut,tn?De.createElement("li",{title:Wn?pn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:dt()("".concat(Dt,"-prev"),(0,Ae.Z)({},"".concat(Dt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},tn):null,De.createElement("li",{title:Wn?"".concat(mi,"/").concat(Le):null,className:"".concat(Dt,"-simple-pager")},De.createElement("input",{type:"text",value:ji,disabled:$t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),De.createElement("span",{className:"".concat(Dt,"-slash")},"/"),Le),De.createElement("li",{title:Wn?pn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:dt()("".concat(Dt,"-next"),(0,Ae.Z)({},"".concat(Dt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ot)),Fi)}if(Le<=3+Dn*2){var xt={locale:pn,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Wn,itemRender:pi};Le||si.push(De.createElement($e,(0,ce.Z)({},xt,{key:"noPager",page:1,className:"".concat(Dt,"-item-disabled")})));for(var rt=1;rt<=Le;rt+=1){var Vt=mi===rt;si.push(De.createElement($e,(0,ce.Z)({},xt,{key:rt,page:rt,active:Vt})))}}else{var on=ai?pn.prev_3:pn.prev_5,xn=ai?pn.next_3:pn.next_5,An=pi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ri,"prev page")),yt=pi(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ji,"next page"));gi&&(Hi=An?De.createElement("li",{title:Wn?on:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:dt()("".concat(Dt,"-jump-prev"),(0,Ae.Z)({},"".concat(Dt,"-jump-prev-custom-icon"),!!Ri))},An):null,hn=yt?De.createElement("li",{title:Wn?xn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:dt()("".concat(Dt,"-jump-next"),(0,Ae.Z)({},"".concat(Dt,"-jump-next-custom-icon"),!!Ji))},yt):null),vi=De.createElement($e,{locale:pn,last:!0,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Le,page:Le,active:!1,showTitle:Wn,itemRender:pi}),ni=De.createElement($e,{locale:pn,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Wn,itemRender:pi});var cn=Math.max(1,mi-Dn),On=Math.min(mi+Dn,Le);mi-1<=Dn&&(On=1+Dn*2),Le-mi<=Dn&&(cn=Le-Dn*2);for(var ri=cn;ri<=On;ri+=1){var Wt=mi===ri;si.push(De.createElement($e,{locale:pn,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ri,page:ri,active:Wt,showTitle:Wn,itemRender:pi}))}mi-1>=Dn*2&&mi!==3&&(si[0]=(0,De.cloneElement)(si[0],{className:"".concat(Dt,"-item-after-jump-prev")}),si.unshift(Hi)),Le-mi>=Dn*2&&mi!==Le-2&&(si[si.length-1]=(0,De.cloneElement)(si[si.length-1],{className:"".concat(Dt,"-item-before-jump-next")}),si.push(hn)),cn!==1&&si.unshift(ni),On!==Le&&si.push(vi)}var Jt=!this.hasPrev()||!Le,hi=!this.hasNext()||!Le,ci=this.renderPrev(Ft),ui=this.renderNext(Ot);return De.createElement("ul",(0,ce.Z)({className:dt()(Dt,un,(0,Ae.Z)({},"".concat(Dt,"-disabled"),$t)),style:Xt,ref:this.paginationNode},Ve),Ut,ci?De.createElement("li",{title:Wn?pn.prev_page:null,onClick:this.prev,tabIndex:Jt?null:0,onKeyPress:this.runIfEnterPrev,className:dt()("".concat(Dt,"-prev"),(0,Ae.Z)({},"".concat(Dt,"-disabled"),Jt)),"aria-disabled":Jt},ci):null,si,ui?De.createElement("li",{title:Wn?pn.next_page:null,onClick:this.next,tabIndex:hi?null:0,onKeyPress:this.runIfEnterNext,className:dt()("".concat(Dt,"-next"),(0,Ae.Z)({},"".concat(Dt,"-disabled"),hi)),"aria-disabled":hi},ui):null,De.createElement(ze,{disabled:$t,locale:pn,rootPrefixCls:Dt,selectComponentClass:Un,selectPrefixCls:$n,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:mi,pageSize:nr,pageSizeOptions:ti,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_n}))}}],[{key:"getDerivedStateFromProps",value:function(lt,Dt){var un={};if("current"in lt&&(un.current=lt.current,lt.current!==Dt.current&&(un.currentInputValue=un.current)),"pageSize"in lt&<.pageSize!==Dt.pageSize){var Xt=Dt.current,$t=Qe(lt.pageSize,Dt,lt);Xt=Xt>$t?$t:Xt,"current"in lt||(un.current=Xt,un.currentInputValue=Xt),un.pageSize=lt.pageSize}return un}}]),St}(De.Component);bt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:gt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:gt,locale:Me.Z,style:{},itemRender:Tt,totalBoundaryShowSizeChanger:50};var Nt=bt,At=ve(22075),Zt=ve(36355),Yt=ve(19716),ut=ve(8628),Ge=ve(9763),kt=ve(57809);const ln=qe=>De.createElement(kt.default,Object.assign({},qe,{showSearch:!0,size:"small"})),sn=qe=>De.createElement(kt.default,Object.assign({},qe,{showSearch:!0,size:"middle"}));ln.Option=kt.default.Option,sn.Option=kt.default.Option;var Bt=ve(9937),Gt=ve(17313),en=ve(83116),Bn=ve(37613);const rn=qe=>{const{componentCls:Ue}=qe;return{[`${Ue}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ue}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ue}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ue}-disabled`]:{cursor:"not-allowed",[`${Ue}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:qe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:qe.colorBorder,backgroundColor:qe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:qe.itemActiveBgDisabled},a:{color:qe.itemActiveColorDisabled}}},[`${Ue}-item-link`]:{color:qe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ue}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ue}-simple-pager`]:{color:qe.colorTextDisabled},[`${Ue}-jump-prev, ${Ue}-jump-next`]:{[`${Ue}-item-link-icon`]:{opacity:0},[`${Ue}-item-ellipsis`]:{opacity:1}}},[`&${Ue}-simple`]:{[`${Ue}-prev, ${Ue}-next`]:{[`&${Ue}-disabled ${Ue}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Cn=qe=>{const{componentCls:Ue}=qe;return{[`&${Ue}-mini ${Ue}-total-text, &${Ue}-mini ${Ue}-simple-pager`]:{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`},[`&${Ue}-mini ${Ue}-item`]:{minWidth:qe.itemSizeSM,height:qe.itemSizeSM,margin:0,lineHeight:`${qe.itemSizeSM-2}px`},[`&${Ue}-mini:not(${Ue}-disabled) ${Ue}-item:not(${Ue}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive}},[`&${Ue}-mini ${Ue}-prev, &${Ue}-mini ${Ue}-next`]:{minWidth:qe.itemSizeSM,height:qe.itemSizeSM,margin:0,lineHeight:`${qe.itemSizeSM}px`},[`&${Ue}-mini:not(${Ue}-disabled)`]:{[`${Ue}-prev, ${Ue}-next`]:{[`&:hover ${Ue}-item-link`]:{backgroundColor:qe.colorBgTextHover},[`&:active ${Ue}-item-link`]:{backgroundColor:qe.colorBgTextActive},[`&${Ue}-disabled:hover ${Ue}-item-link`]:{backgroundColor:"transparent"}}},[` &${Ue}-mini ${Ue}-prev ${Ue}-item-link, &${Ue}-mini ${Ue}-next ${Ue}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`}},[`&${Ue}-mini ${Ue}-jump-prev, &${Ue}-mini ${Ue}-jump-next`]:{height:qe.itemSizeSM,marginInlineEnd:0,lineHeight:`${qe.itemSizeSM}px`},[`&${Ue}-mini ${Ue}-options`]:{marginInlineStart:qe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:qe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Bt.x0)(qe)),{width:qe.paginationMiniQuickJumperInputWidth,height:qe.controlHeightSM})}}}},ft=qe=>{const{componentCls:Ue}=qe;return{[` &${Ue}-simple ${Ue}-prev, &${Ue}-simple ${Ue}-next `]:{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`,verticalAlign:"top",[`${Ue}-item-link`]:{height:qe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive},"&::after":{height:qe.itemSizeSM,lineHeight:`${qe.itemSizeSM}px`}}},[`&${Ue}-simple ${Ue}-simple-pager`]:{display:"inline-block",height:qe.itemSizeSM,marginInlineEnd:qe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:qe.marginXS,padding:`0 ${qe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:qe.itemInputBg,border:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`,borderRadius:qe.borderRadius,outline:"none",transition:`border-color ${qe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:qe.colorPrimary},"&:focus":{borderColor:qe.colorPrimaryHover,boxShadow:`${qe.inputOutlineOffset}px 0 ${qe.controlOutlineWidth}px ${qe.controlOutline}`},"&[disabled]":{color:qe.colorTextDisabled,backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,cursor:"not-allowed"}}}}},En=qe=>{const{componentCls:Ue}=qe;return{[`${Ue}-jump-prev, ${Ue}-jump-next`]:{outline:0,[`${Ue}-item-container`]:{position:"relative",[`${Ue}-item-link-icon`]:{color:qe.colorPrimary,fontSize:qe.fontSizeSM,opacity:0,transition:`all ${qe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ue}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:qe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:qe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:qe.paginationEllipsisTextIndent,opacity:1,transition:`all ${qe.motionDurationMid}`}},"&:hover":{[`${Ue}-item-link-icon`]:{opacity:1},[`${Ue}-item-ellipsis`]:{opacity:0}}},[` ${Ue}-prev, ${Ue}-jump-prev, ${Ue}-jump-next `]:{marginInlineEnd:qe.marginXS},[` ${Ue}-prev, ${Ue}-next, ${Ue}-jump-prev, ${Ue}-jump-next `]:{display:"inline-block",minWidth:qe.itemSize,height:qe.itemSize,color:qe.colorText,fontFamily:qe.fontFamily,lineHeight:`${qe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:qe.borderRadius,cursor:"pointer",transition:`all ${qe.motionDurationMid}`},[`${Ue}-prev, ${Ue}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:qe.colorText,cursor:"pointer",userSelect:"none"},[`${Ue}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:qe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${qe.lineWidth}px ${qe.lineType} transparent`,borderRadius:qe.borderRadius,outline:"none",transition:`all ${qe.motionDurationMid}`},[`&:hover ${Ue}-item-link`]:{backgroundColor:qe.colorBgTextHover},[`&:active ${Ue}-item-link`]:{backgroundColor:qe.colorBgTextActive},[`&${Ue}-disabled:hover`]:{[`${Ue}-item-link`]:{backgroundColor:"transparent"}}},[`${Ue}-slash`]:{marginInlineEnd:qe.paginationSlashMarginInlineEnd,marginInlineStart:qe.paginationSlashMarginInlineStart},[`${Ue}-options`]:{display:"inline-block",marginInlineStart:qe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:qe.controlHeight,marginInlineStart:qe.marginXS,lineHeight:`${qe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Bt.ik)(qe)),{width:qe.controlHeightLG*1.25,height:qe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:qe.marginXS,marginInlineEnd:qe.marginXS})}}}},Vn=qe=>{const{componentCls:Ue}=qe;return{[`${Ue}-item`]:{display:"inline-block",minWidth:qe.itemSize,height:qe.itemSize,marginInlineEnd:qe.marginXS,fontFamily:qe.fontFamily,lineHeight:`${qe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${qe.lineWidth}px ${qe.lineType} transparent`,borderRadius:qe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${qe.paginationItemPaddingInline}px`,color:qe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ue}-item-active)`]:{"&:hover":{transition:`all ${qe.motionDurationMid}`,backgroundColor:qe.colorBgTextHover},"&:active":{backgroundColor:qe.colorBgTextActive}},"&-active":{fontWeight:qe.fontWeightStrong,backgroundColor:qe.itemActiveBg,borderColor:qe.colorPrimary,a:{color:qe.colorPrimary},"&:hover":{borderColor:qe.colorPrimaryHover},"&:hover a":{color:qe.colorPrimaryHover}}}}},Re=qe=>{const{componentCls:Ue}=qe;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.Wf)(qe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ue}-total-text`]:{display:"inline-block",height:qe.itemSize,marginInlineEnd:qe.marginXS,lineHeight:`${qe.itemSize-2}px`,verticalAlign:"middle"}}),Vn(qe)),En(qe)),ft(qe)),Cn(qe)),rn(qe)),{[`@media only screen and (max-width: ${qe.screenLG}px)`]:{[`${Ue}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${qe.screenSM}px)`]:{[`${Ue}-options`]:{display:"none"}}}),[`&${qe.componentCls}-rtl`]:{direction:"rtl"}}},Ce=qe=>{const{componentCls:Ue}=qe;return{[`${Ue}${Ue}-disabled:not(${Ue}-mini)`]:{"&, &:hover":{[`${Ue}-item-link`]:{borderColor:qe.colorBorder}},"&:focus-visible":{[`${Ue}-item-link`]:{borderColor:qe.colorBorder}},[`${Ue}-item, ${Ue}-item-link`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,[`&:hover:not(${Ue}-item-active)`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,a:{color:qe.colorTextDisabled}},[`&${Ue}-item-active`]:{backgroundColor:qe.itemActiveBgDisabled}},[`${Ue}-prev, ${Ue}-next`]:{"&:hover button":{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder,color:qe.colorTextDisabled},[`${Ue}-item-link`]:{backgroundColor:qe.colorBgContainerDisabled,borderColor:qe.colorBorder}}},[`${Ue}:not(${Ue}-mini)`]:{[`${Ue}-prev, ${Ue}-next`]:{"&:hover button":{borderColor:qe.colorPrimaryHover,backgroundColor:qe.itemBg},[`${Ue}-item-link`]:{backgroundColor:qe.itemLinkBg,borderColor:qe.colorBorder},[`&:hover ${Ue}-item-link`]:{borderColor:qe.colorPrimary,backgroundColor:qe.itemBg,color:qe.colorPrimary},[`&${Ue}-disabled`]:{[`${Ue}-item-link`]:{borderColor:qe.colorBorder,color:qe.colorTextDisabled}}},[`${Ue}-item`]:{backgroundColor:qe.itemBg,border:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`,[`&:hover:not(${Ue}-item-active)`]:{borderColor:qe.colorPrimary,backgroundColor:qe.itemBg,a:{color:qe.colorPrimary}},"&-active":{borderColor:qe.colorPrimary}}}}},Pe=qe=>{const{componentCls:Ue}=qe;return{[`${Ue}:not(${Ue}-disabled)`]:{[`${Ue}-item`]:Object.assign({},(0,Gt.Qy)(qe)),[`${Ue}-jump-prev, ${Ue}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ue}-item-link-icon`]:{opacity:1},[`${Ue}-item-ellipsis`]:{opacity:0}},(0,Gt.oN)(qe))},[`${Ue}-prev, ${Ue}-next`]:{[`&:focus-visible ${Ue}-item-link`]:Object.assign({},(0,Gt.oN)(qe))}}}};var Ne=(0,en.Z)("Pagination",qe=>{const Ue=(0,Bn.TS)(qe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:qe.marginXXS/2,paginationMiniQuickJumperInputWidth:qe.controlHeightLG*1.1,paginationItemPaddingInline:qe.marginXXS*1.5,paginationEllipsisLetterSpacing:qe.marginXXS/2,paginationSlashMarginInlineStart:qe.marginXXS,paginationSlashMarginInlineEnd:qe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Bt.e5)(qe),(0,Bt.TM)(qe));return[Re(Ue),Pe(Ue),qe.wireframe&&Ce(Ue)]},qe=>({itemBg:qe.colorBgContainer,itemSize:qe.controlHeight,itemSizeSM:qe.controlHeightSM,itemActiveBg:qe.colorBgContainer,itemLinkBg:qe.colorBgContainer,itemActiveColorDisabled:qe.colorTextDisabled,itemActiveBgDisabled:qe.controlItemBgActiveDisabled,itemInputBg:qe.colorBgContainer,miniOptionsSizeChangerTop:0})),ke=function(qe,Ue){var St={};for(var vt in qe)Object.prototype.hasOwnProperty.call(qe,vt)&&Ue.indexOf(vt)<0&&(St[vt]=qe[vt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,vt=Object.getOwnPropertySymbols(qe);lt{const{prefixCls:Ue,selectPrefixCls:St,className:vt,rootClassName:lt,style:Dt,size:un,locale:Xt,selectComponentClass:$t,responsive:wn,showSizeChanger:bn}=qe,pn=ke(qe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Yn}=(0,ut.Z)(wn),{getPrefixCls:ai,direction:Wn,pagination:Rn={}}=De.useContext(Zt.E_),ii=ai("pagination",Ue),[pi,gi]=Ne(ii),Ri=bn!=null?bn:Rn.showSizeChanger,Ji=De.useMemo(()=>{const Le=De.createElement("span",{className:`${ii}-item-ellipsis`},"\u2022\u2022\u2022"),si=De.createElement("button",{className:`${ii}-item-link`,type:"button",tabIndex:-1},Wn==="rtl"?De.createElement(Et.Z,null):De.createElement(He.Z,null)),Hi=De.createElement("button",{className:`${ii}-item-link`,type:"button",tabIndex:-1},Wn==="rtl"?De.createElement(He.Z,null):De.createElement(Et.Z,null)),hn=De.createElement("a",{className:`${ii}-item-link`},De.createElement("div",{className:`${ii}-item-container`},Wn==="rtl"?De.createElement(ct.Z,{className:`${ii}-item-link-icon`}):De.createElement(mt,{className:`${ii}-item-link-icon`}),Le)),ni=De.createElement("a",{className:`${ii}-item-link`},De.createElement("div",{className:`${ii}-item-container`},Wn==="rtl"?De.createElement(mt,{className:`${ii}-item-link-icon`}):De.createElement(ct.Z,{className:`${ii}-item-link-icon`}),Le));return{prevIcon:si,nextIcon:Hi,jumpPrevIcon:hn,jumpNextIcon:ni}},[Wn,ii]),[Un]=(0,Ge.Z)("Pagination",At.Z),$n=Object.assign(Object.assign({},Un),Xt),ti=(0,Yt.Z)(un),Pi=ti==="small"||!!(Yn&&!ti&&wn),mi=ai("select",St),nr=dt()({[`${ii}-mini`]:Pi,[`${ii}-rtl`]:Wn==="rtl"},Rn==null?void 0:Rn.className,vt,lt,gi),ji=Object.assign(Object.assign({},Rn==null?void 0:Rn.style),Dt);return pi(De.createElement(Nt,Object.assign({},Ji,pn,{style:ji,prefixCls:ii,selectPrefixCls:mi,className:nr,selectComponentClass:$t||(Pi?ln:sn),locale:$n,showSizeChanger:Ri})))},Pt=nt},39722:function(Pn,an,ve){"use strict";ve.d(an,{t5:function(){return He}});var ce=ve(92310),De=ve.n(ce),_e=ve(55477),Ct=ve(59301),Ze=ve(36355),Ke=ve(77578),Be=ve(17356),mt=function(ht,dt){var Ae={};for(var te in ht)Object.prototype.hasOwnProperty.call(ht,te)&&dt.indexOf(te)<0&&(Ae[te]=ht[te]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,te=Object.getOwnPropertySymbols(ht);ee{if(!(!dt&&!Ae))return Ct.createElement(Ct.Fragment,null,dt&&Ct.createElement("div",{className:`${ht}-title`},(0,Ke.Z)(dt)),Ct.createElement("div",{className:`${ht}-inner-content`},(0,Ke.Z)(Ae)))},He=ht=>{const{hashId:dt,prefixCls:Ae,className:te,style:ee,placement:he="top",title:se,content:de,children:me}=ht;return Ct.createElement("div",{className:De()(dt,Ae,`${Ae}-pure`,`${Ae}-placement-${he}`,te),style:ee},Ct.createElement("div",{className:`${Ae}-arrow`}),Ct.createElement(_e.G,Object.assign({},ht,{className:dt,prefixCls:Ae}),me||ct(Ae,se,de)))},Et=ht=>{const{prefixCls:dt}=ht,Ae=mt(ht,["prefixCls"]),{getPrefixCls:te}=Ct.useContext(Ze.E_),ee=te("popover",dt),[he,se]=(0,Be.Z)(ee);return he(Ct.createElement(He,Object.assign({},Ae,{prefixCls:ee,hashId:se})))};an.ZP=Et},60324:function(Pn,an,ve){"use strict";var ce=ve(92310),De=ve.n(ce),_e=ve(59301),Ct=ve(77578),Ze=ve(62892),Ke=ve(36355),Be=ve(6848),mt=ve(39722),ct=ve(17356),He=function(dt,Ae){var te={};for(var ee in dt)Object.prototype.hasOwnProperty.call(dt,ee)&&Ae.indexOf(ee)<0&&(te[ee]=dt[ee]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ee=Object.getOwnPropertySymbols(dt);he{let{title:Ae,content:te,prefixCls:ee}=dt;return _e.createElement(_e.Fragment,null,Ae&&_e.createElement("div",{className:`${ee}-title`},(0,Ct.Z)(Ae)),_e.createElement("div",{className:`${ee}-inner-content`},(0,Ct.Z)(te)))},ht=_e.forwardRef((dt,Ae)=>{const{prefixCls:te,title:ee,content:he,overlayClassName:se,placement:de="top",trigger:me="hover",mouseEnterDelay:we=.1,mouseLeaveDelay:be=.1,overlayStyle:Me={}}=dt,Ie=He(dt,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ze}=_e.useContext(Ke.E_),et=ze("popover",te),[$e,gt]=(0,ct.Z)(et),je=ze(),Tt=De()(se,gt);return $e(_e.createElement(Be.Z,Object.assign({placement:de,trigger:me,mouseEnterDelay:we,mouseLeaveDelay:be,overlayStyle:Me},Ie,{prefixCls:et,overlayClassName:Tt,ref:Ae,overlay:ee||he?_e.createElement(Et,{prefixCls:et,title:ee,content:he}):null,transitionName:(0,Ze.m)(je,"zoom-big",Ie.transitionName),"data-popover-inject":!0})))});ht._InternalPanelDoNotUseOrYouWillBeFired=mt.ZP,an.Z=ht},17356:function(Pn,an,ve){"use strict";var ce=ve(17313),De=ve(29878),_e=ve(19447),Ct=ve(33166),Ze=ve(83116),Ke=ve(37613);const Be=He=>{const{componentCls:Et,popoverColor:ht,minWidth:dt,fontWeightStrong:Ae,popoverPadding:te,boxShadowSecondary:ee,colorTextHeading:he,borderRadiusLG:se,zIndexPopup:de,marginXS:me,colorBgElevated:we,popoverBg:be}=He;return[{[Et]:Object.assign(Object.assign({},(0,ce.Wf)(He)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:de,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":we,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Et}-content`]:{position:"relative"},[`${Et}-inner`]:{backgroundColor:be,backgroundClip:"padding-box",borderRadius:se,boxShadow:ee,padding:te},[`${Et}-title`]:{minWidth:dt,marginBottom:me,color:he,fontWeight:Ae},[`${Et}-inner-content`]:{color:ht}})},(0,_e.ZP)(He,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Et}-pure`]:{position:"relative",maxWidth:"none",margin:He.sizePopupArrow,display:"inline-block",[`${Et}-content`]:{display:"inline-block"}}}]},mt=He=>{const{componentCls:Et}=He;return{[Et]:Ct.i.map(ht=>{const dt=He[`${ht}6`];return{[`&${Et}-${ht}`]:{"--antd-arrow-background-color":dt,[`${Et}-inner`]:{backgroundColor:dt},[`${Et}-arrow`]:{background:"transparent"}}}})}},ct=He=>{const{componentCls:Et,lineWidth:ht,lineType:dt,colorSplit:Ae,paddingSM:te,controlHeight:ee,fontSize:he,lineHeight:se,padding:de}=He,me=ee-Math.round(he*se),we=me/2,be=me/2-ht,Me=de;return{[Et]:{[`${Et}-inner`]:{padding:0},[`${Et}-title`]:{margin:0,padding:`${we}px ${Me}px ${be}px`,borderBottom:`${ht}px ${dt} ${Ae}`},[`${Et}-inner-content`]:{padding:`${te}px ${Me}px`}}}};an.Z=(0,Ze.Z)("Popover",He=>{const{colorBgElevated:Et,colorText:ht,wireframe:dt}=He,Ae=(0,Ke.TS)(He,{popoverPadding:12,popoverBg:Et,popoverColor:ht});return[Be(Ae),mt(Ae),dt&&ct(Ae),(0,De._y)(Ae,"zoom-big")]},He=>({width:177,minWidth:177,zIndexPopup:He.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ge}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(ln,sn){return De.createElement(Ze.Z,(0,ce.Z)({},ln,{ref:sn,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be,ct=ve(92310),He=ve.n(ct),Et=ve(90493),ht=ve(72071),dt=ve(6620),Ae=ve(18929),te=ve(10228),ee=ve(26112);function he(kt,ln){var sn=kt.disabled,Bt=kt.prefixCls,Gt=kt.character,en=kt.characterRender,Bn=kt.index,rn=kt.count,Cn=kt.value,ft=kt.allowHalf,En=kt.focused,Vn=kt.onHover,Re=kt.onClick,Ce=function(Ue){Vn(Ue,Bn)},Pe=function(Ue){Re(Ue,Bn)},Ne=function(Ue){Ue.keyCode===te.Z.ENTER&&Re(Ue,Bn)},ke=Bn+1,Se=new Set([Bt]);Cn===0&&Bn===0&&En?Se.add("".concat(Bt,"-focused")):ft&&Cn+.5>=ke&&CnBn?"true":"false","aria-posinset":Bn+1,"aria-setsize":rn,tabIndex:sn?-1:0},De.createElement("div",{className:"".concat(Bt,"-first")},nt),De.createElement("div",{className:"".concat(Bt,"-second")},nt)));return en&&(Pt=en(Pt,kt)),Pt}var se=De.forwardRef(he);function de(){var kt=De.useRef({});function ln(Bt){return kt.current[Bt]}function sn(Bt){return function(Gt){kt.current[Bt]=Gt}}return[ln,sn]}function me(kt){var ln=kt.pageXOffset,sn="scrollLeft";if(typeof ln!="number"){var Bt=kt.document;ln=Bt.documentElement[sn],typeof ln!="number"&&(ln=Bt.body[sn])}return ln}function we(kt){var ln,sn,Bt=kt.ownerDocument,Gt=Bt.body,en=Bt&&Bt.documentElement,Bn=kt.getBoundingClientRect();return ln=Bn.left,sn=Bn.top,ln-=en.clientLeft||Gt.clientLeft||0,sn-=en.clientTop||Gt.clientTop||0,{left:ln,top:sn}}function be(kt){var ln=we(kt),sn=kt.ownerDocument,Bt=sn.defaultView||sn.parentWindow;return ln.left+=me(Bt),ln.left}var Me=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(kt,ln){var sn,Bt=kt.prefixCls,Gt=Bt===void 0?"rc-rate":Bt,en=kt.className,Bn=kt.defaultValue,rn=kt.value,Cn=kt.count,ft=Cn===void 0?5:Cn,En=kt.allowHalf,Vn=En===void 0?!1:En,Re=kt.allowClear,Ce=Re===void 0?!0:Re,Pe=kt.character,Ne=Pe===void 0?"\u2605":Pe,ke=kt.characterRender,Se=kt.disabled,nt=kt.direction,Pt=nt===void 0?"ltr":nt,qe=kt.tabIndex,Ue=qe===void 0?0:qe,St=kt.autoFocus,vt=kt.onHoverChange,lt=kt.onChange,Dt=kt.onFocus,un=kt.onBlur,Xt=kt.onKeyDown,$t=kt.onMouseLeave,wn=(0,dt.Z)(kt,Me),bn=de(),pn=(0,ht.Z)(bn,2),Yn=pn[0],ai=pn[1],Wn=De.useRef(null),Rn=function(){if(!Se){var rt;(rt=Wn.current)===null||rt===void 0||rt.focus()}};De.useImperativeHandle(ln,function(){return{focus:Rn,blur:function(){if(!Se){var rt;(rt=Wn.current)===null||rt===void 0||rt.blur()}}}});var ii=(0,Ae.Z)(Bn||0,{value:rn}),pi=(0,ht.Z)(ii,2),gi=pi[0],Ri=pi[1],Ji=(0,Ae.Z)(null),Un=(0,ht.Z)(Ji,2),$n=Un[0],ti=Un[1],Pi=function(rt,Vt){var on=Pt==="rtl",xn=rt+1;if(Vn){var An=Yn(rt),yt=be(An),cn=An.clientWidth;(on&&Vt-yt>cn/2||!on&&Vt-yt0&&!on||Vt===te.Z.RIGHT&&xn>0&&on?(Vn?xn-=.5:xn-=1,mi(xn),rt.preventDefault()):Vt===te.Z.LEFT&&xn{const{componentCls:ln}=kt;return{[`${ln}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:kt.marginXS},"> div":{transition:`all ${kt.motionDurationMid}, outline 0s`,"&:hover":{transform:kt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${kt.lineWidth}px dashed ${kt.starColor}`,transform:kt.starHoverScale}},"&-first, &-second":{color:kt.starBg,transition:`all ${kt.motionDurationMid}`,userSelect:"none",[kt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ln}-star-first, &-half ${ln}-star-second`]:{opacity:1},[`&-half ${ln}-star-first, &-full ${ln}-star-second`]:{color:"inherit"}}}},Nt=kt=>({[`&-rtl${kt.componentCls}`]:{direction:"rtl"}}),At=kt=>{const{componentCls:ln}=kt;return{[ln]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(kt)),{display:"inline-block",margin:0,padding:0,color:kt.starColor,fontSize:kt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ln} ${ln}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bt(kt)),{[`+ ${ln}-text`]:{display:"inline-block",marginInlineStart:kt.marginXS,fontSize:kt.fontSize}}),Nt(kt))}};var Zt=(0,Tt.Z)("Rate",kt=>{const ln=(0,Qe.TS)(kt,{});return[At(ln)]},kt=>({starColor:kt.yellow6,starSize:kt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:kt.colorFillContent})),Yt=function(kt,ln){var sn={};for(var Bt in kt)Object.prototype.hasOwnProperty.call(kt,Bt)&&ln.indexOf(Bt)<0&&(sn[Bt]=kt[Bt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Bt=Object.getOwnPropertySymbols(kt);Gt{const{prefixCls:sn,className:Bt,rootClassName:Gt,style:en,tooltips:Bn,character:rn=De.createElement(mt,null)}=kt,Cn=Yt(kt,["prefixCls","className","rootClassName","style","tooltips","character"]),ft=(Se,nt)=>{let{index:Pt}=nt;return Bn?De.createElement(gt.Z,{title:Bn[Pt]},Se):Se},{getPrefixCls:En,direction:Vn,rate:Re}=De.useContext($e.E_),Ce=En("rate",sn),[Pe,Ne]=Zt(Ce),ke=Object.assign(Object.assign({},Re==null?void 0:Re.style),en);return Pe(De.createElement(et,Object.assign({ref:ln,character:rn,characterRender:ft},Cn,{className:He()(Bt,Gt,Ne,Re==null?void 0:Re.className),style:ke,prefixCls:Ce,direction:Vn})))})},57809:function(Pn,an,ve){"use strict";var ce=ve(92310),De=ve.n(ce),_e=ve(77861),Ct=ve(2738),Ze=ve(59301),Ke=ve(53487),Be=ve(62892),mt=ve(19080),ct=ve(36355),He=ve(1684),Et=ve(93891),ht=ve(19716),dt=ve(32441),Ae=ve(33234),te=ve(14154),ee=ve(58582),he=ve(84443),se=ve(66339),de=function(Ie,ze){var et={};for(var $e in Ie)Object.prototype.hasOwnProperty.call(Ie,$e)&&ze.indexOf($e)<0&&(et[$e]=Ie[$e]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,$e=Object.getOwnPropertySymbols(Ie);gt<$e.length;gt++)ze.indexOf($e[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,$e[gt])&&(et[$e[gt]]=Ie[$e[gt]]);return et};const me="SECRET_COMBOBOX_MODE_DO_NOT_USE",we=(Ie,ze)=>{var et,{prefixCls:$e,bordered:gt=!0,className:je,rootClassName:Tt,getPopupContainer:Qe,popupClassName:bt,dropdownClassName:Nt,listHeight:At=256,placement:Zt,listItemHeight:Yt=24,size:ut,disabled:Ge,notFoundContent:kt,status:ln,builtinPlacements:sn,dropdownMatchSelectWidth:Bt,popupMatchSelectWidth:Gt,direction:en,style:Bn,allowClear:rn}=Ie,Cn=de(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ft,getPrefixCls:En,renderEmpty:Vn,direction:Re,virtual:Ce,popupMatchSelectWidth:Pe,popupOverflow:Ne,select:ke}=Ze.useContext(ct.E_),Se=En("select",$e),nt=En(),Pt=en!=null?en:Re,{compactSize:qe,compactItemClassnames:Ue}=(0,Ae.ri)(Se,Pt),[St,vt]=(0,te.Z)(Se),lt=Ze.useMemo(()=>{const{mode:ji}=Cn;if(ji!=="combobox")return ji===me?"combobox":ji},[Cn.mode]),Dt=lt==="multiple"||lt==="tags",un=(0,he.Z)(Cn.suffixIcon,Cn.showArrow),Xt=(et=Gt!=null?Gt:Bt)!==null&&et!==void 0?et:Pe,{status:$t,hasFeedback:wn,isFormItemInput:bn,feedbackIcon:pn}=Ze.useContext(dt.aM),Yn=(0,mt.F)($t,ln);let ai;kt!==void 0?ai=kt:lt==="combobox"?ai=null:ai=(Vn==null?void 0:Vn("Select"))||Ze.createElement(Et.Z,{componentName:"Select"});const{suffixIcon:Wn,itemIcon:Rn,removeIcon:ii,clearIcon:pi}=(0,se.Z)(Object.assign(Object.assign({},Cn),{multiple:Dt,hasFeedback:wn,feedbackIcon:pn,showSuffixIcon:un,prefixCls:Se,showArrow:Cn.showArrow,componentName:"Select"})),gi=rn===!0?{clearIcon:pi}:rn,Ri=(0,Ct.Z)(Cn,["suffixIcon","itemIcon"]),Ji=De()(bt||Nt,{[`${Se}-dropdown-${Pt}`]:Pt==="rtl"},Tt,vt),Un=(0,ht.Z)(ji=>{var Le;return(Le=ut!=null?ut:qe)!==null&&Le!==void 0?Le:ji}),$n=Ze.useContext(He.Z),ti=Ge!=null?Ge:$n,Pi=De()({[`${Se}-lg`]:Un==="large",[`${Se}-sm`]:Un==="small",[`${Se}-rtl`]:Pt==="rtl",[`${Se}-borderless`]:!gt,[`${Se}-in-form-item`]:bn},(0,mt.Z)(Se,Yn,wn),Ue,ke==null?void 0:ke.className,je,Tt,vt),mi=Ze.useMemo(()=>Zt!==void 0?Zt:Pt==="rtl"?"bottomRight":"bottomLeft",[Zt,Pt]),nr=(0,ee.Z)(sn,Ne);return St(Ze.createElement(_e.ZP,Object.assign({ref:ze,virtual:Ce,showSearch:ke==null?void 0:ke.showSearch},Ri,{style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Bn),dropdownMatchSelectWidth:Xt,builtinPlacements:nr,transitionName:(0,Be.m)(nt,"slide-up",Cn.transitionName),listHeight:At,listItemHeight:Yt,mode:lt,prefixCls:Se,placement:mi,direction:Pt,suffixIcon:Wn,menuItemSelectedIcon:Rn,removeIcon:ii,allowClear:gi,notFoundContent:ai,className:Pi,getPopupContainer:Qe||ft,dropdownClassName:Ji,disabled:ti})))},be=Ze.forwardRef(we),Me=(0,Ke.Z)(be);be.SECRET_COMBOBOX_MODE_DO_NOT_USE=me,be.Option=_e.Wx,be.OptGroup=_e.Xo,be._InternalPanelDoNotUseOrYouWillBeFired=Me,an.default=be},14154:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return be}});var ce=ve(17313),De=ve(74207),_e=ve(37613),Ct=ve(83116),Ze=ve(13826),Ke=ve(92899);const Be=Me=>{const{optionHeight:Ie,optionFontSize:ze,optionLineHeight:et,optionPadding:$e}=Me;return{position:"relative",display:"block",minHeight:Ie,padding:$e,color:Me.colorText,fontWeight:"normal",fontSize:ze,lineHeight:et,boxSizing:"border-box"}};var ct=Me=>{const{antCls:Ie,componentCls:ze}=Me,et=`${ze}-item`,$e=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,gt=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,je=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,Tt=`${ze}-dropdown-placement-`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,ce.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[` ${$e}${Tt}bottomLeft, ${gt}${Tt}bottomLeft `]:{animationName:Ze.fJ},[` ${$e}${Tt}topLeft, ${gt}${Tt}topLeft, ${$e}${Tt}topRight, ${gt}${Tt}topRight `]:{animationName:Ze.Qt},[`${je}${Tt}bottomLeft`]:{animationName:Ze.Uw},[` ${je}${Tt}topLeft, ${je}${Tt}topRight `]:{animationName:Ze.ly},"&-hidden":{display:"none"},[`${et}`]:Object.assign(Object.assign({},Be(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ce.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${et}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${et}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${et}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${et}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ze.oN)(Me,"slide-up"),(0,Ze.oN)(Me,"slide-down"),(0,Ke.Fm)(Me,"move-up"),(0,Ke.Fm)(Me,"move-down")]};const He=2,Et=Me=>{let{controlHeightSM:Ie,controlHeight:ze,lineWidth:et}=Me;const $e=(ze-Ie)/2-et,gt=Math.ceil($e/2);return[$e,gt]};function ht(Me,Ie){const{componentCls:ze,iconCls:et}=Me,$e=`${ze}-selection-overflow`,gt=Me.multipleSelectItemHeight,[je]=Et(Me),Tt=Ie?`${ze}-${Ie}`:"";return{[`${ze}-multiple${Tt}`]:{fontSize:Me.fontSize,[$e]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${je-He}px ${He*2}px`,borderRadius:Me.borderRadius,[`${ze}-show-search&`]:{cursor:"text"},[`${ze}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${He}px 0`,lineHeight:`${gt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${ze}-show-arrow ${ze}-selector, &${ze}-allow-clear ${ze}-selector `]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${ze}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:gt,marginTop:He,marginBottom:He,lineHeight:`${gt-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,userSelect:"none",marginInlineEnd:He*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${ze}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ce.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${et}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${$e}-item + ${$e}-item`]:{[`${ze}-selection-search`]:{marginInlineStart:0}},[`${ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-je,"\n &-input,\n &-mirror\n ":{height:gt,fontFamily:Me.fontFamily,lineHeight:`${gt}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ze}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var Ae=Me=>{const{componentCls:Ie}=Me,ze=(0,_e.TS)(Me,{controlHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),et=(0,_e.TS)(Me,{fontSize:Me.fontSizeLG,controlHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,$e]=Et(Me);return[ht(Me),ht(ze,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:$e}}},ht(et,"lg")]};function te(Me,Ie){const{componentCls:ze,inputPaddingHorizontalBase:et,borderRadius:$e}=Me,gt=Me.controlHeight-Me.lineWidth*2,je=Math.ceil(Me.fontSize*1.25),Tt=Ie?`${ze}-${Ie}`:"";return{[`${ze}-single${Tt}`]:{fontSize:Me.fontSize,[`${ze}-selector`]:Object.assign(Object.assign({},(0,ce.Wf)(Me)),{display:"flex",borderRadius:$e,[`${ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:et,insetInlineEnd:et,bottom:0,"&-input":{width:"100%"}},[` ${ze}-selection-item, ${ze}-selection-placeholder `]:{padding:0,lineHeight:`${gt}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${gt}px`}},[`${ze}-selection-item`]:{position:"relative",userSelect:"none"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:after`,`${ze}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${ze}-show-arrow ${ze}-selection-item, &${ze}-show-arrow ${ze}-selection-placeholder `]:{paddingInlineEnd:je},[`&${ze}-open ${ze}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:Me.controlHeight,padding:`0 ${et}px`,[`${ze}-selection-search-input`]:{height:gt},"&:after":{lineHeight:`${gt}px`}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${et}px`,"&:after":{display:"none"}}}}}}}function ee(Me){const{componentCls:Ie}=Me,ze=Me.controlPaddingHorizontalSM-Me.lineWidth;return[te(Me),te((0,_e.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${Ie}-single${Ie}-sm`]:{[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selection-search`]:{insetInlineStart:ze,insetInlineEnd:ze},[`${Ie}-selector`]:{padding:`0 ${ze}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:ze+Me.fontSize*1.5},[` &${Ie}-show-arrow ${Ie}-selection-item, &${Ie}-show-arrow ${Ie}-selection-placeholder `]:{paddingInlineEnd:Me.fontSize*1.5}}}},te((0,_e.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const he=Me=>{const{componentCls:Ie,selectorBg:ze}=Me;return{position:"relative",backgroundColor:ze,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(Me,Ie){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:et,borderHoverColor:$e,outlineColor:gt,antCls:je}=Ie,Tt=ze?{[`${et}-selector`]:{borderColor:$e}}:{};return{[Me]:{[`&:not(${et}-disabled):not(${et}-customize-input):not(${je}-pagination-size-changer)`]:Object.assign(Object.assign({},Tt),{[`${et}-focused& ${et}-selector`]:{borderColor:$e,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${gt}`,outline:0},[`&:hover ${et}-selector`]:{borderColor:$e}})}}},de=Me=>{const{componentCls:Ie}=Me;return{[`${Ie}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},me=Me=>{const{componentCls:Ie,inputPaddingHorizontalBase:ze,iconCls:et}=Me;return{[Ie]:Object.assign(Object.assign({},(0,ce.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},he(Me)),de(Me)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ce.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},ce.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,ce.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[et]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ie}-suffix)`]:{pointerEvents:"auto"}},[`${Ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:ze+Me.fontSize+Me.paddingXS}}}},we=Me=>{const{componentCls:Ie}=Me;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},me(Me),ee(Me),Ae(Me),ct(Me),{[`${Ie}-rtl`]:{direction:"rtl"}},se(Ie,(0,_e.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,outlineColor:Me.controlOutline})),se(`${Ie}-status-error`,(0,_e.TS)(Me,{borderHoverColor:Me.colorErrorHover,outlineColor:Me.colorErrorOutline}),!0),se(`${Ie}-status-warning`,(0,_e.TS)(Me,{borderHoverColor:Me.colorWarningHover,outlineColor:Me.colorWarningOutline}),!0),(0,De.c)(Me,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var be=(0,Ct.Z)("Select",(Me,Ie)=>{let{rootPrefixCls:ze}=Ie;const et=(0,_e.TS)(Me,{rootPrefixCls:ze,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight});return[we(et)]},Me=>{const{fontSize:Ie,lineHeight:ze,controlHeight:et,controlPaddingHorizontal:$e,zIndexPopupBase:gt,colorText:je,fontWeightStrong:Tt,controlItemBgActive:Qe,controlItemBgHover:bt,colorBgContainer:Nt,colorFillSecondary:At,controlHeightLG:Zt,controlHeightSM:Yt,colorBgContainerDisabled:ut,colorTextDisabled:Ge}=Me;return{zIndexPopup:gt+50,optionSelectedColor:je,optionSelectedFontWeight:Tt,optionSelectedBg:Qe,optionActiveBg:bt,optionPadding:`${(et-Ie*ze)/2}px ${$e}px`,optionFontSize:Ie,optionLineHeight:ze,optionHeight:et,selectorBg:Nt,clearBg:Nt,singleItemHeightLG:Zt,multipleItemBg:At,multipleItemBorderColor:"transparent",multipleItemHeight:Yt,multipleItemHeightLG:et,multipleSelectorBgDisabled:ut,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return De}});const ce=_e=>{const Ze={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:_e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ze),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ze),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ze),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ze),{points:["br","tr"],offset:[0,-4]})}};function De(_e,Ct){return _e||ce(Ct)}},84443:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ce}});function ce(De,_e){return _e!==void 0?_e:De!==null}},66339:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});var ce=ve(40001),De=ve(19248),_e=ve(99267),Ct=ve(84105),Ze=ve(58617),Ke=ve(47472),Be=ve(59301);function mt(ct){let{suffixIcon:He,clearIcon:Et,menuItemSelectedIcon:ht,removeIcon:dt,loading:Ae,multiple:te,hasFeedback:ee,prefixCls:he,showSuffixIcon:se,feedbackIcon:de,showArrow:me,componentName:we}=ct;const be=Et!=null?Et:Be.createElement(De.Z,null),Me=$e=>He===null&&!ee&&!me?null:Be.createElement(Be.Fragment,null,se!==!1&&$e,ee&&de);let Ie=null;if(He!==void 0)Ie=Me(He);else if(Ae)Ie=Me(Be.createElement(Ze.Z,{spin:!0}));else{const $e=`${he}-suffix`;Ie=gt=>{let{open:je,showSearch:Tt}=gt;return Me(je&&Tt?Be.createElement(Ke.Z,{className:$e}):Be.createElement(Ct.Z,{className:$e}))}}let ze=null;ht!==void 0?ze=ht:te?ze=Be.createElement(ce.Z,null):ze=null;let et=null;return dt!==void 0?et=dt:et=Be.createElement(_e.Z,null),{clearIcon:be,suffixIcon:Ie,itemIcon:ze,removeIcon:et}}},61621:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Ne}});var ce=ve(92310),De=ve.n(ce),_e=ve(59301),Ct=ve(36355),Ze=ve(2738),Be=ke=>{const{prefixCls:Se,className:nt,style:Pt,size:qe,shape:Ue}=ke,St=De()({[`${Se}-lg`]:qe==="large",[`${Se}-sm`]:qe==="small"}),vt=De()({[`${Se}-circle`]:Ue==="circle",[`${Se}-square`]:Ue==="square",[`${Se}-round`]:Ue==="round"}),lt=_e.useMemo(()=>typeof qe=="number"?{width:qe,height:qe,lineHeight:`${qe}px`}:{},[qe]);return _e.createElement("span",{className:De()(Se,St,vt,nt),style:Object.assign(Object.assign({},lt),Pt)})},mt=ve(93083),ct=ve(83116),He=ve(37613);const Et=new mt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ht=ke=>({height:ke,lineHeight:`${ke}px`}),dt=ke=>Object.assign({width:ke},ht(ke)),Ae=ke=>({background:ke.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Et,animationDuration:ke.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=ke=>Object.assign({width:ke*5,minWidth:ke*5},ht(ke)),ee=ke=>{const{skeletonAvatarCls:Se,gradientFromColor:nt,controlHeight:Pt,controlHeightLG:qe,controlHeightSM:Ue}=ke;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:nt},dt(Pt)),[`${Se}${Se}-circle`]:{borderRadius:"50%"},[`${Se}${Se}-lg`]:Object.assign({},dt(qe)),[`${Se}${Se}-sm`]:Object.assign({},dt(Ue))}},he=ke=>{const{controlHeight:Se,borderRadiusSM:nt,skeletonInputCls:Pt,controlHeightLG:qe,controlHeightSM:Ue,gradientFromColor:St}=ke;return{[`${Pt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:St,borderRadius:nt},te(Se)),[`${Pt}-lg`]:Object.assign({},te(qe)),[`${Pt}-sm`]:Object.assign({},te(Ue))}},se=ke=>Object.assign({width:ke},ht(ke)),de=ke=>{const{skeletonImageCls:Se,imageSizeBase:nt,gradientFromColor:Pt,borderRadiusSM:qe}=ke;return{[`${Se}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Pt,borderRadius:qe},se(nt*2)),{[`${Se}-path`]:{fill:"#bfbfbf"},[`${Se}-svg`]:Object.assign(Object.assign({},se(nt)),{maxWidth:nt*4,maxHeight:nt*4}),[`${Se}-svg${Se}-svg-circle`]:{borderRadius:"50%"}}),[`${Se}${Se}-circle`]:{borderRadius:"50%"}}},me=(ke,Se,nt)=>{const{skeletonButtonCls:Pt}=ke;return{[`${nt}${Pt}-circle`]:{width:Se,minWidth:Se,borderRadius:"50%"},[`${nt}${Pt}-round`]:{borderRadius:Se}}},we=ke=>Object.assign({width:ke*2,minWidth:ke*2},ht(ke)),be=ke=>{const{borderRadiusSM:Se,skeletonButtonCls:nt,controlHeight:Pt,controlHeightLG:qe,controlHeightSM:Ue,gradientFromColor:St}=ke;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:St,borderRadius:Se,width:Pt*2,minWidth:Pt*2},we(Pt))},me(ke,Pt,nt)),{[`${nt}-lg`]:Object.assign({},we(qe))}),me(ke,qe,`${nt}-lg`)),{[`${nt}-sm`]:Object.assign({},we(Ue))}),me(ke,Ue,`${nt}-sm`))},Me=ke=>{const{componentCls:Se,skeletonAvatarCls:nt,skeletonTitleCls:Pt,skeletonParagraphCls:qe,skeletonButtonCls:Ue,skeletonInputCls:St,skeletonImageCls:vt,controlHeight:lt,controlHeightLG:Dt,controlHeightSM:un,gradientFromColor:Xt,padding:$t,marginSM:wn,borderRadius:bn,titleHeight:pn,blockRadius:Yn,paragraphLiHeight:ai,controlHeightXS:Wn,paragraphMarginTop:Rn}=ke;return{[`${Se}`]:{display:"table",width:"100%",[`${Se}-header`]:{display:"table-cell",paddingInlineEnd:$t,verticalAlign:"top",[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Xt},dt(lt)),[`${nt}-circle`]:{borderRadius:"50%"},[`${nt}-lg`]:Object.assign({},dt(Dt)),[`${nt}-sm`]:Object.assign({},dt(un))},[`${Se}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Pt}`]:{width:"100%",height:pn,background:Xt,borderRadius:Yn,[`+ ${qe}`]:{marginBlockStart:un}},[`${qe}`]:{padding:0,"> li":{width:"100%",height:ai,listStyle:"none",background:Xt,borderRadius:Yn,"+ li":{marginBlockStart:Wn}}},[`${qe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Se}-content`]:{[`${Pt}, ${qe} > li`]:{borderRadius:bn}}},[`${Se}-with-avatar ${Se}-content`]:{[`${Pt}`]:{marginBlockStart:wn,[`+ ${qe}`]:{marginBlockStart:Rn}}},[`${Se}${Se}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},be(ke)),ee(ke)),he(ke)),de(ke)),[`${Se}${Se}-block`]:{width:"100%",[`${Ue}`]:{width:"100%"},[`${St}`]:{width:"100%"}},[`${Se}${Se}-active`]:{[` ${Pt}, ${qe} > li, ${nt}, ${Ue}, ${St}, ${vt} `]:Object.assign({},Ae(ke))}}};var Ie=(0,ct.Z)("Skeleton",ke=>{const{componentCls:Se}=ke,nt=(0,He.TS)(ke,{skeletonAvatarCls:`${Se}-avatar`,skeletonTitleCls:`${Se}-title`,skeletonParagraphCls:`${Se}-paragraph`,skeletonButtonCls:`${Se}-button`,skeletonInputCls:`${Se}-input`,skeletonImageCls:`${Se}-image`,imageSizeBase:ke.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ke.gradientFromColor} 25%, ${ke.gradientToColor} 37%, ${ke.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Me(nt)]},ke=>{const{colorFillContent:Se,colorFill:nt}=ke,Pt=Se,qe=nt;return{color:Pt,colorGradientEnd:qe,gradientFromColor:Pt,gradientToColor:qe,titleHeight:ke.controlHeight/2,blockRadius:ke.borderRadiusSM,paragraphMarginTop:ke.marginLG+ke.marginXXS,paragraphLiHeight:ke.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),et=ke=>{const{prefixCls:Se,className:nt,rootClassName:Pt,active:qe,shape:Ue="circle",size:St="default"}=ke,{getPrefixCls:vt}=_e.useContext(Ct.E_),lt=vt("skeleton",Se),[Dt,un]=Ie(lt),Xt=(0,Ze.Z)(ke,["prefixCls","className"]),$t=De()(lt,`${lt}-element`,{[`${lt}-active`]:qe},nt,Pt,un);return Dt(_e.createElement("div",{className:$t},_e.createElement(Be,Object.assign({prefixCls:`${lt}-avatar`,shape:Ue,size:St},Xt))))},gt=ke=>{const{prefixCls:Se,className:nt,rootClassName:Pt,active:qe,block:Ue=!1,size:St="default"}=ke,{getPrefixCls:vt}=_e.useContext(Ct.E_),lt=vt("skeleton",Se),[Dt,un]=Ie(lt),Xt=(0,Ze.Z)(ke,["prefixCls"]),$t=De()(lt,`${lt}-element`,{[`${lt}-active`]:qe,[`${lt}-block`]:Ue},nt,Pt,un);return Dt(_e.createElement("div",{className:$t},_e.createElement(Be,Object.assign({prefixCls:`${lt}-button`,size:St},Xt))))};const je="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Qe=ke=>{const{prefixCls:Se,className:nt,rootClassName:Pt,style:qe,active:Ue}=ke,{getPrefixCls:St}=_e.useContext(Ct.E_),vt=St("skeleton",Se),[lt,Dt]=Ie(vt),un=De()(vt,`${vt}-element`,{[`${vt}-active`]:Ue},nt,Pt,Dt);return lt(_e.createElement("div",{className:un},_e.createElement("div",{className:De()(`${vt}-image`,nt),style:qe},_e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${vt}-image-svg`},_e.createElement("path",{d:je,className:`${vt}-image-path`})))))},Nt=ke=>{const{prefixCls:Se,className:nt,rootClassName:Pt,active:qe,block:Ue,size:St="default"}=ke,{getPrefixCls:vt}=_e.useContext(Ct.E_),lt=vt("skeleton",Se),[Dt,un]=Ie(lt),Xt=(0,Ze.Z)(ke,["prefixCls"]),$t=De()(lt,`${lt}-element`,{[`${lt}-active`]:qe,[`${lt}-block`]:Ue},nt,Pt,un);return Dt(_e.createElement("div",{className:$t},_e.createElement(Be,Object.assign({prefixCls:`${lt}-input`,size:St},Xt))))},At=ve(96663),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Yt=Zt,ut=ve(7657),Ge=function(Se,nt){return _e.createElement(ut.Z,(0,At.Z)({},Se,{ref:nt,icon:Yt}))},kt=_e.forwardRef(Ge),ln=kt,Bt=ke=>{const{prefixCls:Se,className:nt,rootClassName:Pt,style:qe,active:Ue,children:St}=ke,{getPrefixCls:vt}=_e.useContext(Ct.E_),lt=vt("skeleton",Se),[Dt,un]=Ie(lt),Xt=De()(lt,`${lt}-element`,{[`${lt}-active`]:Ue},un,nt,Pt),$t=St!=null?St:_e.createElement(ln,null);return Dt(_e.createElement("div",{className:Xt},_e.createElement("div",{className:De()(`${lt}-image`,nt),style:qe},$t)))},Gt=ve(19127),Bn=ke=>{const Se=vt=>{const{width:lt,rows:Dt=2}=ke;if(Array.isArray(lt))return lt[vt];if(Dt-1===vt)return lt},{prefixCls:nt,className:Pt,style:qe,rows:Ue}=ke,St=(0,Gt.Z)(Array(Ue)).map((vt,lt)=>_e.createElement("li",{key:lt,style:{width:Se(lt)}}));return _e.createElement("ul",{className:De()(nt,Pt),style:qe},St)},Cn=ke=>{let{prefixCls:Se,className:nt,width:Pt,style:qe}=ke;return _e.createElement("h3",{className:De()(Se,nt),style:Object.assign({width:Pt},qe)})};function ft(ke){return ke&&typeof ke=="object"?ke:{}}function En(ke,Se){return ke&&!Se?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Vn(ke,Se){return!ke&&Se?{width:"38%"}:ke&&Se?{width:"50%"}:{}}function Re(ke,Se){const nt={};return(!ke||!Se)&&(nt.width="61%"),!ke&&Se?nt.rows=3:nt.rows=2,nt}const Ce=ke=>{const{prefixCls:Se,loading:nt,className:Pt,rootClassName:qe,style:Ue,children:St,avatar:vt=!1,title:lt=!0,paragraph:Dt=!0,active:un,round:Xt}=ke,{getPrefixCls:$t,direction:wn,skeleton:bn}=_e.useContext(Ct.E_),pn=$t("skeleton",Se),[Yn,ai]=Ie(pn);if(nt||!("loading"in ke)){const Wn=!!vt,Rn=!!lt,ii=!!Dt;let pi;if(Wn){const Ji=Object.assign(Object.assign({prefixCls:`${pn}-avatar`},En(Rn,ii)),ft(vt));pi=_e.createElement("div",{className:`${pn}-header`},_e.createElement(Be,Object.assign({},Ji)))}let gi;if(Rn||ii){let Ji;if(Rn){const $n=Object.assign(Object.assign({prefixCls:`${pn}-title`},Vn(Wn,ii)),ft(lt));Ji=_e.createElement(Cn,Object.assign({},$n))}let Un;if(ii){const $n=Object.assign(Object.assign({prefixCls:`${pn}-paragraph`},Re(Wn,Rn)),ft(Dt));Un=_e.createElement(Bn,Object.assign({},$n))}gi=_e.createElement("div",{className:`${pn}-content`},Ji,Un)}const Ri=De()(pn,{[`${pn}-with-avatar`]:Wn,[`${pn}-active`]:un,[`${pn}-rtl`]:wn==="rtl",[`${pn}-round`]:Xt},bn==null?void 0:bn.className,Pt,qe,ai);return Yn(_e.createElement("div",{className:Ri,style:Object.assign(Object.assign({},bn==null?void 0:bn.style),Ue)},pi,gi))}return typeof St!="undefined"?St:null};Ce.Button=gt,Ce.Avatar=et,Ce.Input=Nt,Ce.Image=Qe,Ce.Node=Bt;var Pe=Ce,Ne=Pe},81327:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return he}});var ce=ve(59301),De=ve(92310),_e=ve.n(De),Ct=ve(11592),Ze=ve(36355),Ke=ve(33234);const Be=ce.createContext({latestIndex:0}),mt=Be.Provider;var He=se=>{let{className:de,index:me,children:we,split:be,style:Me}=se;const{latestIndex:Ie}=ce.useContext(Be);return we==null?null:ce.createElement(ce.Fragment,null,ce.createElement("div",{className:de,style:Me},we),me{var me,we;const{getPrefixCls:be,space:Me,direction:Ie}=ce.useContext(Ze.E_),{size:ze=(Me==null?void 0:Me.size)||"small",align:et,className:$e,rootClassName:gt,children:je,direction:Tt="horizontal",prefixCls:Qe,split:bt,style:Nt,wrap:At=!1,classNames:Zt,styles:Yt}=se,ut=Ae(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ge,kt]=Array.isArray(ze)?ze:[ze,ze],ln=ht(kt),sn=ht(Ge),Bt=dt(kt),Gt=dt(Ge),en=(0,Ct.Z)(je,{keepEmpty:!0}),Bn=et===void 0&&Tt==="horizontal"?"center":et,rn=be("space",Qe),[Cn,ft]=(0,Et.Z)(rn),En=_e()(rn,Me==null?void 0:Me.className,ft,`${rn}-${Tt}`,{[`${rn}-rtl`]:Ie==="rtl",[`${rn}-align-${Bn}`]:Bn,[`${rn}-gap-row-${kt}`]:ln,[`${rn}-gap-col-${Ge}`]:sn},$e,gt),Vn=_e()(`${rn}-item`,(me=Zt==null?void 0:Zt.item)!==null&&me!==void 0?me:(we=Me==null?void 0:Me.classNames)===null||we===void 0?void 0:we.item);let Re=0;const Ce=en.map((ke,Se)=>{var nt,Pt;ke!=null&&(Re=Se);const qe=ke&&ke.key||`${Vn}-${Se}`;return ce.createElement(He,{className:Vn,key:qe,index:Se,split:bt,style:(nt=Yt==null?void 0:Yt.item)!==null&&nt!==void 0?nt:(Pt=Me==null?void 0:Me.styles)===null||Pt===void 0?void 0:Pt.item},ke)}),Pe=ce.useMemo(()=>({latestIndex:Re}),[Re]);if(en.length===0)return null;const Ne={};return At&&(Ne.flexWrap="wrap"),!sn&&Gt&&(Ne.columnGap=Ge),!ln&&Bt&&(Ne.rowGap=kt),Cn(ce.createElement("div",Object.assign({ref:de,className:En,style:Object.assign(Object.assign(Object.assign({},Ne),Me==null?void 0:Me.style),Nt)},ut),ce.createElement(mt,{value:Pe},Ce)))});ee.Compact=Ke.ZP;var he=ee},31797:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Ie}});var ce=ve(59301),De=ve(56762),_e=ve(92343),Ct=ve(92310),Ze=ve.n(Ct),Ke=ve(36355),Be=ve(61621),ct=ze=>{const{value:et,formatter:$e,precision:gt,decimalSeparator:je,groupSeparator:Tt="",prefixCls:Qe}=ze;let bt;if(typeof $e=="function")bt=$e(et);else{const Nt=String(et),At=Nt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!At||Nt==="-")bt=Nt;else{const Zt=At[1];let Yt=At[2]||"0",ut=At[4]||"";Yt=Yt.replace(/\B(?=(\d{3})+(?!\d))/g,Tt),typeof gt=="number"&&(ut=ut.padEnd(gt,"0").slice(0,gt>0?gt:0)),ut&&(ut=`${je}${ut}`),bt=[ce.createElement("span",{key:"int",className:`${Qe}-content-value-int`},Zt,Yt),ut&&ce.createElement("span",{key:"decimal",className:`${Qe}-content-value-decimal`},ut)]}}return ce.createElement("span",{className:`${Qe}-content-value`},bt)},He=ve(17313),Et=ve(83116),ht=ve(37613);const dt=ze=>{const{componentCls:et,marginXXS:$e,padding:gt,colorTextDescription:je,titleFontSize:Tt,colorTextHeading:Qe,contentFontSize:bt,fontFamily:Nt}=ze;return{[`${et}`]:Object.assign(Object.assign({},(0,He.Wf)(ze)),{[`${et}-title`]:{marginBottom:$e,color:je,fontSize:Tt},[`${et}-skeleton`]:{paddingTop:gt},[`${et}-content`]:{color:Qe,fontSize:bt,fontFamily:Nt,[`${et}-content-value`]:{display:"inline-block",direction:"ltr"},[`${et}-content-prefix, ${et}-content-suffix`]:{display:"inline-block"},[`${et}-content-prefix`]:{marginInlineEnd:$e},[`${et}-content-suffix`]:{marginInlineStart:$e}}})}};var Ae=(0,Et.Z)("Statistic",ze=>{const et=(0,ht.TS)(ze,{});return[dt(et)]},ze=>{const{fontSizeHeading3:et,fontSize:$e}=ze;return{titleFontSize:$e,contentFontSize:et}}),ee=ze=>{const{prefixCls:et,className:$e,rootClassName:gt,style:je,valueStyle:Tt,value:Qe=0,title:bt,valueRender:Nt,prefix:At,suffix:Zt,loading:Yt=!1,onMouseEnter:ut,onMouseLeave:Ge,decimalSeparator:kt=".",groupSeparator:ln=","}=ze,{getPrefixCls:sn,direction:Bt,statistic:Gt}=ce.useContext(Ke.E_),en=sn("statistic",et),[Bn,rn]=Ae(en),Cn=ce.createElement(ct,Object.assign({decimalSeparator:kt,groupSeparator:ln,prefixCls:en},ze,{value:Qe})),ft=Ze()(en,{[`${en}-rtl`]:Bt==="rtl"},Gt==null?void 0:Gt.className,$e,gt,rn);return Bn(ce.createElement("div",{className:ft,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),je),onMouseEnter:ut,onMouseLeave:Ge},bt&&ce.createElement("div",{className:`${en}-title`},bt),ce.createElement(Be.Z,{paragraph:!1,loading:Yt,className:`${en}-skeleton`},ce.createElement("div",{style:Tt,className:`${en}-content`},At&&ce.createElement("span",{className:`${en}-content-prefix`},At),Nt?Nt(Cn):Cn,Zt&&ce.createElement("span",{className:`${en}-content-suffix`},Zt)))))};const he=[["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 se(ze,et){let $e=ze;const gt=/\[[^\]]*]/g,je=(et.match(gt)||[]).map(Nt=>Nt.slice(1,-1)),Tt=et.replace(gt,"[]"),Qe=he.reduce((Nt,At)=>{let[Zt,Yt]=At;if(Nt.includes(Zt)){const ut=Math.floor($e/Yt);return $e-=ut*Yt,Nt.replace(new RegExp(`${Zt}+`,"g"),Ge=>{const kt=Ge.length;return ut.toString().padStart(kt,"0")})}return Nt},Tt);let bt=0;return Qe.replace(gt,()=>{const Nt=je[bt];return bt+=1,Nt})}function de(ze,et){const{format:$e=""}=et,gt=new Date(ze).getTime(),je=Date.now(),Tt=Math.max(gt-je,0);return se(Tt,$e)}const me=1e3/30;function we(ze){return new Date(ze).getTime()}const be=ze=>{const{value:et,format:$e="HH:mm:ss",onChange:gt,onFinish:je}=ze,Tt=(0,De.Z)(),Qe=ce.useRef(null),bt=()=>{je==null||je(),Qe.current&&(clearInterval(Qe.current),Qe.current=null)},Nt=()=>{const Yt=we(et);Yt>=Date.now()&&(Qe.current=setInterval(()=>{Tt(),gt==null||gt(Yt-Date.now()),Yt(Nt(),()=>{Qe.current&&(clearInterval(Qe.current),Qe.current=null)}),[et]);const At=(Yt,ut)=>de(Yt,Object.assign(Object.assign({},ut),{format:$e})),Zt=Yt=>(0,_e.Tm)(Yt,{title:void 0});return ce.createElement(ee,Object.assign({},ze,{valueRender:Zt,formatter:At}))};var Me=ce.memo(be);ee.Countdown=Me;var Ie=ee},15969:function(Pn,an,ve){"use strict";ve.d(an,{N:function(){return ce}});const ce=De=>({color:De.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${De.motionDurationSlow}`,"&:focus, &:hover":{color:De.colorLinkHover},"&:active":{color:De.colorLinkActive}})},78673:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Tt}});var ce=ve(58617),De=ve(92310),_e=ve.n(De),Ct=ve(96663),Ze=ve(90493),Ke=ve(72071),Be=ve(6620),mt=ve(59301),ct=ve(18929),He=ve(10228),Et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ht=mt.forwardRef(function(Qe,bt){var Nt,At=Qe.prefixCls,Zt=At===void 0?"rc-switch":At,Yt=Qe.className,ut=Qe.checked,Ge=Qe.defaultChecked,kt=Qe.disabled,ln=Qe.loadingIcon,sn=Qe.checkedChildren,Bt=Qe.unCheckedChildren,Gt=Qe.onClick,en=Qe.onChange,Bn=Qe.onKeyDown,rn=(0,Be.Z)(Qe,Et),Cn=(0,ct.Z)(!1,{value:ut,defaultValue:Ge}),ft=(0,Ke.Z)(Cn,2),En=ft[0],Vn=ft[1];function Re(ke,Se){var nt=En;return kt||(nt=ke,Vn(nt),en==null||en(nt,Se)),nt}function Ce(ke){ke.which===He.Z.LEFT?Re(!1,ke):ke.which===He.Z.RIGHT&&Re(!0,ke),Bn==null||Bn(ke)}function Pe(ke){var Se=Re(!En,ke);Gt==null||Gt(Se,ke)}var Ne=_e()(Zt,Yt,(Nt={},(0,Ze.Z)(Nt,"".concat(Zt,"-checked"),En),(0,Ze.Z)(Nt,"".concat(Zt,"-disabled"),kt),Nt));return mt.createElement("button",(0,Ct.Z)({},rn,{type:"button",role:"switch","aria-checked":En,disabled:kt,className:Ne,ref:bt,onKeyDown:Ce,onClick:Pe}),ln,mt.createElement("span",{className:"".concat(Zt,"-inner")},mt.createElement("span",{className:"".concat(Zt,"-inner-checked")},sn),mt.createElement("span",{className:"".concat(Zt,"-inner-unchecked")},Bt)))});ht.displayName="Switch";var dt=ht,Ae=ve(14088),te=ve(36355),ee=ve(1684),he=ve(19716),se=ve(64993),de=ve(17313),me=ve(83116),we=ve(37613);const be=Qe=>{const{componentCls:bt,trackHeightSM:Nt,trackPadding:At,trackMinWidthSM:Zt,innerMinMarginSM:Yt,innerMaxMarginSM:ut,handleSizeSM:Ge}=Qe,kt=`${bt}-inner`;return{[bt]:{[`&${bt}-small`]:{minWidth:Zt,height:Nt,lineHeight:`${Nt}px`,[`${bt}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:Yt,[`${kt}-checked`]:{marginInlineStart:`calc(-100% + ${Ge+At*2}px - ${ut*2}px)`,marginInlineEnd:`calc(100% - ${Ge+At*2}px + ${ut*2}px)`},[`${kt}-unchecked`]:{marginTop:-Nt,marginInlineStart:0,marginInlineEnd:0}},[`${bt}-handle`]:{width:Ge,height:Ge},[`${bt}-loading-icon`]:{top:(Ge-Qe.switchLoadingIconSize)/2,fontSize:Qe.switchLoadingIconSize},[`&${bt}-checked`]:{[`${bt}-inner`]:{paddingInlineStart:Yt,paddingInlineEnd:ut,[`${kt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${kt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge+At*2}px + ${ut*2}px)`,marginInlineEnd:`calc(-100% + ${Ge+At*2}px - ${ut*2}px)`}},[`${bt}-handle`]:{insetInlineStart:`calc(100% - ${Ge+At}px)`}},[`&:not(${bt}-disabled):active`]:{[`&:not(${bt}-checked) ${kt}`]:{[`${kt}-unchecked`]:{marginInlineStart:Qe.marginXXS/2,marginInlineEnd:-Qe.marginXXS/2}},[`&${bt}-checked ${kt}`]:{[`${kt}-checked`]:{marginInlineStart:-Qe.marginXXS/2,marginInlineEnd:Qe.marginXXS/2}}}}}}},Me=Qe=>{const{componentCls:bt,handleSize:Nt}=Qe;return{[bt]:{[`${bt}-loading-icon${Qe.iconCls}`]:{position:"relative",top:(Nt-Qe.fontSize)/2,color:Qe.switchLoadingIconColor,verticalAlign:"top"},[`&${bt}-checked ${bt}-loading-icon`]:{color:Qe.switchColor}}}},Ie=Qe=>{const{componentCls:bt,motion:Nt,trackPadding:At,handleBg:Zt,handleShadow:Yt,handleSize:ut}=Qe,Ge=`${bt}-handle`;return{[bt]:{[Ge]:{position:"absolute",top:At,insetInlineStart:At,width:ut,height:ut,transition:`all ${Qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Zt,borderRadius:ut/2,boxShadow:Yt,transition:`all ${Qe.switchDuration} ease-in-out`,content:'""'}},[`&${bt}-checked ${Ge}`]:{insetInlineStart:`calc(100% - ${ut+At}px)`},[`&:not(${bt}-disabled):active`]:Nt?{[`${Ge}::before`]:{insetInlineEnd:Qe.switchHandleActiveInset,insetInlineStart:0},[`&${bt}-checked ${Ge}::before`]:{insetInlineEnd:0,insetInlineStart:Qe.switchHandleActiveInset}}:{}}}},ze=Qe=>{const{componentCls:bt,trackHeight:Nt,trackPadding:At,innerMinMargin:Zt,innerMaxMargin:Yt,handleSize:ut}=Qe,Ge=`${bt}-inner`;return{[bt]:{[Ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Yt,paddingInlineEnd:Zt,transition:`padding-inline-start ${Qe.switchDuration} ease-in-out, padding-inline-end ${Qe.switchDuration} ease-in-out`,[`${Ge}-checked, ${Ge}-unchecked`]:{display:"block",color:Qe.colorTextLightSolid,fontSize:Qe.fontSizeSM,transition:`margin-inline-start ${Qe.switchDuration} ease-in-out, margin-inline-end ${Qe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ge}-checked`]:{marginInlineStart:`calc(-100% + ${ut+At*2}px - ${Yt*2}px)`,marginInlineEnd:`calc(100% - ${ut+At*2}px + ${Yt*2}px)`},[`${Ge}-unchecked`]:{marginTop:-Nt,marginInlineStart:0,marginInlineEnd:0}},[`&${bt}-checked ${Ge}`]:{paddingInlineStart:Zt,paddingInlineEnd:Yt,[`${Ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ge}-unchecked`]:{marginInlineStart:`calc(100% - ${ut+At*2}px + ${Yt*2}px)`,marginInlineEnd:`calc(-100% + ${ut+At*2}px - ${Yt*2}px)`}},[`&:not(${bt}-disabled):active`]:{[`&:not(${bt}-checked) ${Ge}`]:{[`${Ge}-unchecked`]:{marginInlineStart:At*2,marginInlineEnd:-At*2}},[`&${bt}-checked ${Ge}`]:{[`${Ge}-checked`]:{marginInlineStart:-At*2,marginInlineEnd:At*2}}}}}},et=Qe=>{const{componentCls:bt,trackHeight:Nt,trackMinWidth:At}=Qe;return{[bt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:At,height:Nt,lineHeight:`${Nt}px`,verticalAlign:"middle",background:Qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${bt}-disabled)`]:{background:Qe.colorTextTertiary}}),(0,de.Qy)(Qe)),{[`&${bt}-checked`]:{background:Qe.switchColor,[`&:hover:not(${bt}-disabled)`]:{background:Qe.colorPrimaryHover}},[`&${bt}-loading, &${bt}-disabled`]:{cursor:"not-allowed",opacity:Qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${bt}-rtl`]:{direction:"rtl"}})}};var $e=(0,me.Z)("Switch",Qe=>{const bt=(0,we.TS)(Qe,{switchDuration:Qe.motionDurationMid,switchColor:Qe.colorPrimary,switchDisabledOpacity:Qe.opacityLoading,switchLoadingIconSize:Qe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[et(bt),ze(bt),Ie(bt),Me(bt),be(bt)]},Qe=>{const{fontSize:bt,lineHeight:Nt,controlHeight:At,colorWhite:Zt}=Qe,Yt=bt*Nt,ut=At/2,Ge=2,kt=Yt-Ge*2,ln=ut-Ge*2;return{trackHeight:Yt,trackHeightSM:ut,trackMinWidth:kt*2+Ge*4,trackMinWidthSM:ln*2+Ge*2,trackPadding:Ge,handleBg:Zt,handleSize:kt,handleSizeSM:ln,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:kt/2,innerMaxMargin:kt+Ge+Ge*2,innerMinMarginSM:ln/2,innerMaxMarginSM:ln+Ge+Ge*2}}),gt=function(Qe,bt){var Nt={};for(var At in Qe)Object.prototype.hasOwnProperty.call(Qe,At)&&bt.indexOf(At)<0&&(Nt[At]=Qe[At]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,At=Object.getOwnPropertySymbols(Qe);Zt{const{prefixCls:Nt,size:At,disabled:Zt,loading:Yt,className:ut,rootClassName:Ge,style:kt}=Qe,ln=gt(Qe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:sn,direction:Bt,switch:Gt}=mt.useContext(te.E_),en=mt.useContext(ee.Z),Bn=(Zt!=null?Zt:en)||Yt,rn=sn("switch",Nt),Cn=mt.createElement("div",{className:`${rn}-handle`},Yt&&mt.createElement(ce.Z,{className:`${rn}-loading-icon`})),[ft,En]=$e(rn),Vn=(0,he.Z)(At),Re=_e()(Gt==null?void 0:Gt.className,{[`${rn}-small`]:Vn==="small",[`${rn}-loading`]:Yt,[`${rn}-rtl`]:Bt==="rtl"},ut,Ge,En),Ce=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),kt);return ft(mt.createElement(Ae.Z,{component:"Switch"},mt.createElement(dt,Object.assign({},ln,{prefixCls:rn,className:Re,style:Ce,disabled:Bn,ref:bt,loadingIcon:Cn}))))});je.__ANT_SWITCH=!0;var Tt=je},1710:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return Jo}});var ce={},De="rc-table-internal-hook",_e=ve(72071),Ct=ve(6089),Ze=ve(34280),Ke=ve(13697),Be=ve(59301),mt=ve(4676);function ct(Je){var Ye=Be.createContext(void 0),jt=function(nn){var Ht=nn.value,Mn=nn.children,Sn=Be.useRef(Ht);Sn.current=Ht;var Fn=Be.useState(function(){return{getValue:function(){return Sn.current},listeners:new Set}}),Qn=(0,_e.Z)(Fn,1),kn=Qn[0];return(0,Ze.Z)(function(){(0,mt.unstable_batchedUpdates)(function(){kn.listeners.forEach(function(Jn){Jn(Ht)})})},[Ht]),Be.createElement(Ye.Provider,{value:kn},Mn)};return{Context:Ye,Provider:jt,defaultValue:Je}}function He(Je,Ye){var jt=(0,Ct.Z)(typeof Ye=="function"?Ye:function(Jn){if(Ye===void 0)return Jn;if(!Array.isArray(Ye))return Jn[Ye];var ki={};return Ye.forEach(function(wi){ki[wi]=Jn[wi]}),ki}),zt=Be.useContext(Je==null?void 0:Je.Context),nn=zt||{},Ht=nn.listeners,Mn=nn.getValue,Sn=Be.useRef();Sn.current=jt(zt?Mn():Je==null?void 0:Je.defaultValue);var Fn=Be.useState({}),Qn=(0,_e.Z)(Fn,2),kn=Qn[1];return(0,Ze.Z)(function(){if(!zt)return;function Jn(ki){var wi=jt(ki);(0,Ke.Z)(Sn.current,wi,!0)||kn({})}return Ht.add(Jn),function(){Ht.delete(Jn)}},[zt]),Sn.current}var Et=ve(96663),ht=ve(8654);function dt(){var Je=Be.createContext(null);function Ye(){return Be.useContext(Je)}function jt(nn,Ht){var Mn=(0,ht.Yr)(nn),Sn=function(Qn,kn){var Jn=Mn?{ref:kn}:{},ki=Be.useRef(0),wi=Be.useRef(Qn),yi=Ye();return yi!==null?Be.createElement(nn,(0,Et.Z)({},Qn,Jn)):((!Ht||Ht(wi.current,Qn))&&(ki.current+=1),wi.current=Qn,Be.createElement(Je.Provider,{value:ki.current},Be.createElement(nn,(0,Et.Z)({},Qn,Jn))))};return Mn?Be.forwardRef(Sn):Sn}function zt(nn,Ht){var Mn=(0,ht.Yr)(nn),Sn=function(Qn,kn){var Jn=Mn?{ref:kn}:{};return Ye(),Be.createElement(nn,(0,Et.Z)({},Qn,Jn))};return Mn?Be.memo(Be.forwardRef(Sn),Ht):Be.memo(Sn,Ht)}return{makeImmutable:jt,responseImmutable:zt,useImmutableMark:Ye}}var Ae=dt(),te=Ae.makeImmutable,ee=Ae.responseImmutable,he=Ae.useImmutableMark,se=dt(),de=se.makeImmutable,me=se.responseImmutable,we=se.useImmutableMark,be=ct(),Me=be;function Ie(Je,Ye){var jt=Be.useRef(0);jt.current+=1;var zt=Be.useRef(Je),nn=[];Object.keys(Je||{}).map(function(Mn){var Sn;(Je==null?void 0:Je[Mn])!==((Sn=zt.current)===null||Sn===void 0?void 0:Sn[Mn])&&nn.push(Mn)}),zt.current=Je;var Ht=Be.useRef([]);return nn.length&&(Ht.current=nn),Be.useDebugValue(jt.current),Be.useDebugValue(Ht.current.join(", ")),Ye&&console.log("".concat(Ye,":"),jt.current,Ht.current),jt.current}var ze=null,et=Be.memo(function(){var Je=Ie();return Be.createElement("h1",null,"Render Times: ",Je)});et.displayName="RenderBlock";var $e=ve(20135),gt=ve(44127),je=ve(90493),Tt=ve(92310),Qe=ve.n(Tt),bt=ve(80547),Nt=ve(97938),At=ve(48736),Zt=Be.createContext({renderWithProps:!1}),Yt=Zt,ut="RC_TABLE_KEY";function Ge(Je){return Je==null?[]:Array.isArray(Je)?Je:[Je]}function kt(Je){var Ye=[],jt={};return Je.forEach(function(zt){for(var nn=zt||{},Ht=nn.key,Mn=nn.dataIndex,Sn=Ht||Ge(Mn).join("-")||ut;jt[Sn];)Sn="".concat(Sn,"_next");jt[Sn]=!0,Ye.push(Sn)}),Ye}function ln(Je){return Je!=null}function sn(Je){return Je&&(0,$e.Z)(Je)==="object"&&!Array.isArray(Je)&&!Be.isValidElement(Je)}function Bt(Je,Ye,jt,zt,nn,Ht){var Mn=Be.useContext(Yt),Sn=we(),Fn=(0,bt.Z)(function(){if(ln(zt))return[zt];var Qn=Ye==null||Ye===""?[]:Array.isArray(Ye)?Ye:[Ye],kn=(0,Nt.Z)(Je,Qn),Jn=kn,ki=void 0;if(nn){var wi=nn(kn,Je,jt);sn(wi)?(Jn=wi.children,ki=wi.props,Mn.renderWithProps=!0):Jn=wi}return[Jn,ki]},[Sn,Je,zt,Ye,nn,jt],function(Qn,kn){if(Ht){var Jn=(0,_e.Z)(Qn,2),ki=Jn[1],wi=(0,_e.Z)(kn,2),yi=wi[1];return Ht(yi,ki)}return Mn.renderWithProps?!0:!(0,Ke.Z)(Qn,kn,!0)});return Fn}function Gt(Je,Ye,jt,zt){var nn=Je+Ye-1;return Je<=zt&&nn>=jt}function en(Je,Ye){return He(Me,function(jt){var zt=Gt(Je,Ye||1,jt.hoverStartRow,jt.hoverEndRow);return[zt,jt.onHover]})}var Bn=function(Ye){var jt=Ye.ellipsis,zt=Ye.rowType,nn=Ye.children,Ht,Mn=jt===!0?{showTitle:!0}:jt;return Mn&&(Mn.showTitle||zt==="header")&&(typeof nn=="string"||typeof nn=="number"?Ht=nn.toString():Be.isValidElement(nn)&&typeof nn.props.children=="string"&&(Ht=nn.props.children)),Ht};function rn(Je){var Ye,jt,zt,nn,Ht,Mn,Sn,Fn,Qn=Je.component,kn=Je.children,Jn=Je.ellipsis,ki=Je.scope,wi=Je.prefixCls,yi=Je.className,ar=Je.align,Mi=Je.record,Ui=Je.render,Yi=Je.dataIndex,wr=Je.renderIndex,Xr=Je.shouldCellUpdate,so=Je.index,pr=Je.rowType,Ur=Je.colSpan,zo=Je.rowSpan,Pr=Je.fixLeft,Wr=Je.fixRight,xr=Je.firstFixLeft,Ki=Je.lastFixLeft,Fr=Je.firstFixRight,no=Je.lastFixRight,xo=Je.appendNode,Eo=Je.additionalProps,mr=Eo===void 0?{}:Eo,Ho=Je.isSticky,Vo="".concat(wi,"-cell"),wa=He(Me,["supportSticky","allColumnsFixedLeft"]),sa=wa.supportSticky,os=wa.allColumnsFixedLeft,ts=Bt(Mi,Yi,wr,kn,Ui,Xr),$o=(0,_e.Z)(ts,2),oo=$o[0],pa=$o[1],as={},Va=typeof Pr=="number"&&sa,Ms=typeof Wr=="number"&&sa;Va&&(as.position="sticky",as.left=Pr),Ms&&(as.position="sticky",as.right=Wr);var bo=(Ye=(jt=(zt=pa==null?void 0:pa.colSpan)!==null&&zt!==void 0?zt:mr.colSpan)!==null&&jt!==void 0?jt:Ur)!==null&&Ye!==void 0?Ye:1,mo=(nn=(Ht=(Mn=pa==null?void 0:pa.rowSpan)!==null&&Mn!==void 0?Mn:mr.rowSpan)!==null&&Ht!==void 0?Ht:zo)!==null&&nn!==void 0?nn:1,Mo=en(so,mo),qr=(0,_e.Z)(Mo,2),ya=qr[0],eo=qr[1],_o=function(ws){var Rs;Mi&&eo(so,so+mo-1),mr==null||(Rs=mr.onMouseEnter)===null||Rs===void 0||Rs.call(mr,ws)},ha=function(ws){var Rs;Mi&&eo(-1,-1),mr==null||(Rs=mr.onMouseLeave)===null||Rs===void 0||Rs.call(mr,ws)};if(bo===0||mo===0)return null;var ca=(Sn=mr.title)!==null&&Sn!==void 0?Sn:Bn({rowType:pr,ellipsis:Jn,children:oo}),Vs=Qe()(Vo,yi,(Fn={},(0,je.Z)(Fn,"".concat(Vo,"-fix-left"),Va&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-left-first"),xr&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-left-last"),Ki&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-left-all"),Ki&&os&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-right"),Ms&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-right-first"),Fr&&sa),(0,je.Z)(Fn,"".concat(Vo,"-fix-right-last"),no&&sa),(0,je.Z)(Fn,"".concat(Vo,"-ellipsis"),Jn),(0,je.Z)(Fn,"".concat(Vo,"-with-append"),xo),(0,je.Z)(Fn,"".concat(Vo,"-fix-sticky"),(Va||Ms)&&Ho&&sa),(0,je.Z)(Fn,"".concat(Vo,"-row-hover"),!pa&&ya),Fn),mr.className,pa==null?void 0:pa.className),Ns={};ar&&(Ns.textAlign=ar);var hl=(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)({},as),mr.style),Ns),pa==null?void 0:pa.style),Ca=oo;return(0,$e.Z)(Ca)==="object"&&!Array.isArray(Ca)&&!Be.isValidElement(Ca)&&(Ca=null),Jn&&(Ki||Fr)&&(Ca=Be.createElement("span",{className:"".concat(Vo,"-content")},Ca)),Be.createElement(Qn,(0,Et.Z)({},pa,mr,{className:Vs,style:hl,title:ca,scope:ki,onMouseEnter:_o,onMouseLeave:ha,colSpan:bo!==1?bo:null,rowSpan:mo!==1?mo:null}),xo,Ca)}var Cn=Be.memo(rn);function ft(Je,Ye,jt,zt,nn,Ht){var Mn=jt[Je]||{},Sn=jt[Ye]||{},Fn,Qn;Mn.fixed==="left"?Fn=zt.left[nn==="rtl"?Ye:Je]:Sn.fixed==="right"&&(Qn=zt.right[nn==="rtl"?Je:Ye]);var kn=!1,Jn=!1,ki=!1,wi=!1,yi=jt[Ye+1],ar=jt[Je-1],Mi=!(Ht!=null&&Ht.children);if(nn==="rtl"){if(Fn!==void 0){var Ui=ar&&ar.fixed==="left";wi=!Ui&&Mi}else if(Qn!==void 0){var Yi=yi&&yi.fixed==="right";ki=!Yi&&Mi}}else if(Fn!==void 0){var wr=yi&&yi.fixed==="left";kn=!wr&&Mi}else if(Qn!==void 0){var Xr=ar&&ar.fixed==="right";Jn=!Xr&&Mi}return{fixLeft:Fn,fixRight:Qn,lastFixLeft:kn,firstFixRight:Jn,lastFixRight:ki,firstFixLeft:wi,isSticky:zt.isSticky}}var En=Be.createContext({}),Vn=En;function Re(Je){var Ye=Je.className,jt=Je.index,zt=Je.children,nn=Je.colSpan,Ht=nn===void 0?1:nn,Mn=Je.rowSpan,Sn=Je.align,Fn=He(Me,["prefixCls","direction"]),Qn=Fn.prefixCls,kn=Fn.direction,Jn=Be.useContext(Vn),ki=Jn.scrollColumnIndex,wi=Jn.stickyOffsets,yi=Jn.flattenColumns,ar=Jn.columns,Mi=jt+Ht-1,Ui=Mi+1===ki?Ht+1:Ht,Yi=ft(jt,jt+Ui-1,yi,wi,kn,ar==null?void 0:ar[jt]);return Be.createElement(Cn,(0,Et.Z)({className:Ye,index:jt,component:"td",prefixCls:Qn,record:null,dataIndex:null,align:Sn,colSpan:Ui,rowSpan:Mn,render:function(){return zt}},Yi))}var Ce=ve(6620),Pe=["children"];function Ne(Je){var Ye=Je.children,jt=(0,Ce.Z)(Je,Pe);return Be.createElement("tr",jt,Ye)}function ke(Je){var Ye=Je.children;return Ye}ke.Row=Ne,ke.Cell=Re;var Se=ke;function nt(Je){var Ye=Je.children,jt=Je.stickyOffsets,zt=Je.flattenColumns,nn=Je.columns,Ht=He(Me,"prefixCls"),Mn=zt.length-1,Sn=zt[Mn],Fn=Be.useMemo(function(){return{stickyOffsets:jt,flattenColumns:zt,scrollColumnIndex:Sn!=null&&Sn.scrollbar?Mn:null,columns:nn}},[Sn,zt,Mn,jt,nn]);return Be.createElement(Vn.Provider,{value:Fn},Be.createElement("tfoot",{className:"".concat(Ht,"-summary")},Ye))}var Pt=me(nt),qe=Se,Ue=ve(70425),St=ve(29301),vt=ve(29194),lt=ve(24514),Dt=ve(75152),un=ve(26112);function Xt(Je,Ye,jt,zt,nn,Ht,Mn){Je.push({record:Ye,indent:jt,index:Mn});var Sn=Ht(Ye),Fn=nn==null?void 0:nn.has(Sn);if(Ye&&Array.isArray(Ye[zt])&&Fn)for(var Qn=0;Qn1?xr-1:0),Fr=1;Fr=0;Sn-=1){var Fn=Ye[Sn],Qn=jt&&jt[Sn],kn=Qn&&Qn[Ji];if(Fn||kn||Mn){var Jn=kn||{},ki=Jn.columnType,wi=(0,Ce.Z)(Jn,$n);nn.unshift(Be.createElement("col",(0,Et.Z)({key:Sn,style:{width:Fn}},wi))),Mn=!0}}return Be.createElement("colgroup",null,nn)}var Pi=ti,mi=ve(19127),nr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ji(Je,Ye){return(0,Be.useMemo)(function(){for(var jt=[],zt=0;zt1?"colgroup":"col":null,ellipsis:Mi.ellipsis,align:Mi.align,component:Mi.title?Ht:Mn,prefixCls:kn,key:wi[ar]},Ui,{additionalProps:Yi,rowType:"header"}))}))}Hi.displayName="HeaderRow";var hn=Hi;function ni(Je){var Ye=[];function jt(Mn,Sn){var Fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ye[Fn]=Ye[Fn]||[];var Qn=Sn,kn=Mn.filter(Boolean).map(function(Jn){var ki={key:Jn.key,className:Jn.className||"",children:Jn.title,column:Jn,colStart:Qn},wi=1,yi=Jn.children;return yi&&yi.length>0&&(wi=jt(yi,Qn,Fn+1).reduce(function(ar,Mi){return ar+Mi},0),ki.hasSubColumns=!0),"colSpan"in Jn&&(wi=Jn.colSpan),"rowSpan"in Jn&&(ki.rowSpan=Jn.rowSpan),ki.colSpan=wi,ki.colEnd=ki.colStart+wi-1,Ye[Fn].push(ki),Qn+=wi,wi});return kn}jt(Je,0);for(var zt=Ye.length,nn=function(Sn){Ye[Sn].forEach(function(Fn){!("rowSpan"in Fn)&&!Fn.hasSubColumns&&(Fn.rowSpan=zt-Sn)})},Ht=0;Ht1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ye=="number"?Ye:Ye.endsWith("%")?Je*parseFloat(Ye)/100:null}function Ft(Je,Ye){return Be.useMemo(function(){if(Ye&&Ye>0){var jt=0,zt=0;Je.forEach(function(Qn){var kn=Dn(Ye,Qn.width);kn?jt+=kn:zt+=1});var nn=Ye-jt,Ht=zt,Mn=nn/zt,Sn=0,Fn=Je.map(function(Qn){var kn=(0,gt.Z)({},Qn),Jn=Dn(Ye,kn.width);if(Jn)kn.width=Jn;else{var ki=Math.floor(Mn);kn.width=Ht===1?nn:ki,nn-=ki,Ht-=1}return Sn+=kn.width,kn});return[Fn,Sn]}return[Je,Ye]},[Je,Ye])}var Ot=["children"],Ve=["fixed"];function Ut(Je){return(0,_n.Z)(Je).filter(function(Ye){return Be.isValidElement(Ye)}).map(function(Ye){var jt=Ye.key,zt=Ye.props,nn=zt.children,Ht=(0,Ce.Z)(zt,Ot),Mn=(0,gt.Z)({key:jt},Ht);return nn&&(Mn.children=Ut(nn)),Mn})}function tn(Je){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Je.filter(function(jt){return jt&&(0,$e.Z)(jt)==="object"}).reduce(function(jt,zt,nn){var Ht=zt.fixed,Mn=Ht===!0?"left":Ht,Sn="".concat(Ye,"-").concat(nn),Fn=zt.children;return Fn&&Fn.length>0?[].concat((0,mi.Z)(jt),(0,mi.Z)(tn(Fn,Sn).map(function(Qn){return(0,gt.Z)({fixed:Mn},Qn)}))):[].concat((0,mi.Z)(jt),[(0,gt.Z)((0,gt.Z)({key:Sn},zt),{},{fixed:Mn})])},[])}function xt(Je){for(var Ye=!0,jt=0;jt=0;Ht-=1){var Mn=Je[Ht];if(nn&&Mn.fixed!=="right")nn=!1;else if(!nn&&Mn.fixed==="right"){warning(!1,"Index ".concat(Ht+1," of `columns` missing `fixed='right'` prop."));break}}}function rt(Je){return Je.map(function(Ye){var jt=Ye.fixed,zt=(0,Ce.Z)(Ye,Ve),nn=jt;return jt==="left"?nn="right":jt==="right"&&(nn="left"),(0,gt.Z)({fixed:nn},zt)})}function Vt(Je,Ye){var jt=Je.prefixCls,zt=Je.columns,nn=Je.children,Ht=Je.expandable,Mn=Je.expandedKeys,Sn=Je.columnTitle,Fn=Je.getRowKey,Qn=Je.onTriggerExpand,kn=Je.expandIcon,Jn=Je.rowExpandable,ki=Je.expandIconColumnIndex,wi=Je.direction,yi=Je.expandRowByClick,ar=Je.columnWidth,Mi=Je.fixed,Ui=Je.scrollWidth,Yi=Be.useMemo(function(){return zt||Ut(nn)},[zt,nn]),wr=Be.useMemo(function(){if(Ht){var Wr,xr=Yi.slice();if(!xr.includes(ce)){var Ki=ki||0;Ki>=0&&xr.splice(Ki,0,ce)}var Fr=xr.indexOf(ce);xr=xr.filter(function(mr,Ho){return mr!==ce||Ho===Fr});var no=Yi[Fr],xo;(Mi==="left"||Mi)&&!ki?xo="left":(Mi==="right"||Mi)&&ki===Yi.length?xo="right":xo=no?no.fixed:null;var Eo=(Wr={},(0,je.Z)(Wr,Ji,{className:"".concat(jt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,je.Z)(Wr,"title",Sn),(0,je.Z)(Wr,"fixed",xo),(0,je.Z)(Wr,"className","".concat(jt,"-row-expand-icon-cell")),(0,je.Z)(Wr,"width",ar),(0,je.Z)(Wr,"render",function(Ho,Vo,wa){var sa=Fn(Vo,wa),os=Mn.has(sa),ts=Jn?Jn(Vo):!0,$o=kn({prefixCls:jt,expanded:os,expandable:ts,record:Vo,onExpand:Qn});return yi?Be.createElement("span",{onClick:function(pa){return pa.stopPropagation()}},$o):$o}),Wr);return xr.map(function(mr){return mr===ce?Eo:mr})}return Yi.filter(function(mr){return mr!==ce})},[Ht,Yi,Fn,Mn,kn,wi]),Xr=Be.useMemo(function(){var Wr=wr;return Ye&&(Wr=Ye(Wr)),Wr.length||(Wr=[{render:function(){return null}}]),Wr},[Ye,wr,wi]),so=Be.useMemo(function(){return wi==="rtl"?rt(tn(Xr)):tn(Xr)},[Xr,wi,Ui]),pr=Ft(so,Ui),Ur=(0,_e.Z)(pr,2),zo=Ur[0],Pr=Ur[1];return[Xr,zo,Pr]}var on=Vt;function xn(Je){var Ye,jt=Je.prefixCls,zt=Je.record,nn=Je.onExpand,Ht=Je.expanded,Mn=Je.expandable,Sn="".concat(jt,"-row-expand-icon");if(!Mn)return Be.createElement("span",{className:Qe()(Sn,"".concat(jt,"-row-spaced"))});var Fn=function(kn){nn(zt,kn),kn.stopPropagation()};return Be.createElement("span",{className:Qe()(Sn,(Ye={},(0,je.Z)(Ye,"".concat(jt,"-row-expanded"),Ht),(0,je.Z)(Ye,"".concat(jt,"-row-collapsed"),!Ht),Ye)),onClick:Fn})}function An(Je,Ye,jt){var zt=[];function nn(Ht){(Ht||[]).forEach(function(Mn,Sn){zt.push(Ye(Mn,Sn)),nn(Mn[jt])})}return nn(Je),zt}function yt(Je,Ye,jt){var zt=Un(Je),nn=zt.expandIcon,Ht=zt.expandedRowKeys,Mn=zt.defaultExpandedRowKeys,Sn=zt.defaultExpandAllRows,Fn=zt.expandedRowRender,Qn=zt.onExpand,kn=zt.onExpandedRowsChange,Jn=zt.childrenColumnName,ki=nn||xn,wi=Jn||"children",yi=Be.useMemo(function(){return Fn?"row":Je.expandable&&Je.internalHooks===De&&Je.expandable.__PARENT_RENDER_ICON__||Ye.some(function(so){return so&&(0,$e.Z)(so)==="object"&&so[wi]})?"nest":!1},[!!Fn,Ye]),ar=Be.useState(function(){return Mn||(Sn?An(Ye,jt,wi):[])}),Mi=(0,_e.Z)(ar,2),Ui=Mi[0],Yi=Mi[1],wr=Be.useMemo(function(){return new Set(Ht||Ui||[])},[Ht,Ui]),Xr=Be.useCallback(function(so){var pr=jt(so,Ye.indexOf(so)),Ur,zo=wr.has(pr);zo?(wr.delete(pr),Ur=(0,mi.Z)(wr)):Ur=[].concat((0,mi.Z)(wr),[pr]),Yi(Ur),Qn&&Qn(!zo,so),kn&&kn(Ur)},[jt,wr,Ye,Qn,kn]);return[zt,yi,wr,ki,wi,Xr]}function cn(Je,Ye,jt,zt){var nn=Je.map(function(Ht,Mn){return ft(Mn,Mn,Je,Ye,jt,zt==null?void 0:zt[Mn])});return(0,bt.Z)(function(){return nn},[nn],function(Ht,Mn){return!(0,Ke.Z)(Ht,Mn)})}function On(Je){var Ye=(0,Be.useRef)(Je),jt=(0,Be.useState)({}),zt=(0,_e.Z)(jt,2),nn=zt[1],Ht=(0,Be.useRef)(null),Mn=(0,Be.useRef)([]);function Sn(Fn){Mn.current.push(Fn);var Qn=Promise.resolve();Ht.current=Qn,Qn.then(function(){if(Ht.current===Qn){var kn=Mn.current,Jn=Ye.current;Mn.current=[],kn.forEach(function(ki){Ye.current=ki(Ye.current)}),Ht.current=null,Jn!==Ye.current&&nn({})}})}return(0,Be.useEffect)(function(){return function(){Ht.current=null}},[]),[Ye.current,Sn]}function ri(Je){var Ye=(0,Be.useRef)(Je||null),jt=(0,Be.useRef)();function zt(){window.clearTimeout(jt.current)}function nn(Mn){Ye.current=Mn,zt(),jt.current=window.setTimeout(function(){Ye.current=null,jt.current=void 0},100)}function Ht(){return Ye.current}return(0,Be.useEffect)(function(){return zt},[]),[nn,Ht]}function Wt(){var Je=Be.useState(-1),Ye=(0,_e.Z)(Je,2),jt=Ye[0],zt=Ye[1],nn=Be.useState(-1),Ht=(0,_e.Z)(nn,2),Mn=Ht[0],Sn=Ht[1],Fn=Be.useCallback(function(Qn,kn){zt(Qn),Sn(kn)},[]);return[jt,Mn,Fn]}var Jt=ve(47273),hi=(0,Jt.Z)()?window:null;function ci(Je,Ye){var jt=(0,$e.Z)(Je)==="object"?Je:{},zt=jt.offsetHeader,nn=zt===void 0?0:zt,Ht=jt.offsetSummary,Mn=Ht===void 0?0:Ht,Sn=jt.offsetScroll,Fn=Sn===void 0?0:Sn,Qn=jt.getContainer,kn=Qn===void 0?function(){return hi}:Qn,Jn=kn()||hi;return Be.useMemo(function(){var ki=!!Je;return{isSticky:ki,stickyClassName:ki?"".concat(Ye,"-sticky-holder"):"",offsetHeader:nn,offsetSummary:Mn,offsetScroll:Fn,container:Jn}},[Fn,nn,Mn,Ye,Jn])}function ui(Je,Ye,jt){var zt=(0,Be.useMemo)(function(){for(var nn=[],Ht=[],Mn=0,Sn=0,Fn=0;Fn=Jn&&(mr=Jn-ki),Mn({scrollLeft:mr/Jn*(kn+2)}),Yi.current.x=Fr.pageX},Wr=function(){if(Ht.current){var Fr=(0,er.os)(Ht.current).top,no=Fr+Ht.current.offsetHeight,xo=Fn===window?document.documentElement.scrollTop+window.innerHeight:(0,er.os)(Fn).top+Fn.clientHeight;no-(0,Dt.Z)()<=xo||Fr>=xo-Sn?Ui(function(Eo){return(0,gt.Z)((0,gt.Z)({},Eo),{},{isHiddenScrollBar:!0})}):Ui(function(Eo){return(0,gt.Z)((0,gt.Z)({},Eo),{},{isHiddenScrollBar:!1})})}},xr=function(Fr){Ui(function(no){return(0,gt.Z)((0,gt.Z)({},no),{},{scrollLeft:Fr/kn*Jn||0})})};return Be.useImperativeHandle(jt,function(){return{setScrollLeft:xr}}),Be.useEffect(function(){var Ki=(0,Ai.Z)(document.body,"mouseup",Ur,!1),Fr=(0,Ai.Z)(document.body,"mousemove",Pr,!1);return Wr(),function(){Ki.remove(),Fr.remove()}},[ki,so]),Be.useEffect(function(){var Ki=(0,Ai.Z)(Fn,"scroll",Wr,!1),Fr=(0,Ai.Z)(window,"resize",Wr,!1);return function(){Ki.remove(),Fr.remove()}},[Fn]),Be.useEffect(function(){Mi.isHiddenScrollBar||Ui(function(Ki){var Fr=Ht.current;return Fr?(0,gt.Z)((0,gt.Z)({},Ki),{},{scrollLeft:Fr.scrollLeft/Fr.scrollWidth*Fr.clientWidth}):Ki})},[Mi.isHiddenScrollBar]),kn<=Jn||!ki||Mi.isHiddenScrollBar?null:Be.createElement("div",{style:{height:(0,Dt.Z)(),width:Jn,bottom:Sn},className:"".concat(Qn,"-sticky-scroll")},Be.createElement("div",{onMouseDown:zo,ref:wi,className:Qe()("".concat(Qn,"-sticky-scroll-bar"),(0,je.Z)({},"".concat(Qn,"-sticky-scroll-bar-active"),so)),style:{width:"".concat(ki,"px"),transform:"translate3d(".concat(Mi.scrollLeft,"px, 0, 0)")}}))},vn=Be.forwardRef(sr);function Nr(Je){return null}var Dr=Nr;function ir(Je){return null}var fn=ir,jn="rc-table",Ei=[],zi={};function Ni(){return"No Data"}function Gi(Je){var Ye,jt=(0,gt.Z)({rowKey:"key",prefixCls:jn,emptyText:Ni},Je),zt=jt.prefixCls,nn=jt.className,Ht=jt.rowClassName,Mn=jt.style,Sn=jt.data,Fn=jt.rowKey,Qn=jt.scroll,kn=jt.tableLayout,Jn=jt.direction,ki=jt.title,wi=jt.footer,yi=jt.summary,ar=jt.caption,Mi=jt.id,Ui=jt.showHeader,Yi=jt.components,wr=jt.emptyText,Xr=jt.onRow,so=jt.onHeaderRow,pr=jt.internalHooks,Ur=jt.transformColumns,zo=jt.internalRefs,Pr=jt.tailor,Wr=jt.sticky,xr=Sn||Ei,Ki=!!xr.length,Fr=pr===De,no=Be.useCallback(function(ba,ns){return(0,Nt.Z)(Yi,ba)||ns},[Yi]),xo=Be.useMemo(function(){return typeof Fn=="function"?Fn:function(ba){var ns=ba&&ba[Fn];return ns}},[Fn]),Eo=no(["body"]),mr=Wt(),Ho=(0,_e.Z)(mr,3),Vo=Ho[0],wa=Ho[1],sa=Ho[2],os=yt(jt,xr,xo),ts=(0,_e.Z)(os,6),$o=ts[0],oo=ts[1],pa=ts[2],as=ts[3],Va=ts[4],Ms=ts[5],bo=Qn==null?void 0:Qn.x,mo=Be.useState(0),Mo=(0,_e.Z)(mo,2),qr=Mo[0],ya=Mo[1],eo=on((0,gt.Z)((0,gt.Z)((0,gt.Z)({},jt),$o),{},{expandable:!!$o.expandedRowRender,columnTitle:$o.columnTitle,expandedKeys:pa,getRowKey:xo,onTriggerExpand:Ms,expandIcon:as,expandIconColumnIndex:$o.expandIconColumnIndex,direction:Jn,scrollWidth:Fr&&Pr&&typeof bo=="number"?bo:null}),Fr?Ur:null),_o=(0,_e.Z)(eo,3),ha=_o[0],ca=_o[1],Vs=_o[2],Ns=Vs!=null?Vs:bo,hl=Be.useMemo(function(){return{columns:ha,flattenColumns:ca}},[ha,ca]),Ca=Be.useRef(),Us=Be.useRef(),ws=Be.useRef(),Rs=Be.useRef(),fh=Be.useRef(),Ea=Be.useState(!1),Ta=(0,_e.Z)(Ea,2),ja=Ta[0],ms=Ta[1],js=Be.useState(!1),ra=(0,_e.Z)(js,2),Za=ra[0],zs=ra[1],jl=On(new Map),au=(0,_e.Z)(jl,2),Yl=au[0],wu=au[1],Cu=kt(ca),su=Cu.map(function(ba){return Yl.get(ba)}),La=Be.useMemo(function(){return su},[su.join("_")]),Xs=qn(La,ca.length,Jn),fs=Qn&&ln(Qn.y),Ha=Qn&&ln(Ns)||!!$o.fixed,lu=Ha&&ca.some(function(ba){var ns=ba.fixed;return ns}),kh=Be.useRef(),Eu=ci(Wr,zt),th=Eu.isSticky,gh=Eu.offsetHeader,Xl=Eu.offsetSummary,Sa=Eu.offsetScroll,Ua=Eu.stickyClassName,ks=Eu.container,Ya=Be.useMemo(function(){return yi==null?void 0:yi(xr)},[yi,xr]),fa=(fs||th)&&Be.isValidElement(Ya)&&Ya.type===Se&&Ya.props.fixed,_s,zl,Zu;fs&&(zl={overflowY:"scroll",maxHeight:Qn.y}),Ha&&(_s={overflowX:"auto"},fs||(zl={overflowY:"hidden"}),Zu={width:Ns===!0?"auto":Ns,minWidth:"100%"});var pf=Be.useCallback(function(ba,ns){(0,vt.Z)(Ca.current)&&wu(function(il){if(il.get(ba)!==ns){var bu=new Map(il);return bu.set(ba,ns),bu}return il})},[]),Qt=ri(null),$h=(0,_e.Z)(Qt,2),ph=$h[0],mf=$h[1];function Nc(ba,ns){ns&&(typeof ns=="function"?ns(ba):ns.scrollLeft!==ba&&(ns.scrollLeft=ba,ns.scrollLeft!==ba&&setTimeout(function(){ns.scrollLeft=ba},0)))}var cc=(0,Ct.Z)(function(ba){var ns=ba.currentTarget,il=ba.scrollLeft,bu=Jn==="rtl",Mu=typeof il=="number"?il:ns.scrollLeft,Gd=ns||zi;if(!mf()||mf()===Gd){var Uh;ph(Gd),Nc(Mu,Us.current),Nc(Mu,ws.current),Nc(Mu,fh.current),Nc(Mu,(Uh=kh.current)===null||Uh===void 0?void 0:Uh.setScrollLeft)}var ld=ns||Us.current;if(ld){var Hu=ld.scrollWidth,Ah=ld.clientWidth;if(Hu===Ah){ms(!1),zs(!1);return}bu?(ms(-Mu0)):(ms(Mu>0),zs(Mu1?ar-Fr:0,xo=(0,gt.Z)((0,gt.Z)((0,gt.Z)({},Ur),Fn),{},{flex:"0 0 ".concat(Fr,"px"),width:"".concat(Fr,"px"),marginRight:no,pointerEvents:"auto"}),Eo=Be.useMemo(function(){return kn?xr<=1:Pr===0||xr===0||xr>1},[xr,Pr,kn]);Eo?xo.visibility="hidden":kn&&(xo.height=Jn==null?void 0:Jn(xr));var mr=Eo?function(){return null}:ki,Ho={};return(xr===0||Pr===0)&&(Ho.rowSpan=1,Ho.colSpan=1),Be.createElement(Cn,(0,Et.Z)({className:Qe()(yi,Qn),ellipsis:jt.ellipsis,align:jt.align,scope:jt.rowScope,component:"div",prefixCls:Ye.prefixCls,key:wr,record:Sn,index:Ht,renderIndex:Mn,dataIndex:wi,render:mr,shouldCellUpdate:jt.shouldCellUpdate},Xr,{appendNode:so,additionalProps:(0,gt.Z)((0,gt.Z)({},pr),{},{style:xo},Ho)}))}var co=Zr,Bi=["data","index","className","rowKey","style","extra","getHeight"],Po=Be.forwardRef(function(Je,Ye){var jt=Je.data,zt=Je.index,nn=Je.className,Ht=Je.rowKey,Mn=Je.style,Sn=Je.extra,Fn=Je.getHeight,Qn=(0,Ce.Z)(Je,Bi),kn=jt.record,Jn=jt.indent,ki=jt.index,wi=He(Me,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),yi=wi.scrollX,ar=wi.flattenColumns,Mi=wi.prefixCls,Ui=wi.fixColumn,Yi=wi.componentWidth,wr=pn(kn,Ht,zt,Jn),Xr=wr.rowSupportExpand,so=wr.expanded,pr=wr.rowProps,Ur=wr.expandedRowRender,zo=wr.expandedRowClassName,Pr;if(Xr&&so){var Wr=Ur(kn,zt,Jn+1,so),xr=zo==null?void 0:zo(kn,zt,Jn),Ki={};Ui&&(Ki={style:(0,je.Z)({},"--virtual-width","".concat(Yi,"px"))});var Fr="".concat(Mi,"-expanded-row-cell");Pr=Be.createElement("div",{className:Qe()("".concat(Mi,"-expanded-row"),"".concat(Mi,"-expanded-row-level-").concat(Jn+1),xr)},Be.createElement(Cn,{component:"div",prefixCls:Mi,className:Qe()(Fr,(0,je.Z)({},"".concat(Fr,"-fixed"),Ui)),additionalProps:Ki},Wr))}var no=(0,gt.Z)((0,gt.Z)({},Mn),{},{width:yi});Sn&&(no.position="absolute",no.pointerEvents="none");var xo=Be.createElement("div",(0,Et.Z)({},pr,Qn,{ref:Xr?null:Ye,className:Qe()(nn,"".concat(Mi,"-row"),pr==null?void 0:pr.className,(0,je.Z)({},"".concat(Mi,"-row-extra"),Sn)),style:(0,gt.Z)((0,gt.Z)({},no),pr==null?void 0:pr.style)}),ar.map(function(Eo,mr){return Be.createElement(co,{key:mr,rowInfo:wr,column:Eo,colIndex:mr,indent:Jn,index:zt,renderIndex:ki,record:kn,inverse:Sn,getHeight:Fn})}));return Xr?Be.createElement("div",{ref:Ye},xo,Pr):xo}),ao=me(Po),Vi=ao,qi=Be.forwardRef(function(Je,Ye){var jt=Je.data,zt=Je.onScroll,nn=He(Me,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ht=nn.flattenColumns,Mn=nn.onColumnResize,Sn=nn.getRowKey,Fn=nn.expandedKeys,Qn=nn.prefixCls,kn=nn.childrenColumnName,Jn=nn.emptyNode,ki=nn.scrollX,wi=He(Nn),yi=wi.scrollY,ar=wi.listItemHeight,Mi=Be.useRef(),Ui=$t(jt,kn,Fn,Sn),Yi=Be.useMemo(function(){var Pr=0;return Ht.map(function(Wr){var xr=Wr.width,Ki=Wr.key;return Pr+=xr,[Ki,xr,Pr]})},[Ht]),wr=Be.useMemo(function(){return Yi.map(function(Pr){return Pr[2]})},[Yi]);Be.useEffect(function(){Yi.forEach(function(Pr){var Wr=(0,_e.Z)(Pr,2),xr=Wr[0],Ki=Wr[1];Mn(xr,Ki)})},[Yi]),Be.useImperativeHandle(Ye,function(){var Pr={};return Object.defineProperty(Pr,"scrollLeft",{get:function(){var xr;return((xr=Mi.current)===null||xr===void 0?void 0:xr.getScrollInfo().x)||0},set:function(xr){var Ki;(Ki=Mi.current)===null||Ki===void 0||Ki.scrollTo({left:xr})}}),Pr});var Xr=function(Wr,xr){var Ki,Fr=(Ki=Ui[xr])===null||Ki===void 0?void 0:Ki.record,no=Wr.onCell;if(no){var xo,Eo=no(Fr,xr);return(xo=Eo==null?void 0:Eo.rowSpan)!==null&&xo!==void 0?xo:1}return 1},so=function(Wr){var xr=Wr.start,Ki=Wr.end,Fr=Wr.getSize,no=Wr.offsetY;if(Ki<0)return null;for(var xo=Ht.filter(function(bo){return Xr(bo,xr)===0}),Eo=xr,mr=function(mo){if(xo=xo.filter(function(Mo){return Xr(Mo,mo)===0}),!xo.length)return Eo=mo,"break"},Ho=xr;Ho>=0;Ho-=1){var Vo=mr(Ho);if(Vo==="break")break}for(var wa=Ht.filter(function(bo){return Xr(bo,Ki)!==1}),sa=Ki,os=function(mo){if(wa=wa.filter(function(Mo){return Xr(Mo,mo)!==1}),!wa.length)return sa=Math.max(mo-1,Ki),"break"},ts=Ki;ts1})&&oo.push(mo)},as=Eo;as<=sa;as+=1)var Va=pa(as);var Ms=oo.map(function(bo){var mo=Ui[bo],Mo=Sn(mo.record,bo),qr=function(_o){var ha=bo+_o-1,ca=Sn(Ui[ha].record,ha),Vs=Fr(Mo,ca);return Vs.bottom-Vs.top},ya=Fr(Mo);return Be.createElement(Vi,{key:bo,data:mo,rowKey:Mo,index:bo,style:{top:-no+ya.top},extra:!0,getHeight:qr})});return Ms},pr=Be.useMemo(function(){return{columnsOffset:wr}},[wr]),Ur="".concat(Qn,"-tbody"),zo;return Ui.length?zo=Be.createElement(fr.Z,{fullHeight:!1,ref:Mi,className:Qe()(Ur,"".concat(Ur,"-virtual")),height:yi,itemHeight:ar||24,data:Ui,itemKey:function(Wr){return Sn(Wr.record)},scrollWidth:ki,onVirtualScroll:function(Wr){var xr=Wr.x;zt({scrollLeft:xr})},extraRender:so},function(Pr,Wr,xr){var Ki=Sn(Pr.record,Wr);return Be.createElement(Vi,(0,Et.Z)({data:Pr,rowKey:Ki,index:Wr},xr))}):zo=Be.createElement("div",{className:Qe()("".concat(Qn,"-placeholder"))},Be.createElement(Cn,{component:"div",prefixCls:Qn},Jn)),Be.createElement(Jr.Provider,{value:pr},zo)}),Hr=me(qi),ro=Hr,xi=function(Ye,jt){var zt=jt.ref,nn=jt.onScroll;return Be.createElement(ro,{ref:zt,data:Ye,onScroll:nn})},tt=100;function uo(Je){var Ye=Je.columns,jt=Je.scroll,zt=Je.prefixCls,nn=zt===void 0?jn:zt,Ht=Je.className,Mn=Je.listItemHeight,Sn=jt||{},Fn=Sn.x,Qn=Sn.y;typeof Fn!="number"&&(Fn=((Ye||[]).length+1)*tt),typeof Qn!="number"&&(Qn=500);var kn=Be.useMemo(function(){return{scrollY:Qn,listItemHeight:Mn}},[Qn,Mn]);return Be.createElement(Nn.Provider,{value:kn},Be.createElement(rr,(0,Et.Z)({},Je,{className:Qe()(Ht,"".concat(nn,"-virtual")),scroll:(0,gt.Z)((0,gt.Z)({},jt),{},{x:Fn}),components:{body:xi},columns:Ye,internalHooks:De,tailor:!0})))}function Zo(Je){return de(uo,Je)}var ga=Zo(),Pa=null;function ia(Je){return null}var Or=ia;function kr(Je){return null}var fo=kr,jr=ve(2738),To=ve(68031),qa=ve(36355),Mr=ve(93891),hr=ve(19716),Xn=ve(8628),yr=ve(31724),wo=ve(58421),ua=ve(71418),No=ve(88088);function yo(Je){return function(jt){let{prefixCls:zt,onExpand:nn,record:Ht,expanded:Mn,expandable:Sn}=jt;const Fn=`${zt}-row-expand-icon`;return Be.createElement("button",{type:"button",onClick:Qn=>{nn(Ht,Qn),Qn.stopPropagation()},className:Qe()(Fn,{[`${Fn}-spaced`]:!Sn,[`${Fn}-expanded`]:Sn&&Mn,[`${Fn}-collapsed`]:Sn&&!Mn}),"aria-label":Mn?Je.collapse:Je.expand,"aria-expanded":Mn})}}var ta=yo;function na(Je,Ye){return"key"in Je&&Je.key!==void 0&&Je.key!==null?Je.key:Je.dataIndex?Array.isArray(Je.dataIndex)?Je.dataIndex.join("."):Je.dataIndex:Ye}function Na(Je,Ye){return Ye?`${Ye}-${Je}`:`${Je}`}function ka(Je,Ye){return typeof Je=="function"?Je(Ye):Je}function is(Je,Ye){const jt=ka(Je,Ye);return Object.prototype.toString.call(jt)==="[object Object]"?"":jt}var gn={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"},Oa=gn,Vl=ve(7657),Hs=function(Ye,jt){return Be.createElement(Vl.Z,(0,Et.Z)({},Ye,{ref:jt,icon:Oa}))},wl=Be.forwardRef(Hs),Ma=wl,yu=ve(56762);function Cl(Je){const Ye=Be.useRef(Je),jt=(0,yu.Z)();return[()=>Ye.current,zt=>{Ye.current=zt,jt()}]}var ma=ve(3113),Fo=ve(24905),Ul=ve(38854),$r=ve(64165),Ko=ve(20834),So=ve(40875),Di=ve(5112),Ga=ve(17574),$a=ve(47472),bs=ve(92832);function El(Je){let{value:Ye,onChange:jt,filterSearch:zt,tablePrefixCls:nn,locale:Ht}=Je;return zt?Be.createElement("div",{className:`${nn}-filter-dropdown-search`},Be.createElement(bs.default,{prefix:Be.createElement($a.Z,null),placeholder:Ht.filterSearchPlaceholder,onChange:jt,value:Ye,htmlSize:1,className:`${nn}-filter-dropdown-search-input`})):null}var Dl=El,bi=ve(10228);const Fa=Je=>{const{keyCode:Ye}=Je;Ye===bi.Z.ENTER&&Je.stopPropagation()};var bl=Be.forwardRef((Je,Ye)=>Be.createElement("div",{className:Je.className,onClick:jt=>jt.stopPropagation(),onKeyDown:Fa,ref:Ye},Je.children));function Ol(Je){let Ye=[];return(Je||[]).forEach(jt=>{let{value:zt,children:nn}=jt;Ye.push(zt),nn&&(Ye=[].concat((0,mi.Z)(Ye),(0,mi.Z)(Ol(nn))))}),Ye}function Il(Je){return Je.some(Ye=>{let{children:jt}=Ye;return jt})}function Qr(Je,Ye){return typeof Ye=="string"||typeof Ye=="number"?Ye==null?void 0:Ye.toString().toLowerCase().includes(Je.trim().toLowerCase()):!1}function Ju(Je){let{filters:Ye,prefixCls:jt,filteredKeys:zt,filterMultiple:nn,searchValue:Ht,filterSearch:Mn}=Je;return Ye.map((Sn,Fn)=>{const Qn=String(Sn.value);if(Sn.children)return{key:Qn||Fn,label:Sn.text,popupClassName:`${jt}-dropdown-submenu`,children:Ju({filters:Sn.children,prefixCls:jt,filteredKeys:zt,filterMultiple:nn,searchValue:Ht,filterSearch:Mn})};const kn=nn?Fo.default:Di.ZP,Jn={key:Sn.value!==void 0?Qn:Fn,label:Be.createElement(Be.Fragment,null,Be.createElement(kn,{checked:zt.includes(Qn)}),Be.createElement("span",null,Sn.text))};return Ht.trim()?typeof Mn=="function"?Mn(Ht,Sn)?Jn:null:Qr(Ht,Sn.text)?Jn:null:Jn})}function nl(Je){var Ye,jt;const{tablePrefixCls:zt,prefixCls:nn,column:Ht,dropdownPrefixCls:Mn,columnKey:Sn,filterMultiple:Fn,filterMode:Qn="menu",filterSearch:kn=!1,filterState:Jn,triggerFilter:ki,locale:wi,children:yi,getPopupContainer:ar}=Je,{filterDropdownOpen:Mi,onFilterDropdownOpenChange:Ui,filterResetToDefaultFilteredValue:Yi,defaultFilteredValue:wr,filterDropdownVisible:Xr,onFilterDropdownVisibleChange:so}=Ht,[pr,Ur]=Be.useState(!1),zo=!!(Jn&&(!((Ye=Jn.filteredKeys)===null||Ye===void 0)&&Ye.length||Jn.forceFiltered)),Pr=eo=>{Ur(eo),Ui==null||Ui(eo),so==null||so(eo)},Wr=(jt=Mi!=null?Mi:Xr)!==null&&jt!==void 0?jt:pr,xr=Jn==null?void 0:Jn.filteredKeys,[Ki,Fr]=Cl(xr||[]),no=eo=>{let{selectedKeys:_o}=eo;Fr(_o)},xo=(eo,_o)=>{let{node:ha,checked:ca}=_o;no(Fn?{selectedKeys:eo}:{selectedKeys:ca&&ha.key?[ha.key]:[]})};Be.useEffect(()=>{pr&&no({selectedKeys:xr||[]})},[xr]);const[Eo,mr]=Be.useState([]),Ho=eo=>{mr(eo)},[Vo,wa]=Be.useState(""),sa=eo=>{const{value:_o}=eo.target;wa(_o)};Be.useEffect(()=>{pr||wa("")},[pr]);const os=eo=>{const _o=eo&&eo.length?eo:null;if(_o===null&&(!Jn||!Jn.filteredKeys)||(0,Ke.Z)(_o,Jn==null?void 0:Jn.filteredKeys,!0))return null;ki({column:Ht,key:Sn,filteredKeys:_o})},ts=()=>{Pr(!1),os(Ki())},$o=function(){let{confirm:eo,closeDropdown:_o}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};eo&&os([]),_o&&Pr(!1),wa(""),Fr(Yi?(wr||[]).map(ha=>String(ha)):[])},oo=function(){let{closeDropdown:eo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};eo&&Pr(!1),os(Ki())},pa=eo=>{eo&&xr!==void 0&&Fr(xr||[]),Pr(eo),!eo&&!Ht.filterDropdown&&ts()},as=Qe()({[`${Mn}-menu-without-submenu`]:!Il(Ht.filters||[])}),Va=eo=>{if(eo.target.checked){const _o=Ol(Ht==null?void 0:Ht.filters).map(ha=>String(ha));Fr(_o)}else Fr([])},Ms=eo=>{let{filters:_o}=eo;return(_o||[]).map((ha,ca)=>{const Vs=String(ha.value),Ns={title:ha.text,key:ha.value!==void 0?Vs:ca};return ha.children&&(Ns.children=Ms({filters:ha.children})),Ns})},bo=eo=>{var _o;return Object.assign(Object.assign({},eo),{text:eo.title,value:eo.key,children:((_o=eo.children)===null||_o===void 0?void 0:_o.map(ha=>bo(ha)))||[]})};let mo;if(typeof Ht.filterDropdown=="function")mo=Ht.filterDropdown({prefixCls:`${Mn}-custom`,setSelectedKeys:eo=>no({selectedKeys:eo}),selectedKeys:Ki(),confirm:oo,clearFilters:$o,filters:Ht.filters,visible:Wr,close:()=>{Pr(!1)}});else if(Ht.filterDropdown)mo=Ht.filterDropdown;else{const eo=Ki()||[],_o=()=>(Ht.filters||[]).length===0?Be.createElement($r.Z,{image:$r.Z.PRESENTED_IMAGE_SIMPLE,description:wi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qn==="tree"?Be.createElement(Be.Fragment,null,Be.createElement(Dl,{filterSearch:kn,value:Vo,onChange:sa,tablePrefixCls:zt,locale:wi}),Be.createElement("div",{className:`${zt}-filter-dropdown-tree`},Fn?Be.createElement(Fo.default,{checked:eo.length===Ol(Ht.filters).length,indeterminate:eo.length>0&&eo.lengthtypeof kn=="function"?kn(Vo,bo(ca)):Qr(Vo,ca.title):void 0}))):Be.createElement(Be.Fragment,null,Be.createElement(Dl,{filterSearch:kn,value:Vo,onChange:sa,tablePrefixCls:zt,locale:wi}),Be.createElement(Ko.default,{selectable:!0,multiple:Fn,prefixCls:`${Mn}-menu`,className:as,onSelect:no,onDeselect:no,selectedKeys:eo,getPopupContainer:ar,openKeys:Eo,onOpenChange:Ho,items:Ju({filters:Ht.filters||[],filterSearch:kn,prefixCls:nn,filteredKeys:Ki(),filterMultiple:Fn,searchValue:Vo})})),ha=()=>Yi?(0,Ke.Z)((wr||[]).map(ca=>String(ca)),eo,!0):eo.length===0;mo=Be.createElement(Be.Fragment,null,_o(),Be.createElement("div",{className:`${nn}-dropdown-btns`},Be.createElement(ma.ZP,{type:"link",size:"small",disabled:ha(),onClick:()=>$o()},wi.filterReset),Be.createElement(ma.ZP,{type:"primary",size:"small",onClick:ts},wi.filterConfirm)))}Ht.filterDropdown&&(mo=Be.createElement(So.J,{selectable:void 0},mo));const Mo=()=>Be.createElement(bl,{className:`${nn}-dropdown`},mo);let qr;typeof Ht.filterIcon=="function"?qr=Ht.filterIcon(zo):Ht.filterIcon?qr=Ht.filterIcon:qr=Be.createElement(Ma,null);const{direction:ya}=Be.useContext(qa.E_);return Be.createElement("div",{className:`${nn}-column`},Be.createElement("span",{className:`${zt}-column-title`},yi),Be.createElement(Ul.Z,{dropdownRender:Mo,trigger:["click"],open:Wr,onOpenChange:pa,getPopupContainer:ar,placement:ya==="rtl"?"bottomLeft":"bottomRight"},Be.createElement("span",{role:"button",tabIndex:-1,className:Qe()(`${nn}-trigger`,{active:zo}),onClick:eo=>{eo.stopPropagation()}},qr)))}var vs=nl;function ys(Je,Ye,jt){let zt=[];return(Je||[]).forEach((nn,Ht)=>{var Mn;const Sn=Na(Ht,jt);if(nn.filters||"filterDropdown"in nn||"onFilter"in nn)if("filteredValue"in nn){let Fn=nn.filteredValue;"filterDropdown"in nn||(Fn=(Mn=Fn==null?void 0:Fn.map(String))!==null&&Mn!==void 0?Mn:Fn),zt.push({column:nn,key:na(nn,Sn),filteredKeys:Fn,forceFiltered:nn.filtered})}else zt.push({column:nn,key:na(nn,Sn),filteredKeys:Ye&&nn.defaultFilteredValue?nn.defaultFilteredValue:void 0,forceFiltered:nn.filtered});"children"in nn&&(zt=[].concat((0,mi.Z)(zt),(0,mi.Z)(ys(nn.children,Ye,Sn))))}),zt}function Su(Je,Ye,jt,zt,nn,Ht,Mn,Sn){return jt.map((Fn,Qn)=>{const kn=Na(Qn,Sn),{filterMultiple:Jn=!0,filterMode:ki,filterSearch:wi}=Fn;let yi=Fn;if(yi.filters||yi.filterDropdown){const ar=na(yi,kn),Mi=zt.find(Ui=>{let{key:Yi}=Ui;return ar===Yi});yi=Object.assign(Object.assign({},yi),{title:Ui=>Be.createElement(vs,{tablePrefixCls:Je,prefixCls:`${Je}-filter`,dropdownPrefixCls:Ye,column:yi,columnKey:ar,filterState:Mi,filterMultiple:Jn,filterMode:ki,filterSearch:wi,triggerFilter:Ht,locale:nn,getPopupContainer:Mn},ka(Fn.title,Ui))})}return"children"in yi&&(yi=Object.assign(Object.assign({},yi),{children:Su(Je,Ye,yi.children,zt,nn,Ht,Mn,kn)})),yi})}function Iu(Je){const Ye={};return Je.forEach(jt=>{let{key:zt,filteredKeys:nn,column:Ht}=jt;const{filters:Mn,filterDropdown:Sn}=Ht;if(Sn)Ye[zt]=nn||null;else if(Array.isArray(nn)){const Fn=Ol(Mn);Ye[zt]=Fn.filter(Qn=>nn.includes(String(Qn)))}else Ye[zt]=null}),Ye}function Ys(Je,Ye){return Ye.reduce((jt,zt)=>{const{column:{onFilter:nn,filters:Ht},filteredKeys:Mn}=zt;return nn&&Mn&&Mn.length?jt.filter(Sn=>Mn.some(Fn=>{const Qn=Ol(Ht),kn=Qn.findIndex(ki=>String(ki)===String(Fn)),Jn=kn!==-1?Qn[kn]:Fn;return nn(Jn,Sn)})):jt},Je)}const ul=Je=>Je.flatMap(Ye=>"children"in Ye?[Ye].concat((0,mi.Z)(ul(Ye.children||[]))):[Ye]);function Mh(Je){let{prefixCls:Ye,dropdownPrefixCls:jt,mergedColumns:zt,onFilterChange:nn,getPopupContainer:Ht,locale:Mn}=Je;const Sn=Be.useMemo(()=>ul(zt||[]),[zt]),[Fn,Qn]=Be.useState(()=>ys(Sn,!0)),kn=Be.useMemo(()=>{const yi=ys(Sn,!1);if(yi.length===0)return yi;let ar=!0,Mi=!0;if(yi.forEach(Ui=>{let{filteredKeys:Yi}=Ui;Yi!==void 0?ar=!1:Mi=!1}),ar){const Ui=(Sn||[]).map((Yi,wr)=>na(Yi,Na(wr)));return Fn.filter(Yi=>{let{key:wr}=Yi;return Ui.includes(wr)}).map(Yi=>{const wr=Sn[Ui.findIndex(Xr=>Xr===Yi.key)];return Object.assign(Object.assign({},Yi),{column:Object.assign(Object.assign({},Yi.column),wr),forceFiltered:wr.filtered})})}return yi},[Sn,Fn]),Jn=Be.useMemo(()=>Iu(kn),[kn]),ki=yi=>{const ar=kn.filter(Mi=>{let{key:Ui}=Mi;return Ui!==yi.key});ar.push(yi),Qn(ar),nn(Iu(ar),ar)};return[yi=>Su(Ye,jt,yi,kn,Mn,ki,Ht),kn,Jn]}var uc=Mh;function Lh(Je,Ye,jt){const zt=Be.useRef({});function nn(Ht){if(!zt.current||zt.current.data!==Je||zt.current.childrenColumnName!==Ye||zt.current.getRowKey!==jt){let Sn=function(Fn){Fn.forEach((Qn,kn)=>{const Jn=jt(Qn,kn);Mn.set(Jn,Qn),Qn&&typeof Qn=="object"&&Ye in Qn&&Sn(Qn[Ye]||[])})};const Mn=new Map;Sn(Je),zt.current={data:Je,childrenColumnName:Ye,kvMap:Mn,getRowKey:jt}}return zt.current.kvMap.get(Ht)}return[nn]}var hc=ve(50371),Fh=function(Je,Ye){var jt={};for(var zt in Je)Object.prototype.hasOwnProperty.call(Je,zt)&&Ye.indexOf(zt)<0&&(jt[zt]=Je[zt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,zt=Object.getOwnPropertySymbols(Je);nn{const Ht=Je[nn];typeof Ht!="function"&&(jt[nn]=Ht)}),jt}function Rl(Je,Ye,jt){const zt=jt&&typeof jt=="object"?jt:{},{total:nn=0}=zt,Ht=Fh(zt,["total"]),[Mn,Sn]=(0,Be.useState)(()=>({current:"defaultCurrent"in Ht?Ht.defaultCurrent:1,pageSize:"defaultPageSize"in Ht?Ht.defaultPageSize:Ru})),Fn=(0,hc.Z)(Mn,Ht,{total:nn>0?nn:Je}),Qn=Math.ceil((nn||Je)/Fn.pageSize);Fn.current>Qn&&(Fn.current=Qn||1);const kn=(ki,wi)=>{Sn({current:ki!=null?ki:1,pageSize:wi||Fn.pageSize})},Jn=(ki,wi)=>{var yi;jt&&((yi=jt.onChange)===null||yi===void 0||yi.call(jt,ki,wi)),kn(ki,wi),Ye(ki,wi||(Fn==null?void 0:Fn.pageSize))};return jt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Fn),{onChange:Jn}),kn]}var Hh=Rl,qu=ve(84105),eh=ve(35654),Co=ve(90782),Uo=ve(71430),Ws=ve(18929);const ds={},es="SELECT_ALL",Aa="SELECT_INVERT",za="SELECT_NONE",rs=[],Ka=(Je,Ye)=>{let jt=[];return(Ye||[]).forEach(zt=>{jt.push(zt),zt&&typeof zt=="object"&&Je in zt&&(jt=[].concat((0,mi.Z)(jt),(0,mi.Z)(Ka(Je,zt[Je]))))}),jt};var $s=(Je,Ye)=>{const{preserveSelectedRowKeys:jt,selectedRowKeys:zt,defaultSelectedRowKeys:nn,getCheckboxProps:Ht,onChange:Mn,onSelect:Sn,onSelectAll:Fn,onSelectInvert:Qn,onSelectNone:kn,onSelectMultiple:Jn,columnWidth:ki,type:wi,selections:yi,fixed:ar,renderCell:Mi,hideSelectAll:Ui,checkStrictly:Yi=!0}=Ye||{},{prefixCls:wr,data:Xr,pageData:so,getRecordByKey:pr,getRowKey:Ur,expandType:zo,childrenColumnName:Pr,locale:Wr,getPopupContainer:xr}=Je,[Ki,Fr]=(0,Ws.Z)(zt||nn||rs,{value:zt}),no=Be.useRef(new Map),xo=(0,Be.useCallback)(bo=>{if(jt){const mo=new Map;bo.forEach(Mo=>{let qr=pr(Mo);!qr&&no.current.has(Mo)&&(qr=no.current.get(Mo)),mo.set(Mo,qr)}),no.current=mo}},[pr,jt]);Be.useEffect(()=>{xo(Ki)},[Ki]);const{keyEntities:Eo}=(0,Be.useMemo)(()=>{if(Yi)return{keyEntities:null};let bo=Xr;if(jt){const mo=new Set(Xr.map((qr,ya)=>Ur(qr,ya))),Mo=Array.from(no.current).reduce((qr,ya)=>{let[eo,_o]=ya;return mo.has(eo)?qr:qr.concat(_o)},[]);bo=[].concat((0,mi.Z)(bo),(0,mi.Z)(Mo))}return(0,Uo.I8)(bo,{externalGetKey:Ur,childrenPropName:Pr})},[Xr,Ur,Yi,Pr,jt]),mr=(0,Be.useMemo)(()=>Ka(Pr,so),[Pr,so]),Ho=(0,Be.useMemo)(()=>{const bo=new Map;return mr.forEach((mo,Mo)=>{const qr=Ur(mo,Mo),ya=(Ht?Ht(mo):null)||{};bo.set(qr,ya)}),bo},[mr,Ur,Ht]),Vo=(0,Be.useCallback)(bo=>{var mo;return!!(!((mo=Ho.get(Ur(bo)))===null||mo===void 0)&&mo.disabled)},[Ho,Ur]),[wa,sa]=(0,Be.useMemo)(()=>{if(Yi)return[Ki||[],[]];const{checkedKeys:bo,halfCheckedKeys:mo}=(0,Co.S)(Ki,!0,Eo,Vo);return[bo||[],mo]},[Ki,Yi,Eo,Vo]),os=(0,Be.useMemo)(()=>{const bo=wi==="radio"?wa.slice(0,1):wa;return new Set(bo)},[wa,wi]),ts=(0,Be.useMemo)(()=>wi==="radio"?new Set:new Set(sa),[sa,wi]),[$o,oo]=(0,Be.useState)(null);Be.useEffect(()=>{Ye||Fr(rs)},[!!Ye]);const pa=(0,Be.useCallback)((bo,mo)=>{let Mo,qr;xo(bo),jt?(Mo=bo,qr=bo.map(ya=>no.current.get(ya))):(Mo=[],qr=[],bo.forEach(ya=>{const eo=pr(ya);eo!==void 0&&(Mo.push(ya),qr.push(eo))})),Fr(Mo),Mn==null||Mn(Mo,qr,{type:mo})},[Fr,pr,Mn,jt]),as=(0,Be.useCallback)((bo,mo,Mo,qr)=>{if(Sn){const ya=Mo.map(eo=>pr(eo));Sn(pr(bo),mo,ya,qr)}pa(Mo,"single")},[Sn,pr,pa]),Va=(0,Be.useMemo)(()=>!yi||Ui?null:(yi===!0?[es,Aa,za]:yi).map(mo=>mo===es?{key:"all",text:Wr.selectionAll,onSelect(){pa(Xr.map((Mo,qr)=>Ur(Mo,qr)).filter(Mo=>{const qr=Ho.get(Mo);return!(qr!=null&&qr.disabled)||os.has(Mo)}),"all")}}:mo===Aa?{key:"invert",text:Wr.selectInvert,onSelect(){const Mo=new Set(os);so.forEach((ya,eo)=>{const _o=Ur(ya,eo),ha=Ho.get(_o);ha!=null&&ha.disabled||(Mo.has(_o)?Mo.delete(_o):Mo.add(_o))});const qr=Array.from(Mo);Qn&&Qn(qr),pa(qr,"invert")}}:mo===za?{key:"none",text:Wr.selectNone,onSelect(){kn==null||kn(),pa(Array.from(os).filter(Mo=>{const qr=Ho.get(Mo);return qr==null?void 0:qr.disabled}),"none")}}:mo).map(mo=>Object.assign(Object.assign({},mo),{onSelect:function(){for(var Mo,qr,ya=arguments.length,eo=new Array(ya),_o=0;_o{var mo;if(!Ye)return bo.filter(Ea=>Ea!==ds);let Mo=(0,mi.Z)(bo);const qr=new Set(os),ya=mr.map(Ur).filter(Ea=>!Ho.get(Ea).disabled),eo=ya.every(Ea=>qr.has(Ea)),_o=ya.some(Ea=>qr.has(Ea)),ha=()=>{const Ea=[];eo?ya.forEach(ja=>{qr.delete(ja),Ea.push(ja)}):ya.forEach(ja=>{qr.has(ja)||(qr.add(ja),Ea.push(ja))});const Ta=Array.from(qr);Fn==null||Fn(!eo,Ta.map(ja=>pr(ja)),Ea.map(ja=>pr(ja))),pa(Ta,"all"),oo(null)};let ca;if(wi!=="radio"){let Ea;if(Va){const ra={getPopupContainer:xr,items:Va.map((Za,zs)=>{const{key:jl,text:au,onSelect:Yl}=Za;return{key:jl!=null?jl:zs,onClick:()=>{Yl==null||Yl(ya)},label:au}})};Ea=Be.createElement("div",{className:`${wr}-selection-extra`},Be.createElement(Ul.Z,{menu:ra,getPopupContainer:xr},Be.createElement("span",null,Be.createElement(qu.Z,null))))}const Ta=mr.map((ra,Za)=>{const zs=Ur(ra,Za),jl=Ho.get(zs)||{};return Object.assign({checked:qr.has(zs)},jl)}).filter(ra=>{let{disabled:Za}=ra;return Za}),ja=!!Ta.length&&Ta.length===mr.length,ms=ja&&Ta.every(ra=>{let{checked:Za}=ra;return Za}),js=ja&&Ta.some(ra=>{let{checked:Za}=ra;return Za});ca=!Ui&&Be.createElement("div",{className:`${wr}-selection`},Be.createElement(Fo.default,{checked:ja?ms:!!mr.length&&eo,indeterminate:ja?!ms&&js:!eo&&_o,onChange:ha,disabled:mr.length===0||ja,"aria-label":Ea?"Custom selection":"Select all",skipGroup:!0}),Ea)}let Vs;wi==="radio"?Vs=(Ea,Ta,ja)=>{const ms=Ur(Ta,ja),js=qr.has(ms);return{node:Be.createElement(Di.ZP,Object.assign({},Ho.get(ms),{checked:js,onClick:ra=>ra.stopPropagation(),onChange:ra=>{qr.has(ms)||as(ms,!0,[ms],ra.nativeEvent)}})),checked:js}}:Vs=(Ea,Ta,ja)=>{var ms;const js=Ur(Ta,ja),ra=qr.has(js),Za=ts.has(js),zs=Ho.get(js);let jl;return zo==="nest"?jl=Za:jl=(ms=zs==null?void 0:zs.indeterminate)!==null&&ms!==void 0?ms:Za,{node:Be.createElement(Fo.default,Object.assign({},zs,{indeterminate:jl,checked:ra,skipGroup:!0,onClick:au=>au.stopPropagation(),onChange:au=>{let{nativeEvent:Yl}=au;const{shiftKey:wu}=Yl;let Cu=-1,su=-1;if(wu&&Yi){const La=new Set([$o,js]);ya.some((Xs,fs)=>{if(La.has(Xs))if(Cu===-1)Cu=fs;else return su=fs,!0;return!1})}if(su!==-1&&Cu!==su&&Yi){const La=ya.slice(Cu,su+1),Xs=[];ra?La.forEach(Ha=>{qr.has(Ha)&&(Xs.push(Ha),qr.delete(Ha))}):La.forEach(Ha=>{qr.has(Ha)||(Xs.push(Ha),qr.add(Ha))});const fs=Array.from(qr);Jn==null||Jn(!ra,fs.map(Ha=>pr(Ha)),Xs.map(Ha=>pr(Ha))),pa(fs,"multiple")}else{const La=wa;if(Yi){const Xs=ra?(0,eh._5)(La,js):(0,eh.L0)(La,js);as(js,!ra,Xs,Yl)}else{const Xs=(0,Co.S)([].concat((0,mi.Z)(La),[js]),!0,Eo,Vo),{checkedKeys:fs,halfCheckedKeys:Ha}=Xs;let lu=fs;if(ra){const kh=new Set(fs);kh.delete(js),lu=(0,Co.S)(Array.from(kh),{checked:!1,halfCheckedKeys:Ha},Eo,Vo).checkedKeys}as(js,!ra,lu,Yl)}}oo(ra?null:js)}})),checked:ra}};const Ns=(Ea,Ta,ja)=>{const{node:ms,checked:js}=Vs(Ea,Ta,ja);return Mi?Mi(js,Ta,ja,ms):ms};if(!Mo.includes(ds))if(Mo.findIndex(Ea=>{var Ta;return((Ta=Ea[Ji])===null||Ta===void 0?void 0:Ta.columnType)==="EXPAND_COLUMN"})===0){const[Ea,...Ta]=Mo;Mo=[Ea,ds].concat((0,mi.Z)(Ta))}else Mo=[ds].concat((0,mi.Z)(Mo));const hl=Mo.indexOf(ds);Mo=Mo.filter((Ea,Ta)=>Ea!==ds||Ta===hl);const Ca=Mo[hl-1],Us=Mo[hl+1];let ws=ar;ws===void 0&&((Us==null?void 0:Us.fixed)!==void 0?ws=Us.fixed:(Ca==null?void 0:Ca.fixed)!==void 0&&(ws=Ca.fixed)),ws&&Ca&&((mo=Ca[Ji])===null||mo===void 0?void 0:mo.columnType)==="EXPAND_COLUMN"&&Ca.fixed===void 0&&(Ca.fixed=ws);const Rs=Qe()(`${wr}-selection-col`,{[`${wr}-selection-col-with-dropdown`]:yi&&wi==="checkbox"}),fh={fixed:ws,width:ki,className:`${wr}-selection-column`,title:Ye.columnTitle||ca,render:Ns,onCell:Ye.onCell,[Ji]:{className:Rs}};return Mo.map(Ea=>Ea===ds?fh:Ea)},[Ur,mr,Ye,wa,os,ts,ki,Va,zo,$o,Ho,Jn,as,Vo]),os]},va=ve(89489),rd=ve(59477),Mc=ve(6848);const Kt="ascend",_t="descend";function mn(Je){return typeof Je.sorter=="object"&&typeof Je.sorter.multiple=="number"?Je.sorter.multiple:!1}function it(Je){return typeof Je=="function"?Je:Je&&typeof Je=="object"&&Je.compare?Je.compare:!1}function yn(Je,Ye){return Ye?Je[Je.indexOf(Ye)+1]:Je[0]}function zr(Je,Ye,jt){let zt=[];function nn(Ht,Mn){zt.push({column:Ht,key:na(Ht,Mn),multiplePriority:mn(Ht),sortOrder:Ht.sortOrder})}return(Je||[]).forEach((Ht,Mn)=>{const Sn=Na(Mn,jt);Ht.children?("sortOrder"in Ht&&nn(Ht,Sn),zt=[].concat((0,mi.Z)(zt),(0,mi.Z)(zr(Ht.children,Ye,Sn)))):Ht.sorter&&("sortOrder"in Ht?nn(Ht,Sn):Ye&&Ht.defaultSortOrder&&zt.push({column:Ht,key:na(Ht,Sn),multiplePriority:mn(Ht),sortOrder:Ht.defaultSortOrder}))}),zt}function Bo(Je,Ye,jt,zt,nn,Ht,Mn,Sn){return(Ye||[]).map((Fn,Qn)=>{const kn=Na(Qn,Sn);let Jn=Fn;if(Jn.sorter){const ki=Jn.sortDirections||nn,wi=Jn.showSorterTooltip===void 0?Mn:Jn.showSorterTooltip,yi=na(Jn,kn),ar=jt.find(zo=>{let{key:Pr}=zo;return Pr===yi}),Mi=ar?ar.sortOrder:null,Ui=yn(ki,Mi);let Yi;if(Fn.sortIcon)Yi=Fn.sortIcon({sortOrder:Mi});else{const zo=ki.includes(Kt)&&Be.createElement(rd.Z,{className:Qe()(`${Je}-column-sorter-up`,{active:Mi===Kt})}),Pr=ki.includes(_t)&&Be.createElement(va.Z,{className:Qe()(`${Je}-column-sorter-down`,{active:Mi===_t})});Yi=Be.createElement("span",{className:Qe()(`${Je}-column-sorter`,{[`${Je}-column-sorter-full`]:!!(zo&&Pr)})},Be.createElement("span",{className:`${Je}-column-sorter-inner`,"aria-hidden":"true"},zo,Pr))}const{cancelSort:wr,triggerAsc:Xr,triggerDesc:so}=Ht||{};let pr=wr;Ui===_t?pr=so:Ui===Kt&&(pr=Xr);const Ur=typeof wi=="object"?wi:{title:pr};Jn=Object.assign(Object.assign({},Jn),{className:Qe()(Jn.className,{[`${Je}-column-sort`]:Mi}),title:zo=>{const Pr=Be.createElement("div",{className:`${Je}-column-sorters`},Be.createElement("span",{className:`${Je}-column-title`},ka(Fn.title,zo)),Yi);return wi?Be.createElement(Mc.Z,Object.assign({},Ur),Pr):Pr},onHeaderCell:zo=>{const Pr=Fn.onHeaderCell&&Fn.onHeaderCell(zo)||{},Wr=Pr.onClick,xr=Pr.onKeyDown;Pr.onClick=no=>{zt({column:Fn,key:yi,sortOrder:Ui,multiplePriority:mn(Fn)}),Wr==null||Wr(no)},Pr.onKeyDown=no=>{no.keyCode===bi.Z.ENTER&&(zt({column:Fn,key:yi,sortOrder:Ui,multiplePriority:mn(Fn)}),xr==null||xr(no))};const Ki=is(Fn.title,{}),Fr=Ki==null?void 0:Ki.toString();return Mi?Pr["aria-sort"]=Mi==="ascend"?"ascending":"descending":Pr["aria-label"]=Fr||"",Pr.className=Qe()(Pr.className,`${Je}-column-has-sorters`),Pr.tabIndex=0,Fn.ellipsis&&(Pr.title=(Ki!=null?Ki:"").toString()),Pr}})}return"children"in Jn&&(Jn=Object.assign(Object.assign({},Jn),{children:Bo(Je,Jn.children,jt,zt,nn,Ht,Mn,kn)})),Jn})}function Ir(Je){const{column:Ye,sortOrder:jt}=Je;return{column:Ye,order:jt,field:Ye.dataIndex,columnKey:Ye.key}}function _r(Je){const Ye=Je.filter(jt=>{let{sortOrder:zt}=jt;return zt}).map(Ir);return Ye.length===0&&Je.length?Object.assign(Object.assign({},Ir(Je[Je.length-1])),{column:void 0}):Ye.length<=1?Ye[0]||{}:Ye}function jo(Je,Ye,jt){const zt=Ye.slice().sort((Mn,Sn)=>Sn.multiplePriority-Mn.multiplePriority),nn=Je.slice(),Ht=zt.filter(Mn=>{let{column:{sorter:Sn},sortOrder:Fn}=Mn;return it(Sn)&&Fn});return Ht.length?nn.sort((Mn,Sn)=>{for(let Fn=0;Fn{const Sn=Mn[jt];return Sn?Object.assign(Object.assign({},Mn),{[jt]:jo(Sn,Ye,jt)}):Mn}):nn}function po(Je){let{prefixCls:Ye,mergedColumns:jt,onSorterChange:zt,sortDirections:nn,tableLocale:Ht,showSorterTooltip:Mn}=Je;const[Sn,Fn]=Be.useState(zr(jt,!0)),Qn=Be.useMemo(()=>{let yi=!0;const ar=zr(jt,!1);if(!ar.length)return Sn;const Mi=[];function Ui(wr){yi?Mi.push(wr):Mi.push(Object.assign(Object.assign({},wr),{sortOrder:null}))}let Yi=null;return ar.forEach(wr=>{Yi===null?(Ui(wr),wr.sortOrder&&(wr.multiplePriority===!1?yi=!1:Yi=!0)):(Yi&&wr.multiplePriority!==!1||(yi=!1),Ui(wr))}),Mi},[jt,Sn]),kn=Be.useMemo(()=>{const yi=Qn.map(ar=>{let{column:Mi,sortOrder:Ui}=ar;return{column:Mi,order:Ui}});return{sortColumns:yi,sortColumn:yi[0]&&yi[0].column,sortOrder:yi[0]&&yi[0].order}},[Qn]);function Jn(yi){let ar;yi.multiplePriority===!1||!Qn.length||Qn[0].multiplePriority===!1?ar=[yi]:ar=[].concat((0,mi.Z)(Qn.filter(Mi=>{let{key:Ui}=Mi;return Ui!==yi.key})),[yi]),Fn(ar),zt(_r(ar),ar)}return[yi=>Bo(Ye,yi,Qn,Jn,nn,Ht,Mn),Qn,kn,()=>_r(Qn)]}function Go(Je,Ye){return Je.map(jt=>{const zt=Object.assign({},jt);return zt.title=ka(jt.title,Ye),"children"in zt&&(zt.children=Go(zt.children,Ye)),zt})}function ho(Je){return[Be.useCallback(jt=>Go(jt,Je),[Je])]}var _i=ur((Je,Ye)=>{const{_renderTimes:jt}=Je,{_renderTimes:zt}=Ye;return jt!==zt}),$i=Zo((Je,Ye)=>{const{_renderTimes:jt}=Je,{_renderTimes:zt}=Ye;return jt!==zt}),Tr=ve(64993),Ar=ve(17313),or=ve(83116),Cr=ve(37613),Rr=Je=>{const{componentCls:Ye}=Je,jt=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`,zt=(nn,Ht,Mn)=>({[`&${Ye}-${nn}`]:{[`> ${Ye}-container`]:{[`> ${Ye}-content, > ${Ye}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ye}-expanded-row-fixed`]:{margin:`-${Ht}px -${Mn+Je.lineWidth}px`}}}}}});return{[`${Ye}-wrapper`]:{[`${Ye}${Ye}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ye}-title`]:{border:jt,borderBottom:0},[`> ${Ye}-container`]:{borderInlineStart:jt,borderTop:jt,[` > ${Ye}-content, > ${Ye}-header, > ${Ye}-body, > ${Ye}-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:jt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:jt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ye}-cell-fix-right-first::after`]:{borderInlineEnd:jt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ye}-expanded-row-fixed`]:{margin:`-${Je.tablePaddingVertical}px -${Je.tablePaddingHorizontal+Je.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Je.lineWidth,bottom:0,borderInlineEnd:jt,content:'""'}}}}}},[`&${Ye}-scroll-horizontal`]:{[`> ${Ye}-container > ${Ye}-body`]:{"> table > tbody":{[` > tr${Ye}-expanded-row, > tr${Ye}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},zt("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle)),zt("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall)),{[`> ${Ye}-footer`]:{border:jt,borderTop:0}}),[`${Ye}-cell`]:{[`${Ye}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Je.lineWidth}px 0 ${Je.lineWidth}px ${Je.tableHeaderBg}`}},[`${Ye}-bordered ${Ye}-cell-scrollbar`]:{borderInlineEnd:jt}}}},cr=Je=>{const{componentCls:Ye}=Je;return{[`${Ye}-wrapper`]:{[`${Ye}-cell-ellipsis`]:Object.assign(Object.assign({},Ar.vS),{wordBreak:"keep-all",[` &${Ye}-cell-fix-left-last, &${Ye}-cell-fix-right-first `]:{overflow:"visible",[`${Ye}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ye}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ii=Je=>{const{componentCls:Ye}=Je;return{[`${Ye}-wrapper`]:{[`${Ye}-tbody > tr${Ye}-placeholder`]:{textAlign:"center",color:Je.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Je.colorBgContainer}}}}},Do=ve(15969),ko=Je=>{const{componentCls:Ye,antCls:jt,controlInteractiveSize:zt,motionDurationSlow:nn,lineWidth:Ht,paddingXS:Mn,lineType:Sn,tableBorderColor:Fn,tableExpandIconBg:Qn,tableExpandColumnWidth:kn,borderRadius:Jn,fontSize:ki,fontSizeSM:wi,lineHeight:yi,tablePaddingVertical:ar,tablePaddingHorizontal:Mi,tableExpandedRowBg:Ui,paddingXXS:Yi}=Je,wr=zt/2-Ht,Xr=wr*2+Ht*3,so=`${Ht}px ${Sn} ${Fn}`,pr=Yi-Ht;return{[`${Ye}-wrapper`]:{[`${Ye}-expand-icon-col`]:{width:kn},[`${Ye}-row-expand-icon-cell`]:{textAlign:"center",[`${Ye}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ye}-row-indent`]:{height:1,float:"left"},[`${Ye}-row-expand-icon`]:Object.assign(Object.assign({},(0,Do.N)(Je)),{position:"relative",float:"left",boxSizing:"border-box",width:Xr,height:Xr,padding:0,color:"inherit",lineHeight:`${Xr}px`,background:Qn,border:so,borderRadius:Jn,transform:`scale(${zt/Xr})`,transition:`all ${nn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${nn} ease-out`,content:'""'},"&::before":{top:wr,insetInlineEnd:pr,insetInlineStart:pr,height:Ht},"&::after":{top:pr,bottom:pr,insetInlineStart:wr,width:Ht,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"}}),[`${Ye}-row-indent + ${Ye}-row-expand-icon`]:{marginTop:(ki*yi-Ht*3)/2-Math.ceil((wi*1.4-Ht*3)/2),marginInlineEnd:Mn},[`tr${Ye}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ui}},[`${jt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ye}-expanded-row-fixed`]:{position:"relative",margin:`-${ar}px -${Mi}px`,padding:`${ar}px ${Mi}px`}}}},br=Je=>{const{componentCls:Ye,antCls:jt,iconCls:zt,tableFilterDropdownWidth:nn,tableFilterDropdownSearchWidth:Ht,paddingXXS:Mn,paddingXS:Sn,colorText:Fn,lineWidth:Qn,lineType:kn,tableBorderColor:Jn,tableHeaderIconColor:ki,fontSizeSM:wi,tablePaddingHorizontal:yi,borderRadius:ar,motionDurationSlow:Mi,colorTextDescription:Ui,colorPrimary:Yi,tableHeaderFilterActiveBg:wr,colorTextDisabled:Xr,tableFilterDropdownBg:so,tableFilterDropdownHeight:pr,controlItemBgHover:Ur,controlItemBgActive:zo,boxShadowSecondary:Pr,filterDropdownMenuBg:Wr}=Je,xr=`${jt}-dropdown`,Ki=`${Ye}-filter-dropdown`,Fr=`${jt}-tree`,no=`${Qn}px ${kn} ${Jn}`;return[{[`${Ye}-wrapper`]:{[`${Ye}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ye}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Mn,marginInline:`${Mn}px ${-yi/2}px`,padding:`0 ${Mn}px`,color:ki,fontSize:wi,borderRadius:ar,cursor:"pointer",transition:`all ${Mi}`,"&:hover":{color:Ui,background:wr},"&.active":{color:Yi}}}},{[`${jt}-dropdown`]:{[Ki]:Object.assign(Object.assign({},(0,Ar.Wf)(Je)),{minWidth:nn,backgroundColor:so,borderRadius:ar,boxShadow:Pr,overflow:"hidden",[`${xr}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Wr,"&:empty::after":{display:"block",padding:`${Sn}px 0`,color:Xr,fontSize:wi,textAlign:"center",content:'"Not Found"'}},[`${Ki}-tree`]:{paddingBlock:`${Sn}px 0`,paddingInline:Sn,[Fr]:{padding:0},[`${Fr}-treenode ${Fr}-node-content-wrapper:hover`]:{backgroundColor:Ur},[`${Fr}-treenode-checkbox-checked ${Fr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:zo}}},[`${Ki}-search`]:{padding:Sn,borderBottom:no,"&-input":{input:{minWidth:Ht},[zt]:{color:Xr}}},[`${Ki}-checkall`]:{width:"100%",marginBottom:Mn,marginInlineStart:Mn},[`${Ki}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Sn-Qn}px ${Sn}px`,overflow:"hidden",borderTop:no}})}},{[`${jt}-dropdown ${Ki}, ${Ki}-submenu`]:{[`${jt}-checkbox-wrapper + span`]:{paddingInlineStart:Sn,color:Fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Bs=Je=>{const{componentCls:Ye,lineWidth:jt,colorSplit:zt,motionDurationSlow:nn,zIndexTableFixed:Ht,tableBg:Mn,zIndexTableSticky:Sn}=Je,Fn=zt;return{[`${Ye}-wrapper`]:{[` ${Ye}-cell-fix-left, ${Ye}-cell-fix-right `]:{position:"sticky !important",zIndex:Ht,background:Mn},[` ${Ye}-cell-fix-left-first::after, ${Ye}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-jt,width:30,transform:"translateX(100%)",transition:`box-shadow ${nn}`,content:'""',pointerEvents:"none"},[`${Ye}-cell-fix-left-all::after`]:{display:"none"},[` ${Ye}-cell-fix-right-first::after, ${Ye}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-jt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${nn}`,content:'""',pointerEvents:"none"},[`${Ye}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Sn+1,width:30,transition:`box-shadow ${nn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ye}-ping-left`]:{[`&:not(${Ye}-has-fix-left) ${Ye}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Fn}`}},[` ${Ye}-cell-fix-left-first::after, ${Ye}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Fn}`},[`${Ye}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ye}-ping-right`]:{[`&:not(${Ye}-has-fix-right) ${Ye}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Fn}`}},[` ${Ye}-cell-fix-right-first::after, ${Ye}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Fn}`}}}}},Ia=Je=>{const{componentCls:Ye,antCls:jt}=Je;return{[`${Ye}-wrapper`]:{[`${Ye}-pagination${jt}-pagination`]:{margin:`${Je.margin}px 0`},[`${Ye}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Je.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},_a=Je=>{const{componentCls:Ye,tableRadius:jt}=Je;return{[`${Ye}-wrapper`]:{[Ye]:{[`${Ye}-title, ${Ye}-header`]:{borderRadius:`${jt}px ${jt}px 0 0`},[`${Ye}-title + ${Ye}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ye}-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:jt,borderStartEndRadius:jt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:jt},"> *:last-child":{borderStartEndRadius:jt}}},"&-footer":{borderRadius:`0 0 ${jt}px ${jt}px`}}}}},ju=Je=>{const{componentCls:Ye}=Je;return{[`${Ye}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ye}-pagination-left`]:{justifyContent:"flex-end"},[`${Ye}-pagination-right`]:{justifyContent:"flex-start"},[`${Ye}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ye}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ye}-row-indent`]:{float:"right"}}}}},Bh=Je=>{const{componentCls:Ye,antCls:jt,iconCls:zt,fontSizeIcon:nn,padding:Ht,paddingXS:Mn,tableHeaderIconColor:Sn,tableHeaderIconColorHover:Fn,tableSelectionColumnWidth:Qn}=Je;return{[`${Ye}-wrapper`]:{[`${Ye}-selection-col`]:{width:Qn,[`&${Ye}-selection-col-with-dropdown`]:{width:Qn+nn+Ht/4}},[`${Ye}-bordered ${Ye}-selection-col`]:{width:Qn+Mn*2,[`&${Ye}-selection-col-with-dropdown`]:{width:Qn+nn+Ht/4+Mn*2}},[` table tr th${Ye}-selection-column, table tr td${Ye}-selection-column `]:{paddingInlineEnd:Je.paddingXS,paddingInlineStart:Je.paddingXS,textAlign:"center",[`${jt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ye}-selection-column${Ye}-cell-fix-left`]:{zIndex:Je.zIndexTableFixed+1},[`table tr th${Ye}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ye}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ye}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Je.tablePaddingHorizontal/4}px`,[zt]:{color:Sn,fontSize:nn,verticalAlign:"baseline","&:hover":{color:Fn}}}}}},zu=Je=>{const{componentCls:Ye}=Je,jt=(zt,nn,Ht,Mn)=>({[`${Ye}${Ye}-${zt}`]:{fontSize:Mn,[` ${Ye}-title, ${Ye}-footer, ${Ye}-cell, ${Ye}-thead > tr > th, ${Ye}-tbody > tr > th, ${Ye}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${nn}px ${Ht}px`},[`${Ye}-filter-trigger`]:{marginInlineEnd:`-${Ht/2}px`},[`${Ye}-expanded-row-fixed`]:{margin:`-${nn}px -${Ht}px`},[`${Ye}-tbody`]:{[`${Ye}-wrapper:only-child ${Ye}`]:{marginBlock:`-${nn}px`,marginInline:`${Je.tableExpandColumnWidth-Ht}px -${Ht}px`}},[`${Ye}-selection-column`]:{paddingInlineStart:`${Ht/4}px`}}});return{[`${Ye}-wrapper`]:Object.assign(Object.assign({},jt("middle",Je.tablePaddingVerticalMiddle,Je.tablePaddingHorizontalMiddle,Je.tableFontSizeMiddle)),jt("small",Je.tablePaddingVerticalSmall,Je.tablePaddingHorizontalSmall,Je.tableFontSizeSmall))}},Ml=Je=>{const{componentCls:Ye,marginXXS:jt,fontSizeIcon:zt,tableHeaderIconColor:nn,tableHeaderIconColorHover:Ht}=Je;return{[`${Ye}-wrapper`]:{[`${Ye}-thead th${Ye}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,"&:hover":{background:Je.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Je.colorPrimary},[` &${Ye}-cell-fix-left:hover, &${Ye}-cell-fix-right:hover `]:{background:Je.tableFixedHeaderSortActiveBg}},[`${Ye}-thead th${Ye}-column-sort`]:{background:Je.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ye}-column-sort`]:{background:Je.tableBodySortBg},[`${Ye}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ye}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ye}-column-sorter`]:{marginInlineStart:jt,color:nn,fontSize:0,transition:`color ${Je.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:zt,"&.active":{color:Je.colorPrimary}},[`${Ye}-column-sorter-up + ${Ye}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ye}-column-sorters:hover ${Ye}-column-sorter`]:{color:Ht}}}},Nh=Je=>{const{componentCls:Ye,opacityLoading:jt,tableScrollThumbBg:zt,tableScrollThumbBgHover:nn,tableScrollThumbSize:Ht,tableScrollBg:Mn,zIndexTableSticky:Sn,stickyScrollBarBorderRadius:Fn}=Je,Qn=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`;return{[`${Ye}-wrapper`]:{[`${Ye}-sticky`]:{"&-holder":{position:"sticky",zIndex:Sn,background:Je.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ht}px !important`,zIndex:Sn,display:"flex",alignItems:"center",background:Mn,borderTop:Qn,opacity:jt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ht,backgroundColor:zt,borderRadius:Fn,transition:`all ${Je.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:nn}}}}}}},_u=Je=>{const{componentCls:Ye,lineWidth:jt,tableBorderColor:zt}=Je,nn=`${jt}px ${Je.lineType} ${zt}`;return{[`${Ye}-wrapper`]:{[`${Ye}-summary`]:{position:"relative",zIndex:Je.zIndexTableFixed,background:Je.tableBg,"> tr":{"> th, > td":{borderBottom:nn}}},[`div${Ye}-summary`]:{boxShadow:`0 -${jt}px 0 ${zt}`}}}},xu=Je=>{const{componentCls:Ye}=Je,jt=`${Je.lineWidth}px ${Je.lineType} ${Je.tableBorderColor}`,zt=`${Ye}-expanded-row-cell`;return{[`${Ye}-wrapper`]:{[`${Ye}-tbody-virtual`]:{[`${Ye}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ye}-cell`]:{borderBottom:jt},[`${Ye}-expanded-row`]:{[`${zt}${zt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Je.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ye}-bordered`]:{[`${Ye}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:jt,position:"absolute"},[`${Ye}-cell`]:{borderInlineEnd:jt,[`&${Ye}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Je.lineWidth,borderInlineStart:jt}}}}}}};const Pu=Je=>{const{componentCls:Ye,fontWeightStrong:jt,tablePaddingVertical:zt,tablePaddingHorizontal:nn,lineWidth:Ht,lineType:Mn,tableBorderColor:Sn,tableFontSize:Fn,tableBg:Qn,tableRadius:kn,tableHeaderTextColor:Jn,motionDurationMid:ki,tableHeaderBg:wi,tableHeaderCellSplitColor:yi,tableRowHoverBg:ar,tableSelectedRowBg:Mi,tableSelectedRowHoverBg:Ui,tableFooterTextColor:Yi,tableFooterBg:wr,paddingContentVerticalLG:Xr}=Je,so=`${Ht}px ${Mn} ${Sn}`;return{[`${Ye}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ar.dF)()),{[Ye]:Object.assign(Object.assign({},(0,Ar.Wf)(Je)),{fontSize:Fn,background:Qn,borderRadius:`${kn}px ${kn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${kn}px ${kn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${Ye}-cell, ${Ye}-thead > tr > th, ${Ye}-tbody > tr > th, ${Ye}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${Xr}px ${nn}px`,overflowWrap:"break-word"},[`${Ye}-title`]:{padding:`${zt}px ${nn}px`},[`${Ye}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Jn,fontWeight:jt,textAlign:"start",background:wi,borderBottom:so,transition:`background ${ki} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ye}-selection-column):not(${Ye}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:yi,transform:"translateY(-50%)",transition:`background-color ${ki}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ye}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ki}, border-color ${ki}`,borderBottom:so,[` > ${Ye}-wrapper:only-child, > ${Ye}-expanded-row-fixed > ${Ye}-wrapper:only-child `]:{[Ye]:{marginBlock:`-${zt}px`,marginInline:`${Je.tableExpandColumnWidth-nn}px -${nn}px`,[`${Ye}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Jn,fontWeight:jt,textAlign:"start",background:wi,borderBottom:so,transition:`background ${ki} ease`},[` &${Ye}-row:hover > th, &${Ye}-row:hover > td, > th${Ye}-cell-row-hover, > td${Ye}-cell-row-hover `]:{background:ar},[`&${Ye}-row-selected`]:{"> th, > td":{background:Mi},"&:hover > th, &:hover > td":{background:Ui}}}},[`${Ye}-footer`]:{padding:`${zt}px ${nn}px`,color:Yi,background:wr}})}};var dh=(0,or.Z)("Table",Je=>{const{colorTextHeading:Ye,colorSplit:jt,colorIcon:zt,colorIconHover:nn,opacityLoading:Ht,colorBgContainer:Mn,controlInteractiveSize:Sn,headerBg:Fn,headerColor:Qn,headerSortActiveBg:kn,headerSortHoverBg:Jn,bodySortBg:ki,rowHoverBg:wi,rowSelectedBg:yi,rowSelectedHoverBg:ar,rowExpandedBg:Mi,cellPaddingBlock:Ui,cellPaddingInline:Yi,cellPaddingBlockMD:wr,cellPaddingInlineMD:Xr,cellPaddingBlockSM:so,cellPaddingInlineSM:pr,borderColor:Ur,footerBg:zo,footerColor:Pr,headerBorderRadius:Wr,cellFontSize:xr,cellFontSizeMD:Ki,cellFontSizeSM:Fr,headerSplitColor:no,fixedHeaderSortActiveBg:xo,headerFilterHoverBg:Eo,filterDropdownBg:mr,expandIconBg:Ho,selectionColumnWidth:Vo,stickyScrollBarBg:wa}=Je,sa=new Tr.C(zt),os=new Tr.C(nn),ts=2,$o=(0,Cr.TS)(Je,{tableFontSize:xr,tableBg:Mn,tableRadius:Wr,tablePaddingVertical:Ui,tablePaddingHorizontal:Yi,tablePaddingVerticalMiddle:wr,tablePaddingHorizontalMiddle:Xr,tablePaddingVerticalSmall:so,tablePaddingHorizontalSmall:pr,tableBorderColor:Ur,tableHeaderTextColor:Qn,tableHeaderBg:Fn,tableFooterTextColor:Pr,tableFooterBg:zo,tableHeaderCellSplitColor:no,tableHeaderSortBg:kn,tableHeaderSortHoverBg:Jn,tableHeaderIconColor:sa.clone().setAlpha(sa.getAlpha()*Ht).toRgbString(),tableHeaderIconColorHover:os.clone().setAlpha(os.getAlpha()*Ht).toRgbString(),tableBodySortBg:ki,tableFixedHeaderSortActiveBg:xo,tableHeaderFilterActiveBg:Eo,tableFilterDropdownBg:mr,tableRowHoverBg:wi,tableSelectedRowBg:yi,tableSelectedRowHoverBg:ar,zIndexTableFixed:ts,zIndexTableSticky:ts+1,tableFontSizeMiddle:Ki,tableFontSizeSmall:Fr,tableSelectionColumnWidth:Vo,tableExpandIconBg:Ho,tableExpandColumnWidth:Sn+2*Je.padding,tableExpandedRowBg:Mi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:wa,tableScrollThumbBgHover:Ye,tableScrollBg:jt});return[Pu($o),Ia($o),_u($o),Ml($o),br($o),Rr($o),_a($o),ko($o),_u($o),Ii($o),Bh($o),Bs($o),Nh($o),cr($o),zu($o),ju($o),xu($o)]},Je=>{const{colorFillAlter:Ye,colorBgContainer:jt,colorTextHeading:zt,colorFillSecondary:nn,colorFillContent:Ht,controlItemBgActive:Mn,controlItemBgActiveHover:Sn,padding:Fn,paddingSM:Qn,paddingXS:kn,colorBorderSecondary:Jn,borderRadiusLG:ki,fontSize:wi,controlHeight:yi,colorTextPlaceholder:ar}=Je,Mi=new Tr.C(nn).onBackground(jt).toHexShortString(),Ui=new Tr.C(Ht).onBackground(jt).toHexShortString(),Yi=new Tr.C(Ye).onBackground(jt).toHexShortString();return{headerBg:Yi,headerColor:zt,headerSortActiveBg:Mi,headerSortHoverBg:Ui,bodySortBg:Yi,rowHoverBg:Yi,rowSelectedBg:Mn,rowSelectedHoverBg:Sn,rowExpandedBg:Ye,cellPaddingBlock:Fn,cellPaddingInline:Fn,cellPaddingBlockMD:Qn,cellPaddingInlineMD:kn,cellPaddingBlockSM:kn,cellPaddingInlineSM:kn,borderColor:Jn,headerBorderRadius:ki,footerBg:Yi,footerColor:zt,cellFontSize:wi,cellFontSizeMD:wi,cellFontSizeSM:wi,headerSplitColor:Jn,fixedHeaderSortActiveBg:Mi,headerFilterHoverBg:Ht,filterDropdownMenuBg:jt,filterDropdownBg:jt,expandIconBg:jt,selectionColumnWidth:yi,stickyScrollBarBg:ar,stickyScrollBarBorderRadius:100}});const Lc=[],Fc=(Je,Ye)=>{const{prefixCls:jt,className:zt,rootClassName:nn,style:Ht,size:Mn,bordered:Sn,dropdownPrefixCls:Fn,dataSource:Qn,pagination:kn,rowSelection:Jn,rowKey:ki="key",rowClassName:wi,columns:yi,children:ar,childrenColumnName:Mi,onChange:Ui,getPopupContainer:Yi,loading:wr,expandIcon:Xr,expandable:so,expandedRowRender:pr,expandIconColumnIndex:Ur,indentSize:zo,scroll:Pr,sortDirections:Wr,locale:xr,showSorterTooltip:Ki=!0,virtual:Fr}=Je,no=Be.useMemo(()=>yi||Ut(ar),[yi,ar]),xo=Be.useMemo(()=>no.some(Sa=>Sa.responsive),[no]),Eo=(0,Xn.Z)(xo),mr=Be.useMemo(()=>{const Sa=new Set(Object.keys(Eo).filter(Ua=>Eo[Ua]));return no.filter(Ua=>!Ua.responsive||Ua.responsive.some(ks=>Sa.has(ks)))},[no,Eo]),Ho=(0,jr.Z)(Je,["className","style","columns"]),{locale:Vo=yr.Z,direction:wa,table:sa,renderEmpty:os,getPrefixCls:ts,getPopupContainer:$o}=Be.useContext(qa.E_),oo=(0,hr.Z)(Mn),pa=Object.assign(Object.assign({},Vo.Table),xr),as=Qn||Lc,Va=ts("table",jt),Ms=ts("dropdown",Fn),bo=Object.assign({childrenColumnName:Mi,expandIconColumnIndex:Ur},so),{childrenColumnName:mo="children"}=bo,Mo=Be.useMemo(()=>as.some(Sa=>Sa==null?void 0:Sa[mo])?"nest":pr||so&&so.expandedRowRender?"row":null,[as]),qr={body:Be.useRef()},ya=Be.useMemo(()=>typeof ki=="function"?ki:Sa=>Sa==null?void 0:Sa[ki],[ki]),[eo]=Lh(as,mo,ya),_o={},ha=function(Sa,Ua){let ks=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ya,fa,_s;const zl=Object.assign(Object.assign({},_o),Sa);ks&&((Ya=_o.resetPagination)===null||Ya===void 0||Ya.call(_o),!((fa=zl.pagination)===null||fa===void 0)&&fa.current&&(zl.pagination.current=1),kn&&kn.onChange&&kn.onChange(1,(_s=zl.pagination)===null||_s===void 0?void 0:_s.pageSize)),Pr&&Pr.scrollToFirstRowOnChange!==!1&&qr.body.current&&(0,To.Z)(0,{getContainer:()=>qr.body.current}),Ui==null||Ui(zl.pagination,zl.filters,zl.sorter,{currentDataSource:Ys(jo(as,zl.sorterStates,mo),zl.filterStates),action:Ua})},ca=(Sa,Ua)=>{ha({sorter:Sa,sorterStates:Ua},"sort",!1)},[Vs,Ns,hl,Ca]=po({prefixCls:Va,mergedColumns:mr,onSorterChange:ca,sortDirections:Wr||["ascend","descend"],tableLocale:pa,showSorterTooltip:Ki}),Us=Be.useMemo(()=>jo(as,Ns,mo),[as,Ns]);_o.sorter=Ca(),_o.sorterStates=Ns;const ws=(Sa,Ua)=>{ha({filters:Sa,filterStates:Ua},"filter",!0)},[Rs,fh,Ea]=uc({prefixCls:Va,locale:pa,dropdownPrefixCls:Ms,mergedColumns:mr,onFilterChange:ws,getPopupContainer:Yi||$o}),Ta=Ys(Us,fh);_o.filters=Ea,_o.filterStates=fh;const ja=Be.useMemo(()=>{const Sa={};return Object.keys(Ea).forEach(Ua=>{Ea[Ua]!==null&&(Sa[Ua]=Ea[Ua])}),Object.assign(Object.assign({},hl),{filters:Sa})},[hl,Ea]),[ms]=ho(ja),js=(Sa,Ua)=>{ha({pagination:Object.assign(Object.assign({},_o.pagination),{current:Sa,pageSize:Ua})},"paginate")},[ra,Za]=Hh(Ta.length,js,kn);_o.pagination=kn===!1?{}:Qu(ra,kn),_o.resetPagination=Za;const zs=Be.useMemo(()=>{if(kn===!1||!ra.pageSize)return Ta;const{current:Sa=1,total:Ua,pageSize:ks=Ru}=ra;return Ta.lengthks?Ta.slice((Sa-1)*ks,Sa*ks):Ta:Ta.slice((Sa-1)*ks,Sa*ks)},[!!kn,Ta,ra&&ra.current,ra&&ra.pageSize,ra&&ra.total]),[jl,au]=$s({prefixCls:Va,data:Ta,pageData:zs,getRowKey:ya,getRecordByKey:eo,expandType:Mo,childrenColumnName:mo,locale:pa,getPopupContainer:Yi||$o},Jn),Yl=(Sa,Ua,ks)=>{let Ya;return typeof wi=="function"?Ya=Qe()(wi(Sa,Ua,ks)):Ya=Qe()(wi),Qe()({[`${Va}-row-selected`]:au.has(ya(Sa,Ua))},Ya)};bo.__PARENT_RENDER_ICON__=bo.expandIcon,bo.expandIcon=bo.expandIcon||Xr||ta(pa),Mo==="nest"&&bo.expandIconColumnIndex===void 0?bo.expandIconColumnIndex=Jn?1:0:bo.expandIconColumnIndex>0&&Jn&&(bo.expandIconColumnIndex-=1),typeof bo.indentSize!="number"&&(bo.indentSize=typeof zo=="number"?zo:15);const wu=Be.useCallback(Sa=>ms(jl(Rs(Vs(Sa)))),[Vs,Rs,jl]);let Cu,su;if(kn!==!1&&(ra!=null&&ra.total)){let Sa;ra.size?Sa=ra.size:Sa=oo==="small"||oo==="middle"?"small":void 0;const Ua=fa=>Be.createElement(wo.Z,Object.assign({},ra,{className:Qe()(`${Va}-pagination ${Va}-pagination-${fa}`,ra.className),size:Sa})),ks=wa==="rtl"?"left":"right",{position:Ya}=ra;if(Ya!==null&&Array.isArray(Ya)){const fa=Ya.find(Zu=>Zu.includes("top")),_s=Ya.find(Zu=>Zu.includes("bottom")),zl=Ya.every(Zu=>`${Zu}`=="none");!fa&&!_s&&!zl&&(su=Ua(ks)),fa&&(Cu=Ua(fa.toLowerCase().replace("top",""))),_s&&(su=Ua(_s.toLowerCase().replace("bottom","")))}else su=Ua(ks)}let La;typeof wr=="boolean"?La={spinning:wr}:typeof wr=="object"&&(La=Object.assign({spinning:!0},wr));const[Xs,fs]=dh(Va),[,Ha]=(0,No.Z)(),lu=Qe()(`${Va}-wrapper`,sa==null?void 0:sa.className,{[`${Va}-wrapper-rtl`]:wa==="rtl"},zt,nn,fs),kh=Object.assign(Object.assign({},sa==null?void 0:sa.style),Ht),Eu=xr&&xr.emptyText||(os==null?void 0:os("Table"))||Be.createElement(Mr.Z,{componentName:"Table"}),th=Fr?$i:_i,gh={},Xl=Be.useMemo(()=>{const{fontSize:Sa,lineHeight:Ua,padding:ks,paddingXS:Ya,paddingSM:fa}=Ha,_s=Math.floor(Sa*Ua);switch(oo){case"large":return ks*2+_s;case"small":return Ya*2+_s;default:return fa*2+_s}},[Ha,oo]);return Fr&&(gh.listItemHeight=Xl),Xs(Be.createElement("div",{ref:Ye,className:lu,style:kh},Be.createElement(ua.Z,Object.assign({spinning:!1},La),Cu,Be.createElement(th,Object.assign({},gh,Ho,{columns:mr,direction:wa,expandable:bo,prefixCls:Va,className:Qe()({[`${Va}-middle`]:oo==="middle",[`${Va}-small`]:oo==="small",[`${Va}-bordered`]:Sn,[`${Va}-empty`]:as.length===0}),data:zs,rowKey:ya,rowClassName:Yl,emptyText:Eu,internalHooks:De,internalRefs:qr,transformColumns:wu})),su)))};var Bc=Be.forwardRef(Fc);const od=(Je,Ye)=>{const jt=Be.useRef(0);return jt.current+=1,Be.createElement(Bc,Object.assign({},Je,{ref:Ye,_renderTimes:jt.current}))},Zn=Be.forwardRef(od);Zn.SELECTION_COLUMN=ds,Zn.EXPAND_COLUMN=ce,Zn.SELECTION_ALL=es,Zn.SELECTION_INVERT=Aa,Zn.SELECTION_NONE=za,Zn.Column=Or,Zn.ColumnGroup=fo,Zn.Summary=qe;var Sr=Zn,Jo=Sr},12563:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return gt}});var ce=ve(59301),De=ve(99267),_e=ve(92310),Ct=ve.n(_e),Ze=ve(36785),Ke=ve(47729),Be=ve(14088),mt=ve(36355),ct=ve(17313),He=ve(37613),Et=ve(83116);const ht=je=>{const{paddingXXS:Tt,lineWidth:Qe,tagPaddingHorizontal:bt,componentCls:Nt}=je,At=bt-Qe,Zt=Tt-Qe;return{[Nt]:Object.assign(Object.assign({},(0,ct.Wf)(je)),{display:"inline-block",height:"auto",marginInlineEnd:je.marginXS,paddingInline:At,fontSize:je.tagFontSize,lineHeight:je.tagLineHeight,whiteSpace:"nowrap",background:je.defaultBg,border:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadiusSM,opacity:1,transition:`all ${je.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Nt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:je.defaultColor},[`${Nt}-close-icon`]:{marginInlineStart:Zt,color:je.colorTextDescription,fontSize:je.tagIconSize,cursor:"pointer",transition:`all ${je.motionDurationMid}`,"&:hover":{color:je.colorTextHeading}},[`&${Nt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${je.iconCls}-close, ${je.iconCls}-close:hover`]:{color:je.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Nt}-checkable-checked):hover`]:{color:je.colorPrimary,backgroundColor:je.colorFillSecondary},"&:active, &-checked":{color:je.colorTextLightSolid},"&-checked":{backgroundColor:je.colorPrimary,"&:hover":{backgroundColor:je.colorPrimaryHover}},"&:active":{backgroundColor:je.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${je.iconCls} + span, > span + ${je.iconCls}`]:{marginInlineStart:At}}),[`${Nt}-borderless`]:{borderColor:"transparent",background:je.tagBorderlessBg}}},dt=je=>{const{lineWidth:Tt,fontSizeIcon:Qe}=je,bt=je.fontSizeSM,Nt=`${je.lineHeightSM*bt}px`;return(0,He.TS)(je,{tagFontSize:bt,tagLineHeight:Nt,tagIconSize:Qe-2*Tt,tagPaddingHorizontal:8,tagBorderlessBg:je.colorFillTertiary})},Ae=je=>({defaultBg:je.colorFillQuaternary,defaultColor:je.colorText});var te=(0,Et.Z)("Tag",je=>{const Tt=dt(je);return ht(Tt)},Ae),ee=function(je,Tt){var Qe={};for(var bt in je)Object.prototype.hasOwnProperty.call(je,bt)&&Tt.indexOf(bt)<0&&(Qe[bt]=je[bt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,bt=Object.getOwnPropertySymbols(je);Nt{const{prefixCls:Tt,style:Qe,className:bt,checked:Nt,onChange:At,onClick:Zt}=je,Yt=ee(je,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Ge}=ce.useContext(mt.E_),kt=en=>{At==null||At(!Nt),Zt==null||Zt(en)},ln=ut("tag",Tt),[sn,Bt]=te(ln),Gt=Ct()(ln,`${ln}-checkable`,{[`${ln}-checkable-checked`]:Nt},Ge==null?void 0:Ge.className,bt,Bt);return sn(ce.createElement("span",Object.assign({},Yt,{style:Object.assign(Object.assign({},Qe),Ge==null?void 0:Ge.style),className:Gt,onClick:kt})))},de=ve(45157);const me=je=>(0,de.Z)(je,(Tt,Qe)=>{let{textColor:bt,lightBorderColor:Nt,lightColor:At,darkColor:Zt}=Qe;return{[`${je.componentCls}-${Tt}`]:{color:bt,background:At,borderColor:Nt,"&-inverse":{color:je.colorTextLightSolid,background:Zt,borderColor:Zt},[`&${je.componentCls}-borderless`]:{borderColor:"transparent"}}}});var we=(0,Et.b)(["Tag","preset"],je=>{const Tt=dt(je);return me(Tt)},Ae);function be(je){return typeof je!="string"?je:je.charAt(0).toUpperCase()+je.slice(1)}const Me=(je,Tt,Qe)=>{const bt=be(Qe);return{[`${je.componentCls}-${Tt}`]:{color:je[`color${Qe}`],background:je[`color${bt}Bg`],borderColor:je[`color${bt}Border`],[`&${je.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ie=(0,Et.b)(["Tag","status"],je=>{const Tt=dt(je);return[Me(Tt,"success","Success"),Me(Tt,"processing","Info"),Me(Tt,"error","Error"),Me(Tt,"warning","Warning")]},Ae),ze=function(je,Tt){var Qe={};for(var bt in je)Object.prototype.hasOwnProperty.call(je,bt)&&Tt.indexOf(bt)<0&&(Qe[bt]=je[bt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,bt=Object.getOwnPropertySymbols(je);Nt{const{prefixCls:Qe,className:bt,rootClassName:Nt,style:At,children:Zt,icon:Yt,color:ut,onClose:Ge,closeIcon:kt,closable:ln,bordered:sn=!0}=je,Bt=ze(je,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Gt,direction:en,tag:Bn}=ce.useContext(mt.E_),[rn,Cn]=ce.useState(!0);ce.useEffect(()=>{"visible"in Bt&&Cn(Bt.visible)},[Bt.visible]);const ft=(0,Ze.o2)(ut),En=(0,Ze.yT)(ut),Vn=ft||En,Re=Object.assign(Object.assign({backgroundColor:ut&&!Vn?ut:void 0},Bn==null?void 0:Bn.style),At),Ce=Gt("tag",Qe),[Pe,Ne]=te(Ce),ke=Ct()(Ce,Bn==null?void 0:Bn.className,{[`${Ce}-${ut}`]:Vn,[`${Ce}-has-color`]:ut&&!Vn,[`${Ce}-hidden`]:!rn,[`${Ce}-rtl`]:en==="rtl",[`${Ce}-borderless`]:!sn},bt,Nt,Ne),Se=vt=>{vt.stopPropagation(),Ge==null||Ge(vt),!vt.defaultPrevented&&Cn(!1)},[,nt]=(0,Ke.Z)(ln,kt,vt=>vt===null?ce.createElement(De.Z,{className:`${Ce}-close-icon`,onClick:Se}):ce.createElement("span",{className:`${Ce}-close-icon`,onClick:Se},vt),null,!1),Pt=typeof Bt.onClick=="function"||Zt&&Zt.type==="a",qe=Yt||null,Ue=qe?ce.createElement(ce.Fragment,null,qe,Zt&&ce.createElement("span",null,Zt)):Zt,St=ce.createElement("span",Object.assign({},Bt,{ref:Tt,className:ke,style:Re}),Ue,nt,ft&&ce.createElement(we,{key:"preset",prefixCls:Ce}),En&&ce.createElement(Ie,{key:"status",prefixCls:Ce}));return Pe(Pt?ce.createElement(Be.Z,{component:"Tag"},St):St)},$e=ce.forwardRef(et);$e.CheckableTag=se;var gt=$e},17574:function(Pn,an,ve){"use strict";ve.d(an,{default:function(){return ut}});var ce=ve(43858),De=ve(19127),_e=ve(52671),Ct=ve(8657),Ze=ve(96663),Ke=ve(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},mt=Be,ct=ve(7657),He=function(kt,ln){return Ke.createElement(ct.Z,(0,Ze.Z)({},kt,{ref:ln,icon:mt}))},Et=Ke.forwardRef(He),ht=Et,dt=ve(92310),Ae=ve.n(dt),te=ve(35654),ee=ve(71430),he=ve(36355),se=ve(56082),de=ve(62892),me=ve(20648);const we=4;function be(Ge){const{dropPosition:kt,dropLevelOffset:ln,prefixCls:sn,indent:Bt,direction:Gt="ltr"}=Ge,en=Gt==="ltr"?"left":"right",Bn=Gt==="ltr"?"right":"left",rn={[en]:-ln*Bt+we,[Bn]:0};switch(kt){case-1:rn.top=-3;break;case 1:rn.bottom=-3;break;default:rn.bottom=-3,rn[en]=Bt+we;break}return Ke.createElement("div",{style:rn,className:`${sn}-drop-indicator`})}var Me=ve(71997),ze=Ke.forwardRef((Ge,kt)=>{const{getPrefixCls:ln,direction:sn,virtual:Bt,tree:Gt}=Ke.useContext(he.E_),{prefixCls:en,className:Bn,showIcon:rn=!1,showLine:Cn,switcherIcon:ft,blockNode:En=!1,children:Vn,checkable:Re=!1,selectable:Ce=!0,draggable:Pe,motion:Ne,style:ke}=Ge,Se=ln("tree",en),nt=ln(),Pt=Ne!=null?Ne:Object.assign(Object.assign({},(0,de.Z)(nt)),{motionAppear:!1}),qe=Object.assign(Object.assign({},Ge),{checkable:Re,selectable:Ce,showIcon:rn,motion:Pt,blockNode:En,showLine:!!Cn,dropIndicatorRender:be}),[Ue,St]=(0,me.ZP)(Se),vt=Ke.useMemo(()=>{if(!Pe)return!1;let Dt={};switch(typeof Pe){case"function":Dt.nodeDraggable=Pe;break;case"object":Dt=Object.assign({},Pe);break;default:break}return Dt.icon!==!1&&(Dt.icon=Dt.icon||Ke.createElement(se.Z,null)),Dt},[Pe]),lt=Dt=>Ke.createElement(Me.Z,{prefixCls:Se,switcherIcon:ft,treeNodeProps:Dt,showLine:Cn});return Ue(Ke.createElement(ce.Z,Object.assign({itemHeight:20,ref:kt,virtual:Bt},qe,{style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),ke),prefixCls:Se,className:Ae()({[`${Se}-icon-hide`]:!rn,[`${Se}-block-node`]:En,[`${Se}-unselectable`]:!Ce,[`${Se}-rtl`]:sn==="rtl"},Gt==null?void 0:Gt.className,Bn,St),direction:sn,checkable:Re&&Ke.createElement("span",{className:`${Se}-checkbox-inner`}),selectable:Ce,switcherIcon:lt,draggable:vt}),Vn))}),et;(function(Ge){Ge[Ge.None=0]="None",Ge[Ge.Start=1]="Start",Ge[Ge.End=2]="End"})(et||(et={}));function $e(Ge,kt){function ln(sn){const{key:Bt,children:Gt}=sn;kt(Bt,sn)!==!1&&$e(Gt||[],kt)}Ge.forEach(ln)}function gt(Ge){let{treeData:kt,expandedKeys:ln,startKey:sn,endKey:Bt}=Ge;const Gt=[];let en=et.None;if(sn&&sn===Bt)return[sn];if(!sn||!Bt)return[];function Bn(rn){return rn===sn||rn===Bt}return $e(kt,rn=>{if(en===et.End)return!1;if(Bn(rn)){if(Gt.push(rn),en===et.None)en=et.Start;else if(en===et.Start)return en=et.End,!1}else en===et.Start&&Gt.push(rn);return ln.includes(rn)}),Gt}function je(Ge,kt){const ln=(0,De.Z)(kt),sn=[];return $e(Ge,(Bt,Gt)=>{const en=ln.indexOf(Bt);return en!==-1&&(sn.push(Gt),ln.splice(en,1)),!!ln.length}),sn}var Tt=function(Ge,kt){var ln={};for(var sn in Ge)Object.prototype.hasOwnProperty.call(Ge,sn)&&kt.indexOf(sn)<0&&(ln[sn]=Ge[sn]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,sn=Object.getOwnPropertySymbols(Ge);Bt{var{defaultExpandAll:ln,defaultExpandParent:sn,defaultExpandedKeys:Bt}=Ge,Gt=Tt(Ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const en=Ke.useRef(),Bn=Ke.useRef(),rn=()=>{const{keyEntities:vt}=(0,ee.I8)(bt(Gt));let lt;return ln?lt=Object.keys(vt):sn?lt=(0,te.r7)(Gt.expandedKeys||Bt||[],vt):lt=Gt.expandedKeys||Bt,lt},[Cn,ft]=Ke.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[En,Vn]=Ke.useState(()=>rn());Ke.useEffect(()=>{"selectedKeys"in Gt&&ft(Gt.selectedKeys)},[Gt.selectedKeys]),Ke.useEffect(()=>{"expandedKeys"in Gt&&Vn(Gt.expandedKeys)},[Gt.expandedKeys]);const Re=(vt,lt)=>{var Dt;return"expandedKeys"in Gt||Vn(vt),(Dt=Gt.onExpand)===null||Dt===void 0?void 0:Dt.call(Gt,vt,lt)},Ce=(vt,lt)=>{var Dt;const{multiple:un}=Gt,{node:Xt,nativeEvent:$t}=lt,{key:wn=""}=Xt,bn=bt(Gt),pn=Object.assign(Object.assign({},lt),{selected:!0}),Yn=($t==null?void 0:$t.ctrlKey)||($t==null?void 0:$t.metaKey),ai=$t==null?void 0:$t.shiftKey;let Wn;un&&Yn?(Wn=vt,en.current=wn,Bn.current=Wn,pn.selectedNodes=je(bn,Wn)):un&&ai?(Wn=Array.from(new Set([].concat((0,De.Z)(Bn.current||[]),(0,De.Z)(gt({treeData:bn,expandedKeys:En,startKey:wn,endKey:en.current}))))),pn.selectedNodes=je(bn,Wn)):(Wn=[wn],en.current=wn,Bn.current=Wn,pn.selectedNodes=je(bn,Wn)),(Dt=Gt.onSelect)===null||Dt===void 0||Dt.call(Gt,Wn,pn),"selectedKeys"in Gt||ft(Wn)},{getPrefixCls:Pe,direction:Ne}=Ke.useContext(he.E_),{prefixCls:ke,className:Se,showIcon:nt=!0,expandAction:Pt="click"}=Gt,qe=Tt(Gt,["prefixCls","className","showIcon","expandAction"]),Ue=Pe("tree",ke),St=Ae()(`${Ue}-directory`,{[`${Ue}-directory-rtl`]:Ne==="rtl"},Se);return Ke.createElement(ze,Object.assign({icon:Qe,ref:kt,blockNode:!0},qe,{showIcon:nt,expandAction:Pt,prefixCls:Ue,className:St,expandedKeys:En,selectedKeys:Cn,onSelect:Ce,onExpand:Re}))};var Zt=Ke.forwardRef(Nt);const Yt=ze;Yt.DirectoryTree=Zt,Yt.TreeNode=ce.O;var ut=Yt},20648:function(Pn,an,ve){"use strict";ve.d(an,{TM:function(){return dt},Yk:function(){return ht}});var ce=ve(93083),De=ve(98447),_e=ve(17313),Ct=ve(8378),Ze=ve(37613),Ke=ve(83116);const Be=new ce.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mt=(Ae,te)=>({[`.${Ae}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),ct=(Ae,te)=>({[`.${Ae}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),He=(Ae,te)=>{const{treeCls:ee,treeNodeCls:he,treeNodePadding:se,titleHeight:de,nodeSelectedBg:me,nodeHoverBg:we}=te,be=te.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,_e.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,_e.oN)(te)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${he}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:Be,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${he}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,_e.oN)(te)),[`&:not(${he}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:de,lineHeight:`${de}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${he}:hover &`]:{opacity:.45}},[`&${he}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:de}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},mt(Ae,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:de,margin:0,lineHeight:`${de}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-se,marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:de/2*.8,height:de/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:be},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:de,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${de}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:we},[`&${ee}-node-selected`]:{backgroundColor:me},[`${ee}-iconEle`]:{display:"inline-block",width:de,height:de,lineHeight:`${de}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${de}px`,userSelect:"none"},ct(Ae,te)),[`${he}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-se,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${he}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${de/2}px !important`}}}}})}},Et=Ae=>{const{treeCls:te,treeNodeCls:ee,treeNodePadding:he,directoryNodeSelectedBg:se,directoryNodeSelectedColor:de}=Ae;return{[`${te}${te}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:he,insetInlineStart:0,transition:`background-color ${Ae.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ae.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Ae.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:de,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:se},[`${te}-switcher`]:{color:de},[`${te}-node-content-wrapper`]:{color:de,background:"transparent"}}}}}},ht=(Ae,te)=>{const ee=`.${Ae}`,he=`${ee}-treenode`,se=te.paddingXS/2,de=(0,Ze.TS)(te,{treeCls:ee,treeNodeCls:he,treeNodePadding:se});return[He(Ae,de),Et(de)]},dt=Ae=>{const{controlHeightSM:te}=Ae;return{titleHeight:te,nodeHoverBg:Ae.controlItemBgHover,nodeSelectedBg:Ae.controlItemBgActive}};an.ZP=(0,Ke.Z)("Tree",(Ae,te)=>{let{prefixCls:ee}=te;return[{[Ae.componentCls]:(0,De.C2)(`${ee}-checkbox`,Ae)},ht(ee,Ae),(0,Ct.Z)(Ae)]},Ae=>{const{colorTextLightSolid:te,colorPrimary:ee}=Ae;return Object.assign(Object.assign({},dt(Ae)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ee})})},71997:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return he}});var ce=ve(96663),De=ve(59301),_e={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"},Ct=_e,Ze=ve(7657),Ke=function(de,me){return De.createElement(Ze.Z,(0,ce.Z)({},de,{ref:me,icon:Ct}))},Be=De.forwardRef(Ke),mt=Be,ct=ve(52671),He=ve(58617),Et=ve(15075),ht=ve(43531),dt=ve(92310),Ae=ve.n(dt),te=ve(92343),he=se=>{const{prefixCls:de,switcherIcon:me,treeNodeProps:we,showLine:be}=se,{isLeaf:Me,expanded:Ie,loading:ze}=we;if(ze)return De.createElement(He.Z,{className:`${de}-switcher-loading-icon`});let et;if(be&&typeof be=="object"&&(et=be.showLeafIcon),Me){if(!be)return null;if(typeof et!="boolean"&&et){const je=typeof et=="function"?et(we):et,Tt=`${de}-switcher-line-custom-icon`;return(0,te.l$)(je)?(0,te.Tm)(je,{className:Ae()(je.props.className||"",Tt)}):je}return et?De.createElement(ct.Z,{className:`${de}-switcher-line-icon`}):De.createElement("span",{className:`${de}-switcher-leaf-line`})}const $e=`${de}-switcher-icon`,gt=typeof me=="function"?me(we):me;return(0,te.l$)(gt)?(0,te.Tm)(gt,{className:Ae()(gt.props.className||"",$e)}):gt!==void 0?gt:be?Ie?De.createElement(Et.Z,{className:`${de}-switcher-line-icon`}):De.createElement(ht.Z,{className:`${de}-switcher-line-icon`}):De.createElement(mt,{className:$e})}},99498:function(Pn,an,ve){(function(ce){ce(ve(89780))})(function(ce){ce.defineOption("placeholder","",function(mt,ct,He){var Et=He&&He!=ce.Init;if(ct&&!Et)mt.on("blur",Ze),mt.on("change",Ke),mt.on("swapDoc",Ke),ce.on(mt.getInputField(),"compositionupdate",mt.state.placeholderCompose=function(){Ct(mt)}),Ke(mt);else if(!ct&&Et){mt.off("blur",Ze),mt.off("change",Ke),mt.off("swapDoc",Ke),ce.off(mt.getInputField(),"compositionupdate",mt.state.placeholderCompose),De(mt);var ht=mt.getWrapperElement();ht.className=ht.className.replace(" CodeMirror-empty","")}ct&&!mt.hasFocus()&&Ze(mt)});function De(mt){mt.state.placeholder&&(mt.state.placeholder.parentNode.removeChild(mt.state.placeholder),mt.state.placeholder=null)}function _e(mt){De(mt);var ct=mt.state.placeholder=document.createElement("pre");ct.style.cssText="height: 0; overflow: visible",ct.style.direction=mt.getOption("direction"),ct.className="CodeMirror-placeholder CodeMirror-line-like";var He=mt.getOption("placeholder");typeof He=="string"&&(He=document.createTextNode(He)),ct.appendChild(He),mt.display.lineSpace.insertBefore(ct,mt.display.lineSpace.firstChild)}function Ct(mt){setTimeout(function(){var ct=!1,He=mt.getInputField();He.nodeName=="TEXTAREA"?ct=!He.value:mt.lineCount()==1&&(ct=!/[^\u200b]/.test(He.querySelector(".CodeMirror-line").textContent)),ct?_e(mt):De(mt)},20)}function Ze(mt){Be(mt)&&_e(mt)}function Ke(mt){var ct=mt.getWrapperElement(),He=Be(mt);ct.className=ct.className.replace(" CodeMirror-empty","")+(He?" CodeMirror-empty":""),He?_e(mt):De(mt)}function Be(mt){return mt.lineCount()===1&&mt.getLine(0)===""}})},25717:function(Pn,an,ve){(function(ce){ce(ve(89780))})(function(ce){var De={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},_e=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=ce.Init&&(te.removeKeyMap(Ze),te.state.closeBrackets=null),ee&&(Ke(Ct(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(Ze))});function Ct(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:De[ee]}var Ze={Backspace:ct,Enter:He};function Ke(te){for(var ee=0;ee=0;de--){var we=se[de].head;te.replaceRange("",_e(we.line,we.ch-1),_e(we.line,we.ch+1),"+delete")}}function He(te){var ee=mt(te),he=ee&&Ct(ee,"explode");if(!he||te.getOption("disableInput"))return ce.Pass;for(var se=te.listSelections(),de=0;de0;return{anchor:new _e(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new _e(te.head.line,te.head.ch+(ee?1:-1))}}function ht(te,ee){var he=mt(te);if(!he||te.getOption("disableInput"))return ce.Pass;var se=Ct(he,"pairs"),de=se.indexOf(ee);if(de==-1)return ce.Pass;for(var me=Ct(he,"closeBefore"),we=Ct(he,"triples"),be=se.charAt(de+1)==ee,Me=te.listSelections(),Ie=de%2==0,ze,et=0;et=0&&te.getRange(gt,_e(gt.line,gt.ch+3))==ee+ee+ee?je="skipThree":je="skip";else if(be&>.ch>1&&we.indexOf(ee)>=0&&te.getRange(_e(gt.line,gt.ch-2),gt)==ee+ee){if(gt.ch>2&&/\bstring/.test(te.getTokenTypeAt(_e(gt.line,gt.ch-2))))return ce.Pass;je="addFour"}else if(be){var Qe=gt.ch==0?" ":te.getRange(_e(gt.line,gt.ch-1),gt);if(!ce.isWordChar(Tt)&&Qe!=ee&&!ce.isWordChar(Qe))je="both";else return ce.Pass}else if(Ie&&(Tt.length===0||/\s/.test(Tt)||me.indexOf(Tt)>-1))je="both";else return ce.Pass;if(!ze)ze=je;else if(ze!=je)return ce.Pass}var bt=de%2?se.charAt(de-1):ee,Nt=de%2?ee:se.charAt(de+1);te.operation(function(){if(ze=="skip")te.execCommand("goCharRight");else if(ze=="skipThree")for(var At=0;At<3;At++)te.execCommand("goCharRight");else if(ze=="surround"){for(var Zt=te.getSelections(),At=0;At'"]=function(dt){return Ct(dt)}),ct.addKeyMap(ht)}});var De=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],_e=["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 Ct(ct){if(ct.getOption("disableInput"))return ce.Pass;for(var He=ct.listSelections(),Et=[],ht=ct.getOption("autoCloseTags"),dt=0;dtAe.ch&&(de=de.slice(0,de.length-te.end+Ae.ch));var Me=de.toLowerCase();if(!de||te.type=="string"&&(te.end!=Ae.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Ae.ch-te.start-1||we&&Be(we,Me)>-1||mt(ct,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],de,Ae,!0))return ce.Pass;var Ie=typeof ht=="object"&&ht.emptyTags;if(Ie&&Be(Ie,de)>-1){Et[dt]={text:"/>",newPos:ce.Pos(Ae.line,Ae.ch+2)};continue}var ze=be&&Be(be,Me)>-1;Et[dt]={indent:ze,text:">"+(ze?` `:"")+"",newPos:ze?ce.Pos(Ae.line+1,0):ce.Pos(Ae.line,Ae.ch+1)}}for(var et=typeof ht=="object"&&ht.dontIndentOnAutoClose,dt=He.length-1;dt>=0;dt--){var $e=Et[dt];ct.replaceRange($e.text,He[dt].head,He[dt].anchor,"+insert");var gt=ct.listSelections().slice(0);gt[dt]={head:$e.newPos,anchor:$e.newPos},ct.setSelections(gt),!et&&$e.indent&&(ct.indentLine($e.newPos.line,null,!0),ct.indentLine($e.newPos.line+1,null,!0))}}function Ze(ct,He){for(var Et=ct.listSelections(),ht=[],dt=He?"/":""&&(we+=">"),ht[ee]=we}if(ct.replaceSelections(ht),Et=ct.listSelections(),!te)for(var ee=0;ee=0&&He[he]==Et;he--)++ee;ht=te.to;for(var he=1;he=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function He(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function Et(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(ct(he))continue;return}if(!mt(he,se+1)){he.ch=se+1;continue}var de=he.text.lastIndexOf("/",se),me=de>-1&&!/\S/.test(he.text.slice(de+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function ht(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(He(he))continue;return}if(!mt(he,se+1)){he.ch=se;continue}Ke.lastIndex=se,he.ch=se;var de=Ke.exec(he.text);if(de&&de.index==se)return de}}function dt(he){for(;;){Ke.lastIndex=he.ch;var se=Ke.exec(he.text);if(!se){if(ct(he))continue;return}if(!mt(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Ae(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(He(he))continue;return}if(!mt(he,se+1)){he.ch=se;continue}var de=he.text.lastIndexOf("/",se),me=de>-1&&!/\S/.test(he.text.slice(de+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function te(he,se){for(var de=[];;){var me=dt(he),we,be=he.line,Me=he.ch-(me?me[0].length:0);if(!me||!(we=Et(he)))return;if(we!="selfClose")if(me[1]){for(var Ie=de.length-1;Ie>=0;--Ie)if(de[Ie]==me[2]){de.length=Ie;break}if(Ie<0&&(!se||se==me[2]))return{tag:me[2],from:De(be,Me),to:De(he.line,he.ch)}}else de.push(me[2])}}function ee(he,se){for(var de=[];;){var me=Ae(he);if(!me)return;if(me=="selfClose"){ht(he);continue}var we=he.line,be=he.ch,Me=ht(he);if(!Me)return;if(Me[1])de.push(Me[2]);else{for(var Ie=de.length-1;Ie>=0;--Ie)if(de[Ie]==Me[2]){de.length=Ie;break}if(Ie<0&&(!se||se==Me[2]))return{tag:Me[2],from:De(he.line,he.ch),to:De(we,be)}}}}ce.registerHelper("fold","xml",function(he,se){for(var de=new Be(he,se.line,0);;){var me=dt(de);if(!me||de.line!=se.line)return;var we=Et(de);if(!we)return;if(!me[1]&&we!="selfClose"){var be=De(de.line,de.ch),Me=te(de,me[2]);return Me&&_e(Me.from,be)>0?{from:be,to:Me.from}:null}}}),ce.findMatchingTag=function(he,se,de){var me=new Be(he,se.line,se.ch,de);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var we=Et(me),be=we&&De(me.line,me.ch),Me=we&&ht(me);if(!(!we||!Me||_e(me,se)>0)){var Ie={from:De(me.line,me.ch),to:be,tag:Me[2]};return we=="selfClose"?{open:Ie,close:null,at:"open"}:Me[1]?{open:ee(me,Me[2]),close:Ie,at:"close"}:(me=new Be(he,be.line,be.ch,de),{open:Ie,close:te(me,Me[2]),at:"open"})}}},ce.findEnclosingTag=function(he,se,de,me){for(var we=new Be(he,se.line,se.ch,de);;){var be=ee(we,me);if(!be)break;var Me=new Be(he,se.line,se.ch,de),Ie=te(Me,be.tag);if(Ie)return{open:be,close:Ie}}},ce.scanForClosingTag=function(he,se,de,me){var we=new Be(he,se.line,se.ch,me?{from:0,to:me}:null);return te(we,de)}})},89780:function(Pn){(function(an,ve){Pn.exports=ve()})(this,function(){"use strict";var an=navigator.userAgent,ve=navigator.platform,ce=/gecko\/\d/i.test(an),De=/MSIE \d/.test(an),_e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(an),Ct=/Edge\/(\d+)/.exec(an),Ze=De||_e||Ct,Ke=Ze&&(De?document.documentMode||6:+(Ct||_e)[1]),Be=!Ct&&/WebKit\//.test(an),mt=Be&&/Qt\/\d+\.\d+/.test(an),ct=!Ct&&/Chrome\//.test(an),He=/Opera\//.test(an),Et=/Apple Computer/.test(navigator.vendor),ht=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(an),dt=/PhantomJS/.test(an),Ae=!Ct&&/AppleWebKit/.test(an)&&/Mobile\/\w+/.test(an),te=/Android/.test(an),ee=Ae||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(an),he=Ae||/Mac/.test(ve),se=/\bCrOS\b/.test(an),de=/win/i.test(ve),me=He&&an.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(He=!1,Be=!0);var we=he&&(mt||He&&(me==null||me<12.11)),be=ce||Ze&&Ke>=9;function Me(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,ae){var ge=ie.className,fe=Me(ae).exec(ge);if(fe){var ye=ge.slice(fe.index+fe[0].length);ie.className=ge.slice(0,fe.index)+(ye?fe[1]+ye:"")}};function ze(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function et(ie,ae){return ze(ie).appendChild(ae)}function $e(ie,ae,ge,fe){var ye=document.createElement(ie);if(ge&&(ye.className=ge),fe&&(ye.style.cssText=fe),typeof ae=="string")ye.appendChild(document.createTextNode(ae));else if(ae)for(var Te=0;Te=ae)return We+(ae-Te);We+=st-Te,We+=ge-We%ge,Te=st+1}}var Ge=function(){this.id=null,this.f=null,this.time=0,this.handler=Zt(this.onTimeout,this)};Ge.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ge.prototype.set=function(ie,ae){this.f=ae;var ge=+new Date+ie;(!this.id||ge=ae)return fe+Math.min(We,ae-ye);if(ye+=Te-fe,ye+=ge-ye%ge,fe=Te+1,ye>=ae)return fe}}var rn=[""];function Cn(ie){for(;rn.length<=ie;)rn.push(ft(rn)+" ");return rn[ie]}function ft(ie){return ie[ie.length-1]}function En(ie,ae){for(var ge=[],fe=0;fe"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Pe.test(ie))}function ke(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ne(ie)?!0:ae.test(ie):Ne(ie)}function Se(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var nt=/[\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 Pt(ie){return ie.charCodeAt(0)>=768&&nt.test(ie)}function qe(ie,ae,ge){for(;(ge<0?ae>0:aege?-1:1;;){if(ae==ge)return ae;var ye=(ae+ge)/2,Te=fe<0?Math.ceil(ye):Math.floor(ye);if(Te==ae)return ie(Te)?ae:ge;ie(Te)?ge=Te:ae=Te+fe}}function St(ie,ae,ge,fe){if(!ie)return fe(ae,ge,"ltr",0);for(var ye=!1,Te=0;Teae||ae==ge&&We.to==ae)&&(fe(Math.max(We.from,ae),Math.min(We.to,ge),We.level==1?"rtl":"ltr",Te),ye=!0)}ye||fe(ae,ge,"ltr")}var vt=null;function lt(ie,ae,ge){var fe;vt=null;for(var ye=0;yeae)return ye;Te.to==ae&&(Te.from!=Te.to&&ge=="before"?fe=ye:vt=ye),Te.from==ae&&(Te.from!=Te.to&&ge!="before"?fe=ye:vt=ye)}return fe!=null?fe:vt}var Dt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ge(Lt){return Lt<=247?ie.charAt(Lt):1424<=Lt&&Lt<=1524?"R":1536<=Lt&&Lt<=1785?ae.charAt(Lt-1536):1774<=Lt&&Lt<=2220?"r":8192<=Lt&&Lt<=8203?"w":Lt==8204?"b":"L"}var fe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ye=/[stwN]/,Te=/[LRr]/,We=/[Lb1n]/,st=/[1n]/;function ot(Lt,dn,Rt){this.level=Lt,this.from=dn,this.to=Rt}return function(Lt,dn){var Rt=dn=="ltr"?"L":"R";if(Lt.length==0||dn=="ltr"&&!fe.test(Lt))return!1;for(var zn=Lt.length,In=[],Ci=0;Ci-1&&(fe[ae]=ye.slice(0,Te).concat(ye.slice(Te+1)))}}}function pn(ie,ae){var ge=wn(ie,ae);if(ge.length)for(var fe=Array.prototype.slice.call(arguments,2),ye=0;ye0}function Rn(ie){ie.prototype.on=function(ae,ge){$t(this,ae,ge)},ie.prototype.off=function(ae,ge){bn(this,ae,ge)}}function ii(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function pi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function gi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Ri(ie){ii(ie),pi(ie)}function Ji(ie){return ie.target||ie.srcElement}function Un(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var $n=function(){if(Ze&&Ke<9)return!1;var ie=$e("div");return"draggable"in ie||"dragDrop"in ie}(),ti;function Pi(ie){if(ti==null){var ae=$e("span","\u200B");et(ie,$e("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(ti=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ze&&Ke<8))}var ge=ti?$e("span","\u200B"):$e("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ge.setAttribute("cm-text",""),ge}var mi;function nr(ie){if(mi!=null)return mi;var ae=et(ie,document.createTextNode("A\u062EA")),ge=je(ae,0,1).getBoundingClientRect(),fe=je(ae,1,2).getBoundingClientRect();return ze(ie),!ge||ge.left==ge.right?!1:mi=fe.right-ge.right<3}var ji=` b`.split(/\n/).length!=3?function(ie){for(var ae=0,ge=[],fe=ie.length;ae<=fe;){var ye=ie.indexOf(` `,ae);ye==-1&&(ye=ie.length);var Te=ie.slice(ae,ie.charAt(ye-1)=="\r"?ye-1:ye),We=Te.indexOf("\r");We!=-1?(ge.push(Te.slice(0,We)),ae+=We+1):(ge.push(Te),ae=ye+1)}return ge}:function(ie){return ie.split(/\r\n?|\n/)},Le=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ge){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},si=function(){var ie=$e("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Hi=null;function hn(ie){if(Hi!=null)return Hi;var ae=et(ie,$e("span","x")),ge=ae.getBoundingClientRect(),fe=je(ae,0,1).getBoundingClientRect();return Hi=Math.abs(ge.left-fe.left)>1}var ni={},vi={};function Fi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),ni[ie]=ae}function _n(ie,ae){vi[ie]=ae}function Dn(ie){if(typeof ie=="string"&&vi.hasOwnProperty(ie))ie=vi[ie];else if(ie&&typeof ie.name=="string"&&vi.hasOwnProperty(ie.name)){var ae=vi[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Ce(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Dn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Dn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Ft(ie,ae){ae=Dn(ae);var ge=ni[ae.name];if(!ge)return Ft(ie,"text/plain");var fe=ge(ie,ae);if(Ot.hasOwnProperty(ae.name)){var ye=Ot[ae.name];for(var Te in ye)ye.hasOwnProperty(Te)&&(fe.hasOwnProperty(Te)&&(fe["_"+Te]=fe[Te]),fe[Te]=ye[Te])}if(fe.name=ae.name,ae.helperType&&(fe.helperType=ae.helperType),ae.modeProps)for(var We in ae.modeProps)fe[We]=ae.modeProps[We];return fe}var Ot={};function Ve(ie,ae){var ge=Ot.hasOwnProperty(ie)?Ot[ie]:Ot[ie]={};Yt(ae,ge)}function Ut(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ge={};for(var fe in ae){var ye=ae[fe];ye instanceof Array&&(ye=ye.concat([])),ge[fe]=ye}return ge}function tn(ie,ae){for(var ge;ie.innerMode&&(ge=ie.innerMode(ae),!(!ge||ge.mode==ie));)ae=ge.state,ie=ge.mode;return ge||{mode:ie,state:ae}}function xt(ie,ae,ge){return ie.startState?ie.startState(ae,ge):!0}var rt=function(ie,ae,ge){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ge};rt.prototype.eol=function(){return this.pos>=this.string.length},rt.prototype.sol=function(){return this.pos==this.lineStart},rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rt.prototype.next=function(){if(this.posae},rt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},rt.prototype.skipToEnd=function(){this.pos=this.string.length},rt.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},rt.prototype.backUp=function(ie){this.pos-=ie},rt.prototype.column=function(){return this.lastColumnPos0?null:(Te&&ae!==!1&&(this.pos+=Te[0].length),Te)}},rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},rt.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},rt.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},rt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Vt(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ge=ie;!ge.lines;)for(var fe=0;;++fe){var ye=ge.children[fe],Te=ye.chunkSize();if(ae=ie.first&&aege?Wt(ge,Vt(ie,ge).text.length):Ai(ae,Vt(ie,ae.line).text.length)}function Ai(ie,ae){var ge=ie.ch;return ge==null||ge>ae?Wt(ie.line,ae):ge<0?Wt(ie.line,0):ie}function er(ie,ae){for(var ge=[],fe=0;fethis.maxLookAhead&&(this.maxLookAhead=ie),ae},vn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},vn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vn.fromSaved=function(ie,ae,ge){return ae instanceof sr?new vn(ie,Ut(ie.mode,ae.state),ge,ae.lookAhead):new vn(ie,Ut(ie.mode,ae),ge)},vn.prototype.save=function(ie){var ae=ie!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new sr(ae,this.maxLookAhead):ae};function Nr(ie,ae,ge,fe){var ye=[ie.state.modeGen],Te={};ur(ie,ae.text,ie.doc.mode,ge,function(Lt,dn){return ye.push(Lt,dn)},Te,fe);for(var We=ge.state,st=function(Lt){ge.baseTokens=ye;var dn=ie.state.overlays[Lt],Rt=1,zn=0;ge.state=!0,ur(ie,ae.text,dn.mode,ge,function(In,Ci){for(var Ti=Rt;znIn&&ye.splice(Rt,1,In,ye[Rt+1],Zi),Rt+=2,zn=Math.min(In,Zi)}if(Ci)if(dn.opaque)ye.splice(Ti,Rt-Ti,In,"overlay "+Ci),Rt=Ti+2;else for(;Tiie.options.maxHighlightLength&&Ut(ie.doc.mode,fe.state),Te=Nr(ie,ae,fe);ye&&(fe.state=ye),ae.stateAfter=fe.save(!ye),ae.styles=Te.styles,Te.classes?ae.styleClasses=Te.classes:ae.styleClasses&&(ae.styleClasses=null),ge===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function ir(ie,ae,ge){var fe=ie.doc,ye=ie.display;if(!fe.mode.startState)return new vn(fe,!0,ae);var Te=Qi(ie,ae,ge),We=Te>fe.first&&Vt(fe,Te-1).stateAfter,st=We?vn.fromSaved(fe,We,Te):new vn(fe,xt(fe.mode),Te);return fe.iter(Te,ae,function(ot){fn(ie,ot.text,st);var Lt=st.line;ot.stateAfter=Lt==ae-1||Lt%5==0||Lt>=ye.viewFrom&&Ltae.start)return Te}throw new Error("Mode "+ie.name+" failed to advance stream.")}var zi=function(ie,ae,ge){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ge};function Ni(ie,ae,ge,fe){var ye=ie.doc,Te=ye.mode,We;ae=li(ye,ae);var st=Vt(ye,ae.line),ot=ir(ie,ae.line,ge),Lt=new rt(st.text,ie.options.tabSize,ot),dn;for(fe&&(dn=[]);(fe||Lt.posie.options.maxHighlightLength?(st=!1,We&&fn(ie,ae,fe,dn.pos),dn.pos=ae.length,Rt=null):Rt=Gi(Ei(ge,dn,fe.state,zn),Te),zn){var In=zn[0].name;In&&(Rt="m-"+(Rt?In+" "+Rt:In))}if(!st||Lt!=Rt){for(;otWe;--st){if(st<=Te.first)return Te.first;var ot=Vt(Te,st-1),Lt=ot.stateAfter;if(Lt&&(!ge||st+(Lt instanceof sr?Lt.lookAhead:0)<=Te.modeFrontier))return st;var dn=ut(ot.text,null,ie.options.tabSize);(ye==null||fe>dn)&&(ye=st-1,fe=dn)}return ye}function rr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontierge;fe--){var ye=Vt(ie,fe).stateAfter;if(ye&&(!(ye instanceof sr)||fe+ye.lookAhead=ae:Te.to>ae);(fe||(fe=[])).push(new Zr(We,Te.from,ot?null:Te.to))}}return fe}function Vi(ie,ae,ge){var fe;if(ie)for(var ye=0;ye=ae:Te.to>ae);if(st||Te.from==ae&&We.type=="bookmark"&&(!ge||Te.marker.insertLeft)){var ot=Te.from==null||(We.inclusiveLeft?Te.from<=ae:Te.from0&&st)for(var io=0;io0)){var dn=[ot,1],Rt=Jt(Lt.from,st.from),zn=Jt(Lt.to,st.to);(Rt<0||!We.inclusiveLeft&&!Rt)&&dn.push({from:Lt.from,to:st.from}),(zn>0||!We.inclusiveRight&&!zn)&&dn.push({from:st.to,to:Lt.to}),ye.splice.apply(ye,dn),ot+=dn.length-3}}return ye}function xi(ie){var ae=ie.markedSpans;if(ae){for(var ge=0;geae)&&(!fe||ga(fe,Te.marker)<0)&&(fe=Te.marker)}return fe}function fo(ie,ae,ge,fe,ye){var Te=Vt(ie,ae),We=Nn&&Te.markedSpans;if(We)for(var st=0;st=0&&Rt<=0||dn<=0&&Rt>=0)&&(dn<=0&&(ot.marker.inclusiveRight&&ye.inclusiveLeft?Jt(Lt.to,ge)>=0:Jt(Lt.to,ge)>0)||dn>=0&&(ot.marker.inclusiveRight&&ye.inclusiveLeft?Jt(Lt.from,fe)<=0:Jt(Lt.from,fe)<0)))return!0}}}function jr(ie){for(var ae;ae=ia(ie);)ie=ae.find(-1,!0).line;return ie}function To(ie){for(var ae;ae=Or(ie);)ie=ae.find(1,!0).line;return ie}function qa(ie){for(var ae,ge;ae=Or(ie);)ie=ae.find(1,!0).line,(ge||(ge=[])).push(ie);return ge}function Mr(ie,ae){var ge=Vt(ie,ae),fe=jr(ge);return ge==fe?ae:yt(fe)}function hr(ie,ae){if(ae>ie.lastLine())return ae;var ge=Vt(ie,ae),fe;if(!Xn(ie,ge))return ae;for(;fe=Or(ge);)ge=fe.find(1,!0).line;return yt(ge)+1}function Xn(ie,ae){var ge=Nn&&ae.markedSpans;if(ge){for(var fe=void 0,ye=0;yeae.maxLineLength&&(ae.maxLineLength=ye,ae.maxLine=fe)})}var yo=function(ie,ae,ge){this.text=ie,tt(this,ae),this.height=ge?ge(this):1};yo.prototype.lineNo=function(){return yt(this)},Rn(yo);function ta(ie,ae,ge,fe){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),xi(ie),tt(ie,ge);var ye=fe?fe(ie):1;ye!=ie.height&&An(ie,ye)}function na(ie){ie.parent=null,xi(ie)}var Na={},ka={};function is(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ge=ae.addModeClass?ka:Na;return ge[ie]||(ge[ie]=ie.replace(/\S+/g,"cm-$&"))}function gn(ie,ae){var ge=gt("span",null,null,Be?"padding-right: .1px":null),fe={pre:gt("pre",[ge],"CodeMirror-line"),content:ge,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var ye=0;ye<=(ae.rest?ae.rest.length:0);ye++){var Te=ye?ae.rest[ye-1]:ae.line,We=void 0;fe.pos=0,fe.addToken=Vl,nr(ie.display.measure)&&(We=un(Te,ie.doc.direction))&&(fe.addToken=wl(fe.addToken,We)),fe.map=[];var st=ae!=ie.display.externalMeasured&&yt(Te);yu(Te,fe,Dr(ie,Te,st)),Te.styleClasses&&(Te.styleClasses.bgClass&&(fe.bgClass=Nt(Te.styleClasses.bgClass,fe.bgClass||"")),Te.styleClasses.textClass&&(fe.textClass=Nt(Te.styleClasses.textClass,fe.textClass||""))),fe.map.length==0&&fe.map.push(0,0,fe.content.appendChild(Pi(ie.display.measure))),ye==0?(ae.measure.map=fe.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(fe.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Be){var ot=fe.content.lastChild;(/\bcm-tab\b/.test(ot.className)||ot.querySelector&&ot.querySelector(".cm-tab"))&&(fe.content.className="cm-tab-wrap-hack")}return pn(ie,"renderLine",ie,ae.line,fe.pre),fe.pre.className&&(fe.textClass=Nt(fe.pre.className,fe.textClass||"")),fe}function Oa(ie){var ae=$e("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Vl(ie,ae,ge,fe,ye,Te,We){if(ae){var st=ie.splitSpaces?Hs(ae,ie.trailingSpace):ae,ot=ie.cm.state.specialChars,Lt=!1,dn;if(!ot.test(ae))ie.col+=ae.length,dn=document.createTextNode(st),ie.map.push(ie.pos,ie.pos+ae.length,dn),Ze&&Ke<9&&(Lt=!0),ie.pos+=ae.length;else{dn=document.createDocumentFragment();for(var Rt=0;;){ot.lastIndex=Rt;var zn=ot.exec(ae),In=zn?zn.index-Rt:ae.length-Rt;if(In){var Ci=document.createTextNode(st.slice(Rt,Rt+In));Ze&&Ke<9?dn.appendChild($e("span",[Ci])):dn.appendChild(Ci),ie.map.push(ie.pos,ie.pos+In,Ci),ie.col+=In,ie.pos+=In}if(!zn)break;Rt+=In+1;var Ti=void 0;if(zn[0]==" "){var Zi=ie.cm.options.tabSize,vr=Zi-ie.col%Zi;Ti=dn.appendChild($e("span",Cn(vr),"cm-tab")),Ti.setAttribute("role","presentation"),Ti.setAttribute("cm-text"," "),ie.col+=vr}else zn[0]=="\r"||zn[0]==` `?(Ti=dn.appendChild($e("span",zn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ti.setAttribute("cm-text",zn[0]),ie.col+=1):(Ti=ie.cm.options.specialCharPlaceholder(zn[0]),Ti.setAttribute("cm-text",zn[0]),Ze&&Ke<9?dn.appendChild($e("span",[Ti])):dn.appendChild(Ti),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Ti),ie.pos++}}if(ie.trailingSpace=st.charCodeAt(ae.length-1)==32,ge||fe||ye||Lt||Te||We){var Kr=ge||"";fe&&(Kr+=fe),ye&&(Kr+=ye);var Br=$e("span",[dn],Kr,Te);if(We)for(var io in We)We.hasOwnProperty(io)&&io!="style"&&io!="class"&&Br.setAttribute(io,We[io]);return ie.content.appendChild(Br)}ie.content.appendChild(dn)}}function Hs(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ge=ae,fe="",ye=0;yeLt&&Rt.from<=Lt));zn++);if(Rt.to>=dn)return ie(ge,fe,ye,Te,We,st,ot);ie(ge,fe.slice(0,Rt.to-Lt),ye,Te,null,st,ot),Te=null,fe=fe.slice(Rt.to-Lt),Lt=Rt.to}}}function Ma(ie,ae,ge,fe){var ye=!fe&&ge.widgetNode;ye&&ie.map.push(ie.pos,ie.pos+ae,ye),!fe&&ie.cm.display.input.needsContentAttribute&&(ye||(ye=ie.content.appendChild(document.createElement("span"))),ye.setAttribute("cm-marker",ge.id)),ye&&(ie.cm.display.input.setUneditable(ye),ie.content.appendChild(ye)),ie.pos+=ae,ie.trailingSpace=!1}function yu(ie,ae,ge){var fe=ie.markedSpans,ye=ie.text,Te=0;if(!fe){for(var We=1;Weot||oa.collapsed&&Lr.to==ot&&Lr.from==ot)){if(Lr.to!=null&&Lr.to!=ot&&In>Lr.to&&(In=Lr.to,Ti=""),oa.className&&(Ci+=" "+oa.className),oa.css&&(zn=(zn?zn+";":"")+oa.css),oa.startStyle&&Lr.from==ot&&(Zi+=" "+oa.startStyle),oa.endStyle&&Lr.to==In&&(io||(io=[])).push(oa.endStyle,Lr.to),oa.title&&((Kr||(Kr={})).title=oa.title),oa.attributes)for(var Ss in oa.attributes)(Kr||(Kr={}))[Ss]=oa.attributes[Ss];oa.collapsed&&(!vr||ga(vr.marker,oa)<0)&&(vr=Lr)}else Lr.from>ot&&In>Lr.from&&(In=Lr.from)}if(io)for(var ol=0;ol=st)break;for(var du=Math.min(st,In);;){if(dn){var Zl=ot+dn.length;if(!vr){var qs=Zl>du?dn.slice(0,du-ot):dn;ae.addToken(ae,qs,Rt?Rt+Ci:Ci,Zi,ot+qs.length==In?Ti:"",zn,Kr)}if(Zl>=du){dn=dn.slice(du-ot),ot=du;break}ot=Zl,Zi=""}dn=ye.slice(Te,Te=ge[Lt++]),Rt=is(ge[Lt++],ae.cm.options)}}}function Cl(ie,ae,ge){this.line=ae,this.rest=qa(ae),this.size=this.rest?yt(ft(this.rest))-ge+1:1,this.node=this.text=null,this.hidden=Xn(ie,ae)}function ma(ie,ae,ge){for(var fe=[],ye,Te=ae;Te2&&Te.push((ot.bottom+Lt.top)/2-ge.top)}}Te.push(ge.bottom-ge.top)}}function Lh(ie,ae,ge){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var fe=0;fege)return{map:ie.measure.maps[ye],cache:ie.measure.caches[ye],before:!0}}function hc(ie,ae){ae=jr(ae);var ge=yt(ae),fe=ie.display.externalMeasured=new Cl(ie.doc,ae,ge);fe.lineN=ge;var ye=fe.built=gn(ie,fe);return fe.text=ye.pre,et(ie.display.lineMeasure,ye.pre),fe}function Fh(ie,ae,ge,fe){return Rl(ie,Qu(ie,ae),ge,fe)}function Ru(ie,ae){if(ae>=ie.display.viewFrom&&ae=ge.lineN&&aeae)&&(Te=ot-st,ye=Te-1,ae>=ot&&(We="right")),ye!=null){if(fe=ie[Lt+2],st==ot&&ge==(fe.insertLeft?"left":"right")&&(We=ge),ge=="left"&&ye==0)for(;Lt&&ie[Lt-2]==ie[Lt-3]&&ie[Lt-1].insertLeft;)fe=ie[(Lt-=3)+2],We="left";if(ge=="right"&&ye==ot-st)for(;Lt=0&&(ge=ie[ye]).left==ge.right;ye--);return ge}function Co(ie,ae,ge,fe){var ye=qu(ae.map,ge,fe),Te=ye.node,We=ye.start,st=ye.end,ot=ye.collapse,Lt;if(Te.nodeType==3){for(var dn=0;dn<4;dn++){for(;We&&Pt(ae.line.text.charAt(ye.coverStart+We));)--We;for(;ye.coverStart+st0&&(ot=fe="right");var Rt;ie.options.lineWrapping&&(Rt=Te.getClientRects()).length>1?Lt=Rt[fe=="right"?Rt.length-1:0]:Lt=Te.getBoundingClientRect()}if(Ze&&Ke<9&&!We&&(!Lt||!Lt.left&&!Lt.right)){var zn=Te.parentNode.getClientRects()[0];zn?Lt={left:zn.left,right:zn.left+jo(ie.display),top:zn.top,bottom:zn.bottom}:Lt=Hh}for(var In=Lt.top-ae.rect.top,Ci=Lt.bottom-ae.rect.top,Ti=(In+Ci)/2,Zi=ae.view.measure.heights,vr=0;vr=fe.text.length?(ot=fe.text.length,Lt="before"):ot<=0&&(ot=0,Lt="after"),!st)return We(Lt=="before"?ot-1:ot,Lt=="before");function dn(Ci,Ti,Zi){var vr=st[Ti],Kr=vr.level==1;return We(Zi?Ci-1:Ci,Kr!=Zi)}var Rt=lt(st,ot,Lt),zn=vt,In=dn(ot,Rt,Lt=="before");return zn!=null&&(In.other=dn(ot,zn,Lt!="before")),In}function rd(ie,ae){var ge=0;ae=li(ie.doc,ae),ie.options.lineWrapping||(ge=jo(ie.display)*ae.ch);var fe=Vt(ie.doc,ae.line),ye=wo(fe)+ys(ie.display);return{left:ge,right:ge,top:ye,bottom:ye+fe.height}}function Mc(ie,ae,ge,fe,ye){var Te=Wt(ie,ae,ge);return Te.xRel=ye,fe&&(Te.outside=fe),Te}function Kt(ie,ae,ge){var fe=ie.doc;if(ge+=ie.display.viewOffset,ge<0)return Mc(fe.first,0,null,-1,-1);var ye=cn(fe,ge),Te=fe.first+fe.size-1;if(ye>Te)return Mc(fe.first+fe.size-1,Vt(fe,Te).text.length,null,1,1);ae<0&&(ae=0);for(var We=Vt(fe,ye);;){var st=yn(ie,We,ye,ae,ge),ot=kr(We,st.ch+(st.xRel>0||st.outside>0?1:0));if(!ot)return st;var Lt=ot.find(1);if(Lt.line==ye)return Lt;We=Vt(fe,ye=Lt.line)}}function _t(ie,ae,ge,fe){fe-=rs(ae);var ye=ae.text.length,Te=Ue(function(We){return Rl(ie,ge,We-1).bottom<=fe},ye,0);return ye=Ue(function(We){return Rl(ie,ge,We).top>fe},Te,ye),{begin:Te,end:ye}}function mn(ie,ae,ge,fe){ge||(ge=Qu(ie,ae));var ye=Ka(ie,ae,Rl(ie,ge,fe),"line").top;return _t(ie,ae,ge,ye)}function it(ie,ae,ge,fe){return ie.bottom<=ge?!1:ie.top>ge?!0:(fe?ie.left:ie.right)>ae}function yn(ie,ae,ge,fe,ye){ye-=wo(ae);var Te=Qu(ie,ae),We=rs(ae),st=0,ot=ae.text.length,Lt=!0,dn=un(ae,ie.doc.direction);if(dn){var Rt=(ie.options.lineWrapping?Bo:zr)(ie,ae,ge,Te,dn,fe,ye);Lt=Rt.level!=1,st=Lt?Rt.from:Rt.to-1,ot=Lt?Rt.to:Rt.from-1}var zn=null,In=null,Ci=Ue(function(Wo){var Lr=Rl(ie,Te,Wo);return Lr.top+=We,Lr.bottom+=We,it(Lr,fe,ye,!1)?(Lr.top<=ye&&Lr.left<=fe&&(zn=Wo,In=Lr),!0):!1},st,ot),Ti,Zi,vr=!1;if(In){var Kr=fe-In.left=io.bottom?1:0}return Ci=qe(ae.text,Ci,1),Mc(ge,Ci,Zi,vr,fe-Ti)}function zr(ie,ae,ge,fe,ye,Te,We){var st=Ue(function(Rt){var zn=ye[Rt],In=zn.level!=1;return it(va(ie,Wt(ge,In?zn.to:zn.from,In?"before":"after"),"line",ae,fe),Te,We,!0)},0,ye.length-1),ot=ye[st];if(st>0){var Lt=ot.level!=1,dn=va(ie,Wt(ge,Lt?ot.from:ot.to,Lt?"after":"before"),"line",ae,fe);it(dn,Te,We,!0)&&dn.top>We&&(ot=ye[st-1])}return ot}function Bo(ie,ae,ge,fe,ye,Te,We){var st=_t(ie,ae,fe,We),ot=st.begin,Lt=st.end;/\s/.test(ae.text.charAt(Lt-1))&&Lt--;for(var dn=null,Rt=null,zn=0;zn=Lt||In.to<=ot)){var Ci=In.level!=1,Ti=Rl(ie,fe,Ci?Math.min(Lt,In.to)-1:Math.max(ot,In.from)).right,Zi=TiZi)&&(dn=In,Rt=Zi)}}return dn||(dn=ye[ye.length-1]),dn.fromLt&&(dn={from:dn.from,to:Lt,level:dn.level}),dn}var Ir;function _r(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Ir==null){Ir=$e("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Ir.appendChild(document.createTextNode("x")),Ir.appendChild($e("br"));Ir.appendChild(document.createTextNode("x"))}et(ie.measure,Ir);var ge=Ir.offsetHeight/50;return ge>3&&(ie.cachedTextHeight=ge),ze(ie.measure),ge||1}function jo(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=$e("span","xxxxxxxxxx"),ge=$e("pre",[ae],"CodeMirror-line-like");et(ie.measure,ge);var fe=ae.getBoundingClientRect(),ye=(fe.right-fe.left)/10;return ye>2&&(ie.cachedCharWidth=ye),ye||10}function po(ie){for(var ae=ie.display,ge={},fe={},ye=ae.gutters.clientLeft,Te=ae.gutters.firstChild,We=0;Te;Te=Te.nextSibling,++We){var st=ie.display.gutterSpecs[We].className;ge[st]=Te.offsetLeft+Te.clientLeft+ye,fe[st]=Te.clientWidth}return{fixedPos:Go(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ge,gutterWidth:fe,wrapperWidth:ae.wrapper.clientWidth}}function Go(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function ho(ie){var ae=_r(ie.display),ge=ie.options.lineWrapping,fe=ge&&Math.max(5,ie.display.scroller.clientWidth/jo(ie.display)-3);return function(ye){if(Xn(ie.doc,ye))return 0;var Te=0;if(ye.widgets)for(var We=0;We0&&(Lt=Vt(ie.doc,ot.line).text).length==ot.ch){var dn=ut(Lt,Lt.length,ie.options.tabSize)-Lt.length;ot=Wt(ot.line,Math.max(0,Math.round((Te-Iu(ie.display).left)/jo(ie.display))-dn))}return ot}function Tr(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ge=ie.display.view,fe=0;feae)&&(ye.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=ye.viewTo)Nn&&Mr(ie.doc,ae)ye.viewFrom?Cr(ie):(ye.viewFrom+=fe,ye.viewTo+=fe);else if(ae<=ye.viewFrom&&ge>=ye.viewTo)Cr(ie);else if(ae<=ye.viewFrom){var Te=Lo(ie,ge,ge+fe,1);Te?(ye.view=ye.view.slice(Te.index),ye.viewFrom=Te.lineN,ye.viewTo+=fe):Cr(ie)}else if(ge>=ye.viewTo){var We=Lo(ie,ae,ae,-1);We?(ye.view=ye.view.slice(0,We.index),ye.viewTo=We.lineN):Cr(ie)}else{var st=Lo(ie,ae,ae,-1),ot=Lo(ie,ge,ge+fe,1);st&&ot?(ye.view=ye.view.slice(0,st.index).concat(ma(ie,st.lineN,ot.lineN)).concat(ye.view.slice(ot.index)),ye.viewTo+=fe):Cr(ie)}var Lt=ye.externalMeasured;Lt&&(ge=ye.lineN&&ae=fe.viewTo)){var Te=fe.view[Tr(ie,ae)];if(Te.node!=null){var We=Te.changes||(Te.changes=[]);kt(We,ge)==-1&&We.push(ge)}}}function Cr(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Lo(ie,ae,ge,fe){var ye=Tr(ie,ae),Te,We=ie.display.view;if(!Nn||ge==ie.doc.first+ie.doc.size)return{index:ye,lineN:ge};for(var st=ie.display.viewFrom,ot=0;ot0){if(ye==We.length-1)return null;Te=st+We[ye].size-ae,ye++}else Te=st-ae;ae+=Te,ge+=Te}for(;Mr(ie.doc,ge)!=ge;){if(ye==(fe<0?0:We.length-1))return null;ge+=fe*We[ye-(fe<0?1:0)].size,ye+=fe}return{index:ye,lineN:ge}}function Rr(ie,ae,ge){var fe=ie.display,ye=fe.view;ye.length==0||ae>=fe.viewTo||ge<=fe.viewFrom?(fe.view=ma(ie,ae,ge),fe.viewFrom=ae):(fe.viewFrom>ae?fe.view=ma(ie,ae,fe.viewFrom).concat(fe.view):fe.viewFromge&&(fe.view=fe.view.slice(0,Tr(ie,ge)))),fe.viewTo=ge}function tr(ie){for(var ae=ie.display.view,ge=0,fe=0;fe=ie.display.viewTo||st.to().line0?ae.blinker=setInterval(function(){ie.hasFocus()||Bs(ie),ae.cursorDiv.style.visibility=(ge=!ge)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function Yo(ie){ie.state.focused||(ie.display.input.focus(),Oo(ie))}function br(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Bs(ie))},100)}function Oo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(pn(ie,"focus",ie,ae),ie.state.focused=!0,bt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Be&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),ko(ie))}function Bs(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(pn(ie,"blur",ie,ae),ie.state.focused=!1,Ie(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Wi(ie){for(var ae=ie.display,ge=ae.lineDiv.offsetTop,fe=0;fe.005||dn<-.005)&&(An(ye.line,We),Ia(ye.line),ye.rest))for(var Rt=0;Rtie.display.sizerWidth){var zn=Math.ceil(st/jo(ie.display));zn>ie.display.maxLineLength&&(ie.display.maxLineLength=zn,ie.display.maxLine=ye.line,ie.display.maxLineChanged=!0)}}}}function Ia(ie){if(ie.widgets)for(var ae=0;ae=We&&(Te=cn(ae,wo(Vt(ae,ot))-ie.wrapper.clientHeight),We=ot)}return{from:Te,to:Math.max(We,Te+1)}}function _a(ie,ae){if(!Yn(ie,"scrollCursorIntoView")){var ge=ie.display,fe=ge.sizer.getBoundingClientRect(),ye=null;if(ae.top+fe.top<0?ye=!0:ae.bottom+fe.top>(window.innerHeight||document.documentElement.clientHeight)&&(ye=!1),ye!=null&&!dt){var Te=$e("div","\u200B",null,`position: absolute; top: `+(ae.top-ge.viewOffset-ys(ie.display))+`px; height: `+(ae.bottom-ae.top+Ys(ie)+ge.barHeight)+`px; left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Te),Te.scrollIntoView(ye),ie.display.lineSpace.removeChild(Te)}}}function Is(ie,ae,ge,fe){fe==null&&(fe=0);var ye;!ie.options.lineWrapping&&ae==ge&&(ae=ae.ch?Wt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ge=ae.sticky=="before"?Wt(ae.line,ae.ch+1,"before"):ae);for(var Te=0;Te<5;Te++){var We=!1,st=va(ie,ae),ot=!ge||ge==ae?st:va(ie,ge);ye={left:Math.min(st.left,ot.left),top:Math.min(st.top,ot.top)-fe,right:Math.max(st.left,ot.left),bottom:Math.max(st.bottom,ot.bottom)+fe};var Lt=Wh(ie,ye),dn=ie.doc.scrollTop,Rt=ie.doc.scrollLeft;if(Lt.scrollTop!=null&&(Nh(ie,Lt.scrollTop),Math.abs(ie.doc.scrollTop-dn)>1&&(We=!0)),Lt.scrollLeft!=null&&(_u(ie,Lt.scrollLeft),Math.abs(ie.doc.scrollLeft-Rt)>1&&(We=!0)),!We)break}return ye}function ju(ie,ae){var ge=Wh(ie,ae);ge.scrollTop!=null&&Nh(ie,ge.scrollTop),ge.scrollLeft!=null&&_u(ie,ge.scrollLeft)}function Wh(ie,ae){var ge=ie.display,fe=_r(ie.display);ae.top<0&&(ae.top=0);var ye=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ge.scroller.scrollTop,Te=Mh(ie),We={};ae.bottom-ae.top>Te&&(ae.bottom=ae.top+Te);var st=ie.doc.height+Su(ge),ot=ae.topst-fe;if(ae.topye+Te){var dn=Math.min(ae.top,(Lt?st:ae.bottom)-Te);dn!=ye&&(We.scrollTop=dn)}var Rt=ie.options.fixedGutter?0:ge.gutters.offsetWidth,zn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ge.scroller.scrollLeft-Rt,In=ul(ie)-ge.gutters.offsetWidth,Ci=ae.right-ae.left>In;return Ci&&(ae.right=ae.left+In),ae.left<10?We.scrollLeft=0:ae.leftIn+zn-3&&(We.scrollLeft=ae.right+(Ci?0:10)-In),We}function Bh(ie,ae){ae!=null&&(Ml(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function ru(ie){Ml(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function zu(ie,ae,ge){(ae!=null||ge!=null)&&Ml(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ge!=null&&(ie.curOp.scrollTop=ge)}function aa(ie,ae){Ml(ie),ie.curOp.scrollToPos=ae}function Ml(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ge=rd(ie,ae.from),fe=rd(ie,ae.to);Gh(ie,ge,fe,ae.margin)}}function Gh(ie,ae,ge,fe){var ye=Wh(ie,{left:Math.min(ae.left,ge.left),top:Math.min(ae.top,ge.top)-fe,right:Math.max(ae.right,ge.right),bottom:Math.max(ae.bottom,ge.bottom)+fe});zu(ie,ye.scrollLeft,ye.scrollTop)}function Nh(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ce||Ui(ie,{top:ae}),Od(ie,ae,!0),ce&&Ui(ie),Qn(ie,100))}function Od(ie,ae,ge){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ge)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function _u(ie,ae,ge,fe){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ge?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!fe)&&(ie.doc.scrollLeft=ae,so(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function ou(ie){var ae=ie.display,ge=ae.gutters.offsetWidth,fe=Math.round(ie.doc.height+Su(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ge:0,docHeight:fe,scrollHeight:fe+Ys(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ge}}var xu=function(ie,ae,ge){this.cm=ge;var fe=this.vert=$e("div",[$e("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ye=this.horiz=$e("div",[$e("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");fe.tabIndex=ye.tabIndex=-1,ie(fe),ie(ye),$t(fe,"scroll",function(){fe.clientHeight&&ae(fe.scrollTop,"vertical")}),$t(ye,"scroll",function(){ye.clientWidth&&ae(ye.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ze&&Ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xu.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ge=ie.scrollHeight>ie.clientHeight+1,fe=ie.nativeBarWidth;if(ge){this.vert.style.display="block",this.vert.style.bottom=ae?fe+"px":"0";var ye=ie.viewHeight-(ae?fe:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+ye)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ge?fe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Te=ie.viewWidth-ie.barLeft-(ge?fe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(fe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ge?fe:0,bottom:ae?fe:0}},xu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xu.prototype.zeroWidthHack=function(){var ie=he&&!ht?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ge,this.disableVert=new Ge},xu.prototype.enableZeroWidthBar=function(ie,ae,ge){ie.style.pointerEvents="auto";function fe(){var ye=ie.getBoundingClientRect(),Te=ge=="vert"?document.elementFromPoint(ye.right-1,(ye.top+ye.bottom)/2):document.elementFromPoint((ye.right+ye.left)/2,ye.bottom-1);Te!=ie?ie.style.pointerEvents="none":ae.set(1e3,fe)}ae.set(1e3,fe)},xu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Pu=function(){};Pu.prototype.update=function(){return{bottom:0,right:0}},Pu.prototype.setScrollLeft=function(){},Pu.prototype.setScrollTop=function(){},Pu.prototype.clear=function(){};function dh(ie,ae){ae||(ae=ou(ie));var ge=ie.display.barWidth,fe=ie.display.barHeight;Lc(ie,ae);for(var ye=0;ye<4&&ge!=ie.display.barWidth||fe!=ie.display.barHeight;ye++)ge!=ie.display.barWidth&&ie.options.lineWrapping&&Wi(ie),Lc(ie,ou(ie)),ge=ie.display.barWidth,fe=ie.display.barHeight}function Lc(ie,ae){var ge=ie.display,fe=ge.scrollbars.update(ae);ge.sizer.style.paddingRight=(ge.barWidth=fe.right)+"px",ge.sizer.style.paddingBottom=(ge.barHeight=fe.bottom)+"px",ge.heightForcer.style.borderBottom=fe.bottom+"px solid transparent",fe.right&&fe.bottom?(ge.scrollbarFiller.style.display="block",ge.scrollbarFiller.style.height=fe.bottom+"px",ge.scrollbarFiller.style.width=fe.right+"px"):ge.scrollbarFiller.style.display="",fe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ge.gutterFiller.style.display="block",ge.gutterFiller.style.height=fe.bottom+"px",ge.gutterFiller.style.width=ae.gutterWidth+"px"):ge.gutterFiller.style.display=""}var Fc={native:xu,null:Pu};function Bc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Fc[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),$t(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ge){ge=="horizontal"?_u(ie,ae):Nh(ie,ae)},ie),ie.display.scrollbars.addClass&&bt(ie.display.wrapper,ie.display.scrollbars.addClass)}var od=0;function Zn(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++od},Ul(ie.curOp)}function Sr(ie){var ae=ie.curOp;ae&&Ko(ae,function(ge){for(var fe=0;fe=ge.viewTo)||ge.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Jn(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Ye(ie){ie.updatedDisplay=ie.mustUpdate&&ar(ie.cm,ie.update)}function jt(ie){var ae=ie.cm,ge=ae.display;ie.updatedDisplay&&Wi(ae),ie.barMeasure=ou(ae),ge.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Fh(ae,ge.maxLine,ge.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ge.scroller.clientWidth,ge.sizer.offsetLeft+ie.adjustWidthTo+Ys(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ge.sizer.offsetLeft+ie.adjustWidthTo-ul(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ge.input.prepareSelection())}function zt(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft=ie.display.viewTo)){var ge=+new Date+ie.options.workTime,fe=ir(ie,ae.highlightFrontier),ye=[];ae.iter(fe.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Te){if(fe.line>=ie.display.viewFrom){var We=Te.styles,st=Te.text.length>ie.options.maxHighlightLength?Ut(ae.mode,fe.state):null,ot=Nr(ie,Te,fe,!0);st&&(fe.state=st),Te.styles=ot.styles;var Lt=Te.styleClasses,dn=ot.classes;dn?Te.styleClasses=dn:Lt&&(Te.styleClasses=null);for(var Rt=!We||We.length!=Te.styles.length||Lt!=dn&&(!Lt||!dn||Lt.bgClass!=dn.bgClass||Lt.textClass!=dn.textClass),zn=0;!Rt&&znge)return Qn(ie,ie.options.workDelay),!0}),ae.highlightFrontier=fe.line,ae.modeFrontier=Math.max(ae.modeFrontier,fe.line),ye.length&&Ht(ie,function(){for(var Te=0;Te=ge.viewFrom&&ae.visible.to<=ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo)&&ge.renderedView==ge.view&&tr(ie)==0)return!1;pr(ie)&&(Cr(ie),ae.dims=po(ie));var ye=fe.first+fe.size,Te=Math.max(ae.visible.from-ie.options.viewportMargin,fe.first),We=Math.min(ye,ae.visible.to+ie.options.viewportMargin);ge.viewFromWe&&ge.viewTo-We<20&&(We=Math.min(ye,ge.viewTo)),Nn&&(Te=Mr(ie.doc,Te),We=hr(ie.doc,We));var st=Te!=ge.viewFrom||We!=ge.viewTo||ge.lastWrapHeight!=ae.wrapperHeight||ge.lastWrapWidth!=ae.wrapperWidth;Rr(ie,Te,We),ge.viewOffset=wo(Vt(ie.doc,ge.viewFrom)),ie.display.mover.style.top=ge.viewOffset+"px";var ot=tr(ie);if(!st&&ot==0&&!ae.force&&ge.renderedView==ge.view&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo))return!1;var Lt=wi(ie);return ot>4&&(ge.lineDiv.style.display="none"),Yi(ie,ge.updateLineNumbers,ae.dims),ot>4&&(ge.lineDiv.style.display=""),ge.renderedView=ge.view,yi(Lt),ze(ge.cursorDiv),ze(ge.selectionDiv),ge.gutters.style.height=ge.sizer.style.minHeight=0,st&&(ge.lastWrapHeight=ae.wrapperHeight,ge.lastWrapWidth=ae.wrapperWidth,Qn(ie,400)),ge.updateLineNumbers=null,!0}function Mi(ie,ae){for(var ge=ae.viewport,fe=!0;;fe=!1){if(!fe||!ie.options.lineWrapping||ae.oldDisplayWidth==ul(ie)){if(ge&&ge.top!=null&&(ge={top:Math.min(ie.doc.height+Su(ie.display)-Mh(ie),ge.top)}),ae.visible=Vr(ie.display,ie.doc,ge),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else fe&&(ae.visible=Vr(ie.display,ie.doc,ge));if(!ar(ie,ae))break;Wi(ie);var ye=ou(ie);cr(ie),dh(ie,ye),Xr(ie,ye),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Ui(ie,ae){var ge=new Jn(ie,ae);if(ar(ie,ge)){Wi(ie),Mi(ie,ge);var fe=ou(ie);cr(ie),dh(ie,fe),Xr(ie,fe),ge.finish()}}function Yi(ie,ae,ge){var fe=ie.display,ye=ie.options.lineNumbers,Te=fe.lineDiv,We=Te.firstChild;function st(Ci){var Ti=Ci.nextSibling;return Be&&he&&ie.display.currentWheelTarget==Ci?Ci.style.display="none":Ci.parentNode.removeChild(Ci),Ti}for(var ot=fe.view,Lt=fe.viewFrom,dn=0;dn-1&&(In=!1),$a(ie,Rt,Lt,ge)),In&&(ze(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(ri(ie.options,Lt)))),We=Rt.node.nextSibling}Lt+=Rt.size}for(;We;)We=st(We)}function wr(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Xr(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Ys(ie)+"px"}function so(ie){var ae=ie.display,ge=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var fe=Go(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,ye=ae.gutters.offsetWidth,Te=fe+"px",We=0;WeWe.clientWidth,ot=We.scrollHeight>We.clientHeight;if(fe&&st||ye&&ot){if(ye&&he&&Be){e:for(var Lt=ae.target,dn=Te.view;Lt!=We;Lt=Lt.parentNode)for(var Rt=0;Rt=0&&Jt(ie,fe.to())<=0)return ge}return-1};var mr=function(ie,ae){this.anchor=ie,this.head=ae};mr.prototype.from=function(){return qn(this.anchor,this.head)},mr.prototype.to=function(){return ui(this.anchor,this.head)},mr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ho(ie,ae,ge){var fe=ie&&ie.options.selectionsMayTouch,ye=ae[ge];ae.sort(function(zn,In){return Jt(zn.from(),In.from())}),ge=kt(ae,ye);for(var Te=1;Te0:ot>=0){var Lt=qn(st.from(),We.from()),dn=ui(st.to(),We.to()),Rt=st.empty()?We.from()==We.head:st.from()==st.head;Te<=ge&&--ge,ae.splice(--Te,2,new mr(Rt?dn:Lt,Rt?Lt:dn))}}return new Eo(ae,ge)}function Vo(ie,ae){return new Eo([new mr(ie,ae||ie)],0)}function wa(ie){return ie.text?Wt(ie.from.line+ie.text.length-1,ft(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function sa(ie,ae){if(Jt(ie,ae.from)<0)return ie;if(Jt(ie,ae.to)<=0)return wa(ae);var ge=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,fe=ie.ch;return ie.line==ae.to.line&&(fe+=wa(ae).ch-ae.to.ch),Wt(ge,fe)}function os(ie,ae){for(var ge=[],fe=0;fe1&&ie.remove(st.line+1,Ci-1),ie.insert(st.line+1,vr)}Di(ie,"change",ie,ae)}function Ms(ie,ae,ge){function fe(ye,Te,We){if(ye.linked)for(var st=0;st1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),ft(ie.done)}function ha(ie,ae,ge,fe){var ye=ie.history;ye.undone.length=0;var Te=+new Date,We,st;if((ye.lastOp==fe||ye.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&ye.lastModTime>Te-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(We=_o(ye,ye.lastOp==fe)))st=ft(We.changes),Jt(ae.from,ae.to)==0&&Jt(ae.from,st.to)==0?st.to=wa(ae):We.changes.push(ya(ie,ae));else{var ot=ft(ye.done);for((!ot||!ot.ranges)&&Ns(ie.sel,ye.done),We={changes:[ya(ie,ae)],generation:ye.generation},ye.done.push(We);ye.done.length>ye.undoDepth;)ye.done.shift(),ye.done[0].ranges||ye.done.shift()}ye.done.push(ge),ye.generation=++ye.maxGeneration,ye.lastModTime=ye.lastSelTime=Te,ye.lastOp=ye.lastSelOp=fe,ye.lastOrigin=ye.lastSelOrigin=ae.origin,st||pn(ie,"historyAdded")}function ca(ie,ae,ge,fe){var ye=ae.charAt(0);return ye=="*"||ye=="+"&&ge.ranges.length==fe.ranges.length&&ge.somethingSelected()==fe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Vs(ie,ae,ge,fe){var ye=ie.history,Te=fe&&fe.origin;ge==ye.lastSelOp||Te&&ye.lastSelOrigin==Te&&(ye.lastModTime==ye.lastSelTime&&ye.lastOrigin==Te||ca(ie,Te,ft(ye.done),ae))?ye.done[ye.done.length-1]=ae:Ns(ae,ye.done),ye.lastSelTime=+new Date,ye.lastSelOrigin=Te,ye.lastSelOp=ge,fe&&fe.clearRedo!==!1&&eo(ye.undone)}function Ns(ie,ae){var ge=ft(ae);ge&&ge.ranges&&ge.equals(ie)||ae.push(ie)}function hl(ie,ae,ge,fe){var ye=ae["spans_"+ie.id],Te=0;ie.iter(Math.max(ie.first,ge),Math.min(ie.first+ie.size,fe),function(We){We.markedSpans&&((ye||(ye=ae["spans_"+ie.id]={}))[Te]=We.markedSpans),++Te})}function Ca(ie){if(!ie)return null;for(var ae,ge=0;ge-1&&(ft(st)[Rt]=Lt[Rt],delete Lt[Rt])}}return fe}function fh(ie,ae,ge,fe){if(fe){var ye=ie.anchor;if(ge){var Te=Jt(ae,ye)<0;Te!=Jt(ge,ye)<0?(ye=ae,ae=ge):Te!=Jt(ae,ge)<0&&(ae=ge)}return new mr(ye,ae)}else return new mr(ge||ae,ae)}function Ea(ie,ae,ge,fe,ye){ye==null&&(ye=ie.cm&&(ie.cm.display.shift||ie.extend)),Za(ie,new Eo([fh(ie.sel.primary(),ae,ge,ye)],0),fe)}function Ta(ie,ae,ge){for(var fe=[],ye=ie.cm&&(ie.cm.display.shift||ie.extend),Te=0;Te=ae.ch:st.to>ae.ch))){if(ye&&(pn(ot,"beforeCursorEnter"),ot.explicitlyCleared))if(Te.markedSpans){--We;continue}else break;if(!ot.atomic)continue;if(ge){var Rt=ot.find(fe<0?1:-1),zn=void 0;if((fe<0?dn:Lt)&&(Rt=su(ie,Rt,-fe,Rt&&Rt.line==ae.line?Te:null)),Rt&&Rt.line==ae.line&&(zn=Jt(Rt,ge))&&(fe<0?zn<0:zn>0))return wu(ie,Rt,ae,fe,ye)}var In=ot.find(fe<0?-1:1);return(fe<0?Lt:dn)&&(In=su(ie,In,fe,In.line==ae.line?Te:null)),In?wu(ie,In,ae,fe,ye):null}}return ae}function Cu(ie,ae,ge,fe,ye){var Te=fe||1,We=wu(ie,ae,ge,Te,ye)||!ye&&wu(ie,ae,ge,Te,!0)||wu(ie,ae,ge,-Te,ye)||!ye&&wu(ie,ae,ge,-Te,!0);return We||(ie.cantEdit=!0,Wt(ie.first,0))}function su(ie,ae,ge,fe){return ge<0&&ae.ch==0?ae.line>ie.first?li(ie,Wt(ae.line-1)):null:ge>0&&ae.ch==(fe||Vt(ie,ae.line)).text.length?ae.line=0;--ye)Ha(ie,{from:fe[ye].from,to:fe[ye].to,text:ye?[""]:ae.text,origin:ae.origin});else Ha(ie,ae)}}function Ha(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Jt(ae.from,ae.to)==0)){var ge=os(ie,ae);ha(ie,ae,ge,ie.cm?ie.cm.curOp.id:NaN),Eu(ie,ae,ge,qi(ie,ae));var fe=[];Ms(ie,function(ye,Te){!Te&&kt(fe,ye.history)==-1&&(Ua(ye.history,ae),fe.push(ye.history)),Eu(ye,ae,null,qi(ye,ae))})}}function lu(ie,ae,ge){var fe=ie.cm&&ie.cm.state.suppressEdits;if(!(fe&&!ge)){for(var ye=ie.history,Te,We=ie.sel,st=ae=="undo"?ye.done:ye.undone,ot=ae=="undo"?ye.undone:ye.done,Lt=0;Lt=0;--In){var Ci=zn(In);if(Ci)return Ci.v}}}}function kh(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Eo(En(ie.sel.ranges,function(ye){return new mr(Wt(ye.anchor.line+ae,ye.anchor.ch),Wt(ye.head.line+ae,ye.head.ch))}),ie.sel.primIndex),ie.cm)){Ar(ie.cm,ie.first,ie.first-ae,ae);for(var ge=ie.cm.display,fe=ge.viewFrom;feie.lastLine())){if(ae.from.lineTe&&(ae={from:ae.from,to:Wt(Te,Vt(ie,Te).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=on(ie,ae.from,ae.to),ge||(ge=os(ie,ae)),ie.cm?th(ie.cm,ae,fe):Va(ie,ae,fe),zs(ie,ge,Bt),ie.cantEdit&&Cu(ie,Wt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function th(ie,ae,ge){var fe=ie.doc,ye=ie.display,Te=ae.from,We=ae.to,st=!1,ot=Te.line;ie.options.lineWrapping||(ot=yt(jr(Vt(fe,Te.line))),fe.iter(ot,We.line+1,function(In){if(In==ye.maxLine)return st=!0,!0})),fe.sel.contains(ae.from,ae.to)>-1&&ai(ie),Va(fe,ae,ge,ho(ie)),ie.options.lineWrapping||(fe.iter(ot,Te.line+ae.text.length,function(In){var Ci=ua(In);Ci>ye.maxLineLength&&(ye.maxLine=In,ye.maxLineLength=Ci,ye.maxLineChanged=!0,st=!1)}),st&&(ie.curOp.updateMaxLine=!0)),rr(fe,Te.line),Qn(ie,400);var Lt=ae.text.length-(We.line-Te.line)-1;ae.full?Ar(ie):Te.line==We.line&&ae.text.length==1&&!as(ie.doc,ae)?or(ie,Te.line,"text"):Ar(ie,Te.line,We.line+1,Lt);var dn=Wn(ie,"changes"),Rt=Wn(ie,"change");if(Rt||dn){var zn={from:Te,to:We,text:ae.text,removed:ae.removed,origin:ae.origin};Rt&&Di(ie,"change",ie,zn),dn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(zn)}ie.display.selForContextMenu=null}function gh(ie,ae,ge,fe,ye){var Te;fe||(fe=ge),Jt(fe,ge)<0&&(Te=[fe,ge],ge=Te[0],fe=Te[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),fs(ie,{from:ge,to:fe,text:ae,origin:ye})}function Xl(ie,ae,ge,fe){ge1||!(this.children[0]instanceof Ya))){var st=[];this.collapse(st),this.children=[new Ya(st)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae50){for(var We=ye.lines.length%25+25,st=We;st10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ge){for(var fe=0;feie.display.maxLineLength&&(ie.display.maxLine=Lt,ie.display.maxLineLength=dn,ie.display.maxLineChanged=!0)}fe!=null&&ie&&this.collapsed&&Ar(ie,fe,ye+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&au(ie.doc)),ie&&Di(ie,"markerCleared",ie,this,fe,ye),ae&&Sr(ie),this.parent&&this.parent.clear()}},Qt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ge,fe,ye=0;ye0||We==0&&Te.clearWhenEmpty!==!1)return Te;if(Te.replacedWith&&(Te.collapsed=!0,Te.widgetNode=gt("span",[Te.replacedWith],"CodeMirror-widget"),fe.handleMouseEvents||Te.widgetNode.setAttribute("cm-ignore-events","true"),fe.insertLeft&&(Te.widgetNode.insertLeft=!0)),Te.collapsed){if(fo(ie,ae.line,ae,ge,Te)||ae.line!=ge.line&&fo(ie,ge.line,ae,ge,Te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}Te.addToHistory&&ha(ie,{from:ae,to:ge,origin:"markText"},ie.sel,NaN);var st=ae.line,ot=ie.cm,Lt;if(ie.iter(st,ge.line+1,function(Rt){ot&&Te.collapsed&&!ot.options.lineWrapping&&jr(Rt)==ot.display.maxLine&&(Lt=!0),Te.collapsed&&st!=ae.line&&An(Rt,0),Po(Rt,new Zr(Te,st==ae.line?ae.ch:null,st==ge.line?ge.ch:null)),++st}),Te.collapsed&&ie.iter(ae.line,ge.line+1,function(Rt){Xn(ie,Rt)&&An(Rt,0)}),Te.clearOnEnter&&$t(Te,"beforeCursorEnter",function(){return Te.clear()}),Te.readOnly&&(Jr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Te.collapsed&&(Te.id=++pf,Te.atomic=!0),ot){if(Lt&&(ot.curOp.updateMaxLine=!0),Te.collapsed)Ar(ot,ae.line,ge.line+1);else if(Te.className||Te.startStyle||Te.endStyle||Te.css||Te.attributes||Te.title)for(var dn=ae.line;dn<=ge.line;dn++)or(ot,dn,"text");Te.atomic&&au(ot.doc),Di(ot,"markerAdded",ot,Te)}return Te}var ph=function(ie,ae){this.markers=ie,this.primary=ae;for(var ge=0;ge=0;ot--)fs(this,fe[ot]);st?ra(this,st):this.cm&&ru(this.cm)}),undo:Fn(function(){lu(this,"undo")}),redo:Fn(function(){lu(this,"redo")}),undoSelection:Fn(function(){lu(this,"undo",!0)}),redoSelection:Fn(function(){lu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ge=0,fe=0;fe=ie.ch)&&ae.push(ye.marker.parent||ye.marker)}return ae},findMarks:function(ie,ae,ge){ie=li(this,ie),ae=li(this,ae);var fe=[],ye=ie.line;return this.iter(ie.line,ae.line+1,function(Te){var We=Te.markedSpans;if(We)for(var st=0;st=ot.to||ot.from==null&&ye!=ie.line||ot.from!=null&&ye==ae.line&&ot.from>=ae.ch)&&(!ge||ge(ot.marker))&&fe.push(ot.marker.parent||ot.marker)}++ye}),fe},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ge=ae.markedSpans;if(ge)for(var fe=0;feie)return ae=ie,!0;ie-=Te,++ge}),li(this,Wt(ge,ae))},indexFromPos:function(ie){ie=li(this,ie);var ae=ie.ch;if(ie.lineae&&(ae=ie.from),ie.to!=null&&ie.to-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var dn=ie.dataTransfer.getData("Text");if(dn){var Rt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Rt=ae.listSelections()),zs(ae.doc,Vo(ge,ge)),Rt)for(var zn=0;zn=0;st--)gh(ie.doc,"",fe[st].from,fe[st].to,"+delete");ru(ie)})}function Wd(ie,ae,ge){var fe=qe(ie.text,ae+ge,ge);return fe<0||fe>ie.text.length?null:fe}function As(ie,ae,ge){var fe=Wd(ie,ae.ch,ge);return fe==null?null:new Wt(ae.line,fe,ge<0?"after":"before")}function ba(ie,ae,ge,fe,ye){if(ie){ae.doc.direction=="rtl"&&(ye=-ye);var Te=un(ge,ae.doc.direction);if(Te){var We=ye<0?ft(Te):Te[0],st=ye<0==(We.level==1),ot=st?"after":"before",Lt;if(We.level>0||ae.doc.direction=="rtl"){var dn=Qu(ae,ge);Lt=ye<0?ge.text.length-1:0;var Rt=Rl(ae,dn,Lt).top;Lt=Ue(function(zn){return Rl(ae,dn,zn).top==Rt},ye<0==(We.level==1)?We.from:We.to-1,Lt),ot=="before"&&(Lt=Wd(ge,Lt,1))}else Lt=ye<0?We.to:We.from;return new Wt(fe,Lt,ot)}}return new Wt(fe,ye<0?ge.text.length:0,ye<0?"before":"after")}function ns(ie,ae,ge,fe){var ye=un(ae,ie.doc.direction);if(!ye)return As(ae,ge,fe);ge.ch>=ae.text.length?(ge.ch=ae.text.length,ge.sticky="before"):ge.ch<=0&&(ge.ch=0,ge.sticky="after");var Te=lt(ye,ge.ch,ge.sticky),We=ye[Te];if(ie.doc.direction=="ltr"&&We.level%2==0&&(fe>0?We.to>ge.ch:We.from=We.from&&zn>=dn.begin)){var In=Rt?"before":"after";return new Wt(ge.line,zn,In)}}var Ci=function(vr,Kr,Br){for(var io=function(Ss,ol){return ol?new Wt(ge.line,st(Ss,1),"before"):new Wt(ge.line,Ss,"after")};vr>=0&&vr0==(Wo.level!=1),oa=Lr?Br.begin:st(Br.end,-1);if(Wo.from<=oa&&oa0?dn.end:st(dn.begin,-1);return Zi!=null&&!(fe>0&&Zi==ae.text.length)&&(Ti=Ci(fe>0?0:ye.length-1,fe,Lt(Zi)),Ti)?Ti:null}var il={selectAll:La,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Bt)},killLine:function(ie){return Ll(ie,function(ae){if(ae.empty()){var ge=Vt(ie.doc,ae.head.line).text.length;return ae.head.ch==ge&&ae.head.line0)ye=new Wt(ye.line,ye.ch+1),ie.replaceRange(Te.charAt(ye.ch-1)+Te.charAt(ye.ch-2),Wt(ye.line,ye.ch-2),ye,"+transpose");else if(ye.line>ie.doc.first){var We=Vt(ie.doc,ye.line-1).text;We&&(ye=new Wt(ye.line,1),ie.replaceRange(Te.charAt(0)+ie.doc.lineSeparator()+We.charAt(We.length-1),Wt(ye.line-1,We.length-1),ye,"+transpose"))}}ge.push(new mr(ye,ye))}ie.setSelections(ge)})},newlineAndIndent:function(ie){return Ht(ie,function(){for(var ae=ie.listSelections(),ge=ae.length-1;ge>=0;ge--)ie.replaceRange(ie.doc.lineSeparator(),ae[ge].anchor,ae[ge].head,"+input");ae=ie.listSelections();for(var fe=0;feie&&Jt(ae,this.pos)==0&&ge==this.button};var $d,hd;function Xg(ie,ae){var ge=+new Date;return hd&&hd.compare(ge,ie,ae)?($d=hd=null,"triple"):$d&&$d.compare(ge,ie,ae)?(hd=new Yg(ge,ie,ae),$d=null,"double"):($d=new Yg(ge,ie,ae),hd=null,"single")}function Dh(ie){var ae=this,ge=ae.display;if(!(Yn(ae,ie)||ge.activeTouch&&ge.input.supportsTouch())){if(ge.input.ensurePolled(),ge.shift=ie.shiftKey,vs(ge,ie)){Be||(ge.scroller.draggable=!1,setTimeout(function(){return ge.scroller.draggable=!0},100));return}if(!eg(ae,ie)){var fe=$i(ae,ie),ye=Un(ie),Te=fe?Xg(fe,ye):"single";window.focus(),ye==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(fe&&Jg(ae,ye,fe,Te,ie))&&(ye==1?fe?om(ae,fe,Te,ie):Ji(ie)==ge.scroller&&ii(ie):ye==2?(fe&&Ea(ae.doc,fe),setTimeout(function(){return ge.input.focus()},20)):ye==3&&(be?ae.display.input.onContextMenu(ie):br(ae)))}}}function Jg(ie,ae,ge,fe,ye){var Te="Click";return fe=="double"?Te="Double"+Te:fe=="triple"&&(Te="Triple"+Te),Te=(ae==1?"Left":ae==2?"Middle":"Right")+Te,Ah(ie,Zd(Te,ye),ye,function(We){if(typeof We=="string"&&(We=il[We]),!We)return!1;var st=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),st=We(ie,ge)!=sn}finally{ie.state.suppressEdits=!1}return st})}function Qf(ie,ae,ge){var fe=ie.getOption("configureMouse"),ye=fe?fe(ie,ae,ge):{};if(ye.unit==null){var Te=se?ge.shiftKey&&ge.metaKey:ge.altKey;ye.unit=Te?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(ye.extend==null||ie.doc.extend)&&(ye.extend=ie.doc.extend||ge.shiftKey),ye.addNew==null&&(ye.addNew=he?ge.metaKey:ge.ctrlKey),ye.moveOnDrag==null&&(ye.moveOnDrag=!(he?ge.altKey:ge.ctrlKey)),ye}function om(ie,ae,ge,fe){Ze?setTimeout(Zt(Yo,ie),0):ie.curOp.focus=Qe();var ye=Qf(ie,ge,fe),Te=ie.doc.sel,We;ie.options.dragDrop&&$n&&!ie.isReadOnly()&&ge=="single"&&(We=Te.contains(ae))>-1&&(Jt((We=Te.ranges[We]).from(),ae)<0||ae.xRel>0)&&(Jt(We.to(),ae)>0||ae.xRel<0)?Qg(ie,fe,ae,ye):tv(ie,fe,ae,ye)}function Qg(ie,ae,ge,fe){var ye=ie.display,Te=!1,We=Mn(ie,function(Lt){Be&&(ye.scroller.draggable=!1),ie.state.draggingText=!1,bn(ye.wrapper.ownerDocument,"mouseup",We),bn(ye.wrapper.ownerDocument,"mousemove",st),bn(ye.scroller,"dragstart",ot),bn(ye.scroller,"drop",We),Te||(ii(Lt),fe.addNew||Ea(ie.doc,ge,null,null,fe.extend),Be&&!Et||Ze&&Ke==9?setTimeout(function(){ye.wrapper.ownerDocument.body.focus({preventScroll:!0}),ye.input.focus()},20):ye.input.focus())}),st=function(Lt){Te=Te||Math.abs(ae.clientX-Lt.clientX)+Math.abs(ae.clientY-Lt.clientY)>=10},ot=function(){return Te=!0};Be&&(ye.scroller.draggable=!0),ie.state.draggingText=We,We.copy=!fe.moveOnDrag,ye.scroller.dragDrop&&ye.scroller.dragDrop(),$t(ye.wrapper.ownerDocument,"mouseup",We),$t(ye.wrapper.ownerDocument,"mousemove",st),$t(ye.scroller,"dragstart",ot),$t(ye.scroller,"drop",We),br(ie),setTimeout(function(){return ye.input.focus()},20)}function qg(ie,ae,ge){if(ge=="char")return new mr(ae,ae);if(ge=="word")return ie.findWordAt(ae);if(ge=="line")return new mr(Wt(ae.line,0),li(ie.doc,Wt(ae.line+1,0)));var fe=ge(ie,ae);return new mr(fe.from,fe.to)}function tv(ie,ae,ge,fe){var ye=ie.display,Te=ie.doc;ii(ae);var We,st,ot=Te.sel,Lt=ot.ranges;if(fe.addNew&&!fe.extend?(st=Te.sel.contains(ge),st>-1?We=Lt[st]:We=new mr(ge,ge)):(We=Te.sel.primary(),st=Te.sel.primIndex),fe.unit=="rectangle")fe.addNew||(We=new mr(ge,ge)),ge=$i(ie,ae,!0,!0),st=-1;else{var dn=qg(ie,ge,fe.unit);fe.extend?We=fh(We,dn.anchor,dn.head,fe.extend):We=dn}fe.addNew?st==-1?(st=Lt.length,Za(Te,Ho(ie,Lt.concat([We]),st),{scroll:!1,origin:"*mouse"})):Lt.length>1&&Lt[st].empty()&&fe.unit=="char"&&!fe.extend?(Za(Te,Ho(ie,Lt.slice(0,st).concat(Lt.slice(st+1)),0),{scroll:!1,origin:"*mouse"}),ot=Te.sel):ja(Te,st,We,Gt):(st=0,Za(Te,new Eo([We],0),Gt),ot=Te.sel);var Rt=ge;function zn(Br){if(Jt(Rt,Br)!=0)if(Rt=Br,fe.unit=="rectangle"){for(var io=[],Wo=ie.options.tabSize,Lr=ut(Vt(Te,ge.line).text,ge.ch,Wo),oa=ut(Vt(Te,Br.line).text,Br.ch,Wo),Ss=Math.min(Lr,oa),ol=Math.max(Lr,oa),Ls=Math.min(ge.line,Br.line),du=Math.min(ie.lastLine(),Math.max(ge.line,Br.line));Ls<=du;Ls++){var Zl=Vt(Te,Ls).text,qs=Bn(Zl,Ss,Wo);Ss==ol?io.push(new mr(Wt(Ls,qs),Wt(Ls,qs))):Zl.length>qs&&io.push(new mr(Wt(Ls,qs),Wt(Ls,Bn(Zl,ol,Wo))))}io.length||io.push(new mr(ge,ge)),Za(Te,Ho(ie,ot.ranges.slice(0,st).concat(io),st),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Br)}else{var Lu=We,Fl=qg(ie,Br,fe.unit),el=Lu.anchor,Da;Jt(Fl.anchor,el)>0?(Da=Fl.head,el=qn(Lu.from(),Fl.anchor)):(Da=Fl.anchor,el=ui(Lu.to(),Fl.head));var Ts=ot.ranges.slice(0);Ts[st]=am(ie,new mr(li(Te,el),Da)),Za(Te,Ho(ie,Ts,st),Gt)}}var In=ye.wrapper.getBoundingClientRect(),Ci=0;function Ti(Br){var io=++Ci,Wo=$i(ie,Br,!0,fe.unit=="rectangle");if(Wo)if(Jt(Wo,Rt)!=0){ie.curOp.focus=Qe(),zn(Wo);var Lr=Vr(ye,Te);(Wo.line>=Lr.to||Wo.lineIn.bottom?20:0;oa&&setTimeout(Mn(ie,function(){Ci==io&&(ye.scroller.scrollTop+=oa,Ti(Br))}),50)}}function Zi(Br){ie.state.selectingText=!1,Ci=1/0,Br&&(ii(Br),ye.input.focus()),bn(ye.wrapper.ownerDocument,"mousemove",vr),bn(ye.wrapper.ownerDocument,"mouseup",Kr),Te.history.lastSelOrigin=null}var vr=Mn(ie,function(Br){Br.buttons===0||!Un(Br)?Zi(Br):Ti(Br)}),Kr=Mn(ie,Zi);ie.state.selectingText=Kr,$t(ye.wrapper.ownerDocument,"mousemove",vr),$t(ye.wrapper.ownerDocument,"mouseup",Kr)}function am(ie,ae){var ge=ae.anchor,fe=ae.head,ye=Vt(ie.doc,ge.line);if(Jt(ge,fe)==0&&ge.sticky==fe.sticky)return ae;var Te=un(ye);if(!Te)return ae;var We=lt(Te,ge.ch,ge.sticky),st=Te[We];if(st.from!=ge.ch&&st.to!=ge.ch)return ae;var ot=We+(st.from==ge.ch==(st.level!=1)?0:1);if(ot==0||ot==Te.length)return ae;var Lt;if(fe.line!=ge.line)Lt=(fe.line-ge.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var dn=lt(Te,fe.ch,fe.sticky),Rt=dn-We||(fe.ch-ge.ch)*(st.level==1?-1:1);dn==ot-1||dn==ot?Lt=Rt<0:Lt=Rt>0}var zn=Te[ot+(Lt?-1:0)],In=Lt==(zn.level==1),Ci=In?zn.from:zn.to,Ti=In?"after":"before";return ge.ch==Ci&&ge.sticky==Ti?ae:new mr(new Wt(ge.line,Ci,Ti),fe)}function qf(ie,ae,ge,fe){var ye,Te;if(ae.touches)ye=ae.touches[0].clientX,Te=ae.touches[0].clientY;else try{ye=ae.clientX,Te=ae.clientY}catch(zn){return!1}if(ye>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;fe&&ii(ae);var We=ie.display,st=We.lineDiv.getBoundingClientRect();if(Te>st.bottom||!Wn(ie,ge))return gi(ae);Te-=st.top-We.viewOffset;for(var ot=0;ot=ye){var dn=cn(ie.doc,Te),Rt=ie.display.gutterSpecs[ot];return pn(ie,ge,ie,dn,Rt.className,ae),gi(ae)}}}function eg(ie,ae){return qf(ie,ae,"gutterClick",!0)}function tg(ie,ae){vs(ie.display,ae)||sm(ie,ae)||Yn(ie,ae,"contextmenu")||be||ie.display.input.onContextMenu(ae)}function sm(ie,ae){return Wn(ie,"gutterContextMenu")?qf(ie,ae,"gutterContextMenu",!1):!1}function ng(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),es(ie)}var Dc={toString:function(){return"CodeMirror.Init"}},ep={},xf={};function lm(ie){var ae=ie.optionHandlers;function ge(fe,ye,Te,We){ie.defaults[fe]=ye,Te&&(ae[fe]=We?function(st,ot,Lt){Lt!=Dc&&Te(st,ot,Lt)}:Te)}ie.defineOption=ge,ie.Init=Dc,ge("value","",function(fe,ye){return fe.setValue(ye)},!0),ge("mode",null,function(fe,ye){fe.doc.modeOption=ye,oo(fe)},!0),ge("indentUnit",2,oo,!0),ge("indentWithTabs",!1),ge("smartIndent",!0),ge("tabSize",4,function(fe){pa(fe),es(fe),Ar(fe)},!0),ge("lineSeparator",null,function(fe,ye){if(fe.doc.lineSep=ye,!!ye){var Te=[],We=fe.doc.first;fe.doc.iter(function(ot){for(var Lt=0;;){var dn=ot.text.indexOf(ye,Lt);if(dn==-1)break;Lt=dn+ye.length,Te.push(Wt(We,dn))}We++});for(var st=Te.length-1;st>=0;st--)gh(fe.doc,ye,Te[st],Wt(Te[st].line,Te[st].ch+ye.length))}}),ge("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(fe,ye,Te){fe.state.specialChars=new RegExp(ye.source+(ye.test(" ")?"":"| "),"g"),Te!=Dc&&fe.refresh()}),ge("specialCharPlaceholder",Oa,function(fe){return fe.refresh()},!0),ge("electricChars",!0),ge("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ge("spellcheck",!1,function(fe,ye){return fe.getInputField().spellcheck=ye},!0),ge("autocorrect",!1,function(fe,ye){return fe.getInputField().autocorrect=ye},!0),ge("autocapitalize",!1,function(fe,ye){return fe.getInputField().autocapitalize=ye},!0),ge("rtlMoveVisually",!de),ge("wholeLineUpdateBefore",!0),ge("theme","default",function(fe){ng(fe),Pr(fe)},!0),ge("keyMap","default",function(fe,ye,Te){var We=Vh(ye),st=Te!=Dc&&Vh(Te);st&&st.detach&&st.detach(fe,We),We.attach&&We.attach(fe,st||null)}),ge("extraKeys",null),ge("configureMouse",null),ge("lineWrapping",!1,um,!0),ge("gutters",[],function(fe,ye){fe.display.gutterSpecs=Ur(ye,fe.options.lineNumbers),Pr(fe)},!0),ge("fixedGutter",!0,function(fe,ye){fe.display.gutters.style.left=ye?Go(fe.display)+"px":"0",fe.refresh()},!0),ge("coverGutterNextToScrollbar",!1,function(fe){return dh(fe)},!0),ge("scrollbarStyle","native",function(fe){Bc(fe),dh(fe),fe.display.scrollbars.setScrollTop(fe.doc.scrollTop),fe.display.scrollbars.setScrollLeft(fe.doc.scrollLeft)},!0),ge("lineNumbers",!1,function(fe,ye){fe.display.gutterSpecs=Ur(fe.options.gutters,ye),Pr(fe)},!0),ge("firstLineNumber",1,Pr,!0),ge("lineNumberFormatter",function(fe){return fe},Pr,!0),ge("showCursorWhenSelecting",!1,cr,!0),ge("resetSelectionOnContextMenu",!0),ge("lineWiseCopyCut",!0),ge("pasteLinesPerSelection",!0),ge("selectionsMayTouch",!1),ge("readOnly",!1,function(fe,ye){ye=="nocursor"&&(Bs(fe),fe.display.input.blur()),fe.display.input.readOnlyChanged(ye)}),ge("screenReaderLabel",null,function(fe,ye){ye=ye===""?null:ye,fe.display.input.screenReaderLabelChanged(ye)}),ge("disableInput",!1,function(fe,ye){ye||fe.display.input.reset()},!0),ge("dragDrop",!0,ig),ge("allowDropFileTypes",null),ge("cursorBlinkRate",530),ge("cursorScrollMargin",0),ge("cursorHeight",1,cr,!0),ge("singleCursorHeightPerLine",!0,cr,!0),ge("workTime",100),ge("workDelay",100),ge("flattenSpans",!0,pa,!0),ge("addModeClass",!1,pa,!0),ge("pollInterval",100),ge("undoDepth",200,function(fe,ye){return fe.doc.history.undoDepth=ye}),ge("historyEventDelay",1250),ge("viewportMargin",10,function(fe){return fe.refresh()},!0),ge("maxHighlightLength",1e4,pa,!0),ge("moveInputWithCursor",!0,function(fe,ye){ye||fe.display.input.resetPosition()}),ge("tabindex",null,function(fe,ye){return fe.display.input.getField().tabIndex=ye||""}),ge("autofocus",null),ge("direction","ltr",function(fe,ye){return fe.doc.setDirection(ye)},!0),ge("phrases",null)}function ig(ie,ae,ge){var fe=ge&&ge!=Dc;if(!ae!=!fe){var ye=ie.display.dragFunctions,Te=ae?$t:bn;Te(ie.display.scroller,"dragstart",ye.start),Te(ie.display.scroller,"dragenter",ye.enter),Te(ie.display.scroller,"dragover",ye.over),Te(ie.display.scroller,"dragleave",ye.leave),Te(ie.display.scroller,"drop",ye.drop)}}function um(ie){ie.options.lineWrapping?(bt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),No(ie)),_i(ie),Ar(ie),es(ie),setTimeout(function(){return dh(ie)},100)}function Ba(ie,ae){var ge=this;if(!(this instanceof Ba))return new Ba(ie,ae);this.options=ae=ae?Yt(ae):{},Yt(ep,ae,!1);var fe=ae.value;typeof fe=="string"?fe=new Js(fe,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(fe.modeOption=ae.mode),this.doc=fe;var ye=new Ba.inputStyles[ae.inputStyle](this),Te=this.display=new Wr(ie,fe,ye,ae);Te.wrapper.CodeMirror=this,ng(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bc(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 Ge,keySeq:null,specialChars:null},ae.autofocus&&!ee&&Te.input.focus(),Ze&&Ke<11&&setTimeout(function(){return ge.display.input.reset(!0)},20),Kd(this),uu(),Zn(this),this.curOp.forceUpdate=!0,bo(this,fe),ae.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ge.hasFocus()&&!ge.state.focused&&Oo(ge)},20):Bs(this);for(var We in xf)xf.hasOwnProperty(We)&&xf[We](this,ae[We],Dc);pr(this),ae.finishInit&&ae.finishInit(this);for(var st=0;st20*20}$t(ae.scroller,"touchstart",function(ot){if(!Yn(ie,ot)&&!Te(ot)&&!eg(ie,ot)){ae.input.ensurePolled(),clearTimeout(ge);var Lt=+new Date;ae.activeTouch={start:Lt,moved:!1,prev:Lt-fe.end<=300?fe:null},ot.touches.length==1&&(ae.activeTouch.left=ot.touches[0].pageX,ae.activeTouch.top=ot.touches[0].pageY)}}),$t(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),$t(ae.scroller,"touchend",function(ot){var Lt=ae.activeTouch;if(Lt&&!vs(ae,ot)&&Lt.left!=null&&!Lt.moved&&new Date-Lt.start<300){var dn=ie.coordsChar(ae.activeTouch,"page"),Rt;!Lt.prev||We(Lt,Lt.prev)?Rt=new mr(dn,dn):!Lt.prev.prev||We(Lt,Lt.prev.prev)?Rt=ie.findWordAt(dn):Rt=new mr(Wt(dn.line,0),li(ie.doc,Wt(dn.line+1,0))),ie.setSelection(Rt.anchor,Rt.head),ie.focus(),ii(ot)}ye()}),$t(ae.scroller,"touchcancel",ye),$t(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Nh(ie,ae.scroller.scrollTop),_u(ie,ae.scroller.scrollLeft,!0),pn(ie,"scroll",ie))}),$t(ae.scroller,"mousewheel",function(ot){return xo(ie,ot)}),$t(ae.scroller,"DOMMouseScroll",function(ot){return xo(ie,ot)}),$t(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ot){Yn(ie,ot)||Ri(ot)},over:function(ot){Yn(ie,ot)||(vf(ie,ot),Ri(ot))},start:function(ot){return sd(ie,ot)},drop:Mn(ie,Rd),leave:function(ot){Yn(ie,ot)||Uf(ie)}};var st=ae.input.getField();$t(st,"keyup",function(ot){return Ug.call(ie,ot)}),$t(st,"keydown",Mn(ie,Kg)),$t(st,"keypress",Mn(ie,Th)),$t(st,"focus",function(ot){return Oo(ie,ot)}),$t(st,"blur",function(ot){return Bs(ie,ot)})}var cd=[];Ba.defineInitHook=function(ie){return cd.push(ie)};function rl(ie,ae,ge,fe){var ye=ie.doc,Te;ge==null&&(ge="add"),ge=="smart"&&(ye.mode.indent?Te=ir(ie,ae).state:ge="prev");var We=ie.options.tabSize,st=Vt(ye,ae),ot=ut(st.text,null,We);st.stateAfter&&(st.stateAfter=null);var Lt=st.text.match(/^\s*/)[0],dn;if(!fe&&!/\S/.test(st.text))dn=0,ge="not";else if(ge=="smart"&&(dn=ye.mode.indent(Te,st.text.slice(Lt.length),st.text),dn==sn||dn>150)){if(!fe)return;ge="prev"}ge=="prev"?ae>ye.first?dn=ut(Vt(ye,ae-1).text,null,We):dn=0:ge=="add"?dn=ot+ie.options.indentUnit:ge=="subtract"?dn=ot-ie.options.indentUnit:typeof ge=="number"&&(dn=ot+ge),dn=Math.max(0,dn);var Rt="",zn=0;if(ie.options.indentWithTabs)for(var In=Math.floor(dn/We);In;--In)zn+=We,Rt+=" ";if(znWe,ot=ji(ae),Lt=null;if(st&&fe.ranges.length>1)if(cu&&cu.text.join(` `)==ae){if(fe.ranges.length%cu.text.length==0){Lt=[];for(var dn=0;dn=0;zn--){var In=fe.ranges[zn],Ci=In.from(),Ti=In.to();In.empty()&&(ge&&ge>0?Ci=Wt(Ci.line,Ci.ch-ge):ie.state.overwrite&&!st?Ti=Wt(Ti.line,Math.min(Vt(Te,Ti.line).text.length,Ti.ch+ft(ot).length)):st&&cu&&cu.lineWise&&cu.text.join(` `)==ot.join(` `)&&(Ci=Ti=Wt(Ci.line,0)));var Zi={from:Ci,to:Ti,text:Lt?Lt[zn%Lt.length]:ot,origin:ye||(st?"paste":ie.state.cutIncoming>We?"cut":"+input")};fs(ie.doc,Zi),Di(ie,"inputRead",ie,Zi)}ae&&!st&&np(ie,ae),ru(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Rt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function tp(ie,ae){var ge=ie.clipboardData&&ie.clipboardData.getData("Text");if(ge)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Ht(ae,function(){return Pf(ae,ge,0,null,"paste")}),!0}function np(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ge=ie.doc.sel,fe=ge.ranges.length-1;fe>=0;fe--){var ye=ge.ranges[fe];if(!(ye.head.ch>100||fe&&ge.ranges[fe-1].head.line==ye.head.line)){var Te=ie.getModeAt(ye.head),We=!1;if(Te.electricChars){for(var st=0;st-1){We=rl(ie,ye.head.line,"smart");break}}else Te.electricInput&&Te.electricInput.test(Vt(ie.doc,ye.head.line).text.slice(0,ye.head.ch))&&(We=rl(ie,ye.head.line,"smart"));We&&Di(ie,"electricInput",ie,ye.head.line)}}}function ip(ie){for(var ae=[],ge=[],fe=0;feTe&&(rl(this,st.head.line,fe,!0),Te=st.head.line,We==this.doc.sel.primIndex&&ru(this));else{var ot=st.from(),Lt=st.to(),dn=Math.max(Te,ot.line);Te=Math.min(this.lastLine(),Lt.line-(Lt.ch?0:1))+1;for(var Rt=dn;Rt0&&ja(this.doc,We,new mr(ot,zn[We].to()),Bt)}}}),getTokenAt:function(fe,ye){return Ni(this,fe,ye)},getLineTokens:function(fe,ye){return Ni(this,Wt(fe),ye,!0)},getTokenTypeAt:function(fe){fe=li(this.doc,fe);var ye=Dr(this,Vt(this.doc,fe.line)),Te=0,We=(ye.length-1)/2,st=fe.ch,ot;if(st==0)ot=ye[2];else for(;;){var Lt=Te+We>>1;if((Lt?ye[Lt*2-1]:0)>=st)We=Lt;else if(ye[Lt*2+1]ot&&(fe=ot,We=!0),st=Vt(this.doc,fe)}else st=fe;return Ka(this,st,{top:0,left:0},ye||"page",Te||We).top+(We?this.doc.height-wo(st):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return jo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(fe,ye,Te,We,st){var ot=this.display;fe=va(this,li(this.doc,fe));var Lt=fe.bottom,dn=fe.left;if(ye.style.position="absolute",ye.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ye),ot.sizer.appendChild(ye),We=="over")Lt=fe.top;else if(We=="above"||We=="near"){var Rt=Math.max(ot.wrapper.clientHeight,this.doc.height),zn=Math.max(ot.sizer.clientWidth,ot.lineSpace.clientWidth);(We=="above"||fe.bottom+ye.offsetHeight>Rt)&&fe.top>ye.offsetHeight?Lt=fe.top-ye.offsetHeight:fe.bottom+ye.offsetHeight<=Rt&&(Lt=fe.bottom),dn+ye.offsetWidth>zn&&(dn=zn-ye.offsetWidth)}ye.style.top=Lt+"px",ye.style.left=ye.style.right="",st=="right"?(dn=ot.sizer.clientWidth-ye.offsetWidth,ye.style.right="0px"):(st=="left"?dn=0:st=="middle"&&(dn=(ot.sizer.clientWidth-ye.offsetWidth)/2),ye.style.left=dn+"px"),Te&&ju(this,{left:dn,top:Lt,right:dn+ye.offsetWidth,bottom:Lt+ye.offsetHeight})},triggerOnKeyDown:Sn(Kg),triggerOnKeyPress:Sn(Th),triggerOnKeyUp:Ug,triggerOnMouseDown:Sn(Dh),execCommand:function(fe){if(il.hasOwnProperty(fe))return il[fe].call(null,this)},triggerElectric:Sn(function(fe){np(this,fe)}),findPosH:function(fe,ye,Te,We){var st=1;ye<0&&(st=-1,ye=-ye);for(var ot=li(this.doc,fe),Lt=0;Lt0&&dn(Te.charAt(We-1));)--We;for(;st.5||this.options.lineWrapping)&&_i(this),pn(this,"refresh",this)}),swapDoc:Sn(function(fe){var ye=this.doc;return ye.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,fe),es(this),this.display.input.reset(),zu(this,fe.scrollLeft,fe.scrollTop),this.curOp.forceScroll=!0,Di(this,"swapDoc",this,ye),ye}),phrase:function(fe){var ye=this.options.phrases;return ye&&Object.prototype.hasOwnProperty.call(ye,fe)?ye[fe]:fe},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}},Rn(ie),ie.registerHelper=function(fe,ye,Te){ge.hasOwnProperty(fe)||(ge[fe]=ie[fe]={_global:[]}),ge[fe][ye]=Te},ie.registerGlobalHelper=function(fe,ye,Te,We){ie.registerHelper(fe,ye,We),ge[fe]._global.push({pred:Te,val:We})}}function wf(ie,ae,ge,fe,ye){var Te=ae,We=ge,st=Vt(ie,ae.line),ot=ye&&ie.direction=="rtl"?-ge:ge;function Lt(){var Kr=ae.line+ot;return Kr=ie.first+ie.size?!1:(ae=new Wt(Kr,ae.ch,ae.sticky),st=Vt(ie,Kr))}function dn(Kr){var Br;if(fe=="codepoint"){var io=st.text.charCodeAt(ae.ch+(fe>0?0:-1));isNaN(io)?Br=null:Br=new Wt(ae.line,Math.max(0,Math.min(st.text.length,ae.ch+ge*(io>=55296&&io<56320?2:1))),-ge)}else ye?Br=ns(ie.cm,st,ae,ge):Br=As(st,ae,ge);if(Br==null)if(!Kr&&Lt())ae=ba(ye,ie.cm,st,ae.line,ot);else return!1;else ae=Br;return!0}if(fe=="char"||fe=="codepoint")dn();else if(fe=="column")dn(!0);else if(fe=="word"||fe=="group")for(var Rt=null,zn=fe=="group",In=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ci=!0;!(ge<0&&!dn(!Ci));Ci=!1){var Ti=st.text.charAt(ae.ch)||` `,Zi=ke(Ti,In)?"w":zn&&Ti==` `?"n":!zn||/\s/.test(Ti)?null:"p";if(zn&&!Ci&&!Zi&&(Zi="s"),Rt&&Rt!=Zi){ge<0&&(ge=1,dn(),ae.sticky="after");break}if(Zi&&(Rt=Zi),ge>0&&!dn(!Ci))break}var vr=Cu(ie,ae,Te,We,!0);return hi(Te,vr)&&(vr.hitSide=!0),vr}function Ic(ie,ae,ge,fe){var ye=ie.doc,Te=ae.left,We;if(fe=="page"){var st=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ot=Math.max(st-.5*_r(ie.display),3);We=(ge>0?ae.bottom:ae.top)+ge*ot}else fe=="line"&&(We=ge>0?ae.bottom+3:ae.top-3);for(var Lt;Lt=Kt(ie,Te,We),!!Lt.outside;){if(ge<0?We<=0:We>=ye.height){Lt.hitSide=!0;break}We+=ge*5}return Lt}var ss=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ss.prototype.init=function(ie){var ae=this,ge=this,fe=ge.cm,ye=ge.div=ie.lineDiv;rp(ye,fe.options.spellcheck,fe.options.autocorrect,fe.options.autocapitalize);function Te(st){for(var ot=st.target;ot;ot=ot.parentNode){if(ot==ye)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ot.className))break}return!1}$t(ye,"paste",function(st){!Te(st)||Yn(fe,st)||tp(st,fe)||Ke<=11&&setTimeout(Mn(fe,function(){return ae.updateFromDOM()}),20)}),$t(ye,"compositionstart",function(st){ae.composing={data:st.data,done:!1}}),$t(ye,"compositionupdate",function(st){ae.composing||(ae.composing={data:st.data,done:!1})}),$t(ye,"compositionend",function(st){ae.composing&&(st.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),$t(ye,"touchstart",function(){return ge.forceCompositionEnd()}),$t(ye,"input",function(){ae.composing||ae.readFromDOMSoon()});function We(st){if(!(!Te(st)||Yn(fe,st))){if(fe.somethingSelected())dd({lineWise:!1,text:fe.getSelections()}),st.type=="cut"&&fe.replaceSelection("",null,"cut");else if(fe.options.lineWiseCopyCut){var ot=ip(fe);dd({lineWise:!0,text:ot.text}),st.type=="cut"&&fe.operation(function(){fe.setSelections(ot.ranges,0,Bt),fe.replaceSelection("",null,"cut")})}else return;if(st.clipboardData){st.clipboardData.clearData();var Lt=cu.text.join(` `);if(st.clipboardData.setData("Text",Lt),st.clipboardData.getData("Text")==Lt){st.preventDefault();return}}var dn=op(),Rt=dn.firstChild;fe.display.lineSpace.insertBefore(dn,fe.display.lineSpace.firstChild),Rt.value=cu.text.join(` `);var zn=document.activeElement;At(Rt),setTimeout(function(){fe.display.lineSpace.removeChild(dn),zn.focus(),zn==ye&&ge.showPrimarySelection()},50)}}$t(ye,"copy",We),$t(ye,"cut",We)},ss.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},ss.prototype.prepareSelection=function(){var ie=lr(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},ss.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},ss.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ss.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ge=ae.doc.sel.primary(),fe=ge.from(),ye=ge.to();if(ae.display.viewTo==ae.display.viewFrom||fe.line>=ae.display.viewTo||ye.line=ae.display.viewFrom&&rg(ae,fe)||{node:st[0].measure.map[2],offset:0},Lt=ye.lineie.firstLine()&&(fe=Wt(fe.line-1,Vt(ie.doc,fe.line-1).length)),ye.ch==Vt(ie.doc,ye.line).text.length&&ye.lineae.viewTo-1)return!1;var Te,We,st;fe.line==ae.viewFrom||(Te=Tr(ie,fe.line))==0?(We=yt(ae.view[0].line),st=ae.view[0].node):(We=yt(ae.view[Te].line),st=ae.view[Te-1].node.nextSibling);var ot=Tr(ie,ye.line),Lt,dn;if(ot==ae.view.length-1?(Lt=ae.viewTo-1,dn=ae.lineDiv.lastChild):(Lt=yt(ae.view[ot+1].line)-1,dn=ae.view[ot+1].node.previousSibling),!st)return!1;for(var Rt=ie.doc.splitLines(Ud(ie,st,dn,We,Lt)),zn=on(ie.doc,Wt(We,0),Wt(Lt,Vt(ie.doc,Lt).text.length));Rt.length>1&&zn.length>1;)if(ft(Rt)==ft(zn))Rt.pop(),zn.pop(),Lt--;else if(Rt[0]==zn[0])Rt.shift(),zn.shift(),We++;else break;for(var In=0,Ci=0,Ti=Rt[0],Zi=zn[0],vr=Math.min(Ti.length,Zi.length);Infe.ch&&Kr.charCodeAt(Kr.length-Ci-1)==Br.charCodeAt(Br.length-Ci-1);)In--,Ci++;Rt[Rt.length-1]=Kr.slice(0,Kr.length-Ci).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(In).replace(/\u200b+$/,"");var Wo=Wt(We,In),Lr=Wt(Lt,zn.length?ft(zn).length-Ci:0);if(Rt.length>1||Rt[0]||Jt(Wo,Lr))return gh(ie.doc,Rt,Wo,Lr,"+input"),!0},ss.prototype.ensurePolled=function(){this.forceCompositionEnd()},ss.prototype.reset=function(){this.forceCompositionEnd()},ss.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ss.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},ss.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Ht(this.cm,function(){return Ar(ie.cm)})},ss.prototype.setUneditable=function(ie){ie.contentEditable="false"},ss.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Mn(this.cm,Pf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},ss.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},ss.prototype.onContextMenu=function(){},ss.prototype.resetPosition=function(){},ss.prototype.needsContentAttribute=!0;function rg(ie,ae){var ge=Ru(ie,ae.line);if(!ge||ge.hidden)return null;var fe=Vt(ie.doc,ae.line),ye=Lh(ge,fe,ae.line),Te=un(fe,ie.doc.direction),We="left";if(Te){var st=lt(Te,ae.ch);We=st%2?"right":"left"}var ot=qu(ye.map,ae.ch,We);return ot.offset=ot.collapse=="right"?ot.end:ot.start,ot}function ap(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Vd(ie,ae){return ae&&(ie.bad=!0),ie}function Ud(ie,ae,ge,fe,ye){var Te="",We=!1,st=ie.doc.lineSeparator(),ot=!1;function Lt(In){return function(Ci){return Ci.id==In}}function dn(){We&&(Te+=st,ot&&(Te+=st),We=ot=!1)}function Rt(In){In&&(dn(),Te+=In)}function zn(In){if(In.nodeType==1){var Ci=In.getAttribute("cm-text");if(Ci){Rt(Ci);return}var Ti=In.getAttribute("cm-marker"),Zi;if(Ti){var vr=ie.findMarks(Wt(fe,0),Wt(ye+1,0),Lt(+Ti));vr.length&&(Zi=vr[0].find(0))&&Rt(on(ie.doc,Zi.from,Zi.to).join(st));return}if(In.getAttribute("contenteditable")=="false")return;var Kr=/^(pre|div|p|li|table|br)$/i.test(In.nodeName);if(!/^br$/i.test(In.nodeName)&&In.textContent.length==0)return;Kr&&dn();for(var Br=0;Br=9&&ae.hasSelection&&(ae.hasSelection=null),ge.poll()}),$t(ye,"paste",function(We){Yn(fe,We)||tp(We,fe)||(fe.state.pasteIncoming=+new Date,ge.fastPoll())});function Te(We){if(!Yn(fe,We)){if(fe.somethingSelected())dd({lineWise:!1,text:fe.getSelections()});else if(fe.options.lineWiseCopyCut){var st=ip(fe);dd({lineWise:!0,text:st.text}),We.type=="cut"?fe.setSelections(st.ranges,null,Bt):(ge.prevInput="",ye.value=st.text.join(` `),At(ye))}else return;We.type=="cut"&&(fe.state.cutIncoming=+new Date)}}$t(ye,"cut",Te),$t(ye,"copy",Te),$t(ie.scroller,"paste",function(We){if(!(vs(ie,We)||Yn(fe,We))){if(!ye.dispatchEvent){fe.state.pasteIncoming=+new Date,ge.focus();return}var st=new Event("paste");st.clipboardData=We.clipboardData,ye.dispatchEvent(st)}}),$t(ie.lineSpace,"selectstart",function(We){vs(ie,We)||ii(We)}),$t(ye,"compositionstart",function(){var We=fe.getCursor("from");ge.composing&&ge.composing.range.clear(),ge.composing={start:We,range:fe.markText(We,fe.getCursor("to"),{className:"CodeMirror-composing"})}}),$t(ye,"compositionend",function(){ge.composing&&(ge.poll(),ge.composing.range.clear(),ge.composing=null)})},Qs.prototype.createField=function(ie){this.wrapper=op(),this.textarea=this.wrapper.firstChild},Qs.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Qs.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ge=ie.doc,fe=lr(ie);if(ie.options.moveInputWithCursor){var ye=va(ie,ge.sel.primary().head,"div"),Te=ae.wrapper.getBoundingClientRect(),We=ae.lineDiv.getBoundingClientRect();fe.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,ye.top+We.top-Te.top)),fe.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,ye.left+We.left-Te.left))}return fe},Qs.prototype.showSelection=function(ie){var ae=this.cm,ge=ae.display;et(ge.cursorDiv,ie.cursors),et(ge.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Qs.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ge=ae.getSelection();this.textarea.value=ge,ae.state.focused&&At(this.textarea),Ze&&Ke>=9&&(this.hasSelection=ge)}else ie||(this.prevInput=this.textarea.value="",Ze&&Ke>=9&&(this.hasSelection=null))}},Qs.prototype.getField=function(){return this.textarea},Qs.prototype.supportsTouch=function(){return!1},Qs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||Qe()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Qs.prototype.blur=function(){this.textarea.blur()},Qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qs.prototype.receivedFocus=function(){this.slowPoll()},Qs.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Qs.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ge(){var fe=ae.poll();!fe&&!ie?(ie=!0,ae.polling.set(60,ge)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ge)},Qs.prototype.poll=function(){var ie=this,ae=this.cm,ge=this.textarea,fe=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Le(ge)&&!fe&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var ye=ge.value;if(ye==fe&&!ae.somethingSelected())return!1;if(Ze&&Ke>=9&&this.hasSelection===ye||he&&/[\uf700-\uf7ff]/.test(ye))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Te=ye.charCodeAt(0);if(Te==8203&&!fe&&(fe="\u200B"),Te==8666)return this.reset(),this.cm.execCommand("undo")}for(var We=0,st=Math.min(fe.length,ye.length);We1e3||ye.indexOf(` `)>-1?ge.value=ie.prevInput="":ie.prevInput=ye,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qs.prototype.onKeyPress=function(){Ze&&Ke>=9&&(this.hasSelection=null),this.fastPoll()},Qs.prototype.onContextMenu=function(ie){var ae=this,ge=ae.cm,fe=ge.display,ye=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Te=$i(ge,ie),We=fe.scroller.scrollTop;if(!Te||He)return;var st=ge.options.resetSelectionOnContextMenu;st&&ge.doc.sel.contains(Te)==-1&&Mn(ge,Za)(ge.doc,Vo(Te),Bt);var ot=ye.style.cssText,Lt=ae.wrapper.style.cssText,dn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",ye.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(ie.clientY-dn.top-5)+"px; left: "+(ie.clientX-dn.left-5)+`px; z-index: 1000; background: `+(Ze?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;Be&&(Rt=window.scrollY),fe.input.focus(),Be&&window.scrollTo(null,Rt),fe.input.reset(),ge.somethingSelected()||(ye.value=ae.prevInput=" "),ae.contextMenuPending=In,fe.selForContextMenu=ge.doc.sel,clearTimeout(fe.detectingSelectAll);function zn(){if(ye.selectionStart!=null){var Ti=ge.somethingSelected(),Zi="\u200B"+(Ti?ye.value:"");ye.value="\u21DA",ye.value=Zi,ae.prevInput=Ti?"":"\u200B",ye.selectionStart=1,ye.selectionEnd=Zi.length,fe.selForContextMenu=ge.doc.sel}}function In(){if(ae.contextMenuPending==In&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Lt,ye.style.cssText=ot,Ze&&Ke<9&&fe.scrollbars.setScrollTop(fe.scroller.scrollTop=We),ye.selectionStart!=null)){(!Ze||Ze&&Ke<9)&&zn();var Ti=0,Zi=function(){fe.selForContextMenu==ge.doc.sel&&ye.selectionStart==0&&ye.selectionEnd>0&&ae.prevInput=="\u200B"?Mn(ge,La)(ge):Ti++<10?fe.detectingSelectAll=setTimeout(Zi,500):(fe.selForContextMenu=null,fe.input.reset())};fe.detectingSelectAll=setTimeout(Zi,200)}}if(Ze&&Ke>=9&&zn(),be){Ri(ie);var Ci=function(){bn(window,"mouseup",Ci),setTimeout(In,20)};$t(window,"mouseup",Ci)}else setTimeout(In,50)},Qs.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Qs.prototype.setUneditable=function(){},Qs.prototype.needsContentAttribute=!1;function cm(ie,ae){if(ae=ae?Yt(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ge=Qe();ae.autofocus=ge==ie||ie.getAttribute("autofocus")!=null&&ge==document.body}function fe(){ie.value=st.getValue()}var ye;if(ie.form&&($t(ie.form,"submit",fe),!ae.leaveSubmitMethodAlone)){var Te=ie.form;ye=Te.submit;try{var We=Te.submit=function(){fe(),Te.submit=ye,Te.submit(),Te.submit=We}}catch(ot){}}ae.finishInit=function(ot){ot.save=fe,ot.getTextArea=function(){return ie},ot.toTextArea=function(){ot.toTextArea=isNaN,fe(),ie.parentNode.removeChild(ot.getWrapperElement()),ie.style.display="",ie.form&&(bn(ie.form,"submit",fe),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=ye))}},ie.style.display="none";var st=Ba(function(ot){return ie.parentNode.insertBefore(ot,ie.nextSibling)},ae);return st}function Yd(ie){ie.off=bn,ie.on=$t,ie.wheelEventPixels=no,ie.Doc=Js,ie.splitLines=ji,ie.countColumn=ut,ie.findColumn=Bn,ie.isWordChar=Ne,ie.Pass=sn,ie.signal=pn,ie.Line=yo,ie.changeEnd=wa,ie.scrollbarModel=Fc,ie.Pos=Wt,ie.cmpPos=Jt,ie.modes=ni,ie.mimeModes=vi,ie.resolveMode=Dn,ie.getMode=Ft,ie.modeExtensions=Ot,ie.extendMode=Ve,ie.copyState=Ut,ie.startState=xt,ie.innerMode=tn,ie.commands=il,ie.keyMap=_l,ie.keyName=Hd,ie.isModifierKey=Tc,ie.lookupKey=hu,ie.normalizeKeyMap=_d,ie.StringStream=rt,ie.SharedTextMarker=ph,ie.TextMarker=Qt,ie.LineWidget=_s,ie.e_preventDefault=ii,ie.e_stopPropagation=pi,ie.e_stop=Ri,ie.addClass=bt,ie.contains=Tt,ie.rmClass=Ie,ie.keyNames=nh}lm(Ba),Oc(Ba);var fc="iter insert remove copy getEditor constructor".split(" ");for(var Ef in Js.prototype)Js.prototype.hasOwnProperty(Ef)&&kt(fc,Ef)<0&&(Ba.prototype[Ef]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Js.prototype[Ef]));return Rn(Js),Ba.inputStyles={textarea:Qs,contenteditable:ss},Ba.defineMode=function(ie){!Ba.defaults.mode&&ie!="null"&&(Ba.defaults.mode=ie),Fi.apply(this,arguments)},Ba.defineMIME=_n,Ba.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Ba.defineMIME("text/plain","null"),Ba.defineExtension=function(ie,ae){Ba.prototype[ie]=ae},Ba.defineDocExtension=function(ie,ae){Js.prototype[ie]=ae},Ba.fromTextArea=cm,Yd(Ba),Ba.version="5.58.2",Ba})},25419:function(Pn,an,ve){(function(ce){ce(ve(89780),ve(15525),ve(98101))})(function(ce){"use strict";ce.defineMode("markdown",function(De,_e){var Ct=ce.getMode(De,"text/html"),Ze=Ct.name=="null";function Ke(ut){if(ce.findModeByName){var Ge=ce.findModeByName(ut);Ge&&(ut=Ge.mime||Ge.mimes[0])}var kt=ce.getMode(De,ut);return kt.name=="null"?null:kt}_e.highlightFormatting===void 0&&(_e.highlightFormatting=!1),_e.maxBlockquoteDepth===void 0&&(_e.maxBlockquoteDepth=0),_e.taskLists===void 0&&(_e.taskLists=!1),_e.strikethrough===void 0&&(_e.strikethrough=!1),_e.emoji===void 0&&(_e.emoji=!1),_e.fencedCodeBlockHighlighting===void 0&&(_e.fencedCodeBlockHighlighting=!0),_e.fencedCodeBlockDefaultMode===void 0&&(_e.fencedCodeBlockDefaultMode="text/plain"),_e.xml===void 0&&(_e.xml=!0),_e.tokenTypeOverrides===void 0&&(_e.tokenTypeOverrides={});var Be={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var mt in Be)Be.hasOwnProperty(mt)&&_e.tokenTypeOverrides[mt]&&(Be[mt]=_e.tokenTypeOverrides[mt]);var ct=/^([*\-_])(?:\s*\1){2,}\s*$/,He=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Et=/^\[(x| )\](?=\s)/i,ht=_e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ae=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,se=" ";function de(ut,Ge,kt){return Ge.f=Ge.inline=kt,kt(ut,Ge)}function me(ut,Ge,kt){return Ge.f=Ge.block=kt,kt(ut,Ge)}function we(ut){return!ut||!/\S/.test(ut.string)}function be(ut){if(ut.linkTitle=!1,ut.linkHref=!1,ut.linkText=!1,ut.em=!1,ut.strong=!1,ut.strikethrough=!1,ut.quote=0,ut.indentedCode=!1,ut.f==Ie){var Ge=Ze;if(!Ge){var kt=ce.innerMode(Ct,ut.htmlState);Ge=kt.mode.name=="xml"&&kt.state.tagStart===null&&!kt.state.context&&kt.state.tokenize.isInText}Ge&&(ut.f=gt,ut.block=Me,ut.htmlState=null)}return ut.trailingSpace=0,ut.trailingSpaceNewLine=!1,ut.prevLine=ut.thisLine,ut.thisLine={stream:null},null}function Me(ut,Ge){var kt=ut.column()===Ge.indentation,ln=we(Ge.prevLine.stream),sn=Ge.indentedCode,Bt=Ge.prevLine.hr,Gt=Ge.list!==!1,en=(Ge.listStack[Ge.listStack.length-1]||0)+3;Ge.indentedCode=!1;var Bn=Ge.indentation;if(Ge.indentationDiff===null&&(Ge.indentationDiff=Ge.indentation,Gt)){for(Ge.list=null;Bn=4&&(sn||Ge.prevLine.fencedCodeEnd||Ge.prevLine.header||ln))return ut.skipToEnd(),Ge.indentedCode=!0,Be.code;if(ut.eatSpace())return null;if(kt&&Ge.indentation<=en&&(ft=ut.match(ht))&&ft[1].length<=6)return Ge.quote=0,Ge.header=ft[1].length,Ge.thisLine.header=!0,_e.highlightFormatting&&(Ge.formatting="header"),Ge.f=Ge.inline,et(Ge);if(Ge.indentation<=en&&ut.eat(">"))return Ge.quote=kt?1:Ge.quote+1,_e.highlightFormatting&&(Ge.formatting="quote"),ut.eatSpace(),et(Ge);if(!Cn&&!Ge.setext&&kt&&Ge.indentation<=en&&(ft=ut.match(He))){var En=ft[1]?"ol":"ul";return Ge.indentation=Bn+ut.current().length,Ge.list=!0,Ge.quote=0,Ge.listStack.push(Ge.indentation),Ge.em=!1,Ge.strong=!1,Ge.code=!1,Ge.strikethrough=!1,_e.taskLists&&ut.match(Et,!1)&&(Ge.taskList=!0),Ge.f=Ge.inline,_e.highlightFormatting&&(Ge.formatting=["list","list-"+En]),et(Ge)}else{if(kt&&Ge.indentation<=en&&(ft=ut.match(te,!0)))return Ge.quote=0,Ge.fencedEndRE=new RegExp(ft[1]+"+ *$"),Ge.localMode=_e.fencedCodeBlockHighlighting&&Ke(ft[2]||_e.fencedCodeBlockDefaultMode),Ge.localMode&&(Ge.localState=ce.startState(Ge.localMode)),Ge.f=Ge.block=ze,_e.highlightFormatting&&(Ge.formatting="code-block"),Ge.code=-1,et(Ge);if(Ge.setext||(!rn||!Gt)&&!Ge.quote&&Ge.list===!1&&!Ge.code&&!Cn&&!ee.test(ut.string)&&(ft=ut.lookAhead(1))&&(ft=ft.match(dt)))return Ge.setext?(Ge.header=Ge.setext,Ge.setext=0,ut.skipToEnd(),_e.highlightFormatting&&(Ge.formatting="header")):(Ge.header=ft[0].charAt(0)=="="?1:2,Ge.setext=Ge.header),Ge.thisLine.header=!0,Ge.f=Ge.inline,et(Ge);if(Cn)return ut.skipToEnd(),Ge.hr=!0,Ge.thisLine.hr=!0,Be.hr;if(ut.peek()==="[")return de(ut,Ge,Nt)}return de(ut,Ge,Ge.inline)}function Ie(ut,Ge){var kt=Ct.token(ut,Ge.htmlState);if(!Ze){var ln=ce.innerMode(Ct,Ge.htmlState);(ln.mode.name=="xml"&&ln.state.tagStart===null&&!ln.state.context&&ln.state.tokenize.isInText||Ge.md_inside&&ut.current().indexOf(">")>-1)&&(Ge.f=gt,Ge.block=Me,Ge.htmlState=null)}return kt}function ze(ut,Ge){var kt=Ge.listStack[Ge.listStack.length-1]||0,ln=Ge.indentation=ut.quote?Ge.push(Be.formatting+"-"+ut.formatting[kt]+"-"+ut.quote):Ge.push("error"))}if(ut.taskOpen)return Ge.push("meta"),Ge.length?Ge.join(" "):null;if(ut.taskClosed)return Ge.push("property"),Ge.length?Ge.join(" "):null;if(ut.linkHref?Ge.push(Be.linkHref,"url"):(ut.strong&&Ge.push(Be.strong),ut.em&&Ge.push(Be.em),ut.strikethrough&&Ge.push(Be.strikethrough),ut.emoji&&Ge.push(Be.emoji),ut.linkText&&Ge.push(Be.linkText),ut.code&&Ge.push(Be.code),ut.image&&Ge.push(Be.image),ut.imageAltText&&Ge.push(Be.imageAltText,"link"),ut.imageMarker&&Ge.push(Be.imageMarker)),ut.header&&Ge.push(Be.header,Be.header+"-"+ut.header),ut.quote&&(Ge.push(Be.quote),!_e.maxBlockquoteDepth||_e.maxBlockquoteDepth>=ut.quote?Ge.push(Be.quote+"-"+ut.quote):Ge.push(Be.quote+"-"+_e.maxBlockquoteDepth)),ut.list!==!1){var ln=(ut.listStack.length-1)%3;ln?ln===1?Ge.push(Be.list2):Ge.push(Be.list3):Ge.push(Be.list1)}return ut.trailingSpaceNewLine?Ge.push("trailing-space-new-line"):ut.trailingSpace&&Ge.push("trailing-space-"+(ut.trailingSpace%2?"a":"b")),Ge.length?Ge.join(" "):null}function $e(ut,Ge){if(ut.match(Ae,!0))return et(Ge)}function gt(ut,Ge){var kt=Ge.text(ut,Ge);if(typeof kt!="undefined")return kt;if(Ge.list)return Ge.list=null,et(Ge);if(Ge.taskList){var ln=ut.match(Et,!0)[1]===" ";return ln?Ge.taskOpen=!0:Ge.taskClosed=!0,_e.highlightFormatting&&(Ge.formatting="task"),Ge.taskList=!1,et(Ge)}if(Ge.taskOpen=!1,Ge.taskClosed=!1,Ge.header&&ut.match(/^#+$/,!0))return _e.highlightFormatting&&(Ge.formatting="header"),et(Ge);var sn=ut.next();if(Ge.linkTitle){Ge.linkTitle=!1;var Bt=sn;sn==="("&&(Bt=")"),Bt=(Bt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Gt="^\\s*(?:[^"+Bt+"\\\\]+|\\\\\\\\|\\\\.)"+Bt;if(ut.match(new RegExp(Gt),!0))return Be.linkHref}if(sn==="`"){var en=Ge.formatting;_e.highlightFormatting&&(Ge.formatting="code"),ut.eatWhile("`");var Bn=ut.current().length;if(Ge.code==0&&(!Ge.quote||Bn==1))return Ge.code=Bn,et(Ge);if(Bn==Ge.code){var rn=et(Ge);return Ge.code=0,rn}else return Ge.formatting=en,et(Ge)}else if(Ge.code)return et(Ge);if(sn==="\\"&&(ut.next(),_e.highlightFormatting)){var Cn=et(Ge),ft=Be.formatting+"-escape";return Cn?Cn+" "+ft:ft}if(sn==="!"&&ut.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ge.imageMarker=!0,Ge.image=!0,_e.highlightFormatting&&(Ge.formatting="image"),et(Ge);if(sn==="["&&Ge.imageMarker&&ut.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ge.imageMarker=!1,Ge.imageAltText=!0,_e.highlightFormatting&&(Ge.formatting="image"),et(Ge);if(sn==="]"&&Ge.imageAltText){_e.highlightFormatting&&(Ge.formatting="image");var Cn=et(Ge);return Ge.imageAltText=!1,Ge.image=!1,Ge.inline=Ge.f=Tt,Cn}if(sn==="["&&!Ge.image)return Ge.linkText&&ut.match(/^.*?\]/)||(Ge.linkText=!0,_e.highlightFormatting&&(Ge.formatting="link")),et(Ge);if(sn==="]"&&Ge.linkText){_e.highlightFormatting&&(Ge.formatting="link");var Cn=et(Ge);return Ge.linkText=!1,Ge.inline=Ge.f=ut.match(/\(.*?\)| ?\[.*?\]/,!1)?Tt:gt,Cn}if(sn==="<"&&ut.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=je,_e.highlightFormatting&&(Ge.formatting="link");var Cn=et(Ge);return Cn?Cn+=" ":Cn="",Cn+Be.linkInline}if(sn==="<"&&ut.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ge.f=Ge.inline=je,_e.highlightFormatting&&(Ge.formatting="link");var Cn=et(Ge);return Cn?Cn+=" ":Cn="",Cn+Be.linkEmail}if(_e.xml&&sn==="<"&&ut.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=ut.string.indexOf(">",ut.pos);if(En!=-1){var Vn=ut.string.substring(ut.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Vn)&&(Ge.md_inside=!0)}return ut.backUp(1),Ge.htmlState=ce.startState(Ct),me(ut,Ge,Ie)}if(_e.xml&&sn==="<"&&ut.match(/^\/\w*?>/))return Ge.md_inside=!1,"tag";if(sn==="*"||sn==="_"){for(var Re=1,Ce=ut.pos==1?" ":ut.string.charAt(ut.pos-2);Re<3&&ut.eat(sn);)Re++;var Pe=ut.peek()||" ",Ne=!/\s/.test(Pe)&&(!he.test(Pe)||/\s/.test(Ce)||he.test(Ce)),ke=!/\s/.test(Ce)&&(!he.test(Ce)||/\s/.test(Pe)||he.test(Pe)),Se=null,nt=null;if(Re%2&&(!Ge.em&&Ne&&(sn==="*"||!ke||he.test(Ce))?Se=!0:Ge.em==sn&&ke&&(sn==="*"||!Ne||he.test(Pe))&&(Se=!1)),Re>1&&(!Ge.strong&&Ne&&(sn==="*"||!ke||he.test(Ce))?nt=!0:Ge.strong==sn&&ke&&(sn==="*"||!Ne||he.test(Pe))&&(nt=!1)),nt!=null||Se!=null){_e.highlightFormatting&&(Ge.formatting=Se==null?"strong":nt==null?"em":"strong em"),Se===!0&&(Ge.em=sn),nt===!0&&(Ge.strong=sn);var rn=et(Ge);return Se===!1&&(Ge.em=!1),nt===!1&&(Ge.strong=!1),rn}}else if(sn===" "&&(ut.eat("*")||ut.eat("_"))){if(ut.peek()===" ")return et(Ge);ut.backUp(1)}if(_e.strikethrough){if(sn==="~"&&ut.eatWhile(sn)){if(Ge.strikethrough){_e.highlightFormatting&&(Ge.formatting="strikethrough");var rn=et(Ge);return Ge.strikethrough=!1,rn}else if(ut.match(/^[^\s]/,!1))return Ge.strikethrough=!0,_e.highlightFormatting&&(Ge.formatting="strikethrough"),et(Ge)}else if(sn===" "&&ut.match(/^~~/,!0)){if(ut.peek()===" ")return et(Ge);ut.backUp(2)}}if(_e.emoji&&sn===":"&&ut.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ge.emoji=!0,_e.highlightFormatting&&(Ge.formatting="emoji");var Pt=et(Ge);return Ge.emoji=!1,Pt}return sn===" "&&(ut.match(/^ +$/,!1)?Ge.trailingSpace++:Ge.trailingSpace&&(Ge.trailingSpaceNewLine=!0)),et(Ge)}function je(ut,Ge){var kt=ut.next();if(kt===">"){Ge.f=Ge.inline=gt,_e.highlightFormatting&&(Ge.formatting="link");var ln=et(Ge);return ln?ln+=" ":ln="",ln+Be.linkInline}return ut.match(/^[^>]+/,!0),Be.linkInline}function Tt(ut,Ge){if(ut.eatSpace())return null;var kt=ut.next();return kt==="("||kt==="["?(Ge.f=Ge.inline=bt(kt==="("?")":"]"),_e.highlightFormatting&&(Ge.formatting="link-string"),Ge.linkHref=!0,et(Ge)):"error"}var Qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function bt(ut){return function(Ge,kt){var ln=Ge.next();if(ln===ut){kt.f=kt.inline=gt,_e.highlightFormatting&&(kt.formatting="link-string");var sn=et(kt);return kt.linkHref=!1,sn}return Ge.match(Qe[ut]),kt.linkHref=!0,et(kt)}}function Nt(ut,Ge){return ut.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ge.f=At,ut.next(),_e.highlightFormatting&&(Ge.formatting="link"),Ge.linkText=!0,et(Ge)):de(ut,Ge,gt)}function At(ut,Ge){if(ut.match(/^\]:/,!0)){Ge.f=Ge.inline=Zt,_e.highlightFormatting&&(Ge.formatting="link");var kt=et(Ge);return Ge.linkText=!1,kt}return ut.match(/^([^\]\\]|\\.)+/,!0),Be.linkText}function Zt(ut,Ge){return ut.eatSpace()?null:(ut.match(/^[^\s]+/,!0),ut.peek()===void 0?Ge.linkTitle=!0:ut.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ge.f=Ge.inline=gt,Be.linkHref+" url")}var Yt={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:gt,text:$e,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(ut){return{f:ut.f,prevLine:ut.prevLine,thisLine:ut.thisLine,block:ut.block,htmlState:ut.htmlState&&ce.copyState(Ct,ut.htmlState),indentation:ut.indentation,localMode:ut.localMode,localState:ut.localMode?ce.copyState(ut.localMode,ut.localState):null,inline:ut.inline,text:ut.text,formatting:!1,linkText:ut.linkText,linkTitle:ut.linkTitle,linkHref:ut.linkHref,code:ut.code,em:ut.em,strong:ut.strong,strikethrough:ut.strikethrough,emoji:ut.emoji,header:ut.header,setext:ut.setext,hr:ut.hr,taskList:ut.taskList,list:ut.list,listStack:ut.listStack.slice(0),quote:ut.quote,indentedCode:ut.indentedCode,trailingSpace:ut.trailingSpace,trailingSpaceNewLine:ut.trailingSpaceNewLine,md_inside:ut.md_inside,fencedEndRE:ut.fencedEndRE}},token:function(ut,Ge){if(Ge.formatting=!1,ut!=Ge.thisLine.stream){if(Ge.header=0,Ge.hr=!1,ut.match(/^\s*$/,!0))return be(Ge),null;if(Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:ut},Ge.taskList=!1,Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,!Ge.localState&&(Ge.f=Ge.block,Ge.f!=Ie)){var kt=ut.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Ge.indentation=kt,Ge.indentationDiff=null,kt>0)return null}}return Ge.f(ut,Ge)},innerMode:function(ut){return ut.block==Ie?{state:ut.htmlState,mode:Ct}:ut.localState?{state:ut.localState,mode:ut.localMode}:{state:ut,mode:Yt}},indent:function(ut,Ge,kt){return ut.block==Ie&&Ct.indent?Ct.indent(ut.htmlState,Ge,kt):ut.localState&&ut.localMode.indent?ut.localMode.indent(ut.localState,Ge,kt):ce.Pass},blankLine:be,getType:et,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Yt},"xml"),ce.defineMIME("text/markdown","markdown"),ce.defineMIME("text/x-markdown","markdown")})},98101:function(Pn,an,ve){(function(ce){ce(ve(89780))})(function(ce){"use strict";ce.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 De=0;De-1&&Ct.substring(Be+1,Ct.length);if(mt)return ce.findModeByExtension(mt)},ce.findModeByName=function(Ct){Ct=Ct.toLowerCase();for(var Ze=0;Ze0?Ae.cmdState[Ae.cmdState.length-1]:null}function Ke(Ae){var te=Ae.cmdState.pop();te&&te.closeBracket()}function Be(Ae){for(var te=Ae.cmdState,ee=te.length-1;ee>=0;ee--){var he=te[ee];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function mt(Ae,te,ee){return function(){this.name=Ae,this.bracketNo=0,this.style=te,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ct={};ct.importmodule=mt("importmodule","tag",["string","builtin"]),ct.documentclass=mt("documentclass","tag",["","atom"]),ct.usepackage=mt("usepackage","tag",["atom"]),ct.begin=mt("begin","tag",["atom"]),ct.end=mt("end","tag",["atom"]),ct.label=mt("label","tag",["atom"]),ct.ref=mt("ref","tag",["atom"]),ct.eqref=mt("eqref","tag",["atom"]),ct.cite=mt("cite","tag",["atom"]),ct.bibitem=mt("bibitem","tag",["atom"]),ct.Bibitem=mt("Bibitem","tag",["atom"]),ct.RBibitem=mt("RBibitem","tag",["atom"]),ct.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function He(Ae,te){Ae.f=te}function Et(Ae,te){var ee;if(Ae.match(/^\\[a-zA-Z@]+/)){var he=Ae.current().slice(1);return ee=ct.hasOwnProperty(he)?ct[he]:ct.DEFAULT,ee=new ee,Ct(te,ee),He(te,dt),ee.style}if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/\\]/))return"tag";if(Ae.match("\\["))return He(te,function(de,me){return ht(de,me,"\\]")}),"keyword";if(Ae.match("\\("))return He(te,function(de,me){return ht(de,me,"\\)")}),"keyword";if(Ae.match("$$"))return He(te,function(de,me){return ht(de,me,"$$")}),"keyword";if(Ae.match("$"))return He(te,function(de,me){return ht(de,me,"$")}),"keyword";var se=Ae.next();if(se=="%")return Ae.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ee=Ze(te),ee)ee.closeBracket(se),He(te,dt);else return"error";return"bracket"}else return se=="{"||se=="["?(ee=ct.DEFAULT,ee=new ee,Ct(te,ee),"bracket"):/\d/.test(se)?(Ae.eatWhile(/[\w.%]/),"atom"):(Ae.eatWhile(/[\w\-_]/),ee=Be(te),ee.name=="begin"&&(ee.argument=Ae.current()),ee.styleIdentifier())}function ht(Ae,te,ee){if(Ae.eatSpace())return null;if(ee&&Ae.match(ee))return He(te,Et),"keyword";if(Ae.match(/^\\[a-zA-Z@]+/))return"tag";if(Ae.match(/^[a-zA-Z]+/))return"variable-2";if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/]/)||Ae.match(/^[\^_&]/))return"tag";if(Ae.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ae.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Ae.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Ae.skipToEnd(),"comment"):"error"}function dt(Ae,te){var ee=Ae.peek(),he;return ee=="{"||ee=="["?(he=Ze(te),he.openBracket(ee),Ae.eat(ee),He(te,Et),"bracket"):/[ \t\r]/.test(ee)?(Ae.eat(ee),null):(He(te,Et),Ke(te),Et(Ae,te))}return{startState:function(){var Ae=_e.inMathMode?function(te,ee){return ht(te,ee)}:Et;return{cmdState:[],f:Ae}},copyState:function(Ae){return{cmdState:Ae.cmdState.slice(),f:Ae.f}},token:function(Ae,te){return te.f(Ae,te)},blankLine:function(Ae){Ae.f=Et,Ae.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},15525:function(Pn,an,ve){(function(ce){ce(ve(89780))})(function(ce){"use strict";var De={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},_e={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ce.defineMode("xml",function(Ct,Ze){var Ke=Ct.indentUnit,Be={},mt=Ze.htmlMode?De:_e;for(var ct in mt)Be[ct]=mt[ct];for(var ct in Ze)Be[ct]=Ze[ct];var He,Et;function ht(je,Tt){function Qe(At){return Tt.tokenize=At,At(je,Tt)}var bt=je.next();if(bt=="<")return je.eat("!")?je.eat("[")?je.match("CDATA[")?Qe(te("atom","]]>")):null:je.match("--")?Qe(te("comment","-->")):je.match("DOCTYPE",!0,!0)?(je.eatWhile(/[\w\._\-]/),Qe(ee(1))):null:je.eat("?")?(je.eatWhile(/[\w\._\-]/),Tt.tokenize=te("meta","?>"),"meta"):(He=je.eat("/")?"closeTag":"openTag",Tt.tokenize=dt,"tag bracket");if(bt=="&"){var Nt;return je.eat("#")?je.eat("x")?Nt=je.eatWhile(/[a-fA-F\d]/)&&je.eat(";"):Nt=je.eatWhile(/[\d]/)&&je.eat(";"):Nt=je.eatWhile(/[\w\.\-:]/)&&je.eat(";"),Nt?"atom":"error"}else return je.eatWhile(/[^&<]/),null}ht.isInText=!0;function dt(je,Tt){var Qe=je.next();if(Qe==">"||Qe=="/"&&je.eat(">"))return Tt.tokenize=ht,He=Qe==">"?"endTag":"selfcloseTag","tag bracket";if(Qe=="=")return He="equals",null;if(Qe=="<"){Tt.tokenize=ht,Tt.state=me,Tt.tagName=Tt.tagStart=null;var bt=Tt.tokenize(je,Tt);return bt?bt+" tag error":"tag error"}else return/[\'\"]/.test(Qe)?(Tt.tokenize=Ae(Qe),Tt.stringStartCol=je.column(),Tt.tokenize(je,Tt)):(je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ae(je){var Tt=function(Qe,bt){for(;!Qe.eol();)if(Qe.next()==je){bt.tokenize=dt;break}return"string"};return Tt.isInAttribute=!0,Tt}function te(je,Tt){return function(Qe,bt){for(;!Qe.eol();){if(Qe.match(Tt)){bt.tokenize=ht;break}Qe.next()}return je}}function ee(je){return function(Tt,Qe){for(var bt;(bt=Tt.next())!=null;){if(bt=="<")return Qe.tokenize=ee(je+1),Qe.tokenize(Tt,Qe);if(bt==">")if(je==1){Qe.tokenize=ht;break}else return Qe.tokenize=ee(je-1),Qe.tokenize(Tt,Qe)}return"meta"}}function he(je,Tt,Qe){this.prev=je.context,this.tagName=Tt,this.indent=je.indented,this.startOfLine=Qe,(Be.doNotIndent.hasOwnProperty(Tt)||je.context&&je.context.noIndent)&&(this.noIndent=!0)}function se(je){je.context&&(je.context=je.context.prev)}function de(je,Tt){for(var Qe;;){if(!je.context||(Qe=je.context.tagName,!Be.contextGrabbers.hasOwnProperty(Qe)||!Be.contextGrabbers[Qe].hasOwnProperty(Tt)))return;se(je)}}function me(je,Tt,Qe){return je=="openTag"?(Qe.tagStart=Tt.column(),we):je=="closeTag"?be:me}function we(je,Tt,Qe){return je=="word"?(Qe.tagName=Tt.current(),Et="tag",ze):Be.allowMissingTagName&&je=="endTag"?(Et="tag bracket",ze(je,Tt,Qe)):(Et="error",we)}function be(je,Tt,Qe){if(je=="word"){var bt=Tt.current();return Qe.context&&Qe.context.tagName!=bt&&Be.implicitlyClosed.hasOwnProperty(Qe.context.tagName)&&se(Qe),Qe.context&&Qe.context.tagName==bt||Be.matchClosing===!1?(Et="tag",Me):(Et="tag error",Ie)}else return Be.allowMissingTagName&&je=="endTag"?(Et="tag bracket",Me(je,Tt,Qe)):(Et="error",Ie)}function Me(je,Tt,Qe){return je!="endTag"?(Et="error",Me):(se(Qe),me)}function Ie(je,Tt,Qe){return Et="error",Me(je,Tt,Qe)}function ze(je,Tt,Qe){if(je=="word")return Et="attribute",et;if(je=="endTag"||je=="selfcloseTag"){var bt=Qe.tagName,Nt=Qe.tagStart;return Qe.tagName=Qe.tagStart=null,je=="selfcloseTag"||Be.autoSelfClosers.hasOwnProperty(bt)?de(Qe,bt):(de(Qe,bt),Qe.context=new he(Qe,bt,Nt==Qe.indented)),me}return Et="error",ze}function et(je,Tt,Qe){return je=="equals"?$e:(Be.allowMissing||(Et="error"),ze(je,Tt,Qe))}function $e(je,Tt,Qe){return je=="string"?gt:je=="word"&&Be.allowUnquoted?(Et="string",ze):(Et="error",ze(je,Tt,Qe))}function gt(je,Tt,Qe){return je=="string"?gt:ze(je,Tt,Qe)}return{startState:function(je){var Tt={tokenize:ht,state:me,indented:je||0,tagName:null,tagStart:null,context:null};return je!=null&&(Tt.baseIndent=je),Tt},token:function(je,Tt){if(!Tt.tagName&&je.sol()&&(Tt.indented=je.indentation()),je.eatSpace())return null;He=null;var Qe=Tt.tokenize(je,Tt);return(Qe||He)&&Qe!="comment"&&(Et=null,Tt.state=Tt.state(He||Qe,je,Tt),Et&&(Qe=Et=="error"?Qe+" error":Et)),Qe},indent:function(je,Tt,Qe){var bt=je.context;if(je.tokenize.isInAttribute)return je.tagStart==je.indented?je.stringStartCol+1:je.indented+Ke;if(bt&&bt.noIndent)return ce.Pass;if(je.tokenize!=dt&&je.tokenize!=ht)return Qe?Qe.match(/^(\s*)/)[0].length:0;if(je.tagName)return Be.multilineTagIndentPastTag!==!1?je.tagStart+je.tagName.length+2:je.tagStart+Ke*(Be.multilineTagIndentFactor||1);if(Be.alignCDATA&&/$/,blockCommentStart:"",configuration:Be.htmlMode?"html":"xml",helperType:Be.htmlMode?"html":"xml",skipAttribute:function(je){je.state==$e&&(je.state=ze)},xmlCurrentTag:function(je){return je.tagName?{name:je.tagName,close:je.type=="closeTag"}:null},xmlCurrentContext:function(je){for(var Tt=[],Qe=je.context;Qe;Qe=Qe.prev)Qe.tagName&&Tt.push(Qe.tagName);return Tt.reverse()}}}),ce.defineMIME("text/xml","xml"),ce.defineMIME("application/xml","xml"),ce.mimeModes.hasOwnProperty("text/html")||ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Pn,an,ve){"use strict";ve.d(an,{$u:function(){return ct},BD:function(){return Re},E9:function(){return mt},FF:function(){return ti},FJ:function(){return me},Hn:function(){return de},KX:function(){return be},NB:function(){return St},S0:function(){return ft},UL:function(){return He},Vk:function(){return se},Vm:function(){return lt},YI:function(){return En},ZA:function(){return _e},Zt:function(){return Et},al:function(){return Se},bn:function(){return ke},bx:function(){return Ce},g2:function(){return Vn},h1:function(){return $e},hD:function(){return Rn},l4:function(){return Ke},rU:function(){return vt},s_:function(){return Pe},uz:function(){return Ue},z6:function(){return ht}}),Pn=ve.hmd(Pn),function(){var Le;function si(a){var y=0;return function(){return yx&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):yt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function ui(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):yt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function qn(){var a=ir.pop();return a===void 0?[]:a}function di(a){a.length=0,ir.push(a)}function li(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Wt(a)&&a.constructor)return li(a.constructor);return typeof a}function Ai(a){var y=a;return Wt(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function er(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function sr(a,y,x){Object.defineProperty(Vr.prototype,a,{get:y,set:x})}function vn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;bx;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ne=0;ne-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Nr=rt.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},fr.prototype.Ad=function(){return this.next()},fr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},fr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},fr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},fr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},fr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Nn,a.s=x,a.xb(),a.iterator},fr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Nn,a.s=x,a.xb(),a.iterator},fr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},fr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ve.Object.defineProperties(fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),fr.prototype.first=fr.prototype.first,fr.prototype.hasNext=fr.prototype.Ad,fr.prototype.next=fr.prototype.next,fr.prototype.reset=fr.prototype.reset,fr.className="ListIteratorBackwards";function Nn(a){Zr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Nn.prototype,Le.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&On(a,"0 <= i < length",Nn,"elt:i"),y[a]},Le.get=function(a){return this.M(a)},Le.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&On(a,"0 <= i < length",Nn,"setElt:i"),this._isFrozen&&cn(this,a),x[a]=y},Le.set=function(a,y){this.cd(a,y)},Le.first=function(){var a=this.s;return a.length===0?null:a[0]},Le.jc=function(){var a=this.s,y=a.length;return 0a&&On(a,">= 0",Nn,"insertAt:i"),this._isFrozen&&cn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Le.remove=function(a){if(a===null)return!1;this._isFrozen&&cn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Le.delete=function(a){return this.remove(a)},Le.mb=function(a){var y=this.s;(0>a||a>=y.length)&&On(a,"0 <= i < length",Nn,"removeAt:i"),this._isFrozen&&cn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Le.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&cn(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&On(y,"0 <= from < length",Nn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return ur;var a=this.Sa;return a!==null?(a.reset(),a):new rr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ur;var a=this.Hg;return a!==null?(a.reset(),a):new fr(this)}}}),Nn.prototype.reverse=Nn.prototype.reverse,Nn.prototype.sortRange=Nn.prototype.zi,Nn.prototype.sort=Nn.prototype.sort,Nn.prototype.toSet=Nn.prototype.Iv,Nn.prototype.toArray=Nn.prototype.Fa,Nn.prototype.removeRange=Nn.prototype.removeRange,Nn.prototype.removeAt=Nn.prototype.mb,Nn.prototype.delete=Nn.prototype.delete,Nn.prototype.remove=Nn.prototype.remove,Nn.prototype.insertAt=Nn.prototype.Gb,Nn.prototype.pop=Nn.prototype.pop,Nn.prototype.last=Nn.prototype.jc,Nn.prototype.first=Nn.prototype.first,Nn.prototype.set=Nn.prototype.set,Nn.prototype.setElt=Nn.prototype.cd,Nn.prototype.get=Nn.prototype.get,Nn.prototype.elt=Nn.prototype.M,Nn.prototype.indexOf=Nn.prototype.indexOf,Nn.prototype.has=Nn.prototype.has,Nn.prototype.contains=Nn.prototype.contains,Nn.prototype.clear=Nn.prototype.clear,Nn.prototype.addAll=Nn.prototype.addAll,Nn.prototype.push=Nn.prototype.push,Nn.prototype.add=Nn.prototype.add,Nn.prototype.thaw=Nn.prototype.ka,Nn.prototype.freeze=Nn.prototype.freeze,Nn.className="List";function Jr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Jr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Jr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Jr.prototype.Ad=function(){return this.next()},Jr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Jr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Jr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Jr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Jr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Nn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Jr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Nn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Jr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Jr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ve.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="SetIterator";function Ln(a){Zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Ln.prototype,Le.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return ur;var a=this.Sa;return a!==null?(a.reset(),a):new Jr(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var Po=1;Ln.className="Set",Ln.uniqueHash=Zr,Ln.hashIdUnique=co,Ln.hashId=Bi;function ao(a){this.ma=a,this.qa=a.Ja,this.sa=null}ao.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ao.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},ao.prototype.Ad=function(){return this.next()},ao.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},ao.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ao.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ao.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},ao.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Nn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},ao.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Nn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},ao.prototype.de=function(){this.value=this.key=null,this.qa=-1},ao.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ve.Object.defineProperties(ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ao.prototype.first=ao.prototype.first,ao.prototype.hasNext=ao.prototype.Ad,ao.prototype.next=ao.prototype.next,ao.prototype.reset=ao.prototype.reset,ao.className="MapKeySetIterator";function Vi(a){Ln.call(this),Zr(this),this._isFrozen=!0,this.ma=a}Ot(Vi,Ln),Le=Vi.prototype,Le.freeze=function(){return this},Le.ka=function(){return this},Le.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Le.add=function(){yt("This Set is read-only: "+this.toString())},Le.contains=function(a){return this.ma.contains(a)},Le.has=function(a){return this.contains(a)},Le.remove=function(){yt("This Set is read-only: "+this.toString())},Le.delete=function(a){return this.remove(a)},Le.clear=function(){yt("This Set is read-only: "+this.toString())},Le.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Vi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Vi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Vi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Vi.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Vi.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Vi.prototype.copy=function(){return new Vi(this.ma)},Vi.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Vi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Vi.prototype.Hv=function(){var a=new Nn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ve.Object.defineProperties(Vi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ur:new ao(this.ma)}}}),Vi.prototype.toList=Vi.prototype.Hv,Vi.prototype.toArray=Vi.prototype.Fa,Vi.prototype.toSet=Vi.prototype.Iv,Vi.prototype.first=Vi.prototype.first,Vi.prototype.clear=Vi.prototype.clear,Vi.prototype.delete=Vi.prototype.delete,Vi.prototype.remove=Vi.prototype.remove,Vi.prototype.has=Vi.prototype.has,Vi.prototype.contains=Vi.prototype.contains,Vi.prototype.add=Vi.prototype.add,Vi.prototype.thaw=Vi.prototype.ka,Vi.prototype.freeze=Vi.prototype.freeze,Vi.className="MapKeySet";function qi(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}qi.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},qi.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},qi.prototype.Ad=function(){return this.next()},qi.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},qi.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},qi.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},qi.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},qi.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Nn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qi.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Nn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},qi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},qi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ve.Object.defineProperties(qi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qi.prototype.first=qi.prototype.first,qi.prototype.hasNext=qi.prototype.Ad,qi.prototype.next=qi.prototype.next,qi.prototype.reset=qi.prototype.reset,qi.className="MapValueSetIterator";function Hr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Hr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Hr.className="KeyValuePair";function ro(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ro.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ro.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ro.prototype.Ad=function(){return this.next()},ro.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ro.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ro.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ro.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ro.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Nn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ro.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Nn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ro.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ro.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ve.Object.defineProperties(ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ro.prototype.first=ro.prototype.first,ro.prototype.hasNext=ro.prototype.Ad,ro.prototype.next=ro.prototype.next,ro.prototype.reset=ro.prototype.reset,ro.className="MapIterator";function xi(a){Zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&yt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=xi.prototype,Le.xb=function(){var a=this.Ja;a++,999999999=this.count)return ur;var a=this.Sa;return a!==null?(a.reset(),a):new ro(this)}},iteratorKeys:{get:function(){return 0>=this.count?ur:new ao(this)}},iteratorValues:{get:function(){if(0>=this.count)return ur;var a=this.jf;return a!==null?(a.reset(),a):new qi(this)}}}),xi.prototype.toKeySet=xi.prototype.Lf,xi.prototype.toArray=xi.prototype.Fa,xi.prototype.clear=xi.prototype.clear,xi.prototype.delete=xi.prototype.delete,xi.prototype.remove=xi.prototype.remove,xi.prototype.get=xi.prototype.get,xi.prototype.getValue=xi.prototype.I,xi.prototype.has=xi.prototype.has,xi.prototype.contains=xi.prototype.contains,xi.prototype.first=xi.prototype.first,xi.prototype.addAll=xi.prototype.addAll,xi.prototype.set=xi.prototype.set,xi.prototype.add=xi.prototype.add,xi.prototype.thaw=xi.prototype.ka,xi.prototype.freeze=xi.prototype.freeze,xi.className="Map";function tt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):yt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var uo,Zo,ga,Pa,ia;tt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},tt.prototype.h=function(a,y){return this.x=a,this.y=y,this},tt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},tt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},tt.prototype.copy=function(){var a=new tt;return a.x=this.x,a.y=this.y,a},Le=tt.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Or(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new tt(x,b)}return new tt}function kr(a){return a.x.toString()+" "+a.y.toString()}Le.toString=function(){return"Point("+this.x+","+this.y+")"},Le.D=function(a){return a instanceof tt?this.x===a.x&&this.y===a.y:!1},Le.hi=function(a,y){return this.x===a&&this.y===y},Le.Xa=function(a){return it.B(this.x,a.x)&&it.B(this.y,a.y)},Le.add=function(a){return this.x+=a.x,this.y+=a.y,this},Le.re=function(a){return this.x-=a.x,this.y-=a.y,this},Le.offset=function(a,y){return this.x+=a,this.y+=y,this},tt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Le=tt.prototype,Le.scale=function(a,y){return this.x*=a,this.y*=y,this},Le.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Le.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Le.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Le.Ry=function(a,y){return it.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Le.fA=function(a,y,x,E){return it.qh(a,y,x,E,this.x,this.y,this),this},Le.gA=function(a,y){return it.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Le.uA=function(a,y,x,E){return it.No(this.x,this.y,a,y,x,E,this),this},Le.vA=function(a,y){return it.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Le.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Le.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Le.transform=function(a){return a.Ga(this),this};function jr(a,y){return y.Cd(a),a}function To(a,y,x,E,b,z){var ne=b-x,re=z-E,oe=ne*ne+re*re;x-=a,E-=y;var le=-x*ne-E*re;return 0>=le||le>=oe?(ne=b-a,re=z-y,Math.min(x*x+E*E,ne*ne+re*re)):(a=ne*E-re*x,a*a/oe)}function qa(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Mr(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Le.w=function(){return isFinite(this.x)&&isFinite(this.y)},tt.alloc=function(){var a=hr.pop();return a===void 0?new tt:a},tt.allocAt=function(a,y){var x=hr.pop();return x===void 0?new tt(a,y):(x.x=a,x.y=y,x)},tt.free=function(a){hr.push(a)},tt.prototype.isReal=tt.prototype.w,tt.prototype.setSpot=tt.prototype.yi,tt.prototype.setRectSpot=tt.prototype.xi,tt.prototype.snapToGridPoint=tt.prototype.vA,tt.prototype.snapToGrid=tt.prototype.uA,tt.prototype.projectOntoLineSegmentPoint=tt.prototype.gA,tt.prototype.projectOntoLineSegment=tt.prototype.fA,tt.intersectingLineSegments=function(a,y,x,E,b,z,ne,re){return it.Rl(a,y,x,E,b,z,ne,re)},tt.prototype.compareWithLineSegmentPoint=tt.prototype.Ry,tt.compareWithLineSegment=function(a,y,x,E,b,z){return it.Fl(a,y,x,E,b,z)},tt.prototype.direction=tt.prototype.direction,tt.prototype.directionPoint=tt.prototype.ab,tt.prototype.normalize=tt.prototype.normalize,tt.prototype.distanceSquared=tt.prototype.zd,tt.prototype.distanceSquaredPoint=tt.prototype.Bf,tt.prototype.scale=tt.prototype.scale,tt.prototype.rotate=tt.prototype.rotate,tt.prototype.offset=tt.prototype.offset,tt.prototype.subtract=tt.prototype.re,tt.prototype.add=tt.prototype.add,tt.prototype.equalsApprox=tt.prototype.Xa,tt.prototype.equalTo=tt.prototype.hi,tt.prototype.equals=tt.prototype.D,tt.prototype.set=tt.prototype.set,tt.prototype.setTo=tt.prototype.sg;var hr=[];tt.className="Point",tt.parse=Or,tt.stringify=kr,tt.distanceLineSegmentSquared=To,tt.distanceSquared=qa,tt.direction=Mr,tt.Origin=uo=new tt(0,0).ja(),tt.InfiniteTopLeft=Zo=new tt(-1/0,-1/0).ja(),tt.InfiniteBottomRight=ga=new tt(1/0,1/0).ja(),tt.SixPoint=Pa=new tt(6,6).ja(),tt.NoPoint=ia=new tt(NaN,NaN).ja(),tt.parse=Or,tt.stringify=kr,tt.distanceLineSegmentSquared=To,tt.distanceSquared=qa,tt.direction=Mr;function Xn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):yt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var yr,wo,ua,No,yo,ta,na;Xn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xn.prototype.copy=function(){var a=new Xn;return a.width=this.width,a.height=this.height,a},Le=Xn.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Na(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Xn(x,b)}return new Xn}function ka(a){return a.width.toString()+" "+a.height.toString()}Le.toString=function(){return"Size("+this.width+","+this.height+")"},Le.D=function(a){return a instanceof Xn?this.width===a.width&&this.height===a.height:!1},Le.hi=function(a,y){return this.width===a&&this.height===y},Le.Xa=function(a){return it.B(this.width,a.width)&&it.B(this.height,a.height)},Le.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Le.w=function(){return isFinite(this.width)&&isFinite(this.height)},Xn.alloc=function(){var a=is.pop();return a===void 0?new Xn:a},Xn.free=function(a){is.push(a)},Xn.prototype.isReal=Xn.prototype.w,Xn.prototype.inflate=Xn.prototype.Bc,Xn.prototype.equalsApprox=Xn.prototype.Xa,Xn.prototype.equalTo=Xn.prototype.hi,Xn.prototype.equals=Xn.prototype.D,Xn.prototype.set=Xn.prototype.set,Xn.prototype.setTo=Xn.prototype.sg;var is=[];Xn.className="Size",Xn.parse=Na,Xn.stringify=ka,Xn.ZeroSize=yr=new Xn(0,0).ja(),Xn.OneSize=wo=new Xn(1,1).ja(),Xn.SixSize=ua=new Xn(6,6).ja(),Xn.EightSize=No=new Xn(8,8).ja(),Xn.TenSize=yo=new Xn(10,10).ja(),Xn.InfiniteSize=ta=new Xn(1/0,1/0).ja(),Xn.NoSize=na=new Xn(NaN,NaN).ja(),Xn.parse=Na,Xn.stringify=ka;function gn(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof tt?(x=a.x,a=a.y,y instanceof tt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Xn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):yt("Incorrect second argument supplied to Rect constructor "+y)):yt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Le=gn.prototype,Le.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Le.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Oa(a,y,x){a.width=y,a.height=x}Le.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Le.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Le.dd=function(a){return this.x=a.x,this.y=a.y,this},Le.tA=function(a){return this.width=a.width,this.height=a.height,this},gn.prototype.copy=function(){var a=new gn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Le=gn.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),new gn(x,b,z,ne)}return new gn}function Hs(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Le.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Le.D=function(a){return a instanceof gn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Le.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Le.Xa=function(a){return it.B(this.x,a.x)&&it.B(this.y,a.y)&&it.B(this.width,a.width)&&it.B(this.height,a.height)};function wl(a,y){return it.$(a.x,y.x)&&it.$(a.y,y.y)&&it.$(a.width,y.width)&&it.$(a.height,y.height)}Le.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Le.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Le.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Le.offset=function(a,y){return this.x+=a,this.y+=y,this},Le.Bc=function(a,y){return Ma(this,y,a,y,a)},Le.Co=function(a){return Ma(this,a.top,a.right,a.bottom,a.left)},Le.Fv=function(a){return Ma(this,-a.top,-a.right,-a.bottom,-a.left)},Le.Hz=function(a,y,x,E){return Ma(this,a,y,x,E)};function Ma(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Le.Ex=function(a){return yu(this,a.x,a.y,a.width,a.height)},Le.Uu=function(a,y,x,E){return yu(this,a,y,x,E)};function yu(a,y,x,E,b){var z=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ne),a}Le.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Le.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Cl(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Le.Ye=function(a){return ma(this,a.x,a.y,0,0)},Le.ed=function(a){return ma(this,a.x,a.y,a.width,a.height)},Le.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),ma(this,a,y,x,E)};function ma(a,y,x,E,b){var z=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=y-z,a.height=x-ne,a}Le.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Fo(a,y,x,E,b,z,ne,re){return ne===void 0&&(ne=0),re===void 0&&(re=0),a<=b&&b+ne<=a+x&&y<=z&&z+re<=y+E}function Ul(a,y,x,E,b,z,ne,re){return a>ne+b||b>x+a?!1:!(y>re+z||z>E+y)}Le.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Le.Mz=function(){return this.width===0&&this.height===0},gn.alloc=function(){var a=So.pop();return a===void 0?new gn:a},gn.allocAt=function(a,y,x,E){var b=So.pop();return b===void 0?new gn(a,y,x,E):b.h(a,y,x,E)},gn.free=function(a){So.push(a)},Ve.Object.defineProperties(gn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new tt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new tt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),gn.prototype.isEmpty=gn.prototype.Mz,gn.prototype.isReal=gn.prototype.w,gn.intersectsLineSegment=function(a,y,x,E,b,z,ne,re){return it.Fx(a,y,x,E,b,z,ne,re)},gn.prototype.setSpot=gn.prototype.yi,gn.prototype.union=gn.prototype.Kv,gn.prototype.unionRect=gn.prototype.ed,gn.prototype.unionPoint=gn.prototype.Ye,gn.prototype.intersects=gn.prototype.Vu,gn.prototype.intersectsRect=gn.prototype.Yc,gn.prototype.intersect=gn.prototype.Uu,gn.prototype.intersectRect=gn.prototype.Ex,gn.prototype.grow=gn.prototype.Hz,gn.prototype.subtractMargin=gn.prototype.Fv,gn.prototype.addMargin=gn.prototype.Co,gn.prototype.inflate=gn.prototype.Bc,gn.prototype.offset=gn.prototype.offset,gn.prototype.contains=gn.prototype.contains,gn.prototype.containsRect=gn.prototype.Re,gn.prototype.containsPoint=gn.prototype.ca,gn.prototype.equalsApprox=gn.prototype.Xa,gn.prototype.equalTo=gn.prototype.hi,gn.prototype.equals=gn.prototype.D,gn.prototype.setSize=gn.prototype.tA,gn.prototype.setPoint=gn.prototype.dd,gn.prototype.set=gn.prototype.set,gn.prototype.setTo=gn.prototype.sg;var $r=null,Ko=null,So=[];gn.className="Rect",gn.parse=Vl,gn.stringify=Hs,gn.contains=Fo,gn.intersects=Ul,gn.ZeroRect=$r=new gn(0,0,0,0).ja(),gn.NoRect=Ko=new gn(NaN,NaN,NaN,NaN).ja(),gn.parse=Vl,gn.stringify=Hs,gn.contains=Fo,gn.intersects=Ul;function Di(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):yt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Di.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Di.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Di.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Di.prototype.copy=function(){var a=new Di;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Le=Di.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ga(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Di;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Di(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Di(x,b);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new Di(x,b):new Di(x,b,z,ne)}return new Di}function $a(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Le.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Le.D=function(a){return a instanceof Di?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Le.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Le.Xa=function(a){return it.B(this.top,a.top)&&it.B(this.right,a.right)&&it.B(this.bottom,a.bottom)&&it.B(this.left,a.left)},Le.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Di.alloc=function(){var a=Dl.pop();return a===void 0?new Di:a},Di.free=function(a){Dl.push(a)},Di.prototype.isReal=Di.prototype.w,Di.prototype.equalsApprox=Di.prototype.Xa,Di.prototype.equalTo=Di.prototype.hi,Di.prototype.equals=Di.prototype.D,Di.prototype.set=Di.prototype.set,Di.prototype.setTo=Di.prototype.sg;var bs=null,El=null,Dl=[];Di.className="Margin",Di.parse=Ga,Di.stringify=$a,Di.ZeroMargin=bs=new Di(0,0,0,0).ja(),Di.TwoMargin=El=new Di(2,2,2,2).ja(),Di.parse=Ga,Di.stringify=$a;function bi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Fa,cs,bl,Ol,Il,Qr,Ju,nl,vs,ys,Su,Iu,Ys,ul,Mh,uc,Lh,hc,Fh,Ru,Qu,Rl,Hh,qu,eh,Co,Uo,Ws,ds,es,Aa,za,rs,Ka,Gs,$s;bi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},bi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bi.prototype.copy=function(){var a=new bi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Le=bi.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this};function va(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function rd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Fa;if(a==="TopLeft")return cs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return bl;if(a==="TopRight")return Ol;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Il;if(a==="Center")return Qr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ju;if(a==="BottomLeft")return nl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return vs;if(a==="BottomRight")return ys;if(a==="TopSide")return Su;if(a==="LeftSide")return Iu;if(a==="RightSide")return Ys;if(a==="BottomSide")return ul;if(a==="TopBottomSides")return Mh;if(a==="LeftRightSides")return uc;if(a==="TopLeftSides")return Lh;if(a==="TopRightSides")return hc;if(a==="BottomLeftSides")return Fh;if(a==="BottomRightSides")return Ru;if(a==="NotTopSide")return Qu;if(a==="NotLeftSide")return Rl;if(a==="NotRightSide")return Hh;if(a==="NotBottomSide")return qu;if(a==="AllSides")return eh;if(a==="Default")return Co;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ne=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ne,this.translate(-y,-x),this},Le=_t.prototype,Le.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Le.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Le.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Le.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Le.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Le.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ne=this.m12,re=this.m21,oe=this.m22,le=this.dx,ue=this.dy,pe=y*z+x*re+le,xe=y*ne+x*oe+ue,Ee=E*z+x*re+le,Fe=E*ne+x*oe+ue;return x=y*z+b*re+le,y=y*ne+b*oe+ue,z=E*z+b*re+le,E=E*ne+b*oe+ue,b=Math.min(pe,Ee),pe=Math.max(pe,Ee),Ee=Math.min(xe,Fe),xe=Math.max(xe,Fe),b=Math.min(b,x),pe=Math.max(pe,x),Ee=Math.min(Ee,y),xe=Math.max(xe,y),b=Math.min(b,z),pe=Math.max(pe,z),Ee=Math.min(Ee,E),xe=Math.max(xe,E),a.h(b,Ee,pe-b,xe-Ee),a},_t.alloc=function(){var a=mn.pop();return a===void 0?new _t:a},_t.free=function(a){mn.push(a)},_t.prototype.transformRect=_t.prototype.pp,_t.prototype.transformPoint=_t.prototype.Ga,_t.prototype.scale=_t.prototype.scale,_t.prototype.translate=_t.prototype.translate,_t.prototype.rotate=_t.prototype.rotate,_t.prototype.invert=_t.prototype.Vj,_t.prototype.multiplyInverted=_t.prototype.bv,_t.prototype.multiply=_t.prototype.multiply,_t.prototype.reset=_t.prototype.reset,_t.prototype.isIdentity=_t.prototype.ws,_t.prototype.equals=_t.prototype.D,_t.prototype.setTransform=_t.prototype.setTransform,_t.prototype.set=_t.prototype.set;var mn=[];_t.className="Transform",_t.xF="54a702f3e53909c447824c6706603faf4c";var it={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=it.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);it.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5a&&-5e-8=b&&(b=1e-6),aue-le)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ne&&ne<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ne=(x-a)/(E-y)*(ne-y)+a,ne-b<=z&&z<=ne+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ne,re,oe,le,ue,pe){if(it.Yb(a,y,ne,re,pe,x,E)&&it.Yb(a,y,ne,re,pe,b,z))return it.Yb(a,y,ne,re,pe,le,ue);var xe=(a+x)/2,Ee=(y+E)/2,Fe=(x+b)/2,Oe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(xe+Fe)/2,x=(Ee+Oe)/2,Fe=(Fe+b)/2,Oe=(Oe+z)/2;var at=(E+Fe)/2,Xe=(x+Oe)/2;return it.cs(a,y,xe,Ee,E,x,at,Xe,oe,le,ue,pe)||it.cs(at,Xe,Fe,Oe,b,z,ne,re,oe,le,ue,pe)},ax:function(a,y,x,E,b,z,ne,re,oe){var le=(x+b)/2,ue=(E+z)/2;return oe.h((((a+x)/2+le)/2+(le+(b+ne)/2)/2)/2,(((y+E)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ne,re){var oe=(x+b)/2,le=(E+z)/2;return Mr(((a+x)/2+oe)/2,((y+E)/2+le)/2,(oe+(b+ne)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ne,re,oe,le){if(it.Yb(a,y,ne,re,oe,x,E)&&it.Yb(a,y,ne,re,oe,b,z))ma(le,a,y,0,0),ma(le,ne,re,0,0);else{var ue=(a+x)/2,pe=(y+E)/2,xe=(x+b)/2,Ee=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ue+xe)/2,x=(pe+Ee)/2,xe=(xe+b)/2,Ee=(Ee+z)/2;var Fe=(E+xe)/2,Oe=(x+Ee)/2;it.Dl(a,y,ue,pe,E,x,Fe,Oe,oe,le),it.Dl(Fe,Oe,xe,Ee,b,z,ne,re,oe,le)}return le},Qe:function(a,y,x,E,b,z,ne,re,oe,le){if(it.Yb(a,y,ne,re,oe,x,E)&&it.Yb(a,y,ne,re,oe,b,z))le.length===0&&(le.push(a),le.push(y)),le.push(ne),le.push(re);else{var ue=(a+x)/2,pe=(y+E)/2,xe=(x+b)/2,Ee=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ue+xe)/2,x=(pe+Ee)/2,xe=(xe+b)/2,Ee=(Ee+z)/2;var Fe=(E+xe)/2,Oe=(x+Ee)/2;it.Qe(a,y,ue,pe,E,x,Fe,Oe,oe,le),it.Qe(Fe,Oe,xe,Ee,b,z,ne,re,oe,le)}return le},jv:function(a,y,x,E,b,z,ne,re,oe,le){if(it.Yb(a,y,b,z,le,x,E))return it.Yb(a,y,b,z,le,re,oe);var ue=(a+x)/2,pe=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var xe=(ue+x)/2,Ee=(pe+E)/2;return it.jv(a,y,ue,pe,xe,Ee,ne,re,oe,le)||it.jv(xe,Ee,x,E,b,z,ne,re,oe,le)},OA:function(a,y,x,E,b,z,ne){return ne.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ne},iv:function(a,y,x,E,b,z,ne,re){if(it.Yb(a,y,b,z,ne,x,E))ma(re,a,y,0,0),ma(re,b,z,0,0);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,pe=(le+E)/2;it.iv(a,y,oe,le,ue,pe,ne,re),it.iv(ue,pe,x,E,b,z,ne,re)}return re},ep:function(a,y,x,E,b,z,ne,re){if(it.Yb(a,y,b,z,ne,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,pe=(le+E)/2;it.ep(a,y,oe,le,ue,pe,ne,re),it.ep(ue,pe,x,E,b,z,ne,re)}return re},Eo:function(a,y,x,E,b,z,ne,re,oe,le,ue,pe,xe,Ee){if(it.Yb(a,y,ne,re,xe,x,E)&&it.Yb(a,y,ne,re,xe,b,z))return!it.Rl(a,y,ne,re,oe,le,ue,pe)||(xe=(a-ne)*(le-pe)-(y-re)*(oe-ue),xe===0)?!1:(Ee.h(((a*re-y*ne)*(oe-ue)-(a-ne)*(oe*pe-le*ue))/xe,((a*re-y*ne)*(le-pe)-(y-re)*(oe*pe-le*ue))/xe),!0);var Fe=(a+x)/2,Oe=(y+E)/2,at=(x+b)/2,Xe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Fe+at)/2,x=(Oe+Xe)/2,at=(at+b)/2,Xe=(Xe+z)/2;var pt=(E+at)/2,wt=(x+Xe)/2,Mt=1/0,It=!1,qt=0,ei=0;return it.Eo(a,y,Fe,Oe,E,x,pt,wt,oe,le,ue,pe,xe,Ee)&&(a=(Ee.x-oe)*(Ee.x-oe)+(Ee.y-le)*(Ee.y-le),a=ue)return Ee;if((oe>ue?oe-ue:ue-oe)<(le>pe?le-pe:pe-le)){if(ya)return Ee}else if(aa)return Ee;0xe&&Ee--}else{Fe=(a+x)/2,Oe=(y+E)/2;var at=(x+b)/2,Xe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Fe+at)/2,x=(Oe+Xe)/2,at=(at+b)/2,Xe=(Xe+z)/2;var pt=(E+at)/2,wt=(x+Xe)/2;Ee+=it.Fo(a,y,Fe,Oe,E,x,pt,wt,oe,le,ue,pe,xe),Ee+=it.Fo(pt,wt,at,Xe,b,z,ne,re,oe,le,ue,pe,xe)}return Ee},qh:function(a,y,x,E,b,z,ne){return it.$(a,x)?(yy?(ne.h(a,y),!1):(ne.h(a,z),!0)):it.$(y,E)?(aa?(ne.h(a,y),!1):(ne.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ne.h(a,y),!1):1.000005y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ne=(E-y)/(x-a),it.$(re,ne)?(it.qh(a,y,x,E,b,z,oe),!1):(b=(ne*a-re*b+z-y)/(ne-re),it.$(ne,0)?(aa?(oe.h(a,y),!1):(oe.h(b,y),!0)):it.qh(a,y,x,E,b,ne*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return it.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ne,re,oe,le){function ue(at,Xe){var pt=(at-a)*(at-a)+(Xe-y)*(Xe-y);pt(x>a?x-a:a-x)){if(xe=1-(x-b)*(x-b)/(xe*xe),0>xe)return oe;xe=Math.sqrt(xe),E=-le*xe+z,ue(x,le*xe+z),ue(x,E)}else{if(x=(E-y)/(x-a),E=1/(xe*xe)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*b/(xe*xe),xe=re*re-4*E*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+b*b/(xe*xe)-1+(y-x*a)*(y-x*a)/(le*le)),0>xe)return oe;xe=Math.sqrt(xe),le=(-re+xe)/(2*E),ue(le,x*le-x*a+y),xe=(-re-xe)/(2*E),ue(xe,x*xe-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ne,re,oe){var le=1e21,ue=a,pe=y;if(it.Ve(a,y,a,E,b,z,ne,re,oe)){var xe=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);xele},us:function(a,y,x){return it.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ne,re){var oe=a+x,le=y+E;return b===ne?(z=y):z===re?(b=a):!!(Fo(a,y,x,E,b,z)||Fo(a,y,x,E,ne,re)||it.Rl(a,y,oe,y,b,z,ne,re)||it.Rl(oe,y,oe,le,b,z,ne,re)||it.Rl(oe,le,a,le,b,z,ne,re)||it.Rl(a,le,a,y,b,z,ne,re))},Rl:function(a,y,x,E,b,z,ne,re){return a===x&&y===E&&b===ne&&z===re?a===b&&y===z:0>=it.Fl(a,y,x,E,b,z)*it.Fl(a,y,x,E,ne,re)&&0>=it.Fl(b,z,ne,re,a,y)*it.Fl(b,z,ne,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ne=Math.PI;z||(E*=ne/180,b*=ne/180);var re=E>b?-1:1;z=[];var oe=ne/2,le=E;if(E=Math.min(2*ne,Math.abs(b-E)),1e-5>E)return oe=le+re*Math.min(E,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5x,z=0>E;if(ale&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ue=a/(y+b),pe=ne/(y+z);if(ue=ue*ue+pe*pe-1,0ue)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,za?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case yn.u:var y=new gn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case yn.F:if(y=new gn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case yn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=Mt-1?!0:le[Oe+1].match(It)!==null}function E(){return Oe++,le[Oe]}function b(dr){var Xi=parseFloat(E()),vo=parseFloat(E());at===at.toLowerCase()&&(Xi=wt.x+Xi,vo=wt.y+vo),dr.h(Xi,vo)}function z(){return b(wt),wt}function ne(){return b(pt),pt}function re(){var dr=Xe.toLowerCase();return dr!=="c"&&dr!=="s"&&dr!=="q"&&dr!=="t"?wt:new tt(2*wt.x-pt.x,2*wt.y-pt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a=Mt-1);)if(Xe=at,at=E(),at!=="")switch(at.toUpperCase()){case"X":Ee=!0,pe=ue=!1;break;case"M":for(Fe=z(),a.mc===null||Ee===!0?(yg(a,Fe.x,Fe.y,ue,!pe,xe),Ee=!1):a.moveTo(Fe.x,Fe.y),oe.assign(wt);!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"L":for(;!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"H":for(;!x();)wt=new tt((at===at.toLowerCase()?wt.x:0)+parseFloat(E()),wt.y),a.lineTo(wt.x,wt.y);break;case"V":for(;!x();)wt=new tt(wt.x,(at===at.toLowerCase()?wt.y:0)+parseFloat(E())),a.lineTo(wt.x,wt.y);break;case"C":for(;!x();){Fe=new tt,b(Fe);var qt=ne(),ei=z();_c(a,Fe.x,Fe.y,qt.x,qt.y,ei.x,ei.y)}break;case"S":for(;!x();)Fe=re(),qt=ne(),ei=z(),_c(a,Fe.x,Fe.y,qt.x,qt.y,ei.x,ei.y);break;case"Q":for(;!x();)Fe=ne(),qt=z(),Zm(a,Fe.x,Fe.y,qt.x,qt.y);break;case"T":for(;!x();)pt=Fe=re(),qt=z(),Zm(a,Fe.x,Fe.y,qt.x,qt.y);break;case"B":for(;!x();){Fe=parseFloat(E()),qt=parseFloat(E()),ei=parseFloat(E());var Si=parseFloat(E()),fi=parseFloat(E()),Gn=fi,Tn=!1;x()||(Gn=parseFloat(E()),x()||(Tn=parseFloat(E())!==0)),at===at.toLowerCase()&&(ei+=wt.x,Si+=wt.y),a.arcTo(Fe,qt,ei,Si,fi,Gn,Tn)}break;case"A":for(;!x();)Fe=Math.abs(parseFloat(E())),qt=Math.abs(parseFloat(E())),ei=parseFloat(E()),fi=Si=!1,Tn=Gn=0,Gn=E(),Gn.length===1?(Si=!!parseFloat(Gn),fi=!!parseFloat(E()),Gn=parseFloat(E())):Gn.length===2?(Si=!!parseFloat(Gn[0]),fi=!!parseFloat(Gn[1]),Gn=parseFloat(E())):(Si=!!parseFloat(Gn[0]),fi=!!parseFloat(Gn[1]),Gn=parseFloat(Gn.slice(2))),Tn=parseFloat(E()),at===at.toLowerCase()&&(Gn=wt.x+Gn,Tn=wt.y+Tn),wt.h(Gn,Tn),wx(a,Fe,qt,ei,Si,fi,Gn,Tn);break;case"Z":Px(a),wt.assign(oe);break;case"F":for(Fe="",qt=1;le[Oe+qt];)if(le[Oe+qt]==="0")xe=!0,qt++;else if(le[Oe+qt].match(/[Uu]/)!==null)qt++;else if(le[Oe+qt].match(It)===null)qt++;else{Fe=le[Oe+qt];break}Fe.match(/[Mm]/)?ue=!0:0ne&&(ne+=360),Fe.startAngle+=ne),0>a&&(Fe.startAngle=180-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),0>E&&(Fe.startAngle=-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY!==void 0&&(Fe.radiusY*=Math.sqrt(y*y+E*E));break;case tr:if(ne=Fe.endX,re=Fe.endY,Fe.endX=ne*a+re*x+b,Fe.endY=ne*y+re*E+z,Fe.radiusX===0||Fe.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),Fe.xAxisRotation+=ne),0>a&&(Fe.xAxisRotation=180-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),0>E&&(Fe.xAxisRotation=-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY*=Math.sqrt(y*y+E*E);break;default:yt("Unknown Segment type: "+Fe.type)}}}}return this._isInvalidBounds=!0,this},Le.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case yn.j:return it.Yb(x,E,b,z,y,a.x,a.y);case yn.u:var ne=gn.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ne.ca(a),gn.free(ne),a;case yn.F:ne=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),re=a.y-(re+y),1>=ne*ne/(x*x)+re*re/(y*y));case yn.o:return Ir(this,a,y,!0,!1);default:return!1}};function Ir(a,y,x,E,b){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,re=0,oe,le,ue,pe,xe=a.figures.s,Ee=xe.length,Fe=0;Fe=a)return 0;if((b>ne?b-ne:ne-b)<(z>re?z-re:re-z)){if(zre)return 0}else if(yz)return 0}else if(bne)return 0}else if(leb)return 0;return 0a?a=0:1=z)return E=z-ne,E=ue===0?0:E/ue,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ne+=ue}}return y},Le.wx=function(a){if(0>a?a=0:1=b)return b=y[ne],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=le}}return NaN},Le.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-ne,E=ue===0?0:E/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],b=ue[2*a+2],a=ue[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ne+=ue}}return y},Le.xx=function(a){if(this.type===yn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x=E?E===x?0:1:Math.abs(a-x)/(E-ne)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(b-x)*(b-x);var re=tt.alloc();return it.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,tt.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ne)}}else if(this.type===yn.u){ne=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ne!==oe||re!==b){y=oe-ne,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),oe),a=Math.min(Math.max(a,re),b),ne=Math.abs(E-ne),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(ne,oe,re,b);if(le===re)return E/z;if(le===oe)return(y+a)/z;if(le===b)return(2*y+x-E)/z;if(le===ne)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=tt.alloc(),b=1/0,re=ne=0,oe=y.length;for(var ue=le=0,pe=0;pea?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Rr&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===Rr&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}_i.prototype.copy=function(){var a=new _i;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Le=_i.prototype,Le.Xa=function(a){if(!(a instanceof _i)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Ar:case or:return it.B(this.endX,a.endX)&&it.B(this.endY,a.endY);case Cr:return it.B(this.endX,a.endX)&&it.B(this.endY,a.endY)&&it.B(this.point1X,a.point1X)&&it.B(this.point1Y,a.point1Y)&&it.B(this.point2X,a.point2X)&&it.B(this.point2Y,a.point2Y);case Lo:return it.B(this.endX,a.endX)&&it.B(this.endY,a.endY)&&it.B(this.point1X,a.point1X)&&it.B(this.point1Y,a.point1Y);case Rr:return it.B(this.startAngle,a.startAngle)&&it.B(this.sweepAngle,a.sweepAngle)&&it.B(this.centerX,a.centerX)&&it.B(this.centerY,a.centerY)&&it.B(this.radiusX,a.radiusX)&&it.B(this.radiusY,a.radiusY);case tr:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&it.B(this.xAxisRotation,a.xAxisRotation)&&it.B(this.endX,a.endX)&&it.B(this.endY,a.endY)&&it.B(this.radiusX,a.radiusX)&&it.B(this.radiusY,a.radiusY);default:return!1}},Le.qb=function(a){a.classType===_i&&(this.type=a)},Le.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ar:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case or:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Cr:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Lo:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Rr:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case tr:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.close=function(){return this.isClosed=!0,this};function $i(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=it.jx(0,0,x=Ee?ne=Math.PI:1<=Ee&&(ne=0),!oe&&0ne&&(ne+=2*Math.PI),oe=y>z?1:y/z,Ee=y>z?z/y:1,y=it.jx(0,0,y>z?y:z,ue,ue+ne,!0),z=_t.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Ee),yn.Ha(y,z),_t.free(z),a.ae=y,a.ae}Ve.Object.defineProperties(_i.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&cn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&cn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&cn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&On(a,">= zero",_i,"radiusX"),this._isFrozen&&cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&On(a,">= zero",_i,"radiusY"),this._isFrozen&&cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&cn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&cn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&cn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&cn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&cn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),_i.prototype.equalsApprox=_i.prototype.Xa;var Ar=new fn(_i,"Move",0),or=new fn(_i,"Line",1),Cr=new fn(_i,"Bezier",2),Lo=new fn(_i,"QuadraticBezier",3),Rr=new fn(_i,"Arc",4),tr=new fn(_i,"SvgArc",4);_i.className="PathSegment",_i.Move=Ar,_i.Line=or,_i.Bezier=Cr,_i.QuadraticBezier=Lo,_i.Arc=Rr,_i.SvgArc=tr;function cr(){this.H=null,this.xu=new tt(0,0).freeze(),this.mt=new tt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}cr.prototype.copy=function(){var a=new cr;return this.clone(a)},cr.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},cr.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},cr.prototype.So=function(a,y){var x=this.diagram;return x===null||Zd(x,a,y),y},cr.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Zd(x,a,y),y.assign(x.Ps(y))),y},Ve.Object.defineProperties(cr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),cr.prototype.getMultiTouchDocumentPoint=cr.prototype.Bz,cr.prototype.getMultiTouchViewPoint=cr.prototype.So,cr.className="InputEvent";function lr(){this.H=null,this.xa="",this.ar=this.Lr=null}lr.prototype.copy=function(){var a=new lr;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},lr.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ve.Object.defineProperties(lr.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),lr.className="DiagramEvent";function Ii(){this.Fm=Yr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ii.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ii.prototype.copy=function(){var a=new Ii;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Wt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Wt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Wt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Wt(y)&&typeof y.J=="function"?y.J():y,a},Ii.prototype.qb=function(a){a.classType===Ii&&(this.change=a)},Ii.prototype.toString=function(){var a="";return a=this.change===Do?a+"* ":this.change===Yr?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Do?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ai(this.object)),this.oldValue!==null&&(a+=" old: "+Ai(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ai(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ii.prototype.I=function(a){return a?this.oldValue:this.newValue},Ii.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ii.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ii.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ii.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ii.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ve.Object.defineProperties(Ii.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Do&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ii.prototype.redo=Ii.prototype.redo,Ii.prototype.canRedo=Ii.prototype.canRedo,Ii.prototype.undo=Ii.prototype.undo,Ii.prototype.canUndo=Ii.prototype.canUndo,Ii.prototype.getParam=Ii.prototype.Dz,Ii.prototype.getValue=Ii.prototype.I,Ii.prototype.clear=Ii.prototype.clear;var Do=new fn(Ii,"Transaction",-1),Yr=new fn(Ii,"Property",0),ko=new fn(Ii,"Insert",1),Yo=new fn(Ii,"Remove",2);Ii.className="ChangedEvent",Ii.Transaction=Do,Ii.Property=Yr,Ii.Insert=ko,Ii.Remove=Yo;function br(){this.o=new Nn().freeze(),this.xa="",this.j=!1}br.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Ve.Object.defineProperties(br.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),br.prototype.optimize=br.prototype.ak,br.prototype.redo=br.prototype.redo,br.prototype.canRedo=br.prototype.canRedo,br.prototype.undo=br.prototype.undo,br.prototype.canUndo=br.prototype.canUndo,br.prototype.clear=br.prototype.clear,br.className="Transaction";function Oo(){this.Pt=new Ln,this.Jd=!1,this.u=new Nn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Nn().freeze(),this.hl=new Nn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Oo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;Ea.transactionLevel&&ri("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Le.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Oo.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||ri("Change not within a transaction: "+x.toString()))}},Oo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Ve.Object.defineProperties(Oo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexb||Math.abs(y.y-a.y)>E},Ve.Object.defineProperties(Wi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Qt&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Wi.prototype.startTransaction=Wi.prototype.Ea,Wi.className="Tool";function Vr(){Wi.call(this),this.name="ToolManager",this.hb=new Nn,this.ob=new Nn,this.Hb=new Nn,this.F=this.V=850,this.o=new Xn(2,2).ja(),this.Ha=5e3,this.ia=Is,this.u=Bh,this.Mp=this.j=null,this.zj=-1}Ot(Vr,Wi),Vr.prototype.initializeStandardTools=function(){},Vr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof lo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===ru&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===zu){y.bubbles=!0;return}if(this.gestureBehavior===ru)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ne=null;x.fromNode===null&&(z=od(a,x.i(0),!1),z!==null&&(ne=z.part));var re=null,oe=null;x.toNode===null&&(re=od(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ne,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):ar(b,ne,z,oe,re):ar(b,null,null,null,null)}}}}aa.prototype.doDragOver=function(){};function Sr(a,y){var x=a.diagram;a.dragsLink&&Zn(a,!0),Nh(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(b,z),b.handled))break;Jo(a,b,z),z=Bc(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||zt!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof oi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||zt!==null){for(a=gn.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof oi&&Je(x,E,a);gn.free(a)}}}function Jo(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof gr||(x=a.mouseDrop,x!==null&&x(y))}function Je(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof Kn},!0,function(b){return b instanceof Kn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}aa.prototype.doDropOnto=function(){},aa.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(_u(this,!1),Jf(a,this.copiedParts),Pu(this,this.copiedParts,!1),ud(a,this.copiedParts)):this.mayMove()?(ou(this),Pu(this,this.draggedParts,!0)):this.mayDragOut()?(_u(this,!1),Pu(this,this.copiedParts,!1)):ou(this),Lc(this,a.lastInput.documentPoint))}},aa.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ou(this),_u(this,!0),Jf(a,this.copiedParts),Pu(this,this.copiedParts,!1),ud(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ou(this),this.mayMove()&&(Pu(this,this.draggedParts,!0),Lc(this,a.lastInput.documentPoint))),this.Ym=!0,Sr(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Ye(this),a.Ya(),ud(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},aa.prototype.simulatedMouseMove=function(a,y,x){if(zt===null)return!1;var E=zt.diagram;x instanceof Qt||(x=null);var b=nn;return x!==b&&(b!==null&&b!==E&&(b.ug(),zt.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),nn=x,x!==null&&x!==E&&(Od(),b=x.toolManager.findTool("Dragging"),b!==null&&(Ml.contains(b)||Ml.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0ne&&(ne=le),ue>re&&(re=ue))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ne-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,gn.free(z),z=a.Fr,ne=new xi,re=tt.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof Kn&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,Wc(ue,z.x-E,z.y-b),ue.suspendsRouting=!0,ne.add(ue,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),oe.location=re,oe.Va(),ne.add(oe,a.Pd(re))));tt.free(re),a.copiedParts=ne,Gh(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}aa.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},aa.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new tt},Ve.Object.defineProperties(aa.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),aa.prototype.getDraggingSource=aa.prototype.Az;var zt=null,nn=null;aa.className="DraggingTool",Ml=new Nn,sr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vr.prototype.doCancel=function(){zt!==null&&zt.doCancel(),Wi.prototype.doCancel.call(this)};function Ht(){Wi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Kn,y=new Er;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Er,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new oi,y=new Er,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=wo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new oi,y=new Er,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=wo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new xi,this.Of=this.gj=this.Pf=null}Ot(Ht,Wi),Ht.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ht.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ne=Xn.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,Xn.free(ne),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Qr,z=tt.alloc(),x.location=y.ga(Qr,z),tt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Ht.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=wo,y.fromSpot=Fa,y.toSpot=Fa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ht.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ht.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof oi){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ht.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof oi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof oi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Ht.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(pe){return b.findValidLinkablePort(pe,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,re=ne.part;if(re instanceof oi){var oe=ne.ga(Qr,tt.alloc()),le=x.x-oe.x,ue=x.y-oe.y;tt.free(oe),oe=le*le+ue*ue,oex){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Ht.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Ht.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ht.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof oi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof oi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Ht.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Ht.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Ln;return E.add(a),Mn(this,x,y,E)};function Mn(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Mn(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Mn(a,y.labeledLink,x,E))))}Ht.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Pf){if(E===rp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Sn(this,a,y,x,!0)}if(E===op){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Sn(this,a,y,x,!0)}if(E===tp)return a===y?a=!0:(E=new Ln,E.add(y),a=Fn(this,E,a,y,x)),!a;if(E===np)return!Sn(this,a,y,x,!1);if(E===ip)return a===y?a=!0:(E=new Ln,E.add(y),a=Qn(this,E,a,y,x)),!a}return!0};function Sn(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==E&&(!b||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Sn(a,ne,x,E,b)))return!0}return!1}function Fn(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&Fn(a,y,ne,E,b)))return!0}return!1}function Qn(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b){var re=ne.fromNode;if(ne=ne.toNode,re=re===x?ne:re,re!==x&&Qn(a,y,re,E,b))return!0}}return!1}Ve.Object.defineProperties(Ht.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Ht.className="LinkingBaseTool";function kn(){Ht.call(this),this.name="Linking",this.V={},this.F=null,this.K=Jn,this.Xd=null}Ot(kn,Ht),kn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},kn.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof oi)))return null;var x=this.direction;if(x===Jn||x===ki){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Jn||x===wi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},kn.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof oi&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof oi&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},kn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},kn.prototype.doStop=function(){Ht.prototype.doStop.call(this),this.startObject=null},kn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var re=ne.part;re instanceof oi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ne):(y=re,x=ne,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ne===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},kn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Kn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},kn.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},kn.prototype.doNoLink=function(){},Ve.Object.defineProperties(kn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Jn=new fn(kn,"Either",0),ki=new fn(kn,"ForwardsOnly",0),wi=new fn(kn,"BackwardsOnly",0);kn.className="LinkingTool",kn.Either=Jn,kn.ForwardsOnly=ki,kn.BackwardsOnly=wi;function yi(){Ht.call(this),this.name="Relinking";var a=new Er;a.figure="Diamond",a.desiredSize=No,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Er,a.figure="Diamond",a.desiredSize=No,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new gn}Ot(yi,Ht),yi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Kn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},yi.prototype.makeAdornment=function(a,y){var x=new lo;return x.type=Hn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},yi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},yi.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof lo&&x.adornedPart instanceof Kn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0y.firstPickIndex+1&&x=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Hn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},pr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},pr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},pr.prototype.stopTransaction=function(){var a=this.diagram,y=Wi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},pr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,tt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),tt.free(b)}},pr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,tt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),tt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},pr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof gr){var E=new Nn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},pr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Qr);var ne=this.adornedObject.naturalBounds,re=ne.x,oe=ne.y,le=ne.x+ne.width,ue=ne.y+ne.height,pe=1;if(!z){pe=ne.width;var xe=ne.height;0>=pe&&(pe=1),0>=xe&&(xe=1),pe=xe/pe}return xe=tt.alloc(),it.No(a.x,a.y,re,oe,b.width,b.height,xe),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(xe.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(xe.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe):(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width),a.x=le-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(xe.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(xe.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe):(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width),a.x=le-a.width)):(a.x=Math.max(xe.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(xe.x-re,E.width),x.width),a.y=Math.max(xe.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe):(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(xe.x-re,E.width),x.width),a.height=Math.max(Math.min(xe.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe):(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width))):(a.width=Math.max(Math.min(xe.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(pe*a.width,E.height),x.height),a.width=a.height/pe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(xe.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(xe.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/pe,E.width),x.width),a.height=pe*a.width,a.x=re+.5*(le-re-a.width))),tt.free(xe),a},pr.prototype.computeReshape=function(){var a=In;return this.adornedObject instanceof Er&&(a=Ev(this.adornedObject)),!(a===Ci||this.diagram.lastInput.shift)},pr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},pr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.widthx?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Ur.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new tt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ur.prototype.stopTransaction=function(){var a=this.diagram,y=Wi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ur.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ur.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ur.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Ur.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Ur.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Ve.Object.defineProperties(Ur.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof lo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof lo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Ur.className="RotatingTool",sr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function zo(){Wi.call(this),this.name="ClickSelecting"}Ot(zo,Wi),zo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},zo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},zo.className="ClickSelectingTool";function Pr(){Wi.call(this),this.name="Action",this.pk=null}Ot(Pr,Wi),Pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Pr.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Pr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Pr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Pr.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Pr.prototype.doStop=function(){this.pk=null},Pr.className="ActionTool";function Wr(){Wi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new tt(0,0)}Ot(Wr,Wi),Wr.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Wr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Wr.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Oi)x.Zc()&&($u(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Wt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=tt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Xf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),tt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Ve.Object.defineProperties(Wr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Wr.className="ClickCreatingTool";function xr(){Wi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Oi;a.layerName="Tool",a.selectable=!1;var y=new Er;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ot(xr,Wi),xr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},oo.prototype.doStart=function(){hl=this,this.textBlock!==null&&this.doActivate()},oo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Qo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=_o;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new gn(this.textBlock.ga(cs),this.textBlock.ga(ys));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},oo.prototype.doCancel=function(){this.stopTool()},oo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},oo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ms)},oo.prototype.acceptText=function(a){switch(a){case Ms:this.qa===Ns?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===_o||this.qa===Vs||this.qa===ha)&&(this.qa=ca,as(this));break;case Va:case mo:case bo:(mo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===_o||this.qa===Vs||this.qa===ha)&&(this.qa=ca,as(this))}};function as(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Ns,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Vs,a.doError(b,z))}}oo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},oo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},oo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=eo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},oo.prototype.doStop=function(){hl=null},oo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},oo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ve.Object.defineProperties(oo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),oo.prototype.measureTemporaryTextBlock=oo.prototype.Lx;var Va=new fn(oo,"LostFocus",0),Ms=new fn(oo,"MouseDown",1),bo=new fn(oo,"Tab",2),mo=new fn(oo,"Enter",3),Mo=new fn(oo,"SingleClick",0),qr=new fn(oo,"SingleClickSelected",1),ya=new fn(oo,"DoubleClick",2),eo=new fn(oo,"StateNone",0),_o=new fn(oo,"StateActive",1),ha=new fn(oo,"StateEditing",2),ca=new fn(oo,"StateValidating",3),Vs=new fn(oo,"StateInvalid",4),Ns=new fn(oo,"StateValidated",5),hl=null;oo.className="TextEditingTool",oo.LostFocus=Va,oo.MouseDown=Ms,oo.Tab=bo,oo.Enter=mo,oo.SingleClick=Mo,oo.SingleClickSelected=qr,oo.DoubleClick=ya,oo.StateNone=eo,oo.StateActive=_o,oo.StateEditing=ha,oo.StateValidating=ca,oo.StateInvalid=Vs,oo.StateValidated=Ns,sr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ca(a){Yl||(jl(),Yl=!0),this.H=ph,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=wu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new La,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}Ca.prototype.Xe=function(a){this.H=a},Ca.prototype.canStart=function(){return!0};function Us(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),As(a.H),a.zb=!0)}function ws(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===wu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===su&&y.vc.clear(),a.Qw=!!(a.Pk===Cu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Xs(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==rl&&E!==null&&(delete E.start.scale,delete E.end.scale),rt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Js(x),Rd(x),a.zb=!1,y.start(),y.bc&&(ja(a),x.Ya(),kh(y,0),Ll(x,!0),ms(a),x.R("AnimationStarting",a)))}))}}function Rs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function fh(a,y,x,E){a.isTicking||Rs(a)||y instanceof Kn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Le=Ca.prototype,Le.fv=function(a){return this.ce.fv(a)},Le.Xu=function(a){return this.ce.Xu(a)};function Ea(a,y){function x(){if(0z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ne=b(x,ne,le-ne,E),re=b(x,re,ue-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ne+"%, "+re+"%, "+x+")"}function jl(){function a(x,E,b,z,ne,re){x.position=new tt(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}var y=new xi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ne,re){nea&&On(a,">= 1",Ca,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ca.prototype.stopAnimation=Ca.prototype.Cc;var au=null,Yl=!1,wu=new fn(Ca,"Default",1),Cu=new fn(Ca,"AnimateLocations",2),su=new fn(Ca,"None",3);Ca.className="AnimationManager",Ca.defineAnimationEffect=function(a,y){Yl||(jl(),Yl=!0),au.add(a,y)},Ca.Default=wu,Ca.AnimateLocations=Cu,Ca.None=su;function La(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Eu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=uo,this.vc=new xi,this.Tt=new xi,this.yl=new Ln,this.Ut=new Ln,this.dw=Oc,a&&Object.assign(this,a)}La.prototype.suspend=function(){this.Xk=!0},La.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,lu(this,!0),ja(this.Yd),Ll(this.H),ms(this.Yd),this.H.redraw()};function Xs(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function kh(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof Rt&&z.diagram===null)){var ne=E.value,re=b?ne.end:ne.start;ne=b?ne.start:ne.end;var oe=au,le;for(le in ne)le==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ne[le],a.Lp,y,x,a)}}}Le.stop=function(){return this.bc?(this.Ml(!0),this):this},Le.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ja(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=au;E.next();){var ne=E.key,re=E.value,oe=b?re.end:re.start,le=b?re.start:re.end,ue=re.Ku,pe;for(pe in le)if(z.get(pe)!==null){var xe=pe;!re.Hu||xe!=="position:nodeCollapse"&&xe!=="position:placeholder"||(xe="position"),z.get(xe)(ne,oe[pe],ue[pe]!==void 0?ue[pe]:re.Hu?oe[pe]:le[pe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ne instanceof Oi&&(ne.location=ue.location),re.nv&&ne instanceof Oi&&ne.Zb(!1)}if(y.As.clear(),ad(y,!1),y.Ya(),y.N(),Ll(y,!0),x.defaultAnimation===this){for(pe=x.pr.iterator;pe.next();)b=pe.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Ll(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ms(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Xs(this,null),x.Ml(this),y.$b())}},Le.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof gr&&(E=y.placeholder),E!==null?(x=E.ga(cs),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new tt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof gr)for(a=a.memberParts;a.next();)E=a.value,E instanceof oi&&this.Cj(E,y)},Le.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof gr&&(x=y.placeholder),x!==null){var E=x.ga(cs);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof gr)for(a=a.memberParts;a.next();)E=a.value,E instanceof oi&&this.Aj(E,y)}},Le.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ve.Object.defineProperties(La.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&On(a,">= 1",La,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function th(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}La.className="Animation",La.EaseLinear=function(a,y,x,E){return x*a/E+y},La.EaseInOutQuad=Eu,La.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},La.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},La.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},La.EaseOutExpo=th;function gh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}gh.className="AnimationState";function Xl(a,y,x){this.xd=null,this.rf=a,this.so=x||Ua,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=ks))}Xl.prototype.copy=function(){var a=new Xl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Sa(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Ve.Object.defineProperties(Xl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Ua=new fn(Xl,"Default",1),ks=new fn(Xl,"Immediate",2),Ya=new fn(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=Ua,Xl.Immediate=ks,Xl.Bundled=Ya;function fa(a){Zr(this),this.H=null,this.Pa=new Nn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Le=fa.prototype,Le.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,ne=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof gr?b++:oe instanceof oi?E++:oe instanceof Kn?z++:oe instanceof lo?ne++:x++}if(re="",0x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Da(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Da(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Da(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Le.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Yr,a,this,y,x,E,b)},Le.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&el(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),Zu(this,a,y),a},Le.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,el(y),a};function Zu(a,y,x){if(y=pf(a,y,x),x instanceof gr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ne=0;neE&&re.containingGroup===x&&(E=ne,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var re=y+1,oe=NaN;reE)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(oe)&&oe=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++rea||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function Id(a,y){if(Ba){if(y!=null||yt("Diagram setup requires an argument DIV."),a.Ka!==null&&yt("Diagram has already completed setup."),typeof y=="string"?a.Ka=rt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:yt("No DIV or DIV id supplied: "+y),a.Ka===null&&yt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&yt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&rt.ResizeObserver){var x=on(function(){a.$b()},250);a.ol=new rt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}rt.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=rt.go;var b=new Gu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",rt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Gd(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Gu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Ba){b=An("div");var z=An("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Uf,b.addEventListener("pointerdown",yf),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=on(function(){a.Yh=null,a.N()},300),a.Ov=on(function(){Rd(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var re=_l(a,ne,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(oe=0Math.abs(ne.deltaY)?-oe:-le):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(oe=0Math.abs(ne.wheelDeltaY)?-oe:-le):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(re.delta=0re||Math.abs(le.y-ne.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():hu(oe,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType){if(re[1]!==null&&re[1].pointerId===ne.pointerId){re[1]=ne;return}if(re[0]===null)re[0]=ne;else return}else re[0]=ne;if(re[0].pointerId===ne.pointerId){re=_d(a,ne,!1,!1,!1,re[1]!==null);var oe=rt.document.elementFromPoint(ne.clientX,ne.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var le=a,ue=ne;oe&&oe.H&&(ue=ne,le=oe.H),re.targetDiagram=le,Tc(a,ue,re),re.targetObject=null,a.doMouseMove(),hu(re,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var re=ne.pointerType==="touch"||ne.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ne.pointerId],ne.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ne.pointerId&&oe[0].pointerType===ne.pointerType)oe[1]!==null&&oe[1].pointerId===ne.pointerId&&(oe[1]=null);else{oe[0]=null,oe=_d(a,ne,!1,!0,!0,!1);var le=rt.document.elementFromPoint(ne.clientX,ne.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),le!==null&&le.H instanceof Qt&&le.H!==a&&Tc(le.H,ne,oe),le===null&&(le=ne.target),Tc(a,ne,oe),oe.clickCount=a.yq,oe.targetDiagram=zd(ne,le),oe.targetObject=null,a.doMouseUp(),hu(oe,ne),re&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ne.pointerId]&&delete re[ne.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ne.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var re=a.oj;re[0]!==null&&re[0].pointerId===ne.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+Ef[1]+Ef[2]+"wI"+Ud.slice(1,5)]["b"+Ax.slice(1,y)](E.Z,Cf,y,y),E.Vc(!0),$g(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Qt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Qt.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function $g(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(rt,"resize",a.Ov,!1)}function Js(a){30Fe&&(this.position=at.h(-(y.scrollWidth-this.Aa)+Xe-this.Aa/b+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(reOe&&(this.position=at.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),tt.free(at),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ue=E.right,Fe=b.right,z=E.bottom,Oe=b.bottom,ne=E.x,pe=b.x,re=E.y,E=b.y,xe>=oe&&ne>=pe&&ue<=Fe&&(x.style.width="1px"),Ee>=le&&re>=E&&z<=Oe&&(x.style.height="1px"))}},Qt.prototype.computeBounds=function(a){return a===void 0&&(a=new gn),As(this),jd(this,a)};function jd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===dd?(y=oe>re?(ne-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Qt.prototype.zoomToFit=function(){var a=this.sj;this.sj=Oc,this.scale=kc(this,cu),a!==Oc&&(uu(this,!1),Sf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Le=Qt.prototype,Le.BA=function(a,y){y===void 0&&(y=cu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===cu||y===dd)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===dd?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new tt(a.x,a.y)}},Le.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new tt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Le.zz=function(a){if(a instanceof Rt){this.eq=a;var y=tt.alloc();this.fq=this.op(a.ga(cs,y)),tt.free(y)}else this.eq=null,this.fq=ia};function Sf(a,y,x,E,b,z){var ne=tt.allocAt(a.pa.x,a.pa.y),re=ne.x,oe=ne.y;if(a.eq!==null){var le=tt.alloc();le=a.eq.ga(cs,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,b=Fa,tt.free(le)}(z||a.scrollMode===Oc)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?re=y.left:rey.top?oe=y.top:oey;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ln,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof gr&&E.U&65536&&(E.U=E.U^65536)})}}Le.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof gr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof gr&&x.isVisible()&&ba(this,x);for(a.reset();a.next();)x=a.value,x instanceof Kn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof lo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ba(a,y){for(var x=qn(),E=qn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof gr?(fu(z)||dl(z)||gd(z))&&ba(a,z):z instanceof Kn?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;bIt&&(Xe=ei.left,pt=ei.right),at.height>qt&&(wt=ei.top,Mt=ei.bottom)):(Xe=ei.left,pt=ei.right,wt=ei.top,Mt=ei.bottom);var Si=at.width+Xe+pt,fi=at.height+wt+Mt;ei=a.scale;var Gn=Si>oe/ei,Tn=fi>le/ei;if(!(z||a.gf||a.Be||Gn||Tn))return!0;Xe=at.x-Xe,oe=ue.x,pt=at.right+pt,le=ue.right+ne,wt=at.y-wt;var dr=ue.y;at=at.bottom+Mt,ue=ue.bottom+re;var Xi="1px";if(Mt="1px",a.scrollMode===Oc&&(Gn||Tn)&&(Gn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Gn=1,Xe+1le+1&&(Gn=Math.max((pt-le)*ei+a.Aa,Gn)),It+ne+1ue+1&&(Gn=Math.max((at-ue)*ei+a.ya,Gn)),qt+re+1le+1&&(ne=Math.max((pt-le)*ei+a.Aa,ne)),It+1ue+1&&(re=Math.max((at-ue)*ei+ne,re)),qt+1le+1&&(y=a.position.x*ei)),a.tn)switch(a.bu){case"negative":y=-(Fe.scrollWidth-y-Fe.clientWidth);break;case"reverse":y=Fe.scrollWidth-y-Fe.clientWidth}return Fe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(qt+1ue+1&&(Fe.scrollTop=a.position.y*ei)),oe=a.Aa,le=a.ya,Fe.style.width=oe+(a.gf?a.Db:0)+"px",Fe.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||E!==le||a.animationManager.zb?(x=gn.allocAt(b,pe,xe,Ee),a.onViewportBoundsChanged(x,a.viewportBounds,ei,z),gn.free(x),!1):!0}Le=Qt.prototype,Le.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&yt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&yt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(ko,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Le.oi=function(a){this.partManager.oi(a);var y=this;qd(a,function(x){$d(y,x)}),(a instanceof lo||a instanceof gr&&a.placeholder!==null)&&a.v(),a.data!==null&&qd(a,function(x){sy(y.partManager,x)}),dl(a)!==!0&&gd(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(nf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(nf(a,a.actualBounds)),this.$b()},Le.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&qd(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(nf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(nf(a,a.actualBounds)),this.$b()},Le.remove=function(a){ld(this,a,!0)};function ld(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Yo,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Le.Is=function(a,y){if(y===void 0&&(y=!1),Jt(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Le.Cy=function(a,y){Vg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Yo,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Le.kA=function(a){if(a.diagram!==this&&yt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Yo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Le.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Le.Yw=function(a){return this.pf===null&&(this.pf=new Nn),this.pf.add(a),this.model.Pe(a),this},Le.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Le.Pe=function(a){return this.zg===null&&(this.zg=new Nn),this.zg.add(a),this},Le.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Le.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Do&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Epe.Pa.indexOf(Ee)&&pe.oi(xe,Ee,Fe):(Ee.isSelected=!1,Ee.isHighlighted=!1,Ee.Wb(),pe.pc(Fe?xe:-1,Ee,Fe)))}else pe instanceof Qt?typeof xe=="number"&&Ee instanceof fa&&(y?(Ee.Xe(this),this.Wa.Gb(xe,Ee)):this.Wa.mb(xe)):yt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Do&&yt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Qt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Qt.prototype.eb=function(a){return this.undoManager.eb(a)},Qt.prototype.Kf=function(){return this.undoManager.Kf()},Qt.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Qt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Qt.prototype.rp=function(){this.partManager.rp()};function Ug(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Dh(a),a.N(),a.Ee=!0,E.zb&&(Rs(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Dh(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(Iu)?re=0:le.Hf(Ys)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Su)?oe=0:le.Hf(ul)&&(oe=ne-1):oe=le.sb()?le.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=tt.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,tt.free(z),a.Ca=x,Dh(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),uu(a,!1),E.zb&&(Rs(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Qt.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==rl||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),_a(b,this)),this.vb||this.invalidateViewport(a,y),Th(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Th(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Xn.alloc(),b=1,z=1,ne=x.O.s,re=ne.length,oe=0;oeue||(pv(le.figure)?z=z*ue/it.vx(z,ue):b=b*ue/it.vx(b,ue))}if(ne=x.gridCellSize,E.h(z*ne.width,b*ne.height),y!==void 0)b=y.width,z=y.height,a=y.x,ne=y.y;else{if(y=gn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){gn.free(y);return}b=y.width,z=y.height,a=y.x,ne=y.y,gn.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=tt.alloc(),it.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Xn.free(E),x.part.location=y,tt.free(y)}}Qt.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Us(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)qg(a,ne.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),As(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||ws(z),a.aa=x}}}function qg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)qg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),ba(a,y),b.isValidLayout=!0):a.xh=!0)}}Le.yz=function(){for(var a=new Nn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function tv(a){function y(b){var z=b.toLowerCase(),ne=new Nn;x.add(b,ne),x.add(z,ne),E.add(b,b),E.add(z,b)}var x=new xi,E=new xi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function am(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function qf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;yt("Unknown DiagramEvent name: "+y)}Le.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},Le.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},Le.R=function(a,y,x){var E=qf(this,a),b=new lr;if(b.diagram=this,a=am(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=gn.allocAt(0,0,E.width*b,E.height*b);var z=tt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-x.right/2&&(z.x+=ne),a.x>E.x+E.width-x.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-x.bottom/2&&(z.y+=ne),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ne)),z.Xa(uo)||(y=new tt(y.x+z.x/b,y.y+z.y/b)),gn.free(E),tt.free(z),y},Le=Qt.prototype,Le.Cs=function(){return null},Le.av=function(){return null},Le.bs=function(a,y){this.pj.add(a,y)},Le.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof gr&&(y.$p=null)})};function xf(a,y,x){function E(){var ue=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||ue-le>oe?y(x,b,re):rt.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return rt.requestAnimationFrame(function(){E()}),null}Le.Wz=function(a){return Ba?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Le.Jx=function(a){return a===void 0&&(a={}),xf(this,this.Xz,a)},Le.Xz=function(a,y,x){var E=lm(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Ud+"data":b=E.getImageData(0,0,x.width,x.height);break;case Ud:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&yt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function lm(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&yt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new Xn(1/0,1/0):new Xn(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,pe=y.omitTemporary;pe===void 0&&(pe=!0);var xe=y.document||document,Ee=y.elementFinished||null,Fe=y.showTemporary;Fe===void 0&&(Fe=!pe),y=y.showGrid,y===void 0&&(y=Fe),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new Di(le):le instanceof Di||yt("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),pe=new Gu(null,xe,void 0,!0);var Oe=pe.context;if(!(b||z||oe||re))return pe.width=a.Aa+Math.ceil(le.left+le.right),pe.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?E===null?null:(E.resize(pe.width,pe.height,pe.width,pe.height),E.ownerDocument=xe,E.hs=Ee,ns(a,E.context,le,new Xn(pe.width,pe.height),a.Ca,a.pa,oe,ue,Fe,y),E.context):(a.Xm=!1,ns(a,Oe,le,new Xn(pe.width,pe.height),a.Ca,a.pa,oe,ue,Fe,y),a.Xm=!0,pe.context);var at=a.Pp,Xe=a.documentBounds.copy();if(Xe.Fv(a.yb),Fe)for(var pt=a.Wa.s,wt=pt.length,Mt=0;Mtat?(z=at,b=Xe.width,Xe=Xe.height):(b=ne.width,Xe=ne.height)):(b=Xe.width*z,Xe=Xe.height*z):(z=at,b=Xe.width,Xe=Xe.height),le!==null?(b+=re,Xe+=wt):le=new Di(0),ne!==null&&(at=ne.width,ne=ne.height,isNaN(at)&&(at=2e3),isNaN(ne)&&(ne=2e3),isFinite(at)&&(b=Math.min(b,at)),isFinite(ne)&&(Xe=Math.min(Xe,ne))),pe.width=Math.ceil(b),pe.height=Math.ceil(Xe),x==="SVG"?E===null?null:(E.resize(pe.width,pe.height,pe.width,pe.height),E.ownerDocument=xe,E.hs=Ee,ns(a,E.context,le,new Xn(Math.ceil(b),Math.ceil(Xe)),z,pt,oe,ue,Fe,y),E.context):(a.Xm=!1,ns(a,Oe,le,new Xn(Math.ceil(b),Math.ceil(Xe)),z,pt,oe,ue,Fe,y),a.Xm=!0,pe.context)}Ve.Object.defineProperties(Qt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ye||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Oh(this,rt.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Oh(this,rt.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(rt,"resize",this.Ov,!1),this.removeEventListener(rt,"wheel",this.$j,!0),ph===this&&(ph=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Id(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&On(a,">= 0",Qt,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&On(a,">= 0",Qt,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0= 0",Qt,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||rm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&yt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Nc(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Us(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Yg(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):On(a,"> 0",Qt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Qt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),uu(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&yt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)yp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Ic&&a!==ss&&a!==rg&&yt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Xn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ve.Object.defineProperties(Qt,{licenseKey:{get:function(){return ap.jc()},set:function(a){ap.add(a.replace(/\s/g,""))}},version:{get:function(){return Vd}}}),Qt.prototype.makeImageData=Qt.prototype.Jx,Qt.prototype.makeImage=Qt.prototype.Wz,Qt.prototype.cacheGroupExternalLinks=Qt.prototype.Fu,Qt.prototype.addRenderer=Qt.prototype.bs,Qt.prototype.makeSVG=Qt.prototype.av,Qt.prototype.makeSvg=Qt.prototype.Cs,Qt.prototype.stopAutoScroll=Qt.prototype.ug,Qt.prototype.doAutoScroll=Qt.prototype.gs,Qt.prototype.isUnoccupied=Qt.prototype.Yj,Qt.prototype.raiseDiagramEvent=Qt.prototype.R,Qt.prototype.removeDiagramListener=Qt.prototype.am,Qt.prototype.addDiagramListener=Qt.prototype.Bj,Qt.prototype.findTreeRoots=Qt.prototype.yz,Qt.prototype.layoutDiagram=Qt.prototype.Uz,Qt.prototype.findTopLevelGroups=Qt.prototype.qz,Qt.prototype.findTopLevelNodesAndLinks=Qt.prototype.rz,Qt.prototype.ensureBounds=Qt.prototype.Va,Qt.prototype.findLinksByExample=Qt.prototype.ls,Qt.prototype.findNodesByExample=Qt.prototype.ms,Qt.prototype.findLinkForData=Qt.prototype.Kc,Qt.prototype.findNodeForData=Qt.prototype.ii,Qt.prototype.findPartForData=Qt.prototype.Lc,Qt.prototype.findLinkForKey=Qt.prototype.findLinkForKey,Qt.prototype.findNodeForKey=Qt.prototype.Vb,Qt.prototype.findPartForKey=Qt.prototype.findPartForKey,Qt.prototype.rebuildParts=Qt.prototype.Wd,Qt.prototype.transformViewToDoc=Qt.prototype.Ps,Qt.prototype.transformRectDocToView=Qt.prototype.zA,Qt.prototype.transformDocToView=Qt.prototype.op,Qt.prototype.centerRect=Qt.prototype.es,Qt.prototype.scrollToRect=Qt.prototype.tv,Qt.prototype.scroll=Qt.prototype.scroll,Qt.prototype.highlightCollection=Qt.prototype.Jz,Qt.prototype.highlight=Qt.prototype.Iz,Qt.prototype.selectCollection=Qt.prototype.rA,Qt.prototype.select=Qt.prototype.select,Qt.prototype.updateAllRelationshipsFromData=Qt.prototype.rp,Qt.prototype.updateAllTargetBindings=Qt.prototype.updateAllTargetBindings,Qt.prototype.commit=Qt.prototype.commit,Qt.prototype.rollbackTransaction=Qt.prototype.Kf,Qt.prototype.commitTransaction=Qt.prototype.eb,Qt.prototype.startTransaction=Qt.prototype.Ea,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.removeChangedListener=Qt.prototype.ik,Qt.prototype.addChangedListener=Qt.prototype.Pe,Qt.prototype.removeModelChangedListener=Qt.prototype.mA,Qt.prototype.addModelChangedListener=Qt.prototype.Yw,Qt.prototype.findLayer=Qt.prototype.Qj,Qt.prototype.removeLayer=Qt.prototype.kA,Qt.prototype.addLayerAfter=Qt.prototype.Cy,Qt.prototype.addLayerBefore=Qt.prototype.Ww,Qt.prototype.addLayer=Qt.prototype.Al,Qt.prototype.moveParts=Qt.prototype.moveParts,Qt.prototype.copyParts=Qt.prototype.Kj,Qt.prototype.removeParts=Qt.prototype.Is,Qt.prototype.remove=Qt.prototype.remove,Qt.prototype.add=Qt.prototype.add,Qt.prototype.clearDelayedGeometries=Qt.prototype.bx,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.resetInputOptions=Qt.prototype.Sx,Qt.prototype.setInputOption=Qt.prototype.sA,Qt.prototype.getInputOption=Qt.prototype.Ql,Qt.prototype.resetRenderingHints=Qt.prototype.Tx,Qt.prototype.setRenderingHint=Qt.prototype.Xx,Qt.prototype.getRenderingHint=Qt.prototype.Gf,Qt.prototype.maybeUpdate=Qt.prototype.bd,Qt.prototype.requestUpdate=Qt.prototype.$b,Qt.prototype.delayInitialization=Qt.prototype.Xy,Qt.prototype.isUpdateRequested=Qt.prototype.Pz,Qt.prototype.invalidateDocumentBounds=Qt.prototype.Ya,Qt.prototype.findObjectsNear=Qt.prototype.og,Qt.prototype.findPartsNear=Qt.prototype.mz,Qt.prototype.findObjectsIn=Qt.prototype.Cf,Qt.prototype.findPartsIn=Qt.prototype.ux,Qt.prototype.findObjectsAt=Qt.prototype.ji,Qt.prototype.findPartsAt=Qt.prototype.lz,Qt.prototype.findObjectAt=Qt.prototype.ic,Qt.prototype.findPartAt=Qt.prototype.Ol,Qt.prototype.focusObject=Qt.prototype.zz,Qt.prototype.alignDocument=Qt.prototype.Jy,Qt.prototype.zoomToRect=Qt.prototype.BA,Qt.prototype.zoomToFit=Qt.prototype.zoomToFit,Qt.prototype.diagramScroll=Qt.prototype.kx,Qt.prototype.focus=Qt.prototype.focus;var ig=new xi,um=null,Ba=rt.document!==void 0,Kd=null,cd="",rl=new fn(Qt,"None",0),cu=new fn(Qt,"Uniform",1),dd=new fn(Qt,"UniformToFill",2),Pf=new fn(Qt,"CycleAll",10),tp=new fn(Qt,"CycleNotDirected",11),np=new fn(Qt,"CycleNotDirectedFast",12),ip=new fn(Qt,"CycleNotUndirected",13),rp=new fn(Qt,"CycleDestinationTree",14),op=new fn(Qt,"CycleSourceTree",15),Oc=new fn(Qt,"DocumentScroll",1),wf=new fn(Qt,"InfiniteScroll",2),Ic=new fn(Qt,"TreeParentCollapsed",21),ss=new fn(Qt,"AllParentsCollapsed",22),rg=new fn(Qt,"AnyParentsCollapsed",23),ap=new Nn,Vd="2.3.10",Ud="image",Cf=null,hm=!1;function Qs(){if(Ba){var a=rt.document.createElement("canvas"),y=a.getContext("2d"),x=vn("7ca11abfd022028846");y[x]=vn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Vt.Dx+"4ae6247590da4bb21c324ba3a84e385776",_t.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",it.za],b=1;5>b;b++)y[vn("7ca11abfd7330390")](vn(E[b-1]),10,15*b);for(y[x]=vn("39f046ebb36e4b"),x=1;5>x;x++)y[vn("7ca11abfd7330390")](vn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(_t.prototype.Cd=_t.prototype.Eu),Cf=a}}Qt.className="Diagram",Qt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=rt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Qt?y.H:null},Qt.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class `+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Qt.useDOM=function(a){Ba=a?rt.document!==void 0:!1},Qt.isUsingDOM=function(){return Ba},Qt.None=rl,Qt.Uniform=cu,Qt.UniformToFill=dd,Qt.CycleAll=Pf,Qt.CycleNotDirected=tp,Qt.CycleNotDirectedFast=np,Qt.CycleNotUndirected=ip,Qt.CycleDestinationTree=rp,Qt.CycleSourceTree=op,Qt.DocumentScroll=Oc,Qt.InfiniteScroll=wf,Qt.TreeParentCollapsed=Ic,Qt.AllParentsCollapsed=ss,Qt.AnyParentsCollapsed=rg;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Yd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=rt[vn("76a715b2f73f148a")][vn("72ba13b5")]||"";if(a.Rc=!0,Ba){var E=Qt[vn("76a115b6ed251eaf4692")];if(E)for(var b=ap.iterator;b.next()&&(E=b.value,E=vn(E).split(vn("39e9")),!(6>E.length));){var z=vn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=vn(Vt[vn("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var re=rt[vn("74a900bae4370f8b51")][vn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=re[vn("73a612b6fb191d")](vn("3aad1ab6e022098b4dc4")),z=vn(E[2]),-1ne&&z!==vn("7da71ca0ad381e90")&&(ne=y[vn("73a612b6fb191d")](vn("76a715b2ef3e149757"))),0>ne&&(ne=y[vn("73a612b6fb191d")](vn("76a715b2ef3e149757"))),0>ne&&(ne=y[vn("73a612b6fb191d")](vn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[vn("73a612b6fb191d")](vn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&nere),!a.Rc)))break;if(z[0]==="#"){ne=rt.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ne[vn("79a417a0f0181a8946")]=E,rt.document[vn("78a712aa")]){rt.document[vn("78a712aa")][vn("7bb806b6ed32388c4a875b")](ne),oe=rt.getComputedStyle(ne).getPropertyValue(vn("78a704b7e62456904c9b12701b6532a8"));var le=rt.getComputedStyle(ne).getPropertyValue(vn("75b817b0ea2202"));if(rt.document[vn("78a712aa")][vn("68ad1bbcf533388c4a875b")](ne),oe){if(ne=rt[vn("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(vn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&We(E)},x.autoScale=cu,x.vb=!1,y&&Object.assign(x,y),x}Ot(ye,Qt),ye.prototype.computePixelRatio=function(){return 1},ye.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Mu(this),this.ql===null){var x=new Gu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Te(this)}finally{this.ta=a,this.ib=y}}}Qt.prototype.redraw.call(this)},ye.prototype.gc=function(){if(this.Ka===null&&yt("No div specified"),this.ta===null&&yt("No canvas specified"),!(this.ta instanceof Oh)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Mu(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Te(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),ye.className="Overview";function st(){aa.call(this),this.j=null}Ot(st,aa),st.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestampy.maxScale||(y.scale=a))},ot.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==rl?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},ot.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===rl&&(a=y.scale*a,ay.maxScale||(y.scale=a))},ot.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==rl?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},ot.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Us(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=$r):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ws(y)},ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ot.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0a&&(a+=360)),a},Le.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Le.qs=function(a,y){return y===void 0&&(y=new tt),y.assign(a),this.oe.Cd(y),y},Le.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Le.Sj=function(a,y,x,E,b){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,oe=-z.m12*ne,le=-z.m21*ne,ue=z.m11*ne,pe=ne*(z.m21*z.dy-z.m22*z.dx),xe=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,it.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ne=a*re+y*le+pe,a=a*oe+y*ue+xe,y=x*re+E*le+pe,x=x*oe+E*ue+xe,b.h(0,0),E=this.naturalBounds,x=it.Ff(0,0,E.width,E.height,ne,a,y,x,b),b.transform(z),x)},Rt.prototype.measure=function(a,y,x,E){if(fu(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ne:a,y=isFinite(b.width)?b.width+ne:y):(a=isFinite(b.width)?b.width+ne:a,y=isFinite(b.height)?b.height+ne:y),b=x||0,ne=E||0;var re=this instanceof Hn;switch(Bl(this,!0)){case In:ne=b=0,re&&(y=a=1/0);break;case zn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ne=y);break;case Ti:isFinite(a)&&a>x&&(b=a),ne=0,re&&(y=1/0);break;case Zi:isFinite(y)&&y>E&&(ne=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.widthre.height&&oe.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||yt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Yh(this,!1),gn.free(z)},Le=Rt.prototype,Le.eh=function(){};function ol(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=z.width+y,z=z.height+ne,E+=y,b+=ne,y=Bl(a,!0),x===E&&z===b&&(y=In),y){case In:(x>E||z>b)&&(ls(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case zn:ls(a,!0),a.measure(E,b,0,0);break;case Ti:ls(a,!0),a.measure(E,z,0,0);break;case Zi:ls(a,!0),a.measure(x,b,0,0)}}}Le.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||jv(x,!0),this.N(),wl(a,y)||(x.oh(),this.Pn(x)))},Le.Pn=function(a){this.portId!==null&&(jv(a,!0),a instanceof oi&&W1(a,this))},Le.gc=function(a,y){if(!Lu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Hn&&zc(this),ne=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(Da(this,a,le,!0,!0,oe,re),le instanceof Ao&&le.type===Nu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(Da(this,a,ue,!0,!1,oe,re),ue instanceof Ao&&ue.type===Nu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,re=this.panel,this.l&4096&&Ts(this),le=this.part,oe=!1;var pe=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ue=le.shadowOffset,pe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var xe;if(!(xe=y.$i||!ue)){var Ee=this.naturalBounds;xe=this.wh;var Fe=xe.m11,Oe=xe.m21,at=xe.dx,Xe=xe.m12,pt=xe.m22,wt=xe.dy,Mt,It=Mt=0;xe=Mt*Fe+It*Oe+at;var qt=Mt*Xe+It*pt+wt;Mt=Ee.width+pe,It=0;var ei=Mt*Fe+It*Oe+at;Mt=Mt*Xe+It*pt+wt,It=Math.min(xe,ei);var Si=Math.min(qt,Mt),fi=Math.max(xe+0,ei)-It,Gn=Math.max(qt+0,Mt)-Si;xe=It,qt=Si,Mt=Ee.width+pe,It=Ee.height+pe,ei=Mt*Fe+It*Oe+at,Mt=Mt*Xe+It*pt+wt,It=Math.min(xe,ei),Si=Math.min(qt,Mt),fi=Math.max(xe+fi,ei)-It,Gn=Math.max(qt+Gn,Mt)-Si,xe=It,qt=Si,Mt=0,It=Ee.height+pe,ei=Mt*Fe+It*Oe+at,Mt=Mt*Xe+It*pt+wt,It=Math.min(xe,ei),Si=Math.min(qt,Mt),fi=Math.max(xe+fi,ei)-It,Gn=Math.max(qt+Gn,Mt)-Si,xe=It,qt=Si,pe=y.viewportBounds,Ee=pe.x,Fe=pe.y,xe=!(xe>pe.width+Ee||Ee>fi+xe||qt>pe.height+Fe||Fe>Gn+qt)}if(xe){if(xe=(this.l&256)!==0,a.clipInsteadOfFill&&(xe=!1),this instanceof Qo&&(a.font=this.font),xe){if(qt=re.se()?re.naturalBounds:re.actualBounds,fi=Math.max(ne.x,qt.x),Gn=Math.max(ne.y,qt.y),pe=Math.min(ne.right,qt.right)-fi,Ee=Math.min(ne.bottom,qt.bottom)-Gn,Fe=this.tb,Fe!==null&&(fi=Fe.x,Gn=Fe.y,pe=Fe.width,Ee=Fe.height),fi>ne.width+ne.x||ne.x>qt.width+qt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(fi,Gn,pe,Ee),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(qt=le.shadowOffset,a.Ev(qt.x*y.scale*this.scale*y.Mb,qt.y*y.scale*this.scale*y.Mb,le.shadowBlur),gc(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?gc(a):oe&&this.shadowVisible===!1&&Xh(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),du(this,a,le,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&Ls(this,re)&&this.shadowVisible===null&&Xh(a),this.Ma!==null&&(a.yc(),Zl(this,a,le,ne)),oe&&(this.Ma!==null||this.areaBackground!==null||Ls(this,re))?(ih(this,!0),this.shadowVisible===null&&Xh(a)):ih(this,!1),this.hh(a,y),oe&&this.l&512&&gc(a),ue&&oe&&Xh(a),xe&&(a.restore(),a.Vc(this instanceof Hn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Ls(a,y){return y===null?!1:(zc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Hn.Auto||y.type===Hn.Spot)&&y.Pb()!==a)}Le.Dv=function(){};function du(a,y,x,E){Da(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Ao&&a.areaBackground.type===Nu?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Zl(a,y,x,E){var b=a.kq(),z=x.x,ne=x.y,re=x.width+b,oe=x.height+b;Da(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Ao&&a.Ma.type===Nu?(y.beginPath(),y.rect(z-b/2,ne-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ne-b/2,re,oe)}function qs(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ne=0;neb)&&yt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&yt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new zi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);bu(a,b)}else bu(a,y);else yt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Rc(a,y){og.add(a,y)}function dm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ve.Object.defineProperties(Rt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Mf),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Mf),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Mf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Lr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Lr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:pl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new fd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===pl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new fd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&yt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Vy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Er&&this.qc(),this.g("desiredSize",E,a),Zs(this)&&(a=this.part,a!==null&&(oa(this,a,"width"),oa(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xn(a,this.jd.height).freeze(),this.v(),this instanceof Er&&this.qc(),this.g("desiredSize",y,a),Zs(this)&&(a=this.part,a!==null&&oa(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Xn(this.jd.width,a).freeze(),this.v(),this instanceof Er&&this.qc(),this.g("desiredSize",y,a),Zs(this)&&(a=this.part,a!==null&&oa(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:yr},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Lr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ta},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Lr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Ts(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ts(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Lr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:In},set:function(a){this.reshapingBehavior!==a&&(Lr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&yt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),cl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&On(a,">= 0",Rt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&On(a,">= 1",Rt,"columnSpan"),Lr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&On(a,">= 0",Rt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&On(a,">= 1",Rt,"rowSpan"),Lr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Lr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof oi||yt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,K1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Fa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Xd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&On(a,">= 0",Rt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Xd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Xd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&On(a,">= 0",Rt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Fa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Xd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&On(a,">= 0",Rt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Xd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Xd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&On(a,">= 0",Rt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Lr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Lr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Lr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Lr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Lr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Lr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Lr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Lr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Lr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Lr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Lr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Lr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Lr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Lr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Lr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Lr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Lr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Lr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Rt.prototype.trigger=Rt.prototype.Jv,Rt.prototype.findBindingPanel=Rt.prototype.ih,Rt.prototype.findTemplateBinder=Rt.prototype.pz,Rt.prototype.setProperties=Rt.prototype.nm,Rt.prototype.apply=Rt.prototype.apply,Rt.prototype.attach=Rt.prototype.Du,Rt.prototype.set=Rt.prototype.set,Rt.prototype.isEnabledObject=Rt.prototype.If,Rt.prototype.isVisibleObject=Rt.prototype.Ed,Rt.prototype.isContainedBy=Rt.prototype.rg,Rt.prototype.getNearestIntersectionPoint=Rt.prototype.rs,Rt.prototype.getLocalPoint=Rt.prototype.qs,Rt.prototype.getDocumentScale=Rt.prototype.Df,Rt.prototype.getDocumentAngle=Rt.prototype.li,Rt.prototype.getDocumentBounds=Rt.prototype.mi,Rt.prototype.getDocumentPoint=Rt.prototype.ga,Rt.prototype.intersectsRect=Rt.prototype.Yc,Rt.prototype.containedInRect=Rt.prototype.fh,Rt.prototype.containsRect=Rt.prototype.Re,Rt.prototype.containsPoint=Rt.prototype.ca,Rt.prototype.raiseChanged=Rt.prototype.g,Rt.prototype.raiseChangedEvent=Rt.prototype.cb,Rt.prototype.addCopyProperty=Rt.prototype.Vw;var og=null;Rt.className="GraphObject",og=new xi,Rc("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=Bu(Hn,Hn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Hn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Bu(Er,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new bi(0,0,2.76142374915397,2.761423749153969),spot2:new bi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Hn&&(x=E.fb("ButtonBorder"),x instanceof Er)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Hn&&(x=E.fb("ButtonBorder"),x instanceof Er&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Hn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Er){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ne,ne=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ne,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Hn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Er){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Hn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Er){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Hn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Er))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ne=E._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=E._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),b.skipsUndoManager=z}}},y}),Rc("TreeExpanderButton",function(){var a=Bu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Bu(Er,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:No},new Xa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Xa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof lo&&(x=x.adornedPart),x instanceof oi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Rc("SubGraphExpanderButton",function(){var a=Bu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Bu(Er,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:No},new Xa("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof lo&&(x=x.adornedPart),x instanceof gr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Rc("ToolTip",function(){return Bu(lo,Hn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new tt(0,3),shadowBlur:5},Bu(Er,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new bi(0,0,4,6),spot2:new bi(1,1,-4,-4)}))}),Rc("ContextMenu",function(){return Bu(lo,Hn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new tt(0,3),shadowBlur:5},new Xa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Rc("ContextMenuButton",function(){var a=Bu("Button");a.stretch=Ti;var y=a.fb("ButtonBorder");return y instanceof Er&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new bi(0,0,2,3),y.spot2=new bi(1,1,-2,-2)),a}),Rc("PanelExpanderButton",function(a){var y=dm(a,"COLLAPSIBLE"),x=Bu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Bu(Er,{name:"ButtonIcon",strokeWidth:2},new Xa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Er&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ne=b.ih();ne===null&&(ne=b.part),ne!==null&&(b=ne.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Rc("CheckBoxButton",function(a){var y=dm(a);return a=Bu("Button",{desiredSize:new Xn(14,14)},Bu(Er,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:zn,geometryStretch:Ci,visible:!1},y!==""?new Xa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Hn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Rc("CheckBox",function(a){a=dm(a),a=Bu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Di(0,1,0,0)});var y=Bu(Hn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Di(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Rt.None=In=new fn(Rt,"None",0),Rt.Default=vr=new fn(Rt,"Default",0),Rt.Vertical=Zi=new fn(Rt,"Vertical",4),Rt.Horizontal=Ti=new fn(Rt,"Horizontal",5),Rt.Fill=zn=new fn(Rt,"Fill",3),Rt.Uniform=Ci=new fn(Rt,"Uniform",1),Rt.UniformToFill=Kr=new fn(Rt,"UniformToFill",2),Rt.FlipVertical=Br=new fn(Rt,"FlipVertical",1),Rt.FlipHorizontal=io=new fn(Rt,"FlipHorizontal",2),Rt.FlipBoth=Wo=new fn(Rt,"FlipBoth",3),Rt.make=Bu,Rt.getBuilders=function(){var a=new xi,y;for(y in og)if(y!==y.toLowerCase()){var x=og.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Rt.defineBuilder=Rc,Rt.build=function(a,y,x){for(var E=[],b=2;ba&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ne=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-x)}},Jd.className="STransform";function Lf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Lf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Lf.className="SGradient";function Oh(a,y,x){this.ownerDocument=a=y===void 0?rt.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Jl(this,x)}Oh.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Oh.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Wt(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Oh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Oh.prototype.focus=function(){this.Oa.focus()},Oh.prototype.mx=function(){this.ownerDocument=null},Ve.Object.defineProperties(Oh.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Oh.className="SVGSurface";function Jl(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Jd,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Po++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Uy(a,y,x,E,b,z,ne){a.Nj===void 0?lp(a,y,x,E,b,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ne+")")}Le=Jl.prototype,Le.arc=function(a,y,x,E,b,z,ne,re){var oe=2*Math.PI,le=oe-1e-6,ue=x*Math.cos(E),pe=x*Math.sin(E),xe=a+ue,Ee=y+pe,Fe=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%oe+oe),E>le?(this.path.push(["A",x,x,0,1,Fe,a-ue,y-pe]),this.path.push(["A",x,x,0,1,Fe,xe,Ee])):1e-6=Math.PI),Fe,a+x*Math.cos(b),y+x*Math.sin(b)])},Le.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Le.Se=function(a){this.addPath(this.path,this.rb,a||0)},Le.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Le.clearRect=function(){},Le.clip=function(){this.Yl.clipPath=!0},Le.closePath=function(){this.path.push(["z"])},Le.createLinearGradient=function(a,y,x,E){var b=new Lf("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Le.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Po++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Ud,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Le.createRadialGradient=function(a,y,x,E,b,z){var ne=new Lf("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=E,ne.y2=b,ne.r2=z,ne};function Yy(a,y,x,E,b,z,ne,re,oe){E=re/E,b=oe/b,z===0&&ne===0||a.rb.translate(z,ne),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Le.drawImage=function(a,y,x,E,b,z,ne,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ne=x,re=E=ue,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,Yy(this,y,x,E,b,z||0,ne||0,re,oe),z={x:0,y:0,width:ue||E,height:a||b,href:le},it.$(E,re)&&it.$(b,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ue||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),ag(this,Ud,z,this.rb),this.addElement(Ud,z)},Le.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Le.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Le.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},ag(this,"fill",a,this.rb),this.addElement("rect",a)},Le.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},ag(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Le.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},ag(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Le.lineTo=function(a,y){this.path.push(["L",a,y])},Le.moveTo=function(a,y){this.path.push(["M",a,y])},Le.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Le.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Le.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Le.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;yue.offset?1:-1}),b=0;bx?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Le.jk=function(){this.Hm||this.stroke()},Le.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Le.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Le.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Le.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Le.Hs=function(){},Ve.Object.defineProperties(Qd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Qd.className="CanvasSurfaceContext";function up(){this.F=this.o=this.u=this.j=0}up.className="ColorNumbers";function Ao(a,y){hg||(hv(),hg=!0),Zr(this),this._isFrozen=!1,a===void 0?(this.na=jc,this.xk="black"):typeof a=="string"?(this.na=jc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===mc?(this.Qd=bl,this.Lk=vs):this.Lk=a===Nu?this.Qd=Qr:this.Qd=Fa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Ao.prototype.copy=function(){var a=new Ao;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Le=Ao.prototype,Le.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Le.ka=function(){return Object.isFrozen(this)&&yt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Le.qb=function(a){a.classType===Ao&&(this.type=a)},Le.toString=function(){var a="Brush(";if(this.type===jc)a+=this.color;else if(a=this.type===mc?a+"Linear ":this.type===Nu?a+"Radial ":this.type===cg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Le.addColorStop=function(a,y){return this._isFrozen&&cn(this),(typeof a!="number"||!isFinite(a)||1a)&&On(a,"0 <= loc <= 1",Ao,"addColorStop:loc"),this.we===null&&(this.we=new xi),this.we.add(a,y),this.na===jc&&(this.type=mc),this.xe=null,this},Le.Vz=function(a,y){if(this._isFrozen&&cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===jc)pc(this.color),this.color=lg(a,y);else if((this.type===mc||this.type===Nu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)pc(x.value),this.addColorStop(x.key,lg(a,y));return this};function qy(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,pc(a),lg(y,x)}Le.Wy=function(a,y){if(this._isFrozen&&cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===jc)pc(this.color),this.color=lg(-a,y);else if((this.type===mc||this.type===Nu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)pc(x.value),this.addColorStop(x.key,lg(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,pc(a),lg(-y,x)}function ov(a,y,x){pc(a),a=ea.j;var E=ea.u,b=ea.o,z=ea.F;return pc(y),x===void 0&&(x=.5),"rgba("+Math.round((ea.j-a)*x+a)+", "+Math.round((ea.u-E)*x+E)+", "+Math.round((ea.o-b)*x+b)+", "+Math.round((ea.F-z)*x+z)+")"}Le.Gx=function(){if(this.type===jc)return sg(this.color);if((this.type===mc||this.type===Nu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Nu)return sg(a.first().value);if(a.get(.5)!==null)return sg(a.get(.5));if(a.count===2)return a=a.Fa(),sg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ne=y.key,re=Math.abs(.5-y.key);b>z&&re=b&&reE&&(z=x,x=E,E=z,z=b),b=E-x,sg(ov(a.get(x),a.get(E),1-z/b))}return!1};function sg(a){return a?a instanceof Ao?a.Gx():(pc(a),128>(299*ea.j+587*ea.u+114*ea.o)/1e3):!1}function lg(a,y){switch(y){case dg:y=100*sv(ea.j);var x=100*sv(ea.u),E=100*sv(ea.o);return fl.j=.4124564*y+.3575761*x+.1804375*E,fl.u=.2126729*y+.7151522*x+.072175*E,fl.o=.0193339*y+.119192*x+.9503041*E,fl.F=ea.F,y=uv(fl.j/ug[0]),x=uv(fl.u/ug[1]),E=uv(fl.o/ug[2]),Jh.j=116*x-16,Jh.u=500*(y-x),Jh.o=200*(x-E),Jh.F=fl.F,Jh.j=Math.min(100,Math.max(0,Jh.j+100*a)),a=(Jh.j+16)/116,y=a-Jh.o/200,fl.j=ug[0]*t1(Jh.u/500+a),fl.u=ug[1]*(Jh.j>pm*cv?Math.pow(a,3):Jh.j/pm),fl.o=ug[2]*t1(y),fl.F=Jh.F,a=-.969266*fl.j+1.8760108*fl.u+.041556*fl.o,y=.0556434*fl.j+-.2040259*fl.u+1.0572252*fl.o,ea.j=255*lv((3.2404542*fl.j+-1.5371385*fl.u+-.4985314*fl.o)/100),ea.u=255*lv(a/100),ea.o=255*lv(y/100),ea.F=fl.F,ea.j=Math.round(ea.j),255ea.j&&(ea.j=0),ea.u=Math.round(ea.u),255ea.u&&(ea.u=0),ea.o=Math.round(ea.o),255ea.o&&(ea.o=0),"rgba("+ea.j+", "+ea.u+", "+ea.o+", "+ea.F+")";case n1:return av(),gu.o=Math.min(100,Math.max(0,gu.o+100*a)),"hsla("+gu.j+", "+gu.u+"%, "+gu.o+"%, "+gu.F+")";default:yt("Unknown color space: "+y)}}function pc(a){hg||(hv(),hg=!0);var y=dv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,ea.j=a[0],ea.u=a[1],ea.o=a[2],ea.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ea.j=0,ea.u=0,ea.o=0,ea.F=1)}}function av(){var a=ea.j/255,y=ea.u/255,x=ea.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ne=a=0;else{switch(E){case a:ne=(y-x)/z%6;break;case y:ne=(x-a)/z+2;break;case x:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*b-1))}gu.j=Math.round(ne),gu.u=Math.round(100*a),gu.o=Math.round(100*b),gu.F=ea.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>cv?Math.pow(a,1/3):(pm*a+16)/116}function t1(a){var y=a*a*a;return y>cv?y:(116*a-16)/pm}function Ff(a,y){typeof a!="string"&&(a instanceof Ao||yt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){dv=Ba?new Gu(null,void 0,{willReadFrequently:!0}).context:null}Ve.Object.defineProperties(Ao.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&cn(this,a),this.na=a,this.start.Mc()&&(a===mc?this.start=bl:a===Nu&&(this.start=Qr)),this.end.Mc()&&(a===mc?this.end=vs:a===Nu&&(this.end=Qr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&cn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&cn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&cn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&cn(this,a),0>a&&On(a,">= zero",Ao,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&cn(this,a),0>a&&On(a,">= zero",Ao,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&cn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&cn(this,a),this.cr=a,this.xe=null}}}),Ao.prototype.isDark=Ao.prototype.Gx,Ao.prototype.darkenBy=Ao.prototype.Wy,Ao.prototype.lightenBy=Ao.prototype.Vz,Ao.prototype.addColorStop=Ao.prototype.addColorStop;var cv=216/24389,pm=24389/27,ug=[95.047,100,108.883],dv=null,ea=new up,gu=new up,fl=new up,Jh=new up,hg=!1;Ao.className="Brush";var jc;Ao.Solid=jc=new fn(Ao,"Solid",0);var mc;Ao.Linear=mc=new fn(Ao,"Linear",1);var Nu;Ao.Radial=Nu=new fn(Ao,"Radial",2);var cg;Ao.Pattern=cg=new fn(Ao,"Pattern",4);var dg;Ao.Lab=dg=new fn(Ao,"Lab",5);var n1;Ao.HSL=n1=new fn(Ao,"HSL",6),Ao.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Ao.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;hg||(hv(),hg=!0);var y=dv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Ao.lighten=function(a){return qy(a)},Ao.lightenBy=qy,Ao.darken=function(a){return e1(a)},Ao.darkenBy=e1,Ao.mix=ov,Ao.isDark=sg;function gs(){this.xa="Base"}gs.prototype.measure=function(){},gs.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},gs.prototype.arrange=function(){},gs.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},gs.prototype.iA=function(a){a.Uj()},gs.prototype.gc=function(){},Ve.Object.defineProperties(gs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Hn}}}),gs.prototype.remeasureObject=gs.prototype.iA,gs.prototype.arrangeElement=gs.prototype.Ly,gs.prototype.measureElement=gs.prototype.Yz,gs.className="PanelLayout";function mm(){this.xa="Base"}Ot(mm,gs),mm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;a=vc(a);for(var oe=0;oeSi&&(Ps=Math.max(Si-Fd,0));var G0=Tn.oa===0;Tn.oc=Tn.oc+Ps,Tn.actual=Tn.oa+Ps,Si=Math.max(Si-(Ps+(G0?Fd:0)),0)}if(Wl.columnSpan===1&&(ll===In||ll===Zi)){Tn=a.Eb(sl);var Jp=Tn.Wc();Ps=Math.max(lf-Tn.actual,0),Ps+Jp>ei&&(Ps=Math.max(ei-Jp,0));var _y=Tn.oa===0;Tn.oc=Tn.oc+Ps,Tn.actual=Tn.oa+Ps,ei=Math.max(ei-(Ps+(_y?Jp:0)),0)}Ld&&Wl.Uj()}}}}}di(pt);var ac=0,xc=0;z=a.columnCount;for(var Zf=0;Zf=a.rowCount);qc++)Tn=a.Fb(Ra.row+qc),Ps=0,Ps=ll===zn||ll===Zi?Math.max(Tn.minimum,Eh[Ra.row+qc]===0?Tn.maximum:Math.min(Eh[Ra.row+qc],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),Cc.height+=Ps,iu+=Tn.minimum;for(var Xu=1;Xu=a.columnCount);Xu++)Tn=a.Eb(Ra.column+Xu),Ps=0,Ps=ll===zn||ll===Ti?Math.max(Tn.minimum,Ou[Ra.column+Xu]===0?Tn.maximum:Math.min(Ou[Ra.column+Xu],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),Cc.width+=Ps,U0+=Tn.minimum;Os.width+=Cc.width,Os.height+=Cc.height;var Hg=Ra.margin,Td=Hg.right+Hg.left,qp=Hg.top+Hg.bottom;Ra.measure(Os.width,Os.height,U0,iu);for(var Wg=Ra.measuredBounds,Zh=Math.max(Wg.width+Td,0),df=Math.max(Wg.height+qp,0),Dd=0,Gg=0;Gg=a.rowCount);Gg++)Tn=a.Fb(Ra.row+Gg),Dd+=Tn.total||0;if(Dd=ed)&&!(Ra.row+Ec>=a.rowCount);Ec++){Tn=a.Fb(Ra.row+Ec);var nd=Tn.oa||0,ff=td(Ra,Tn,lc);Tn.actual=Math.min(Tn.maximum,nd+ff),Tn.oa!==nd&&(ed-=Tn.oa-nd)}for(;0bh&&(Tn.actual=Math.min(Tn.maximum,bh+ed),Tn.oa!==bh&&(ed-=Tn.oa-bh)),Tn.index===0)break;Tn=a.Fb(Tn.index-1)}}for(var Gf=0,id=0;id=a.columnCount);id++)Tn=a.Eb(Ra.column+id),Gf+=Tn.total||0;if(Gf=$f)&&!(Ra.column+gf>=a.columnCount);gf++){Tn=a.Eb(Ra.column+gf);var em=Tn.oa||0,Wy=bc(Ra,Tn,Hy);Tn.actual=Math.min(Tn.maximum,em+Wy),Tn.oa!==em&&($f-=Tn.oa-em)}for(;0<$f;){var Y0=Tn.oa||0;if(isNaN(Tn.width)&&Tn.maximum>Y0&&(Tn.actual=Math.min(Tn.maximum,Y0+$f),Tn.oa!==Y0&&($f-=Tn.oa-Y0)),Tn.index===0)break;Tn=a.Eb(Tn.index-1)}}}}di(wt),Xn.free(Cc),Xn.free(Os),Eh!==void 0&&di(Eh),Ou!==void 0&&di(Ou);var Kf=0,Vf=0,X0=a.desiredSize,gx=a.maxSize;ll=Bl(a,!0);var tm=xc=ac=0,nm=0;z=a.columnCount;for(var J0=0;J0=a.rowCount);Tn++){var dr=a.Fb(pt+Tn);dr.oa!==0&&(Xe.height+=dr.total)}for(Tn=1;Tn=a.columnCount);Tn++)dr=a.Eb(Mt+Tn),dr.oa!==0&&(Xe.width+=dr.total);var Xi=It.oa+Xe.width,vo=wt.oa+Xe.height;Tn=re,dr=oe;var Xo=Xi,xs=vo,Es=re,al=oe,Ps=Xi,Yc=vo;re+Xi>x.width&&(Ps=Math.max(x.width-re,0)),oe+vo>x.height&&(Yc=Math.max(x.height-oe,0));var Ja=fi.alignment;if(Ja.Xb()){Ja=a.defaultAlignment,Ja.sb()||(Ja=Qr);var Ph=Ja.x,sl=Ja.y,Xc=Ja.offsetX;Ja=Ja.offsetY;var vu=It.alignment,Uu=wt.alignment;vu.sb()&&(Ph=vu.x,Xc=vu.offsetX),Uu.sb()&&(sl=Uu.y,Ja=Uu.offsetY)}else Ph=Ja.x,sl=Ja.y,Xc=Ja.offsetX,Ja=Ja.offsetY;(isNaN(Ph)||isNaN(sl))&&(sl=Ph=.5,Ja=Xc=0),vu=Gn.width,Uu=Gn.height;var eu=fi.margin,Wl=eu.left+eu.right,Ld=eu.top+eu.bottom,wh=mh(fi,wt,It,!1);!isNaN(fi.desiredSize.width)||wh!==zn&&wh!==Ti||(vu=Math.max(Xi-Wl,0)),!isNaN(fi.desiredSize.height)||wh!==zn&&wh!==Zi||(Uu=Math.max(vo-Ld,0)),Xi=fi.maxSize,vo=fi.minSize,vu=Math.min(Xi.width,vu),Uu=Math.min(Xi.height,Uu),vu=Math.max(vo.width,vu),Uu=Math.max(vo.height,Uu),Xi=Uu+Ld,Tn+=Xo*Ph-(vu+Wl)*Ph+Xc+eu.left,dr+=xs*sl-Xi*sl+Ja+eu.top,fi.visible&&(Fo(Es,al,Ps,Yc,Tn,dr,Gn.width,Gn.height)?fi.arrange(Tn,dr,vu,Uu):fi.arrange(Tn,dr,vu,Uu,new gn(Es,al,Ps,Yc)))}}}for(Xn.free(Xe),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/b),ue=Math.ceil(oe/E),pe=a.gridOrigin,xe=pe.x;pe=pe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ee=[],Fe=a.O.s,Oe=Fe.length,at=0;atwt)){Xe=pv(Xe.figure);for(var Mt=0;Mtwt&&pt.push(It))}}}}for(Fe=a.O.s,Oe=Fe.length,at=0;atb*Xe*x))){if(wt=qt.segmentIndex,(!isFinite(wt)||isNaN(wt))&&(wt=0),0>wt&&(wt=Xe-Math.min(-wt,Xe)),wt=Math.round(wt%Xe),Xe=qt.opacity,Mt=1,Xe!==1){if(Xe===0)continue;Mt=y.globalAlpha,y.globalAlpha=Mt*Xe}It=Ee[at];var ei=!1,Si=qt.strokeDashArray;if(Si!==null&&(ei=!0,y.js(Si,qt.strokeDashOffset)),qt.figure==="LineV"&&qt.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bpe)pt.measure(1/0,1/0,0,0),wt=pt.measuredBounds,x.ed(wt),Ee.push(wt);else{var Mt=pt.segmentIndex,It=pt.segmentFraction,qt=pt.alignmentFocus;qt.Mc()&&(qt=Qr);var ei=pt.segmentOrientation,Si=pt.segmentOffset;if(isNaN(Mt)){var fi=oe.ua;wt=qn(),fi.Qu(It,wt);var Gn=tt.allocAt(wt[0],wt[1]);if(Gn.add(oe.i(0)),fi.type===yn.j?Gn.offset(-fi.startX,-fi.startY):(fi=fi.figures.first(),fi!==null&&Gn.offset(-fi.startX,-fi.startY)),fi=wt[2],ei!==pl){var Tn=oe.computeAngle(pt,ei,fi);pt.Kb=Tn}Tn=Gn.x-y.x;var dr=Gn.y-y.y;tt.free(Gn),di(wt)}else if(Mt<-pe||Mt>=pe)wt=tt.alloc(),oe.vg(),oe.computeMidPoint(wt),fi=oe.midAngle,ei!==pl&&(Tn=oe.computeAngle(pt,ei,fi),pt.Kb=Tn),Tn=wt.x-y.x,dr=wt.y-y.y,tt.free(wt);else{if(Tn=0,0<=Mt?(dr=ue.M(Mt),wt=MtXi+10?0<=Mt?fi.ab(dr):dr.ab(fi):Xi>Gn+10?0<=Mt?wt.ab(Tn):Tn.ab(wt):0<=Mt?fi.ab(Tn):Tn.ab(fi)}else fi=0<=Mt?dr.ab(wt):wt.ab(dr);ei!==pl&&(Tn=oe.computeAngle(pt,ei,fi),pt.Kb=Tn),Tn=dr.x+(wt.x-dr.x)*It-y.x,dr=dr.y+(wt.y-dr.y)*It-y.y}pt.measure(1/0,1/0,0,0),wt=pt.measuredBounds,Gn=pt.naturalBounds;var vo=0;pt instanceof Er&&(vo=pt.strokeWidth),Xi=Gn.width+vo;var Xo=Gn.height+vo;Fe.reset(),Fe.translate(-wt.x,-wt.y),Fe.scale(pt.scale,pt.scale),Fe.rotate(ei===pl?pt.angle:fi,Xi/2,Xo/2),ei!==Cp&&ei!==bp||Fe.rotate(90,Xi/2,Xo/2),ei!==Ep&&ei!==Mp||Fe.rotate(-90,Xi/2,Xo/2),ei===n0&&(45fi||225fi)&&Fe.rotate(-fi,Xi/2,Xo/2),Gn=new gn(0,0,Xi,Xo),Oe.xi(Gn,qt),Fe.Ga(Oe),qt=-Oe.x+vo/2*pt.scale,pt=-Oe.y+vo/2*pt.scale,at.assign(Si),vo=isNaN(Si.x);var xs=isNaN(Si.y);if(vo||xs){Xi=Xi/2+3,Xo=Xo/2+3;var Es=45<=fi&&135>=fi,al=225<=fi&&315>=fi;ei===pl&&(Es||al)?(at.x=xs?Xi:Si.y,at.y=vo?Xo:Si.x,Es?0<=Mt||isNaN(Mt)&&.5>It||!vo||(at.y=-Xo):al&&((0<=Mt||isNaN(Mt)&&.5>It)&&vo&&(at.y=-Xo),xs&&(at.x=-Xi))):(vo&&(at.x=0<=Mt||isNaN(Mt)&&.5>It?Xi:-Xi),xs&&(at.y=-Xo),at.rotate(fi))}else at.rotate(fi);Tn+=at.x,dr+=at.y,Gn.set(wt),Gn.h(Tn+qt,dr+pt,wt.width,wt.height),Ee.push(Gn),x.ed(Gn)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Oa(b,x.width||0,x.height||0),_t.free(Fe),tt.free(Oe),tt.free(at)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof lo||a instanceof Kn){var E=a,b=null;a instanceof lo&&(b=a,E=b.adornedPart);var z=a instanceof lo?null:E.path,ne=a.j;if(ne.length!==0){var re=0;if(z!==null&&re=x)Fe=tt.alloc(),Ee=pe,at=Fe,Ee.vg(),Ee.computeMidPoint(at),Ee=pe.midAngle,le!==pl&&(pe=pe.computeAngle(ne,le,Ee),ne.angle=pe),pe=Fe.x,at=Fe.y,tt.free(Fe);else{if(Oe=0,0<=re?(Fe=y.s[re],at=rept+10?0<=re?Ee.ab(Fe):Fe.ab(Ee):pt>Xe+10?0<=re?at.ab(Oe):Oe.ab(at):0<=re?Ee.ab(Oe):Oe.ab(Ee)}else Ee=0<=re?Fe.ab(at):at.ab(Fe);le!==pl&&(pe=pe.computeAngle(ne,le,Ee),ne.angle=pe),pe=Fe.x+(at.x-Fe.x)*oe,at=Fe.y+(at.y-Fe.y)*oe}if(xe.ys())ne.location=new tt(pe,at);else{xe.Mc()&&(xe=Qr),Fe=_t.alloc(),Fe.reset(),Fe.scale(ne.scale,ne.scale),Fe.rotate(ne.angle,0,0);var wt=ne.naturalBounds;Oe=gn.allocAt(0,0,wt.width,wt.height),Xe=tt.alloc(),Xe.xi(Oe,xe),Fe.Ga(Xe),xe=-Xe.x,pt=-Xe.y;var Mt=wt.width,It=wt.height;wt=tt.alloc(),wt.assign(ue);var qt=isNaN(ue.x),ei=isNaN(ue.y);if(qt||ei){Mt=Mt/2+3,It=It/2+3;var Si=45<=Ee&&135>=Ee,fi=225<=Ee&&315>=Ee;le===pl&&(Si||fi)?(wt.x=ei?Mt:ue.y,wt.y=qt?It:ue.x,Si?0<=re||isNaN(re)&&.5>oe||!qt||(wt.y=-It):fi&&((0<=re||isNaN(re)&&.5>oe)&&qt&&(wt.y=-It),ei&&(wt.x=-Mt))):(qt&&(wt.x=0<=re||isNaN(re)&&.5>oe?Mt:-Mt),ei&&(wt.y=-It),wt.rotate(Ee))}else wt.rotate(Ee);pe+=wt.x,at+=wt.y,Fe.pp(Oe),xe+=Oe.x,pt+=Oe.y,re=tt.allocAt(pe+xe,at+pt),ne.move(re),tt.free(re),tt.free(wt),tt.free(Xe),gn.free(Oe),_t.free(Fe)}}b!==null?b.Ul(!1):E.Ul(!1),E=A1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),tt.free(E)}};function i1(a,y,x,E){if(fu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof lo&&a.type===Hn.Link&&a.adornedObject instanceof Er&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Kn&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof lo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),ls(E,!1)}}function cp(){this.xa="Base"}Ot(cp,gs),cp.prototype.measure=function(a,y,x,E,b,z,ne){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ne);var pe=re.measuredBounds,xe=new gn(-oe.left,-oe.top,Math.max(pe.width+le,0),Math.max(pe.height+ue,0));a.graduatedBounds.push(xe),b.assign(xe);for(var Ee=re.geometry,Fe=re.strokeWidth,Oe=Ee.flattenedSegments,at=Ee.flattenedLengths,Xe=Ee.flattenedTotalLength,pt=Oe.length,wt=0,Mt=0,It=qn(),qt=0;qtXi&&(Xi+=360),Si.push(Xi)}wt=Tn,Mt=dr}It.push(Si)}if(a.graduatedIntervals===null){for(var vo=[],Xo=a.O.s,xs=Xo.length,Es=0;EsYc)){for(var Ja=0;JaYc&&Ps.push(sl)}}}}}a.graduatedIntervals=vo}var Xc=a.graduatedIntervals,vu=a.O.s,Uu=vu.length,eu=0,Wl=0,Ld=Xe;a.graduatedMarks=[];for(var wh,Og=0;OgXp*ll*Xe/a.graduatedRange&&tu.graduatedSkip===null)){var _f=at[0][0],jh=0,Gl=0;Wl=Xe*tu.graduatedStart-1e-4,Ld=Xe*tu.graduatedEnd+1e-4;var lf=Xp*ll,nu=a.graduatedTickBase;if(nua.graduatedMin+lf&&(nu-=Math.floor((nu-a.graduatedMin)/lf)*lf);for(var G0=Xc[Og],Jp=nu,_y=1e-6*a.graduatedMax,ac=1;nu<=a.graduatedMax+_y;ac++){e:{for(var xc=G0.length,Zf=0;Zf-Ig){var Nd=!1;break e}}Nd=!0}if(Nd&&(nu>a.graduatedMax&&(nu=a.graduatedMax),tu.graduatedSkip===null||tu instanceof Qo&&!tu.graduatedSkip(nu,tu)||tu instanceof Er&&!tu.graduatedSkip(nu,tu))&&(eu=(nu-a.graduatedMin)*Xe/a.graduatedRange,eu>Xe&&(eu=Xe),Wl<=eu&&eu<=Ld)){for(var sc=It[jh][Gl],Jc=at[jh][Gl];jh_f&&GlPc&&.4995Pc?0Pc||.9995Hf){var jg=1-Math.abs(.5-Pc);sc=(Ch*jg+_h*(1-jg))%360;break e}}}sc=Ch}if(tu instanceof Qo){var hh="";tu.graduatedFunction!==null?(hh=tu.graduatedFunction(nu,tu),hh=hh!=null?hh.toString():""):hh=(+nu.toFixed(2)).toString(),hh!==""&&wh.push({$l:Rg,angle:sc,text:hh})}else wh.push({$l:Rg,angle:sc})}nu=Jp+ac*lf}}}a.graduatedMarks.push(wh)}di(It);var Os=a.graduatedMarks;if(Os!==null)for(var Qp=E.length,xl=0;xlch;ch++){switch(ch){case 0:Kl.h(Cc,Eh);break;case 1:Kl.h(Cc+zg,Eh);break;case 2:Kl.h(Cc,Eh+cf);break;case 3:Kl.h(Cc+zg,Eh+cf)}Kl.rotate(Ra+Qa.angle),Kl.offset(V0,Zg),_g===0&&ch===0?Ou.h(Kl.x,Kl.y,0,0):Ou.Ye(Kl),Kl.offset(-V0,-Zg),Kl.rotate(-Ra-Qa.angle)}tt.free(Kl),wc.graduatedBounds!==null&&wc.graduatedBounds.push(Ou),ma(Qc,Ou.x,Ou.y,Ou.width,Ou.height)}else if(Qa instanceof Qo){var Yu=a,U0=b;Yu.temporaryTextBlock===null&&(Yu.temporaryTextBlock=new Qo);var iu=Yu.temporaryTextBlock;y1(iu,Qa);var qc=Qa.alignmentFocus;qc.Mc()&&(qc=bl);for(var Xu=Qa.segmentOrientation,Hg=Qa.segmentOffset,Td=new gn,qp=0,Wg=0,Zh=0,df=0,Dd=0,Gg=Pl.length,ed=0;edZh||225Zh)&&bh.rotate(-Zh,nd/2,ff/2);var Gf=gn.allocAt(0,0,nd,ff),id=tt.alloc();id.xi(Gf,qc),bh.Ga(id);var $f=-id.x,Hy=-id.y,bc=tt.alloc();bc.assign(Hg),isNaN(bc.x)&&(bc.x=nd/2+3),isNaN(bc.y)&&(bc.y=-(ff/2+3)),bc.rotate(Zh),qp+=bc.x+$f,Wg+=bc.y+Hy;var gf=new gn(qp,Wg,td.width,td.height),em=new gn(td.x,td.y,td.width,td.height),Wy=new gn(Ec.x,Ec.y,Ec.width,Ec.height);lc.Sz=df,lc.lineCount=iu.lineCount,lc.lines=[iu.Cb,iu.Ih,iu.df,iu.Le,iu.Qc,iu.Qb,iu.ze],lc.actualBounds=gf,lc.measuredBounds=em,lc.naturalBounds=Wy,ed===0?Td.assign(gf):Td.ed(gf),tt.free(bc),tt.free(id),gn.free(Gf),_t.free(bh)}Yu.graduatedBounds!==null&&Yu.graduatedBounds.push(Td),ma(U0,Td.x,Td.y,Td.width,Td.height)}ls(Qa,!1)}}},cp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ne=0,re=z[ne];ne++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le=ne&&(ne=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ue=oe.length,pe=0;pea.graduatedTickUnit*xe.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&xe.graduatedSkip===null)){var Oe=xe.measuredBounds,at=xe.strokeWidth*xe.scale,Xe=xe.alignmentFocus;Xe.Mc()&&(Xe=bl);for(var pt=0;ptne.height)continue}else if(le.position>ne.width)continue;var ue=le.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var pe=le.separatorStroke;if(pe===null&&(pe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&pe!==null){Da(a,y,pe,!1,!1,ne,z),pe=!1;var xe=le.separatorDashArray;xe===null&&(xe=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),xe!==null&&(pe=!0,y.js(xe,0)),y.beginPath(),xe=le.position+ue,x?xe>ne.height&&(ue-=xe-ne.height):xe>ne.width&&(ue-=xe-ne.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,xe=ne.width-ue.right,y.moveTo(ue.left,le),y.lineTo(xe,le)):(le+=ue.left,xe=ne.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,xe)),y.stroke(),y.Se(),pe&&y.fs()}}}}function Lm(a,y,x,E,b){for(var z=E.length,ne=a.actualBounds,re=a.naturalBounds,oe=o1(a,!0),le=o1(a,!1),ue=0;uexe)){var Ee=pe.Wc(),Fe=pe.separatorStrokeWidth;isNaN(Fe)&&(Fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Oe=pe.separatorStroke;Oe===null&&(Oe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Oe===null||pe.index===(x?oe:le))&&(Fe=0),Ee-=Fe,Fe=pe.position+Fe,Ee+=pe.actual,Fe+Ee>xe&&(Ee=xe-Fe),0>=Ee||(xe=a.yb,Da(a,y,pe.background,!0,!1,re,ne),x?y.fillRect(xe.left,Fe+xe.top,ne.width-(xe.left+xe.right),Ee):y.fillRect(Fe+xe.left,xe.top,Ee,ne.height-(xe.top+xe.bottom)))}}}}function o1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(Fe),tt.free(Fe)),tt.free(ue),z&&b.transform(ne),le},Le.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case zn:this.v(!0),this.measure(x+re,E+ne,0,0);break;case Ti:this.v(!0),this.measure(x+re,z+ne,0,0);break;case Zi:this.v(!0),this.measure(y+re,E+ne,0,0)}}this.na.arrange(this,b,this.jg)}},Le.gh=function(a){var y=this.naturalBounds,x=vc(this);if(Fo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=tt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(jr(b.set(a),z.transform),z.ca(b)))return tt.free(b),!0}return tt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Le.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Exe.width||pe.y>xe.height||0>pe.x+pe.width||0>pe.y+pe.height||(pe=ue,ue=ue instanceof Hn?ue:null,xe=_t.alloc(),xe.set(ne),(ue!==null?ue.Cf(a,y,x,E,b,xe):Ss(pe,a,E,xe))&&(y!==null&&(pe=y(pe)),pe===null||x!==null&&!x(pe)||b.add(pe)),_t.free(xe))}}return z===void 0&&_t.free(ne),E}return z===void 0&&_t.free(ne),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ne=b[z];if(ne.visible){var re=ne.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ne instanceof Hn&&mv(ne,y,x,E),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||E.add(ne))}}}Le.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ne=this.naturalBounds,re=this.se(),oe=re?a:jr(tt.allocAt(a.x,a.y),this.transform),le=re?y:jr(tt.allocAt(y.x,y.y),this.transform),ue=oe.Bf(le),pe=0at.width||Oe.y>at.height||0>Oe.x+Oe.width||0>Oe.y+Oe.height))&&(Fe.se()?(Oe=Fe.transform,jr(oe.set(a),Oe),jr(le.set(y),Oe)):(oe.set(a),le.set(y)),Oe=Fe,Fe=Fe instanceof Hn?Fe:null,(Fe!==null?Fe.og(oe,le,x,E,b,z):Oe.tx(oe,le,b))&&(x!==null&&(Oe=x(Oe)),Oe===null||E!==null&&!E(Oe)||z.add(Oe)))}}tt.free(oe),tt.free(le)}return b?pe:ne}return!1};function vv(a){var y=null;return a instanceof Er&&(y=a.spot1,y===Co&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=cs),y}function yv(a){var y=null;return a instanceof Er&&(y=a.spot2,y===Co&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ys),y}Le.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else yt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),fu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Hn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Bm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof oi&&(x.Te=!0),x.Te&&x instanceof oi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Yo,"elements",this,y,null,E,null),x.cb(ko,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Le.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&On(a,">= 0",Hn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new us;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ko,"rowdefs",this,null,x,null,a)}return y[a]},Le.oA=function(a){if(0>a&&On(a,">= 0",Hn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Yo,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof us?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Le.Eb=function(a){0>a&&On(a,">= 0",Hn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new us;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ko,"coldefs",this,null,x,null,a)}return y[a]},Le.jA=function(a){if(0>a&&On(a,">= 0",Hn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Yo,"coldefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof us?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Le.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Nm(y,a),this},Le.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new us(y)),this},Le.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new us(y)),this},Le.nz=function(a){if(0>a||this.type!==Hn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==Hn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)this.pc(this.O.length-1,!1);f1(this,this.itemArray)};function f1(a,y){var x=dp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Pv(a,y);if(b=wv(a,b),b!==null){if($u(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new xi),a.ge.add(y,b)),z=x+dp(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&On(a,">= 0",Hn,"padding"),a=new Di(a)):(0>a.left&&On(a.left,">= 0",Hn,"padding:value.left"),0>a.right&&On(a.right,">= 0",Hn,"padding:value.right"),0>a.top&&On(a.top,">= 0",Hn,"padding:value.top"),0>a.bottom&&On(a.bottom,">= 0",Hn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:bs},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ku),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Ao)&&(a instanceof Ao&&a.freeze(),this.T===null&&(this.T=new ku),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new ku),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&yt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ku),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&yt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ku),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Oi&&!(this instanceof lo);$u(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Kn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Oi&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Mf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||f1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new xi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Oi||a.isPanelMain)&&yt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Lr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Lr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof gr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Bm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Ve.Object.defineProperties(Hn,{Position:{get:function(){return rh.I("Position")}},Horizontal:{get:function(){return rh.I("Horizontal")}},Vertical:{get:function(){return rh.I("Vertical")}},Spot:{get:function(){return rh.I("Spot")}},Auto:{get:function(){return rh.I("Auto")}},Table:{get:function(){return rh.I("Table")}},Viewbox:{get:function(){return rh.I("Viewbox")}},TableRow:{get:function(){return rh.I("TableRow")}},TableColumn:{get:function(){return rh.I("TableColumn")}},Link:{get:function(){return rh.I("Link")}},Grid:{get:function(){return rh.I("Grid")}},Graduated:{get:function(){return rh.I("Graduated")}}}),Hn.prototype.rebuildItemElements=Hn.prototype.mv,Hn.prototype.findItemPanelForData=Hn.prototype.sx,Hn.prototype.updateTargetBindings=Hn.prototype.La,Hn.prototype.copyTemplate=Hn.prototype.Uy,Hn.prototype.graduatedValueForPoint=Hn.prototype.Gz,Hn.prototype.graduatedPointForValue=Hn.prototype.Fz,Hn.prototype.findColumnForLocalX=Hn.prototype.fz,Hn.prototype.findRowForLocalY=Hn.prototype.nz,Hn.prototype.addColumnDefinition=Hn.prototype.By,Hn.prototype.addRowDefinition=Hn.prototype.Hy,Hn.prototype.addRowColumnDefinition=Hn.prototype.Gy,Hn.prototype.removeColumnDefinition=Hn.prototype.jA,Hn.prototype.getColumnDefinition=Hn.prototype.Eb,Hn.prototype.removeRowDefinition=Hn.prototype.oA,Hn.prototype.getRowDefinition=Hn.prototype.Fb,Hn.prototype.removeAt=Hn.prototype.mb,Hn.prototype.remove=Hn.prototype.remove,Hn.prototype.insertAt=Hn.prototype.Gb,Hn.prototype.elt=Hn.prototype.M,Hn.prototype.add=Hn.prototype.add,Hn.prototype.findObject=Hn.prototype.fb,Hn.prototype.findInVisualTree=Hn.prototype.Nl,Hn.prototype.walkVisualTreeFrom=Hn.prototype.qm,Hn.prototype.findMainElement=Hn.prototype.Pb;var g1=!1,p1=null,rh=new xi;Hn.className="Panel",Hn.definePanelLayout=Ih,Ih("Position",new mm),Ih("Vertical",new ym),Ih("Auto",new xm),Ih("Link",new Mm);function yc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}yc.prototype.copy=function(){var a=new yc;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},yc.className="GradPanelSettings";function ku(){this.Pc=[],this.Oc=[],this.j=this.ob=Am,this.hb=this.Hb=0,this.Qp=bs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ku.prototype.copy=function(a){for(var y=new ku,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&On(a,">= 0",us,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&On(a,">= 0",us,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&On(a,">= 0",us,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&On(a,">= 0",us,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ff(a,"RowColumnDefinition.separatorStroke"),a instanceof Ao&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;bb)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ue,pe,xe,Ee,Fe,Oe=0,at=qn(),Xe=2;Xepe&&(pe=1),b=x=pe,le=ne/2,ue=le!==0,Xe=0,Fe=at[Xe],pe=Fe[0],Ee=Fe[1],xe=Fe[2],Fe=Fe[3];for(var pt=0;.1<=Oe;){if(pt===0&&(ue?(b=x,b-=le,Oe-=le,ue=!1):b=x,b===0&&(b=1)),b>Oe){di(at);return}b>Fe?(pt=b-Fe,b=Fe):pt=0;var wt=Math.sqrt(b*b/(1+xe*xe));if(0>pe&&(wt=-wt),re+=wt,oe+=xe*wt,a.translate(re,oe),a.rotate(Ee),a.translate(-(ne/2),-(z/2)),pt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Ee),a.translate(-re,-oe),Oe-=b,Fe-=b,pt!==0){if(Xe++,Xe===at.length){di(at);return}Fe=at[Xe],pe=Fe[0],Ee=Fe[1],xe=Fe[2],Fe=Fe[3],b=pt}}di(at)}}Le.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;E!==null&&Da(this,a,E,!0,!1,ne,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Hn.Link&&re instanceof lo&&re.category==="Selection"&&re.adornedObject instanceof Er&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(Da(this,a,x,!1,!1,ne,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ne=!1,oe=this.strokeDashArray,oe!==null&&(ne=!0,a.js(oe,this.strokeDashOffset)),b.type===yn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===yn.u){var le=b.startX;oe=b.startY;var ue=b.endX,pe=b.endY;b=Math.min(le,ue);var xe=Math.min(oe,pe);le=Math.abs(ue-le),oe=Math.abs(pe-oe),a.beginPath(),a.rect(b,xe,le,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&Xh(a),a.jk(),re&&z&&gc(a)),a.Se()}else if(b.type===yn.F)le=b.startX,oe=b.startY,ue=b.endX,pe=b.endY,b=Math.abs(ue-le)/2,xe=Math.abs(pe-oe)/2,le=Math.min(le,ue)+b,oe=Math.min(oe,pe)+xe,a.beginPath(),a.moveTo(le,oe-xe),a.bezierCurveTo(le+it.wg*b,oe-xe,le+b,oe-it.wg*xe,le+b,oe),a.bezierCurveTo(le+b,oe+it.wg*xe,le+it.wg*b,oe+xe,le,oe+xe),a.bezierCurveTo(le-it.wg*b,oe+xe,le-b,oe+it.wg*xe,le-b,oe),a.bezierCurveTo(le-b,oe-it.wg*xe,le-it.wg*b,oe-xe,le,oe-xe),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&Xh(a),a.jk(),re&&z&&gc(a)),a.Se();else if(b.type===yn.o)for(b=b.figures,oe=b.length,xe=0;xeOe.sweepAngle,Ee!==null?Ee.endX:le.startX,Ee!==null?Ee.endY:le.startY)}else if(Ee=$i(Oe,le),at=Ee.length,at===0)a.lineTo(Oe.centerX,Oe.centerY);else for(var Xe=0;Xe(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(gn.free(z),it.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===yn.u){y=x.startX;var ne=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ne,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ne),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return gn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),gn.free(z),a}if(x.type===yn.F){ne=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ne,re),y=Math.min(b,oe),ne=Math.abs(re-ne)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ne),y=a.y-(y+b),this.fill===null){if(ne-=E,b-=E,0>=ne||0>=b||1>=x*x/(ne*ne)+y*y/(b*b))return gn.free(z),!1;ne+=E,b+=E}return this.stroke!==null&&(ne+=E,b+=E),gn.free(z),0>=ne||0>=b?!1:1>=x*x/(ne*ne)+y*y/(b*b)}if(x.type===yn.o)return gn.free(z),this.fill===null?jo(x,a.x,a.y,b):Ir(x,a,b,1=this.strokeWidth)ue=it.Ve(le.startX,le.startY,le.endX,le.endY,z,ne,re,oe,b);else{if(le.startX===le.endX?(E=pe,ue=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ue=pe/Math.sqrt(1+y*y),E=ue*y),y=qn(),a=new tt,it.Ve(le.startX+E,le.startY+ue,le.endX+E,le.endY+ue,z,ne,re,oe,a)&&y.push(a),a=new tt,it.Ve(le.startX-E,le.startY-ue,le.endX-E,le.endY-ue,z,ne,re,oe,a)&&y.push(a),a=new tt,it.Ve(le.startX+E,le.startY+ue,le.startX-E,le.startY-ue,z,ne,re,oe,a)&&y.push(a),a=new tt,it.Ve(le.endX+E,le.endY+ue,le.endX-E,le.endY-ue,z,ne,re,oe,a)&&y.push(a),re=y.length,re===0)return di(y),!1;for(ue=!0,oe=1/0,E=0;EMath.abs(x)){if(oe=ne-ue-x*(z-E),0>a*a*x*x+le*le-oe*oe){b.x=NaN,b.y=NaN,ue=!1;break e}pe=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*pe)/(le*le+a*a*x*x)+E,a=(-(a*a*x*oe)-a*le*pe)/(le*le+a*a*x*x)+E,le=x*(re-E)+oe+ue,oe=x*(a-E)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ne-le)*(ne-le))re){b.x=NaN,b.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ne)Math.abs(Fe)?(Oe*=.5/Fe,Fe=.5):Oe!==0&&.5>Math.abs(Oe)&&(Fe*=.5/Oe,Oe=.5),Xe-=Fe,pt-=Oe;Ee.contains(Xe,pt);)Xe-=Fe,pt-=Oe;for(b.x=re,b.y=oe,Oe=0;Oex?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||it.$(oe.y,a))&&(oe.yy||it.$(oe.x,y))&&(oe.x=a&&E<=y):(a=E&&x<=a)}Le.tx=function(a,y,x){function E(at,Xe){for(var pt=at.length,wt=0;wtb)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5=b||qa(y,z,0,-pe)>=b||qa(y,z,0,pe)>=b||qa(y,z,ue,0)>=b)}else if(y.type===yn.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.xle&&a.yb&&To(a.x,a.y,z,re,oe,re)>b&&To(a.x,a.y,oe,le,z,le)>b&&To(a.x,a.y,oe,le,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?jo(y,a.x,a.y,z):Ir(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(re=z.segments.s,oe=re.length,le=0;leb)return!1;break;case Cr:var xe=qn();if(it.Qe(ne,ue,pe.point1X,pe.point1Y,pe.point2X,pe.point2Y,pe.endX,pe.endY,.8,xe),ne=E(xe,a),di(xe),ne||(ne=pe.endX,ue=pe.endY,a.zd(ne,ue)>b))return!1;break;case Lo:if(xe=qn(),it.ep(ne,ue,pe.point1X,pe.point1Y,pe.endX,pe.endY,.8,xe),ne=E(xe,a),di(xe),ne||(ne=pe.endX,ue=pe.endY,a.zd(ne,ue)>b))return!1;break;case Rr:case tr:xe=pe.type===Rr?$i(pe,z):Tr(pe,z,ne,ue);var Ee=xe.length;if(Ee===0){if(ne=pe.type===Rr?pe.centerX:pe.endX,ue=pe.type===Rr?pe.centerY:pe.endY,a.zd(ne,ue)>b)return!1;break}pe=null;for(var Fe=qn(),Oe=0;Oe= 0",Er,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?On(a,'"butt", "round", or "square"',Er,"strokeCap"):(ef(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?On(a,'"miter", "bevel", or "round"',Er,"strokeJoin"):(ef(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){ef(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(pe*pe+ue*ue)*xe*xe&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Jl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,pe=this.spacingBelow,this.flip){case io:a.translate(b,0),a.scale(-1,1);break;case Br:a.translate(0,z),a.scale(1,-1);break;case Wo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,xe=(y+ne+pe)*ue,z>xe&&(E=this.verticalAlignment,E=E.y*z-E.y*xe+E.offsetY),ue===1&&this.ze!==null)pe=this.Cb,pe>b&&(pe=b),this.Oj(this.ze,a,0,E+y,b,ne,pe,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(xe=0;xeb&&(Ee=b),E+=y,this.Oj(this.Qb[xe],a,0,E,b,ne,Ee,x,re,oe,le),E+=ne+pe}switch(this.flip){case io:a.scale(-1,1),a.translate(-b,0);break;case Br:a.scale(1,-1),a.translate(0,-z);break;case Wo:a.scale(-1,-1),a.translate(-b,-z)}}},Le.Oj=function(a,y,x,E,b,z,ne,re,oe,le,ue){var pe=0;if(re)oe==="left"?pe=0:oe==="right"?pe=b-ne:oe==="center"&&(pe=(b-ne)/2),y.fillRect(x+pe,E+.25*z,ne,1);else{if(oe==="left"?pe=0:oe==="right"?pe=b:oe==="center"&&(pe=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+pe,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?pe-=ne:oe==="center"&&(pe-=ne/2),le){re=Im!==null?Im(this,z):.8*z,oe=x+pe,le=E+re,b=x+pe+ne,re=E+re;var xe=a;y.beginPath(),y.lineWidth=xe,y.moveTo(oe,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Jl&&y.ad.classList.add("gojs-td")}ue&&(ue=E+z-z/2.2|0,a%2!==0&&(ue+=.5),E=x+pe,z=ue,x=x+pe+ne,ne=ue,pe=a,y.beginPath(),y.lineWidth=pe,y.moveTo(E,z),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Jl&&y.ad.classList.add("gojs-td"))}},Le.kk=function(a,y,x){if(!Rt.prototype.kk.call(this,a,y,x))return!1;if(Da(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);oh(le)>y&&1a.maxLines&&(a.l|=16777216))}function Lv(a,y,x,E){var b=a.formatting===mp;b&&(y=y.trim());var z=0,ne=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,pp(a)+re);var oe=a.overflow===Rm?S1(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ne=y,a.wrap===Fv){a.Le=1;var le=oh(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),gp(a,y,a.Cb),E!==null&&E.h(le,re);else{for(z=gg(a,ne),ne=ne.substr(z.length),y=gg(a,ne),le=oh(z+y);0x&&1x;){var pe=1;for(le=oh(y.substr(0,pe)),ue=0;le<=x;)pe++,ue=le,le=oh(y.substr(0,pe));if(pe===1){var xe=le;z=Math.max(z,le)}else xe=ue,z=Math.max(z,ue);if(pe--,1>pe&&(pe=1),gp(a,y.substr(0,pe),xe),oe++,y=y.substr(pe),a.Gc+oe>a.maxLines)break}for(ue=gg(a,ne),le=oh(y+ue);0a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function gg(a,y){if(a.wrap===w1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function oh(a){return Nl===null?8*a.length:Nl.measureText(a).width}function pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Nl===null){var x=16;return a.df=x}return kv[y]!==void 0&&5e3>E1?x=kv[y]:(x=1.3*Nl.measureText("M").width,kv[y]=x,E1++),a.df=x}function S1(a){if(Nl===null)return 6;if(jm[a]!==void 0&&5e3>Av)var y=jm[a];else y=Nl.measureText(vp).width,jm[a]=y,Av++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,pp(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(` `,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ne,re=!1;!re;){if(ne=x.indexOf(` `,z),ne===-1&&(ne=x.length,re=!0),z<=ne){if(z=x.substr(z,ne-z),a.wrap!==Fv){a.Le=0;var oe=Xn.alloc();Lv(a,z,y,oe),b+=oe.height,Xn.free(oe),a.Gc+=a.Le}else Lv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ne+1}return a.Lq=b}Ve.Object.defineProperties(Qo.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Rh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:In},set:function(a){var y=this.flip;y!==a&&(Rh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ds},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Rh(this),this.da.Yr=a,cl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Xn.alloc();Lv(this,this.ec,999999,a);var y=a.width;Xn.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Oa(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Bv},set:function(a){var y=this.wrap;y!==a&&(Rh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(Rh(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ff(a,"TextBlock.stroke"),a instanceof Ao&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return pp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Rh(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Rh(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new qh),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1a?a=0:1=a&&On(a,"> 0",Qo,"maxLines"),Rh(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Om=null,Im=null,Fv=new fn(Qo,"None",0),P1=new fn(Qo,"WrapFit",1),Bv=new fn(Qo,"WrapDesiredSize",2),w1=new fn(Qo,"WrapBreakAll",3),Nv=new fn(Qo,"OverflowClip",0),Rm=new fn(Qo,"OverflowEllipsis",1),mp=new fn(Qo,"FormatTrim",0),C1=new fn(Qo,"FormatNone",0),Sx=/[ \u200b\u00ad]/,kv=new zi,E1=0,jm=new zi,Av=0,vp="...",b1="",Nl=null,zm=!1;Qo.className="TextBlock";function Tv(){this.nc=!1,this.Hd=null,this.Xf=In,this.gq=mp,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ds,this.$r=Bv}Tv.prototype.copy=function(){var a=new Tv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Qo.getEllipsis=function(){return vp},Qo.setEllipsis=function(a){vp=a,jm=new zi,Av=0},Qo.getBaseline=function(){return Om},Qo.setBaseline=function(a){Om=a},Qo.getUnderline=function(){return Im},Qo.setUnderline=function(a){Im=a},Qo.isValidFont=function(a){if(zm||(Nl=Ba?new Gu(null).context:null,zm=!0),Nl===null)return!0;var y=Nl.font;if(a===y||a==="10px sans-serif")return!0;Nl.font="10px sans-serif",Nl.font=a;var x=Nl.font;if(x!=="10px sans-serif")return Nl.font=y,!0;Nl.font="19px serif";var E=Nl.font;return Nl.font=a,x=Nl.font,Nl.font=y,x!==E},Qo.FormatNone=C1,Qo.FormatTrim=mp,Qo.None=Fv,Qo.OverflowClip=Nv,Qo.OverflowEllipsis=Rm,Qo.WrapBreakAll=w1,Qo.WrapDesiredSize=Bv,Qo.WrapFit=P1;function qh(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}qh.prototype.copy=function(){var a=new qh;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},qh.className="GradElementSettings";function kl(a,y){Rt.call(this),this.Eg=null,this.qo="",this.Xg=Ko,this.Nk=zn,this.Zg=this.Hd=null,this.Mk=Qr,this.Xf=In,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var pg;Ot(kl,Rt),kl.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},kl.prototype.qb=function(a){a===In||a===Ci||a===Kr?this.imageStretch=a:Rt.prototype.qb.call(this,a)},kl.prototype.toString=function(){return"Picture("+this.source+")#"+Bi(this)};function mg(a){a===void 0&&(a=""),a!==""?pg[a]&&(delete pg[a],_m--):(pg=new zi,_m=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ne=b.Og.I(z);if(ne!==null)for(var re=ne.length,oe=0;oe=E.width&&(z=z+Fe.offsetX+(pe*Fe.x-E.width*Fe.x)),xe>=E.height&&(ne=ne+Fe.offsetY+(xe*Fe.y-E.height*Fe.y)),oe=Math.min(E.width,pe),re=Math.min(E.height,xe);break;case zn:pe=E.width,xe=E.height;break;case Ci:case Kr:Ee===Ci?(Ee=Math.min(E.height/xe,E.width/pe),pe*=Ee,xe*=Ee):Ee===Kr&&(Ee=Math.max(E.height/xe,E.width/pe),pe*=Ee,xe*=Ee,pe>=E.width&&(z=(z+Fe.offsetX+(pe*Fe.x-E.width*Fe.x)/pe)*oe),xe>=E.height&&(ne=(ne+Fe.offsetY+(xe*Fe.y-E.height*Fe.y)/xe)*re),oe*=1/(pe/E.width),re*=1/(xe/E.height),pe=E.width,xe=E.height)}Ee=this.Df()*y.scale;var Oe=pe*Ee*xe*Ee,at=oe*re/Oe,Xe=x.__goCache;Ee=null;var pt=xx;if(!b){if(x.sq&&Xe!==void 0&&4pt*pt)for(Xe.gi===null&&(F1(Xe,4,le,ue,x),F1(Xe,16,le,ue,x)),b=Xe.gi,le=b.length,ue=0;uea)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=it.Mf[E];if(b!==void 0)return b;var z=a*it.wg;return b=new yn().add(new ho(a,0,!0).add(new _i(or,y-a,0)).add(new _i(Cr,y,a,y-z,0,y,z)).add(new _i(or,y,x-a)).add(new _i(Cr,y-a,x,y,x-z,y-z,x)).add(new _i(or,a,x)).add(new _i(Cr,0,x-a,z,x,0,x-z)).add(new _i(or,0,a)).add(new _i(Cr,a,0,0,z,z,0).close())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Al(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Al(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Al(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Kn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Al(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Al(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Al(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:na},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Al(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Al(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Al(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Co},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Al(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&yt("Cannot make a Group a member of itself: "+this.toString()),yt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?$v(y,this):this instanceof gr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Gv(a,this):this instanceof gr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof gr){for(x=new Ln,md(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof oi)for(E=E.linksConnected;E.next();)Sg(E.value)}if(this instanceof oi){for(x=this.linksConnected;x.next();)Sg(x.value);x=this.labeledLink,x!==null&&Sg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Zu(y,-1,a))}}else yt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Al(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof oi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Al(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Al(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Pa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Al(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Al(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Al(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Oi.prototype.invalidateLayout=Oi.prototype.C,Oi.prototype.findCommonContainingGroup=Oi.prototype.px,Oi.prototype.isMemberOf=Oi.prototype.Td,Oi.prototype.findTopLevelPart=Oi.prototype.sz,Oi.prototype.findSubGraphLevel=Oi.prototype.oz,Oi.prototype.ensureBounds=Oi.prototype.Va,Oi.prototype.getDocumentBounds=Oi.prototype.mi,Oi.prototype.findObject=Oi.prototype.fb,Oi.prototype.moveTo=Oi.prototype.moveTo,Oi.prototype.invalidateAdornments=Oi.prototype.Wb,Oi.prototype.clearAdornments=Oi.prototype.Ej,Oi.prototype.removeAdornment=Oi.prototype.Jf,Oi.prototype.addAdornment=Oi.prototype.bh,Oi.prototype.findAdornment=Oi.prototype.Pj,Oi.prototype.updateTargetBindings=Oi.prototype.La;var _1=!1;Oi.className="Part",Oi.LayoutNone=0,Oi.LayoutAdded=1,Oi.LayoutRemoved=2,Oi.LayoutShown=4,Oi.LayoutHidden=8,Oi.LayoutNodeSized=16,Oi.LayoutGroupLayout=32,Oi.LayoutNodeReplaced=64,Oi.LayoutStandard=127,Oi.LayoutAll=16777215;function lo(a,y){a===void 0||a instanceof gs||typeof a=="string"?Oi.call(this,a):(Oi.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Ot(lo,Oi),lo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},lo.prototype.updateRelationshipsFromData=function(){},lo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Kn&&y instanceof Er){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),U1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ic),y.Ue=!1}};function U1(a,y,x,E,b,z,ne){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Ic),y.Ue=!1}};function X1(a,y,x,E,b,z,ne){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var pe=x?ue.Oo():ue.Po();le.vv=a,pe.all(function(xe){return function(Ee){return Ee===xe.vv||!Ee.isTreeExpanded}}(le))&&b.Cj(ue,z)}(2b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Ve.Object.defineProperties(gl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Di(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),gl.className="Placeholder";function Kn(a){Oi.call(this,Hn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=pl,this.Om=0,this.Qm=pl,this.Rm=NaN,this.qj=Xv,this.po=.5,this.wd=null,this.Nb=new Nn().freeze(),this.Tg=this.Mg=null,this.ml=new gn,this.ua=new yn,this.u=this.o=this.Sf=this.Wf=null,this.su=new tt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ot(Kn,Oi),Kn.prototype.cloneProtected=function(a){Oi.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Le=Kn.prototype,Le.Af=function(a){Oi.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Ql(y),a=a.toPort,a!==null&&Ql(a)},Le.qb=function(a){a.classType===Kn?(a.value&2)===2?this.routing=a:a===pu||a===Gc||a===Pg?this.curve=a:a===Pp||a===qm||a===e0?this.adjusting=a:a!==Xv&&a!==pl&&yt("Unknown Link enum value for a Link property: "+a):Oi.prototype.qb.call(this,a)},Le.Xc=function(){this.ba===null&&(this.ba=new sp)},Le.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),dl(a)||gd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),dl(a)||gd(a)))},Le.zv=function(){return!1},Le.Av=function(){},Le.Zc=function(){return!1},Kn.prototype.computeAngle=function(a,y,x){return Kn.computeAngle(y,x)},Kn.computeAngle=function(a,y){switch(a){default:case pl:a=0;break;case wp:a=y;break;case Cp:a=y+90;break;case Ep:a=y-90;break;case Jv:a=y+180;break;case t0:a=it.bp(y),90a&&(a-=180);break;case bp:a=it.bp(y+90),90a&&(a-=180);break;case Mp:a=it.bp(y-90),90a&&(a-=180);break;case n0:if(a=it.bp(y),45a||225a)return 0;90a&&(a-=180)}return it.bp(a)};function Sg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&$v(x,a),a.Ah=y,y!==null&&Gv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),b(a,x,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Le=Kn.prototype,Le.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Oi.prototype.oh.call(this)},Le.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Le.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function q1(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}Le.Vo=function(a){if(Oi.prototype.Vo.call(this,a),rf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,$m(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||$m(x,this,E)}Sp(this)}},Le.Wo=function(a){if(Oi.prototype.Wo.call(this,a),rf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}xp(this)}},Le.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Kn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Kn.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Oi.prototype.move.call(this,a,!1):(a=tt.allocAt(x.x+E,x.y+b),Oi.prototype.move.call(this,a,!1),tt.free(a)),Wc(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Kn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Kn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Kn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ia),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===pu))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===pu){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return it.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),it.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Kn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===pu))return this.ua.wx(.5);if(this.computeCurve()===pu&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),it.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Le=Kn.prototype,Le.i=function(a){return this.Nb.s[a]},Le.dd=function(a,y){this.Nb.cd(a,y)},Le.L=function(a,y,x){this.Nb.cd(a,new tt(y,x))},Le.Kz=function(a,y){this.Nb.Gb(a,y)},Le.m=function(a,y,x){this.Nb.Gb(a,new tt(y,x))},Le.ne=function(a){this.Nb.add(a)},Le.yf=function(a,y){this.Nb.add(new tt(a,y))},Le.pv=function(a){this.Nb.mb(a)},Le.Fj=function(){this.Nb.clear()};function Wc(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Nn,z=a.Nb.iterator;z.next();){var ne=z.value;b.add(new tt(ne.x+y,ne.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),cl(a)),E?Um(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ra(ne.animationManager,a,b),a.g("points",z,b)}}Le.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Le.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ne=0;nele&&(pe=-pe),Oe=(0>oe?-1:1)*pe+Ee,at=ue*(Oe-Ee)+Fe),Ee=z.x+2*re/3,Fe=z.y+2*oe/3;var Xe=Ee,pt=Fe;it.B(oe,0)?pt=0oe?-1:1)*pe+Ee,pt=ue*(Xe-Ee)+Fe),this.Fj(),this.ne(z),this.yf(Oe,at),this.yf(Xe,pt),this.ne(xe),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,xe=b,E=this.getLinkPoint(a,y,ne,!0,!1,z,xe),b=this.getLinkPoint(z,xe,x,!1,!1,a,y),this.hasCurviness()?(xe=b.x-E.x,x=b.y-E.y,ne=this.computeCurviness(),a=E.x+xe/2,y=E.y+x/2,z=a,re=y,it.B(x,0)?re=0ne&&(z=-z),z=(0>x?-1:1)*z+a,re=xe*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=gn.alloc(),y.mi(re),oe=re.ca(b),xe.mi(re),le=re.ca(E),(oe||le)&&(ne=y.ga(Xm(ne),new tt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,b,!0,ne)),x=xe.ga(Xm(x),new tt),this.dd(1,this.getLinkPointFromPoint(z,xe,x,E,!1,x))),gn.free(re))}else{pe=this.isAvoiding,xe&&(ue&&pe||le)&&this.Fj();var wt=le?this.computeCurviness():0;pe=this.getLinkPoint(a,y,ne,!0,ue,E,b),Ee=Oe=Fe=0,(ue||!re||le)&&(at=this.computeEndSegmentLength(a,y,ne,!0),Ee=this.getLinkDirection(a,y,pe,ne,!0,ue,E,b),le&&(re||ne.D(x)||!ue&&ne.x+x.x===1&&ne.y+x.y===1)&&(Ee-=ue?90:30,0>wt&&(Ee-=180)),0>Ee?Ee+=360:360<=Ee&&(Ee-=360),le&&(at+=Math.abs(wt)*(ue?1:2)),Ee===0?Fe=at:Ee===90?Oe=at:Ee===180?Fe=-at:Ee===270?Oe=-at:(Fe=at*Math.cos(Ee*Math.PI/180),Oe=at*Math.sin(Ee*Math.PI/180)),ne.Mc()&&le&&(at=y.ga(Qr,tt.alloc()),Xe=tt.allocAt(at.x+1e3*Fe,at.y+1e3*Oe),this.getLinkPointFromPoint(a,y,at,Xe,!0,pe),tt.free(at),tt.free(Xe))),at=this.getLinkPoint(E,b,x,!1,ue,a,y);var Mt=pt=Xe=0;if(ue||!oe||le){var It=this.computeEndSegmentLength(E,b,x,!1);Mt=this.getLinkDirection(E,b,at,x,!1,ue,a,y),le&&(oe||ne.D(x)||!ue&&ne.x+x.x===1&&ne.y+x.y===1)&&(Mt+=ue?0:30,0>wt&&(Mt+=180)),0>Mt?Mt+=360:360<=Mt&&(Mt-=360),le&&(It+=Math.abs(wt)*(ue?1:2)),Mt===0?Xe=It:Mt===90?pt=It:Mt===180?Xe=-It:Mt===270?pt=-It:(Xe=It*Math.cos(Mt*Math.PI/180),pt=It*Math.sin(Mt*Math.PI/180)),x.Mc()&&le&&(x=b.ga(Qr,tt.alloc()),ne=tt.allocAt(x.x+1e3*Xe,x.y+1e3*pt),this.getLinkPointFromPoint(E,b,x,ne,!1,at),tt.free(x),tt.free(ne))}x=pe,(ue||!re||le)&&(x=new tt(pe.x+Fe,pe.y+Oe)),ne=at,(ue||!oe||le)&&(ne=new tt(at.x+Xe,at.y+pt)),!xe&&!ue&&re&&3Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Kn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new tt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ne=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,le=a.m11*b,ue=b*(a.m21*a.dy-a.m22*a.dx),pe=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ne+E.y*oe+ue,E=E.x*re+E.y*le+pe,ne=x.x*ne+x.y*oe+ue,x=x.x*re+x.y*le+pe}return y.Sj(b,E,ne,x,z),a!==null&&z.transform(a),z};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Tf,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}Kn.prototype.getLinkPoint=function(a,y,x,E,b,z,ne,re){if(re===void 0&&(re=new tt),x.sb()&&!xg(x))return y.ga(x,re),re;if(x.$c()){var oe=Ym(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===tS){var le=Ym(this,ne);if(le!==null&&oe.Gl=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(Su)||x.Hf(ul))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),tt.free(oe),tt.free(le)}}return re}}return x=y.ga(Xm(x),tt.alloc()),this.pointsCount>(b?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),b&&(ne=Kv(x,ne.copy()))):(oe=this.computeSpot(!E,ne),z=tt.alloc(),ne=ne.ga(Xm(oe),z),b&&(ne=Kv(x,ne)),tt.free(z)),this.getLinkPointFromPoint(a,y,x,ne,E,re),tt.free(x),re},Kn.prototype.getLinkDirection=function(a,y,x,E,b,z,ne,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Kv(oe,re.copy()):x):(x=tt.alloc(),re=re.ga(Qr,x),tt.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,tt.free(oe),oe=x}return E.Mc()&&ne.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),xg(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},Kn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Ym(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Kn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Qr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Co?Fa:y)):(a=y||this.toPort,a===null?a=Qr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Co?Fa:y)),a};function xg(a){return a===Fa||a.x===.5&&a.y===.5}function Xm(a){return a.x===.5&&a.y===.5?a:Qr}Kn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==pl&&4xe.width||pe.y>xe.height||0>pe.x+pe.width||0>pe.y+pe.height)){if(pe=_t.alloc(),pe.set(ne),ue instanceof Hn)re=ue.Cf(a,y,x,E,b,pe);else if(this.path===ue){if(ue instanceof Er)if(re=a,xe=E,ue.pickable===!1)re=!1;else if(pe.multiply(ue.transform),xe)e:{var Ee=re,Fe=pe;if(ue.fh(Ee,Fe))re=!0;else{if(Fe===void 0&&(Fe=ue.transform,Ee.Re(ue.actualBounds))){re=!0;break e}re=Ee.left,xe=Ee.right;var Oe=Ee.top;Ee=Ee.bottom;var at=tt.alloc(),Xe=tt.alloc(),pt=tt.alloc(),wt=_t.alloc();wt.set(Fe),wt.bv(ue.transform),wt.Vj(),Xe.x=xe,Xe.y=Oe,Xe.transform(wt),at.x=re,at.y=Oe,at.transform(wt),Fe=!1,tf(ue,at,Xe,pt)?Fe=!0:(at.x=xe,at.y=Ee,at.transform(wt),tf(ue,at,Xe,pt)?Fe=!0:(Xe.x=re,Xe.y=Ee,Xe.transform(wt),tf(ue,at,Xe,pt)?Fe=!0:(at.x=re,at.y=Oe,at.transform(wt),tf(ue,at,Xe,pt)&&(Fe=!0)))),_t.free(wt),tt.free(at),tt.free(Xe),tt.free(pt),re=Fe}}else re=ue.fh(re,pe)}else re=Ss(ue,a,E,pe);re&&(xe=ue,y!==null&&(xe=y(ue)),xe&&(x===null||x(xe))&&b.add(xe)),_t.free(pe)}}}return z===void 0&&_t.free(ne),re||this.background!==null||this.areaBackground!==null}return z===void 0&&_t.free(ne),!1},Kn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?pu:this.curve},Kn.prototype.computeCorner=function(){if(this.curve===pu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Kn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eoe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ne=y.x;var pe=y.y;re=E.x-ne;var xe=E.y-pe;for(oe=Math.sqrt(re*re+xe*xe),it.$(re,0)?xe=0>xe?-Math.PI/2:Math.PI/2:(xe=Math.atan(xe/Math.abs(re)),0>re&&(xe=Math.PI-xe)),le=oe/le,ue=xe-ue,this.dd(a,y),a+=1;aoe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=le,this.L(a,ne+y*Math.cos(re),pe+y*Math.sin(re)));this.dd(x,E)}}return!0;case e0:if(z=this.i(a),pe=this.i(x),!z.Xa(y)||!pe.Xa(E)){b=z.x,z=z.y,ne=pe.x,pe=pe.y,le=(ne-b)*(ne-b)+(pe-z)*(pe-z),re=y.x,ue=y.y,oe=E.x,xe=E.y;var Ee=1;if(oe-re!==0){var Fe=(xe-ue)/(oe-re);Ee=Math.sqrt(1+1/(Fe*Fe))}else Fe=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Lp,Lp),oe.Bc(Lp,Lp),re.Ye(a),oe.Ye(x);var le=tt.alloc(),ue=tt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=le.x,ue.y=x.y):E===270&&x.ya.y?(le.x=a.xoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=le.x,ue.y=x.y):E===0&&a.xoe.top&&a.yre.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.ya.y&&oe.lefta.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.yoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=le.x,ue.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.yre.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=le.y),le.y>re.top&&le.y=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=le.y):E===180&&x.xa.x?(le.y=a.yoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=le.y):E===90&&a.yoe.left&&a.xre.right)&&(E===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.xa.x&&oe.top=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.xoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=le.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.xre.right)&&(E===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>re.left&&le.x=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x=Cg&&(rS(Ee),re.Bc(Ee.Ho*Ee.Hx,Ee.Go*Ee.Ix),oS(Ee,a,y,pe,E,re,!1),oe=ec(Ee,pe.x,pe.y)),!Ee.abort&&oethis.pointsCount?(y===0||y===180?(re.x=a.x,re.y=pe.y):(re.x=pe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ne=this.i(3),y===0||y===180?it.B(re.x,ne.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ne.y)):it.B(re.y,ne.y)?(Math.abs(a.y-re.y)<=Ee.Go/2&&(this.L(2,re.x,a.y),this.L(3,ne.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(it.B(re.y,ne.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ne.x,re)):it.B(re.x,ne.x)?(Math.abs(a.x-re.x)<=Ee.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ne.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Fe!==null&&(E===0||E===180?this.yf(z.x,Fe.y):this.yf(Fe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),tt.free(le),tt.free(ue)}},Kn.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Vv(a){if(a.diagram===null||!a.isAvoiding||!eg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=tg(a.diagram,!0,a.containingGroup,null);for(var E=1;Eof&&ec(y,ue,pe)!==le-1&&(ec(y,x-re,E)===le-1?(b=180,ue=x-re,pe=E):ec(y,x+re,E)===le-1?(b=0,ue=x+re,pe=E):ec(y,x,E-oe)===le-1?(b=270,ue=x,pe=E-oe):ec(y,x,E+oe)===le-1&&(b=90,ue=x,pe=E+oe));le>of&&ec(y,ue,pe)===le-1;)x=ue,E=pe,b===0?ue+=re:b===90?pe+=oe:b===180?ue-=re:pe-=oe,--le;z?le>of&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),le>of&&(z=b,ne=x,ue=E,b===0?(z=90,ue+=oe):b===90?(z=180,ne-=re):b===180?(z=270,ue-=oe):b===270&&(z=0,ne+=re),ec(y,ne,ue)===le-1?Uv(a,y,ne,ue,z,!1,z):(ne=x,ue=E,b===0?(z=270,ue-=oe):b===90?(z=0,ne+=re):b===180?(z=90,ue+=oe):b===270&&(z=180,ne-=re),ec(y,ne,ue)===le-1&&Uv(a,y,ne,ue,z,!1,z))),a.yf(x,E)}Kn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=To(y,a,x.x,x.y,E.x,E.y),z=0,ne=1;nethis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oeat?Fe>Ee?(z.x=Xe-wt,z.y=Ee-wt,b.x=Xe+Oe,b.y=Ee+Oe):(z.x=Xe-wt,z.y=Ee+wt,b.x=Xe+Oe,b.y=Ee-Oe):Fe>Ee?(z.x=Xe+wt,z.y=Ee-wt,b.x=Xe-Oe,b.y=Ee+Oe):(z.x=Xe+wt,z.y=Ee+wt,b.x=Xe-Oe,b.y=Ee-Oe)),it.$(at,Xe)&&it.$(Ee,Fe)&&(Ee>xe?(pt>Xe?(z.x=Xe-wt,z.y=Ee-wt,b.x=Xe+Oe):(z.x=Xe+wt,z.y=Ee-wt,b.x=Xe-Oe),b.y=Ee+Oe):(pt>Xe?(z.x=Xe-wt,z.y=Ee+wt,b.x=Xe+Oe):(z.x=Xe+wt,z.y=Ee+wt,b.x=Xe-Oe),b.y=Ee-Oe)),(it.$(at,Xe)&&it.$(Xe,pt)||it.$(xe,Ee)&&it.$(Ee,Fe))&&(at=.5*(at+pt),xe=.5*(xe+Fe),z.x=at,z.y=xe,b.x=at,b.y=xe),(pe===1||pe===2&&it.$(ne.x,this.i(0).x)&&it.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+le.x),x.y=.5*(ne.y+le.y)),_c(re,x.x-E,x.y-oe,z.x-E,z.y-oe,le.x-E,le.y-oe),y.set(z),x.set(b),ne=le}}le=ne.x,ne=ne.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=Bf(this,ue.copy(),!1,uo)),le=.5*(le+ue.x),ne=.5*(ne+ue.y),_c(re,b.x-E,b.y-oe,le-E,ne-oe,ue.x-E,ue.y-oe),tt.free(y),tt.free(x),tt.free(z),tt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=Bf(this,ne.copy(),!1,uo)),_c(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ne.x-E,ne.y-oe);else{for(z=tt.alloc(),z.assign(this.i(0)),b=tt.alloc(),b.assign(z),ne=this.computeCorner(),pe=1,le=0;pe=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=Bf(this,ue.copy(),!1,uo)),Nf(this,re,-E,-oe,z,ue,x);else if(le===0)for(pe=1;pez.x?Mt=xe.x-Fe:Mt=xe.x+Fe,Xe.y>xe.y?pt=xe.y+wt:pt=xe.y-wt,Xe=tt.allocAt(Mt,It),Nf(this,re,pe,at,z,Xe,Oe),tt.free(Xe),Zm(re,xe.x+pe,xe.y+at,Ee+pe,pt+at),z.h(Ee,pt)}else it.B(z.x,xe.x)&&it.B(xe.y,Xe.y)?(Fe=Math.min(ne,Math.abs(xe.y-b.y)/2),Fe=wt=Math.min(Fe,Math.abs(Xe.x-xe.x)/2),it.B(wt,0)?(Nf(this,re,pe,at,z,xe,Oe),z.assign(xe)):(Mt=xe.x,It=xe.y,Ee=Mt,pt=It,xe.y>z.y?It=xe.y-Fe:It=xe.y+Fe,Xe.x>xe.x?Ee=xe.x+wt:Ee=xe.x-wt,Xe=tt.allocAt(Mt,It),Nf(this,re,pe,at,z,Xe,Oe),tt.free(Xe),Zm(re,xe.x+pe,xe.y+at,Ee+pe,pt+at),z.h(Ee,pt))):(Nf(this,re,pe,at,z,xe,Oe),z.assign(xe));b.assign(ue),pe=le}tt.free(z)}Hm=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Bf(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Bf(this,re,!1,z)),a.type=yn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function Jm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),it.$(a,0)?y:it.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Bf(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Jm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Jm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Yv(a,y,x,E){for(var b=a.pointsCount,z=y;it.$(y.x,z.x)&&it.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!it.$(y.x,z.x)&&!it.$(y.y,z.y))return x-1;for(var ne=z;it.$(y.x,z.x)&&it.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||it.$(y.y,z.y)&&it.$(z.y,ne.y)&&(!E||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(x>=b)return b-1;ne=a.i(x++)}return x-2}Kn.prototype.computeJumpLength=function(){return 10};function Nf(a,y,x,E,b,z,ne){if(!ne&&rf(a)){ne=a.computeJumpLength();var re=ne/2,oe=[],le=0;if(a.isVisible()&&(le=bx(a,b,z,oe)),0pe-ne);)le--,pe=Math.max(ue-re,z.x);ue=z.y-ne+E,pe+=x,Ee=z.y+E,a.curve===Gc?yg(y,pe,Ee,!1):_c(y,xe,ue,pe,ue,pe,Ee)}else if(it.B(b.x,z.x))if(b.yue-ne);)le--,ue=Math.max(pe-re,z.y);pe=z.x-ne+x,Ee=z.x+x,ue+=E,a.curve===Gc?yg(y,Ee,ue,!1):_c(y,pe,xe,pe,ue,Ee,ue)}}}y.lineTo(z.x+x,z.y+E)}function bx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ne=z.length,re=0;rene.x&&ue.x>=le.x||le.xne.y&&ue.y>=le.y||le.yne&&Math.min(Fe,Oe)ue&&!it.B(Fe,Oe)){re.x=ue,re.y=ne,ue=!0;break e}}else if(it.B(pe,Ee)&&it.B(Fe,Oe)&&Math.min(ue,xe)Fe&&Math.min(ne,at)pe&&!it.B(ne,at)){re.x=Fe,re.y=pe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(b?x.push(re.x):x.push(re.y)),ne=le}tt.free(re)}function rf(a){return a=a.curve,a===Pg||a===Gc}function Qm(a,y){(y||rf(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Kn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ne=b.length,re=0;rea&&On(a,">= 0",Kn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Co},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Ql(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&On(a,">= 0",Kn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);it.Dl(b.x,b.y,ne.x,ne.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;bE&&(E=-E)):it.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;Ethis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!xg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!xg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Qm(this,y===Gc||y===Pg||a===Gc||a===Pg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Qm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Kn.prototype.invalidateOtherJumpOvers=Kn.prototype.Xo,Kn.prototype.findClosestSegment=Kn.prototype.ez,Kn.prototype.updateRoute=Kn.prototype.vg,Kn.prototype.invalidateRoute=Kn.prototype.bb,Kn.prototype.rollbackRoute=Kn.prototype.rv,Kn.prototype.commitRoute=Kn.prototype.zf,Kn.prototype.startRoute=Kn.prototype.uh,Kn.prototype.clearPoints=Kn.prototype.Fj,Kn.prototype.removePoint=Kn.prototype.pv,Kn.prototype.addPointAt=Kn.prototype.yf,Kn.prototype.addPoint=Kn.prototype.ne,Kn.prototype.insertPointAt=Kn.prototype.m,Kn.prototype.insertPoint=Kn.prototype.Kz,Kn.prototype.setPointAt=Kn.prototype.L,Kn.prototype.setPoint=Kn.prototype.dd,Kn.prototype.getPoint=Kn.prototype.i,Kn.prototype.getOtherPort=Kn.prototype.Cz,Kn.prototype.getOtherNode=Kn.prototype.To;var kf=null,Af=null,Xv=new fn(Kn,"Normal",1),Lx=new fn(Kn,"Orthogonal",2),Fx=new fn(Kn,"AvoidsNodes",6),tS=new fn(Kn,"AvoidsNodesStraight",7),pl=new fn(Kn,"None",0),pu=new fn(Kn,"Bezier",9),Gc=new fn(Kn,"JumpGap",10),Pg=new fn(Kn,"JumpOver",11),Pp=new fn(Kn,"End",17),qm=new fn(Kn,"Scale",18),e0=new fn(Kn,"Stretch",19),wp=new fn(Kn,"OrientAlong",21),Cp=new fn(Kn,"OrientPlus90",22),Ep=new fn(Kn,"OrientMinus90",23),Jv=new fn(Kn,"OrientOpposite",24),t0=new fn(Kn,"OrientUpright",25),bp=new fn(Kn,"OrientPlus90Upright",26),Mp=new fn(Kn,"OrientMinus90Upright",27),n0=new fn(Kn,"OrientUpright45",28),nS=16,iS=14,Lp=8;Kn.className="Link",Kn.Normal=Xv,Kn.Orthogonal=Lx,Kn.AvoidsNodes=Fx,Kn.AvoidsNodesStraight=tS,Kn.None=pl,Kn.Bezier=pu,Kn.JumpGap=Gc,Kn.JumpOver=Pg,Kn.End=Pp,Kn.Scale=qm,Kn.Stretch=e0,Kn.OrientAlong=wp,Kn.OrientPlus90=Cp,Kn.OrientMinus90=Ep,Kn.OrientOpposite=Jv,Kn.OrientUpright=t0,Kn.OrientPlus90Upright=bp,Kn.OrientMinus90Upright=Mp,Kn.OrientUpright45=n0,Kn.EndSegmentStep=8,Kn.CurvinessStart=nS,Kn.SpacingMin=iS,Kn.OrthoShortCut=Lp;function i0(a,y,x,E){Zr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}i0.prototype.Sl=function(){if(!this.qq){var a=this.links;0=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di=of&&(x[E]=Qv)}Fp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===$c)return!1}return!0};function tc(a,y,x,E,b,z,ne,re,oe){if(!(yne||xoe)){var le=y|0,ue=x|0,pe=a.ac[le][ue];if(pe>=of&&pe=a.ac[le][ue]);)a.ac[le][ue]=pe,pe+=1,b?ue+=E:le+=E;if(le=b?ue:le,b)if(0le;x+=E)tc(a,y,x,1,!b,z,ne,re,oe),tc(a,y,x,-1,!b,z,ne,re,oe);else if(0le;y+=E)tc(a,y,x,1,!b,z,ne,re,oe),tc(a,y,x,-1,!b,z,ne,re,oe)}}function r0(a,y,x,E,b,z,ne,re,oe){y|=0,x|=0;var le=$c,ue=of;for(a.ac[y][x]=ue;le===$c&&y>z&&yre&&xz&&yre&&x=Math.abs(re-le)&&1>=Math.abs(oe-ue))a.abort=!0;else{var pe=z.x;E=z.y,y=z.x+z.width;var xe=z.y+z.height;pe-=a.Nd,pe/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,xe-=a.Od,xe/=a.sc,z=Math.max(0,Math.min(a.di,pe|0)),y=Math.min(a.di,Math.max(0,y|0)),pe=Math.max(0,Math.min(a.ei,E|0)),xe=Math.min(a.ei,Math.max(0,xe|0)),E=a.ac,re|=0,oe|=0,le|=0,ue|=0;var Ee=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===$c?(r0(a,re,oe,Ee,x,z,y,pe,xe),r0(a,re,oe,1,!x,z,y,pe,xe),r0(a,re,oe,-1,!x,z,y,pe,xe)):r0(a,re,oe,Ee,x,re,oe,re,oe),E[le][ue]===$c?(o0(a,le,ue,b===0||b===90?1:-1,b===90||b===270,z,y,pe,xe),o0(a,le,ue,1,!(b===90||b===270),z,y,pe,xe),o0(a,le,ue,-1,!(b===90||b===270),z,y,pe,xe)):o0(a,le,ue,Ee,x,le,ue,le,ue),x=qn(),ne&&aS(a,le,ue,b,re,oe,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=of,b=x[x.length-2],ne=x[x.length-1],E[b][ne]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ne=x[z+3],y=x[z],le=x[z+1];y>b?b++:yne?ne++:leb)ue--;else break;else if(pe>z)pe--;else break;var xe=re[ue][pe];if(xe===0||xe===qv)break;oe=ue,le=pe}for(;;){if(ue=E,pe=oe,xe=le,E===0?xez&&(ue=270,xe--):E===90?peb&&(ue=180,pe--):E===180?xez&&(ue=270,xe--):peb&&(ue=180,pe--),pe=re[pe][xe],ue!==E&&pe!==0&&pe!==qv){if(ne.push(oe),ne.push(le),aS(a,oe,le,ue,b,z,ne))return!0;ne.pop(),ne.pop()}if(re[oe][le]=qv,E===0){if(oe===y)return!1;oe--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}Ve.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new gn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90180+a&&x<=360-a?270:0;case 13:return 180a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Tf.prototype.Sl=function(){this.pe.length=0};function sS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof gr?b:null;if(z===null||z.isSubGraphExpanded)var ne=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ne=E.Lu()}z=a.pe.length=0;var re=a.port.ga(cs,tt.alloc()),oe=a.port.ga(ys,tt.alloc());for(b=gn.allocAt(re.x,re.y,0,0),b.Ye(oe),tt.free(re),tt.free(oe),re=tt.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ne=ne.iterator;ne.next();){var le=ne.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ue=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(E),pe=le.computeSpot(ue,a.port);if(pe.$c()&&(ue=ue?le.toPort:le.fromPort,ue!==null)){var xe=ue.part;if(xe!==null){var Ee=xe.findVisibleNode();Ee!==null&&Ee!==xe&&(xe=Ee,ue=xe.port),ue=le.computeOtherPoint(xe,ue),xe=re.ab(ue),xe-=oe,0>xe?xe+=360:360<=xe&&(xe-=360),pe=Bx(b,pe,xe,le.isOrthogonal),pe===0?(pe=4,180xe&&(xe+=360)),Ee=a.pe[z],Ee===void 0?(Ee=new ey(le,xe,pe),a.pe[z]=Ee):(Ee.link=le,Ee.angle=xe,Ee.Nc=pe),Ee.hv.set(ue),z++}}}}for(tt.free(re),a.pe.sort(Tf.prototype.j),oe=a.pe.length,E=-1,z=re=0;zMath.abs(Oe)?(pt=Math.abs(Oe)/xe,xe=Math.abs(Oe)):pt=1;break;case 2:Ee>Math.abs(wt)?(pt=Math.abs(wt)/Ee,Ee=Math.abs(wt)):pt=1;break;case 1:pe>Math.abs(Oe)?(pt=Math.abs(Oe)/pe,pe=Math.abs(Oe)):pt=1;break;default:case 4:ue>Math.abs(wt)?(pt=Math.abs(wt)/ue,ue=Math.abs(wt)):pt=1}Xe=0}var qt=Mt.Zo;if(E===Wv){switch(Mt=Mt.link.computeThickness(),Mt*=pt,qt.set(It),Fe){case 8:qt.x=It.x+Oe/2+xe/2-Xe-Mt/2;break;case 2:qt.y=It.y+wt/2+Ee/2-Xe-Mt/2;break;case 1:qt.x=It.x+Oe/2-pe/2+Xe+Mt/2;break;default:case 4:qt.y=It.y+wt/2-ue/2+Xe+Mt/2}Xe+=Mt}else{var ei=.5;E===Vm&&(ei=(Mt.Uo+1)/(Mt.Gl+1)),qt.x=It.x+Oe*ei,qt.y=It.y+wt*ei}}}for(tt.free(re),tt.free(oe),tt.free(ne),tt.free(le),It=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},Tf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Fa,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,E=x,b+=ne+20,ne=0):z++}},da.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value.node;if(!(re===null||re instanceof Kn)&&(Bp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof gr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},da.prototype.rh=function(a){return!!(!a.location.w()||a instanceof gr&&a.rh)};function vd(a,y,x,E,b,z,ne,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof oi?oe.isLinkLabel||(oe instanceof gr&&oe.layout===null?vd(a,y,oe.memberParts,!1,b,z,ne,re):(Bp(oe),y.add(oe))):ne&&oe instanceof Kn?y.add(oe):!re||!oe.Zc()||oe instanceof oi||(Bp(oe),y.add(oe)))}}function Bp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}da.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new gn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},da.prototype.ex=function(a){var y=new Ln;return a instanceof Qt?(vd(this,y,a.nodes,!0,null,!0,!0,!0),vd(this,y,a.links,!0,null,!0,!0,!0),vd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof gr?vd(this,y,a.memberParts,!1,null,!0,!0,!0):vd(this,y,a.iterator,!1,null,!0,!0,!0),y},da.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(cs),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ve.Object.defineProperties(da.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),da.prototype.collectParts=da.prototype.ex,da.prototype.getLayoutBounds=da.prototype.ni,da.prototype.invalidateLayout=da.prototype.C,da.className="Layout";function qo(a){Zr(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new xi,this.zs=new xi}qo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ln,this.ye=new Ln,this.Es=new xi,this.zs=new xi},qo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1y?1:0):1:y!==null?-1:0}Ve.Object.defineProperties(ps.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=gn.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),gn.free(x),!(a instanceof gr)&&(a=a.locationObject.ga(Qr),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Nn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ps.prototype.deleteDestinationEdge=ps.prototype.Jl,ps.prototype.addDestinationEdge=ps.prototype.zl,ps.prototype.deleteSourceEdge=ps.prototype.Kl,ps.prototype.addSourceEdge=ps.prototype.Cl,ps.className="LayoutVertex",ps.standardComparer=ry,ps.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x "+(this.qd?this.qd.toString():"null"))),y},ql.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ql.prototype.commit=function(){},ql.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ve.Object.defineProperties(ql.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),ql.prototype.getOtherVertex=ql.prototype.Ax,ql.className="LayoutEdge";function Ds(a){da.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xn(NaN,NaN).freeze(),this.tf=new Xn(10,10).freeze(),this.Jb=Np,this.Rb=s0,this.nd=kp,this.hd=uS,a&&Object.assign(this,a)}Ot(Ds,da),Ds.prototype.cloneProtected=function(a){da.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Ds.prototype.qb=function(a){a.classType===Ds?a===kp||a===u0||a===oy||a===l0?this.sorting=a:a===s0||a===vh?this.arrangement=a:a===Np||a===a0?this.alignment=a:yt("Unknown enum value: "+a):da.prototype.qb.call(this,a)},Ds.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof gr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case l0:b.reverse();break;case kp:b.sort(this.comparer);break;case u0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=z&&0>=ne&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case a0:var re=y,oe=x,le=gn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var pe=ue=0;pez-1||0ne)&&(E.push(new gn(0,Oe,ne+re,Xe)),at=0,Fe=Ee,Oe+=Xe,Xe=0),Xe=Math.max(Xe,qt),xe){case vh:Mt=-Mt.width;break;default:Mt=0}switch(wt.moveTo(Fe+Mt,Oe),xe){case vh:Fe-=It;break;default:Fe+=It}at++}E.push(new gn(0,Oe,ne+re,Xe)),gn.free(le);break;case Np:for(oe=ne,ue=z,pe=y,xe=x,ne=gn.alloc(),Ee=Math.max(this.cellSize.width,1),z=Oe=le=0,re=tt.alloc(),Fe=0;Fe=le&&(oe-=le),le=wt=0,It=Math.max(this.cellSize.height,1),Mt=z=0,qt=!0,at=tt.alloc(),ei=0;eiue-1||0oe){for(E.push(new gn(0,qt?pt-z:pt,oe+pe,Mt+z+xe)),Si=0;Sile&&(z.width+=z.x-le,z.x=le);gn.free(ne)}for(re=z=ne=b=0;rey?1:0}Ve.Object.defineProperties(Ds.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0pe)){var Oe=pe+dp(Fe);Fe.pc(Oe,!0),xv(Fe,Oe,pe)}}y.isModified=!0}}finally{y.aa=!0}}}}},Io.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Io.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Ei;b.add("["),x&&1E)return;ui(a.Tc,E)}hs(a,"nodeDataArray",Yo,"nodeDataArray",a,y,null,E,null),a.qp(y)}Le.nA=function(a){if(Jt(a))for(var y=a.length,x=0;xy&&(y=a.length),ci(a,y,x),hs(this,"",ko,"",a,null,x,null,y)},Le.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&yt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];ui(a,y),hs(this,"",Yo,"",a,x,null,y,null)},Le.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Wa(a,y),y===void 0))return"";if(typeof y=="string")return y;yt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Le.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Wa(a,x);E===void 0&&(E=""),E!==y&&(la(a,x,y),hs(this,"nodeCategory",Yr,x,a,E,y))}else la(a,x,y)}},Le.lm=function(a,y){this.jm(y,this.Ro(a))},Le.Tl=function(){return!1},Le.Wj=function(){return!1},Le.ri=function(){return!1},Le.xs=function(){return!1},Le.Xj=function(){return!1};function hy(){return new Li}function Tp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Tp(a,y.constructor);return typeof y}function cy(a){return ah[a]?ah[a]:rt.go!==void 0&&rt.go[a]?rt.go[a]:null}function Wa(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function la(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Ve.Object.defineProperties(Li.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&yt("Model.nodeKeyProperty may not be the empty string"),0"+mu(this,b,!1)}return y},Le.Qv=function(a,y){this.linkKeyProperty===""&&yt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Li.prototype.Qv.call(this,a,y),E=this,b=new Ln,z=new Ln,ne=new Ln,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===ko?b.add(ue.newValue):ue.change===Yo&&ne.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(pe){E.Jc(pe)&&z.add(pe)}):ue.object instanceof Li||E.lb(ue.object)||FS(E,ue.object).each(function(pe){z.add(pe)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var le=this.kl;return le.clear(),ne.each(function(ue){le.add(E.Ac(ue)),y&&z.add(ue)}),a=E.cloneDeep(z.Fa()),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Yo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Wt(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Li.prototype.changeState.call(this,a,y)}},Le=to.prototype,Le.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),la(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Le.yx=function(a){return mu(this,a,!0)},Le.wv=function(a,y){bg(this,a,y,!0)},Le.Bx=function(a){return mu(this,a,!1)},Le.Bv=function(a,y){bg(this,a,y,!1)};function mu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Wa(y,a),a!==void 0))){if(Sd(a))return a;yt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function bg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Wa(y,b);z!==x&&(Sh(a,z,y),la(y,b,x),a.hc(x)===null&&yh(a,x,y),hs(a,E?"linkFromKey":"linkToKey",Yr,b,y,z,x),typeof b=="string"&&a.La(y,b))}else la(y,b,x)}}Le.zx=function(a){return g0(this,a,!0)},Le.xv=function(a,y){Mg(this,a,y,!0)},Le.Cx=function(a){return g0(this,a,!1)},Le.Cv=function(a,y){Mg(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Wa(y,a),y===void 0?"":y)}function Mg(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Wa(y,b);z===void 0&&(z=""),z!==x&&(la(y,b,x),hs(a,E?"linkFromPortId":"linkToPortId",Yr,b,y,z,x),typeof b=="string"&&a.La(y,b))}else la(y,b,x)}}Le.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Wa(a,y),a===void 0?p0:a)},Le.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Wa(a,x);if(E===void 0&&(E=p0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(Sh(this,y,a),hs(this,"linkLabelKeys",Yo,x,a,y,null,b,null)))}else E!==void 0&&yt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Le.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Wa(a,y),y!==void 0)){if(Sd(y))return y;yt("Key value for link data "+a+" is not a number or a string: "+y)}}},Le.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Wa(a,x);E!==y&&this.jh(y)===null&&(la(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),hs(this,"linkKey",Yr,x,a,E,y),typeof x=="string"&&this.La(a,x))}else la(a,x,y)}},Le.jh=function(a){return a===null&&yt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Sd(a)?this.wb.I(a):null},Le.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){la(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;la(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;la(a,y,x)}}}}},Le.Jc=function(a){return a===null?!1:this.$f.contains(a)},Le.fi=function(a){a!==null&&(co(a),this.Jc(a)||BS(this,a,!0))};function BS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&yt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),hs(a,"linkDataArray",ko,"linkDataArray",a,null,y,null,E),dy(a,y)}Le.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(hs(a,"linkDataArray",Yo,"linkDataArray",a,y,null,E,null),x=mu(a,y,!0),Sh(a,x,y),x=mu(a,y,!1),Sh(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Nn;y.addAll(a.iterator),a=new Nn;var x=new Nn,E=this.sort(y),b,z,ne=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var pe=this.startAngle;isFinite(pe)||(pe=0);var xe=this.sweepAngle;if((!isFinite(xe)||360xe)&&(xe=360),y=this.spacing,isFinite(y)||(y=NaN),re===lh&&oe===Df?re=sh:re===lh&&oe!==Df&&(re=this.arrangement),(this.direction===af||this.direction===Lg)&&this.sorting!==Fg){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===af?(this.arrangement===lh&&a.reverse(),E=new Nn,E.addAll(a),E.addAll(x)):(this.arrangement===lh&&x.reverse(),E=new Nn,E.addAll(x),E.addAll(a))}oe=E.length;for(var Ee=z=b=0;Eexe&&(Ee===0||Ee===E.length-1)&&(Oe/=2),b+=Oe,z++}if(isNaN(le)||re===lh){if(isNaN(y)&&(y=6),re!==sh&&re!==lh){for(z=-1/0,ne=0;nele?(le=b,z=le*ue):ne=Ee/(360<=xe?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ue,this.lw=pe,this.Wp=xe,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,re=this.lc,le=this.lw,ue=this.Wp,pe=this.Ti,xe=this.me,oe=this.Jp,this.direction!==af&&this.direction!==Lg||E!==lh)if(this.direction===af||this.direction===Lg){switch(ne=0,E){case xd:ne=180*v0(this,re,xe,le,oe)/Math.PI;break;case sh:oe=y=0,ne=a.first(),ne!==null&&(y=wd(ne,Math.PI/2)),ne=x.first(),ne!==null&&(oe=wd(ne,Math.PI/2)),ne=180*v0(this,re,xe,le,pe+(y+oe)/2)/Math.PI;break;case Kc:ne=ue/y.length}if(this.direction===af){switch(E){case xd:Rp(this,a,le,Pd);break;case sh:Ip(this,a,le,Pd);break;case Kc:Op(this,a,ue/2,le,Pd)}switch(E){case xd:Rp(this,x,le+ne,Sl);break;case sh:Ip(this,x,le+ne,Sl);break;case Kc:Op(this,x,ue/2,le+ne,Sl)}}else{switch(E){case xd:Rp(this,x,le,Pd);break;case sh:Ip(this,x,le,Pd);break;case Kc:Op(this,x,ue/2,le,Pd)}switch(E){case xd:Rp(this,a,le+ne,Sl);break;case sh:Ip(this,a,le+ne,Sl);break;case Kc:Op(this,a,ue/2,le+ne,Sl)}}}else switch(E){case xd:Rp(this,y,le,this.direction);break;case sh:Ip(this,y,le,this.direction);break;case Kc:Op(this,y,ue,le,this.direction);break;case lh:AS(this,y,ue,le,this.direction)}else AS(this,y,ue,le-ue/2,Sl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Op(a,y,x,E,b){var z=a.Wp,ne=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oex){for(z=E+(b===Sl?z:-z);0>z;)z+=360;z%=360,180=ue.length-1));pe++)OS(a,oe,le,ue,pe,b,z)||IS(a,oe,le,ue,pe,b,z),oe=z.x,le=z.y;if(tt.free(z),a.mj++,!(23Math.abs(Ee)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ne=0):ne=0Math.abs(xe)?0:xe,oe=Math.abs(z)>Math.abs(pe)?0pe:0a.mj?a.lc-ne/(2*Math.PI):5>ue.length&&10=pe.length-1));xe++)OS(a,oe,le,pe,xe,b,ue)||IS(a,oe,le,pe,xe,b,ue),oe=ue.x,le=ue.y;if(tt.free(ue),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0re){if(z=y-a,z<-re)return ne.x=z,ne.y=le,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ne.x=z,ne.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(le=-le),Math.abs(x-le)>(E[b].height+E[b+1].height)/2?(ne.x=z,ne.y=le,!1):(ne.x=z,ne.y=le,!0)}function IS(a,y,x,E,b,z,ne){var re=a.lc,oe=a.me,le=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Sl)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ne.x=le,ne.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ne.x=le,ne.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(le=-le),ne.x=le,ne.y=z}xa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},xa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new tt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},xa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?oe=E+le*b/z:oe=le*Math.PI/(2*z);var ue=Math.sin(oe);ne+=Math.sqrt(1-a*a*ue*ue)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function m0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function v0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ne+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ne>=b)return re*a}}xa.prototype.sort=function(a){switch(this.sorting){case y0:break;case S0:a.reverse();break;case x0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Fg:return this.ak(Tx(a));default:yt("Invalid sorting type.")}return a};function Tx(a){for(var y=[],x=0;xb&&(b=re,z=ne)}else for(ne=0;neb&&(b=re,z=ne);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ne=z.sourceEdges;ne.next();)b=a.indexOf(ne.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}xa.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;xy[x[Fe]].indexOf(x[Fe===x.length-1?0:Fe+1])&&Ee.push(Fe===x.length-1?0:Fe+1);if(Ee.length===0)for(Fe=0;Fex.indexOf(qt)||Itx.indexOf(qt)||It=Oe?It+1:It)),Xe+=It=Oe&&It++,wt>=Oe&&wt++,It>wt&&(Mt=wt,wt=It,It=Mt),wt-It<(x.length+2)/2==(ItEe||Ee===ue||(Fe=Ee>ue?Ee-ue:ue-Ee,pe+=Eene-Fe?1:-1);x.splice(0>pe?ue:ue+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==lh&&a!==sh&&a!==xd&&a!==Kc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Sl&&a!==Pd&&a!==af&&a!==Lg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==y0&&a!==S0&&a!==x0&&!P0&&a!==Fg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==w0&&a!==Df||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var sh=new fn(xa,"ConstantSpacing",0),xd=new fn(xa,"ConstantDistance",1),Kc=new fn(xa,"ConstantAngle",2),lh=new fn(xa,"Packed",3),Sl=new fn(xa,"Clockwise",4),Pd=new fn(xa,"Counterclockwise",5),af=new fn(xa,"BidirectionalLeft",6),Lg=new fn(xa,"BidirectionalRight",7),y0=new fn(xa,"Forwards",8),S0=new fn(xa,"Reverse",9),x0=new fn(xa,"Ascending",10),P0=new fn(xa,"Descending",11),Fg=new fn(xa,"Optimized",12),w0=new fn(xa,"Pythagorean",13),Df=new fn(xa,"Circular",14);xa.className="CircularLayout",xa.ConstantSpacing=sh,xa.ConstantDistance=xd,xa.ConstantAngle=Kc,xa.Packed=lh,xa.Clockwise=Sl,xa.Counterclockwise=Pd,xa.BidirectionalLeft=af,xa.BidirectionalRight=Lg,xa.Forwards=y0,xa.Reverse=S0,xa.Ascending=x0,xa.Descending=P0,xa.Optimized=Fg,xa.Pythagorean=w0,xa.Circular=Df;function jp(){this.Pl=-1/0,this.tm=this.mk=null}jp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0re?(b=xe.x+xe.width/2,z=xe.y+xe.height/2,le[0]=new tt(xe.x+xe.width+E.width,xe.y),le[1]=new tt(xe.x,xe.y+xe.height+E.height),re=2):(oe=jS(le,re,b,z,xe.width,xe.height,E),pe=le[oe],Ee=new tt(pe.x+xe.width+E.width,pe.y),xe=new tt(pe.x,pe.y+xe.height+E.height),oe+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=ne))){for(var le=re=0,ue=oe.count-ne;ueEe&&(Ee=1),re=it.sqrt((re+Ee+le*le*4/(ne*ne))/Ee),ne=(re-1)*ue/2,re=(re-1)*pe/2,b.bounds=new gn(z-xe.x-ne,oe-xe.y-re,ue+2*ne,pe+2*re),b.focus=new tt(xe.x+ne,xe.y+re)}}return a.network=E,x}function Ix(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ne=b.Tv;E.bounds=new gn(E.centerX-z,E.centerY-ne,b.Ss,b.Qs),E.focus=new tt(z,ne),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ne=y.height;y.We!==null&&0=pe.Vd?oe++:(re=!0,le++,ne+=Math.atan2(y.centerY-pe.centerY,y.centerX-pe.centerX))}if(oe!==0){for(0>1)+le)*(re%2===0?1:-1),oe.centerX=E+ue*Math.cos(pe),oe.centerY=b+ue*Math.sin(pe),re++}}}}function jS(a,y,x,E,b,z,ne){var re=9e19,oe=-1,le=0;e:for(;leue.y&&a[xe].x-ue.xue.x&&a[xe].y-ue.yy+z?(x=E+b-ne,a=a-y-z,it.sqrt(x*x+a*a)):a+xne+re?a>y+z?(x=E-ne-re,a=a-y-z,it.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,ne=1;nez-x)?y.sort(function(Oe,at){return Oe===null||at===null||Oe===at?0:Oe.centerX-at.centerX}):y.sort(function(Oe,at){return Oe===null||at===null||Oe===at?0:Oe.centerY-at.centerY}),x=a.Zf;var le=E=re=0;for(z=0;zx||le-oe>x){if(b)break}else if(ue-Ee>x||Ee-ue>x){if(!b)break}else{var Fe=zS(ne,xe);1>Fe?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Fe=E.random(),re=E.random(),oe>le?(E=Math.abs(xe.bounds.right-ne.bounds.x),E=(1+E)*Fe):oeEe?(le=Math.abs(xe.bounds.bottom-ne.bounds.y),le=(1+le)*re):oepe?(pe=a.randomNumberGenerator,pe===null&&(a.randomNumberGenerator=pe=new E0),re=pe.random(),pe=pe.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ne>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*pe):(re=re.stiffness*(pe-re.length),E=(oe-E)/pe*re,le=(ue-ne)/pe*re),x.forceX+=E,x.forceY+=le,z.forceX-=E,z.forceY-=le;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}Ks.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Ks.prototype.moveFixedVertex=function(){},Ks.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ks.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Co,y.toSpot=Co)}},Ks.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=gn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,gn.free(x)}x=gn.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}gn.free(x)},Ks.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ks.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ks.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ks.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ks.prototype.electricalFieldX=function(){return 0},Ks.prototype.electricalFieldY=function(){return 0},Ks.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ks.prototype.gravitationalFieldX=function(){return 0},Ks.prototype.gravitationalFieldY=function(){return 0},Ks.prototype.isFixed=function(a){return a.isFixed},Ve.Object.defineProperties(Ks.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0Oe&&0Oe&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]ne)for(var ue=ne+1;ueoe;ue--)pe=E[ue],pe.near===le&&pe.Dj===le.Dj||re++;var xe;if(0<=x)for(oe=E[ne].sourceEdgesArrayAccess,le=0;leOe||pe===Oe&&Ee>Fe)&&re++,atpe||Oe===pe&&Fe>Ee)&&re++}}}if(0>=x){for(oe=E[ne].destinationEdgesArrayAccess,le=0;leOe||pe===Oe&&ue>at)&&re++,Fepe||Oe===pe&&at>ue)&&re++)}for(z[ne*b+ne]=re,oe=ne+1;oe=x){for(re=E[ne].destinationEdgesArrayAccess,wt=E[oe].destinationEdgesArrayAccess,le=0;le=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,pe=0,xe=re.near;if(xe!==null&&xe.layer===re.layer&&(ue+=xe.column-1,pe++),oe!==null)for(xe=0;xe=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ue=0,pe=[],xe=re.near;if(xe!==null&&xe.layer===re.layer&&(pe[ue]=xe.column-1,ue++),re=void 0,oe!==null)for(xe=0;xe>1,z[ne]=ue&1?pe[le]:pe[le-1]+pe[le]>>1)}return Ed(a,y,E),z}function Hp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();){var re=ne.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Hp(a,oe,x,E,b,z)}if(z)for(ne=y.sourceEdges;ne.next();)re=ne.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Hp(a,oe,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();)my(a,ne.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Ro.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zx(a)!==null;){for(b=GS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=GS(a);for(b=$S(a);b!==null;)E[y]=b,y++,b.valid=!1,b=$S(a);b=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case B0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.LlE){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;xne&&Hp(a,re,0,-1,!0,!1)}for(Hp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ne=a.network.vertexes.iterator;ne.next();){var le=ne.value;if(le.component===1){var ue=0,pe=!1,xe=le.sourceEdgesArrayAccess;b=xe.length;for(var Ee=0;Eez)&&!ue&&(re=ne,z=le)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function XS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ro.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&JS(this,x);break;case wy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&QS(this,x)}};function JS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=ne;E--)z=Ku(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Ku(this,E,1)||z;for(b=this.countCrossings(),b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,1)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,-1)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Ku(this,E,0)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,0)||z;b>=a?Tu(this,y):(a=b,y=Tl(this))}break;default:case A0:for(x=this.Ia,ne=0,re=a+1;(E=this.countCrossings())=ne;E--)z=Ku(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Ku(this,E,1)||z;for(b=this.countCrossings(),b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,1)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,-1)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Ku(this,E,0)||z;for(b>=a?Tu(this,y):(a=b,y=Tl(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Ku(this,E,0)||z;b>=a?Tu(this,y):(a=b,y=Tl(this))}}Tu(this,y)};function M0(a,y,x){var E=Cd(a,y),b=a.tc[y],z=WS(a,y,x),ne=py(a,y,x);for(x=0;xz+1&&(xe+=4*(pt-z),Ee+=4*(pt-(z+1)))}for(Mt=E[z].destinationEdges.iterator,Mt.reset();Mt.next();)if(pt=Mt.value,wt=pt.toVertex,pt.valid&&wt.layer===y){for(pt=0;E[pt]!==wt;)pt++;pt===z+1&&(Ee+=1)}for(Mt=E[z+1].sourceEdges.iterator,Mt.reset();Mt.next();)if(pt=Mt.value,wt=pt.fromVertex,pt.valid&&wt.layer===y){for(pt=0;E[pt]!==wt;)pt++;ptz+1&&(xe+=4*(pt-(z+1)),Ee+=4*(pt-z))}for(Mt=E[z+1].destinationEdges.iterator,Mt.reset();Mt.next();)if(pt=Mt.value,wt=pt.toVertex,pt.valid&&wt.layer===y){for(pt=0;E[pt]!==wt;)pt++;pt===z&&(xe+=1)}pt=wt=0,Mt=ne[E[z].index];var It=re[E[z].index],qt=ne[E[z+1].index],ei=re[E[z+1].index];Mt!==-1&&(wt+=Math.abs(Mt-Fe),pt+=Math.abs(Mt-Xe)),It!==-1&&(wt+=Math.abs(It-Fe),pt+=Math.abs(It-Xe)),qt!==-1&&(wt+=Math.abs(qt-Oe),pt+=Math.abs(qt-at)),ei!==-1&&(wt+=Math.abs(ei-Oe),pt+=Math.abs(ei-at)),(Ee>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Ng(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ng(this,y,-1)||x;x=Ng(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(qS(this,-1),qS(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ng(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ng(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ng(this,y,0)||x}}else Wx(this)};function Ng(a,y,x){for(var E=!1;_x(a,y,x);)E=!0;return E}function _x(a,y,x){var E,b=Cd(a,y),z=a.tc[y],ne=py(a,y,-1);if(0x)for(E=0;EE-1||ue-b[E-1].column-1>pe+a.nodeMinColumnSpace(b[E-1],!1)?Ee=ue-1:Ee=ue,pe=E+1>=z||b[E+1].column-ue-1>xe+a.nodeMinColumnSpace(b[E+1],!0)?ue+1:ue;var Fe=xe=0,Oe=0;if(0>=x)for(var at=b[E].sourceEdges.iterator;at.next();){var Xe=at.value,pt=Xe.fromVertex;if(Xe.valid&&pt.layer!==y){var wt=gy(Xe),Mt=Xe.portFromColOffset;Xe=Xe.portToColOffset,pt=pt.column,xe+=(Math.abs(ue+Xe-(pt+Mt))+1)*wt,Fe+=(Math.abs(Ee+Xe-(pt+Mt))+1)*wt,Oe+=(Math.abs(pe+Xe-(pt+Mt))+1)*wt}}if(0<=x)for(at=b[E].destinationEdges.iterator;at.next();)Xe=at.value,pt=Xe.toVertex,Xe.valid&&pt.layer!==y&&(wt=gy(Xe),Mt=Xe.portFromColOffset,Xe=Xe.portToColOffset,pt=pt.column,xe+=(Math.abs(ue+Mt-(pt+Xe))+1)*wt,Fe+=(Math.abs(Ee+Mt-(pt+Xe))+1)*wt,Oe+=(Math.abs(pe+Mt-(pt+Xe))+1)*wt);Xe=Mt=wt=0,at=ne[b[E].index],pt=re[b[E].index],at!==-1&&(wt+=Math.abs(at-ue),Mt+=Math.abs(at-Ee),Xe+=Math.abs(at-pe)),pt!==-1&&(wt+=Math.abs(pt-ue),Mt+=Math.abs(pt-Ee),Xe+=Math.abs(pt-pe)),Fe=ne[x]?ue=oe:le<=ne[x]&&(ue=le));ue!==re&&(z=!0,E[x].column=ue)}Ed(a,y,E),a.normalize()}function Zx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ne=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ne>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Hx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function qS(a,y){for(var x=0;x<=a.Ra;x++)for(;Zx(a,x););for(a.normalize(),x=0;xz?Tu(a,b):ney)for(x=a.Ra;0<=x;x--)for(b=Tl(a),z=b0(a),E=z+1;zz?Tu(a,b):nex)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(ne=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Wx(a){for(var y=qn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Ln,Gx(y,x);var z=null,ne=null,re=null,oe=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,pe=(a.ve&4)!==0,xe=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=L0(a,y,!0,!1)),y.reverse(),pe&&(a.verticalAlignment(y,x,!1),re=L0(a,y,!1,!1)),E=Hi(y),b=E.next();!b.done;b=E.next())b.value.reverse();xe&&(a.verticalAlignment(y,x,!1),oe=L0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ne=L0(a,y,!0,!0)),di(y),a.u(z,ne,re,oe),a.network.vertexes.each(function(Ee){var Fe=qn();le&&Fe.push(z.get(Ee)),ue&&Fe.push(ne.get(Ee)),pe&&Fe.push(re.get(Ee)),xe&&Fe.push(oe.get(Ee)),Fe.sort(function(at,Xe){return at-Xe});var Oe=Fe.length;Oe=(Fe[Math.floor((Oe-1)/2)]+Fe[Math.ceil((Oe-1)/2)])/2,di(Fe),Ee.zc=Oe})}function Gx(a,y){for(var x=a.length,E=1;Eue)&&y.add(pe);z++}b=ue}}}Ro.prototype.verticalAlignment=function(a,y,x){$x(a),a=Hi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Hi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=x?My(z):Ux(z),re=ne.length;if(0=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,re=0;do{for(z=y[ne][re];z.align!==z.root;)z=z.align,ne++,0a&&yt("Could not determine previous vertex in layer"),y[x][a-1]}Ro.prototype.u=function(a){for(var y=[],x=0;xne;ne++)if(y[ne]){var re=Kx(this,y[ne],E,b,ne);rene;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?E[x]-E[ne]:b[x]-b[ne],z.delta!==0&&y[ne].each(function(oe){return function(le){le.value+=oe.delta}}(z)));di(E),di(b)};function Kx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,rene&&(ne=re+oe)}),x[b]=z,E[b]=ne,ne-z}Ro.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=F0(this,!0),y=F0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function F0(a,y){return a.K===270?y?Aa:Ka:a.K===90?y?Ka:Aa:a.K===180?y?za:rs:y?rs:za}Ro.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0=pe.bounds.bottom?(pe=pe.bounds.y+pe.bounds.height,y.m(Oe++,Mt,pe+qt),y.m(Oe++,Mt,pe),y.m(Oe++,Mt,pe-wt)):(y.m(Oe++,Mt,It+qt),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It-wt)):this.K===270?It<=pe.bounds.y?(pe=pe.bounds.y,y.m(Oe++,Mt,pe-wt),y.m(Oe++,Mt,pe),y.m(Oe++,Mt,pe+qt)):(y.m(Oe++,Mt,It-wt),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It+qt)):this.K===0&&(Mt>=pe.bounds.right?(pe=pe.bounds.x+pe.bounds.width,y.m(Oe++,pe+qt,It),y.m(Oe++,pe,It),y.m(Oe++,pe-wt,It)):(y.m(Oe++,Mt+qt,It),y.m(Oe++,Mt,It),y.m(Oe++,Mt-wt,It)));else{y.m(Oe++,Xe,pt);var ei=0;this.K===180||this.K===0?((this.K===180?Mt>=pe.bounds.right:Mt<=pe.bounds.x)&&(ei=(this.K===0?-wt:qt)/2),y.m(Oe++,Xe+ei,It)):((this.K===270?It>=pe.bounds.bottom:It<=pe.bounds.y)&&(ei=(this.K===90?-wt:qt)/2),y.m(Oe++,Mt,pt+ei)),y.m(Oe++,Mt,It)}}else wt=Math.max(10,this.he[at.layer]),qt=Math.max(10,this.Ld[at.layer]),xe?this.K===180?(y.m(Oe++,Mt-wt-Fe,It),y.m(Oe++,Math.min(Mt-wt+Fe/2,Mt),It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Math.max(Mt+qt-Fe/2,Mt),It),y.m(Oe++,Mt+qt+Fe,It)):this.K===90?(y.m(Oe++,Mt,It+qt+Fe),y.m(Oe++,Mt,Math.max(It+qt-Fe/2,It)),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,Math.min(It-wt+Fe/2,It)),y.m(Oe++,Mt,It-wt-Fe)):this.K===270?(y.m(Oe++,Mt,It-wt-Fe),y.m(Oe++,Mt,Math.min(It-wt+Fe/2,It)),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,Math.max(It+qt-Fe/2,It)),y.m(Oe++,Mt,It+qt+Fe)):(y.m(Oe++,Mt+qt+Fe,It),y.m(Oe++,Math.max(Mt+qt-Fe/2,Mt),It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Math.min(Mt-wt+Fe/2,Mt),It),y.m(Oe++,Mt-wt-Fe,It)):y.m(Oe++,Mt,It)}pe=at}(re===null||le!==Fa||Ee)&&(Xe=y.i(Oe-1).x,pt=y.i(Oe-1).y,Mt=y.i(Oe).x,It=y.i(Oe).y,Ee?(Fe=this.Ld[ue.layer],this.K===180||this.K===0?(Ee=pt,Ee>=ue.bounds.y&&Ee<=ue.bounds.bottom&&(this.K===180?Mt>=ue.bounds.x:Mt<=ue.bounds.right)&&(pe=ue.centerX+(this.K===180?-Fe:Fe),Ee=ue.bounds.x&&Ee<=ue.bounds.right&&(this.K===270?It>=ue.bounds.y:It<=ue.bounds.bottom)&&(pe=ue.centerY+(this.K===270?-Fe:Fe),Ee=ue.bounds.x?(pe=ue.bounds.x+ue.bounds.width,y.L(Oe-2,pe,pt),y.L(Oe-1,pe+qt,pt)):this.K===90&&It<=ue.bounds.bottom?(pe=ue.bounds.y,y.L(Oe-2,Xe,pe),y.L(Oe-1,Xe,pe-wt)):this.K===270&&It>=ue.bounds.y?(pe=ue.bounds.y+ue.bounds.height,y.L(Oe-2,Xe,pe),y.L(Oe-1,Xe,pe+qt)):this.K===0&&Mt<=ue.bounds.right&&(pe=ue.bounds.x,y.L(Oe-2,pe,pt),y.L(Oe-1,pe-wt,pt))):(wt=Math.max(10,this.he[ue.layer]),qt=Math.max(10,this.Ld[ue.layer]),Ee=0,this.K===180||this.K===0?((this.K===180?Mt<=ue.bounds.x:Mt>=ue.bounds.right)&&(Ee=(this.K===0?qt:-wt)/2),y.m(Oe++,Mt+Ee,pt)):((this.K===270?It<=ue.bounds.y:It>=ue.bounds.bottom)&&(Ee=(this.K===90?qt:-wt)/2),y.m(Oe++,Xe,It+Ee)),y.m(Oe++,Mt,It)))}else{for(;ue!==null&&ue!==pe;){for(wt=at=null,ue=ue.destinationEdges.iterator;ue.next()&&(Xe=ue.value,Xe.link!==x.link||(at=Xe.toVertex,wt=Xe.fromVertex,wt.node!==null&&(wt=null),at.node!==null)););if(at===null)break;at!==pe&&(Xe=y.i(Oe-1).x,pt=y.i(Oe-1).y,Mt=at.centerX,It=at.centerY,Ee?this.K===180||this.K===0?(wt!==null?wt.centerY:pt)!==It&&(wt=this.Ta[at.layer]+this.Rf.x,Oe===y.firstPickIndex+1&&(wt=this.K===0?Math.max(wt,Xe):Math.min(wt,Xe)),y.m(Oe++,wt,pt),y.m(Oe++,wt,It)):(wt!==null?wt.centerX:Xe)!==Mt&&(wt=this.Ta[at.layer]+this.Rf.y,Oe===y.firstPickIndex+1&&(wt=this.K===90?Math.max(wt,pt):Math.min(wt,pt)),y.m(Oe++,Xe,wt),y.m(Oe++,Mt,wt)):(wt=Math.max(10,this.he[at.layer]),qt=Math.max(10,this.Ld[at.layer]),xe?this.K===180?(y.m(Oe++,Mt+qt+Fe,It),y.m(Oe++,Math.max(Mt+qt-Fe/2,Mt),It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Math.min(Mt-wt+Fe/2,Mt),It),y.m(Oe++,Mt-wt-Fe,It)):this.K===90?(y.m(Oe++,Mt,It-wt-Fe),y.m(Oe++,Mt,Math.min(It-wt+Fe/2,It)),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,Math.max(It+qt-Fe/2,It)),y.m(Oe++,Mt,It+qt+Fe)):this.K===270?(y.m(Oe++,Mt,It+qt+Fe),y.m(Oe++,Mt,Math.max(It+qt-Fe/2,It)),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,Math.min(It-wt+Fe/2,It)),y.m(Oe++,Mt,It-wt-Fe)):(y.m(Oe++,Mt-wt-Fe,It),y.m(Oe++,Math.min(Mt-wt+Fe/2,Mt),It),y.m(Oe++,Mt,It),y.m(Oe++,Mt,It),y.m(Oe++,Math.max(Mt+qt-Fe/2,Mt),It),y.m(Oe++,Mt+qt+Fe,It)):this.K===180?(y.m(Oe++,Mt+qt,It),y.m(Oe++,Mt-wt,It)):this.K===90?(y.m(Oe++,Mt,It-wt),y.m(Oe++,Mt,It+qt)):this.K===270?(y.m(Oe++,Mt,It+qt),y.m(Oe++,Mt,It-wt)):(y.m(Oe++,Mt-wt,It),y.m(Oe++,Mt+qt,It)))),ue=at}Ee&&(Xe=y.i(Oe-1).x,pt=y.i(Oe-1).y,Mt=y.i(Oe).x,It=y.i(Oe).y,this.K===180||this.K===0?pt!==It&&(wt=this.K===0?Math.min(Math.max((Mt+Xe)/2,this.Ta[pe.layer]+this.Rf.x),Mt):Math.max(Math.min((Mt+Xe)/2,this.Ta[pe.layer]+this.Rf.x),Mt),y.m(Oe++,wt,pt),y.m(Oe++,wt,It)):Xe!==Mt&&(wt=this.K===90?Math.min(Math.max((It+pt)/2,this.Ta[pe.layer]+this.Rf.y),It):Math.max(Math.min((It+pt)/2,this.Ta[pe.layer]+this.Rf.y),It),y.m(Oe++,Xe,wt),y.m(Oe++,Mt,wt)))}E!==null&&xe&&4<=y.pointsCount&&(ne!==null&&(ne=le===Fa?y.getLinkPointFromPoint(b,ne,ne.ga(Qr),y.i(3),!0):y.i(0),le===Fa&&(le=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+le.x)/2,le.y),y.L(2,E.x,(le.y+E.y)/2)):(y.L(1,le.x,(ne.y+le.y)/2),y.L(2,(le.x+E.x)/2,E.y))),ne.w()||ne.set(b.actualBounds.center),y.L(0,ne.x,ne.y)),re!==null&&(b=oe===Fa?y.getLinkPointFromPoint(z,re,re.ga(Qr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Fa&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ro.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Nn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ue=le.y>z.y?0:ne.xz.x&&(ue=le.x>z.x?0:ne.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Le.Ux=function(a,y){return a instanceof bd&&y instanceof bd&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Le.Js=function(a,y){return a instanceof bd&&y instanceof bd&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Le.B=function(a,y){return a-=y,-1a},Le.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&yt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var B0=new fn(Ro,"CycleDepthFirst",0),Sy=new fn(Ro,"CycleGreedy",1),Wp=new fn(Ro,"CycleFromLayers",2),N0=new fn(Ro,"LayerOptimalLinkLength",0),xy=new fn(Ro,"LayerLongestPathSink",1),Py=new fn(Ro,"LayerLongestPathSource",2),k0=new fn(Ro,"InitDepthFirstOut",0),wy=new fn(Ro,"InitDepthFirstIn",1),Cy=new fn(Ro,"InitNaive",2),Ey=new fn(Ro,"AggressiveNone",0),A0=new fn(Ro,"AggressiveLess",1),by=new fn(Ro,"AggressiveMore",2),Vx=8;Ro.className="LayeredDigraphLayout",Ro.CycleDepthFirst=B0,Ro.CycleGreedy=Sy,Ro.CycleFromLayers=Wp,Ro.LayerOptimalLinkLength=N0,Ro.LayerLongestPathSink=xy,Ro.LayerLongestPathSource=Py,Ro.InitDepthFirstOut=k0,Ro.InitDepthFirstIn=wy,Ro.InitNaive=Cy,Ro.AggressiveNone=Ey,Ro.AggressiveLess=A0,Ro.AggressiveMore=by,Ro.PackNone=0,Ro.PackExpand=1,Ro.PackStraighten=2,Ro.PackMedian=4,Ro.PackAll=15,Ro.AlignNone=0,Ro.AlignUpperLeft=1,Ro.AlignUpperRight=2,Ro.AlignLowerLeft=4,Ro.AlignLowerRight=8,Ro.AlignAll=15;function bd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}bd.className="SegInfo";function kg(a){qo.call(this,a)}Ot(kg,qo),kg.prototype.createVertex=function(){return new Du(this)},kg.prototype.createEdge=function(){return new Gp(this)},kg.className="LayeredDigraphNetwork";function Du(a){ps.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ot(Du,ps);function ix(a,y){return a.index-y.index}function T0(a,y){if(!a.$n){for(var x=[],E=Hi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Hi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;yt("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Hi(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Ux(a){if(!a.ao){for(var y=[],x=Hi(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Du.prototype.Cl=function(a){ps.prototype.Cl.call(this,a),this.bo=this.co=null},Du.prototype.Kl=function(a){ps.prototype.Kl.call(this,a),this.bo=this.co=null},Du.prototype.zl=function(a){ps.prototype.zl.call(this,a),this.$n=this.ao=null},Du.prototype.Jl=function(a){ps.prototype.Jl.call(this,a),this.$n=this.ao=null},Ve.Object.defineProperties(Du.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Du.prototype.deleteDestinationEdge=Du.prototype.Jl,Du.prototype.addDestinationEdge=Du.prototype.zl,Du.prototype.deleteSourceEdge=Du.prototype.Kl,Du.prototype.addSourceEdge=Du.prototype.Cl,Du.className="LayeredDigraphVertex";function Gp(a){ql.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ot(Gp,ql),Ve.Object.defineProperties(Gp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Gp.className="LayeredDigraphEdge";function Gr(a){da.call(this),this.Ub=new Ln,this.Wn=R0,this.ud=nc,this.vo=z0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=_0,this.$d=new Xn(10,10).freeze();var y=new zf(this);this.W=new Vu(y),this.Y=new Vu(y),this.ru=[],a&&Object.assign(this,a)}Ot(Gr,da),Gr.prototype.cloneProtected=function(a){da.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Gr.prototype.qb=function(a){a.classType===Gr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:yt("Unknown enum value: "+a):da.prototype.qb.call(this,a)},Gr.prototype.createNetwork=function(){return new zf(this)},Gr.prototype.makeNetwork=function(a){function y(E){if(E instanceof oi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Kn){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Qt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof gr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Gr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Z0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Qt&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?nc:Rf:this.ud=this.path===R0?nc:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Gr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,ne,Xi,Xe,pt):cx(this,a,ne,Xi,Xe,pt),Xi=pt.x,Xe=pt.width,pt=pt.height;break;case Uc:for(Mt=0;Mtpe&&(SiEs&&(If(a,-Es,0,dr,vo-1),I0(Mt,-Es,0),I0(It,-Es,0),Es=0)}Xo.S.h(Es,fi),Xe=Math.max(Xe,qt),pt=Math.max(pt,wt+(Gn===0?0:Fe)+xs.height),Si=qt}else 0pe&&(fiEs&&(If(a,0,-Es,dr,vo-1),I0(Mt,0,-Es),I0(It,0,-Es),Es=0)),Xo.S.h(Si,Es),pt=Math.max(pt,ei),Xe=Math.max(Xe,wt+(Gn===0?0:Fe)+xs.width),fi=ei;Tn++}switch(0le&&(le=0),135Oe&&(Oe=0),oe===Sc&&(re+=xe/2+a.focus.y),ne+=E+x):y?(a.comments===null?E>Xe&&(Xe=ky(oe,E-Xe,0),ne=Xe.x,re=Xe.y,Xe=E,le=0):Xe=By(a,Xe,le),0>le&&(ne-=le,le=0),135pt&&(pt=ky(oe,0,at-pt),ne=pt.x,re=pt.y,pt=at,Oe=0):pt=Ny(a,pt,Oe),0>Oe&&(re-=Oe,Oe=0),ne+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Gn[0].h(le+E,0),Gn[1].h(Gn[0].x,at),Gn[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Gn[0].h(0,Oe+at),Gn[1].h(E,Gn[0].y),Gn[2].xE?hx(a,y,b,Tn,wt,Mt):cx(a,y,b,Tn,wt,Mt),Tn=Mt.x,wt=Mt.width,Mt=Mt.height;break;case Uc:for(xe=0;xexe&&(qtxe&&(eipe&&(pe=0),135Xe&&(Xe=0)),y.la.h(pe,Xe),y.Da.h(wt,Mt)}}Gr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new gn(E,0,b,z);if(ne===1)return y=x[0],b=y.Da.width,z=y.Da.height,new gn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=uh(y)===90,ue=0,pe=0,xe=0,Ee=0;Eele&&(b-=le),z=Math.max(z,Math.max(Ee,xe)+a+ne.height),0>x.S.x&&(E=D0(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Fe,pe)+a+ne.width),xe=E+re/2-x.focus.y-x.la.y,z=Math.max(z,xe+ne.height),0>xe&&(z-=xe),0>x.S.y&&(E=D0(y,x.S.y,!0,E,re)))),new gn(E,0,b,z)}function cx(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new gn(E,0,b,z);if(ne===1)return x=x[0],b=x.Da.width,z=x.Da.height,new gn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=uh(y)===270,ue=0,pe=0,xe=0,Ee=0;Eepe&&(b-=pe),z=Math.max(z,Math.abs(Math.min(Ee,xe))+a+ue.height),0>oe.S.x&&(E=D0(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ue.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Fe,pe))+a+ue.width),xe=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,xe+ue.height),0>xe&&(z-=xe),0>oe.S.y&&(E=D0(y,oe.S.y,!0,E,re)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case ic:return a.width>y?a.width:y;case rc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Vc:case oc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Uc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Sc:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case jf:case Tg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ic:return a.height>y?a.height:y;case rc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Vc:case oc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Uc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Sc:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function ky(a,y,x){switch(a){case Tg:y/=2,x/=2;break;case jf:y/=2,x/=2;break;case ic:x=y=0;break;case rc:break;default:yt("Unhandled alignment value "+a.toString())}return new tt(y,x)}function sf(a,y,x,E,b,z){y=ky(y,x,E),If(a,y.x,y.y,b,z)}function If(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function O0(a,y,x,E){var b=y.parent;switch(a.ud){case nc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Rf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:yt("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var E=0;Epe.length||Ee===null||2>Ee.length))for(b=x=0;xle&&z.yz.y&&ley.length||x===null||2>x.length)E=null;else{for(ue=Hl(a,y.length+x.length),E=z=oe=0;zoe;)le=x[z++],ue[E++].h(le.x+b,le.y);for(x=Hl(a,E),oe=0;oepe.length||z===null||2>z.length)b=null;else{for(ue=Hl(a,pe.length+z.length),b=le=x=0;xz;)oe=pe[x++],ue[b++].h(oe.x,oe.y);for(z=Hl(a,b),x=0;xpe.length||Ee===null||2>Ee.length))for(b=x=0;xoe&&z.xz.x&&oey.length||x===null||2>x.length)E=null;else{for(ue=Hl(a,y.length+x.length),E=z=oe=0;zoe;)le=x[z++],ue[E++].h(le.x,le.y+b);for(x=Hl(a,E),oe=0;oepe.length||z===null||2>z.length)b=null;else{for(ue=Hl(a,pe.length+z.length),b=le=x=0;xz;)oe=pe[x++],ue[b++].h(oe.x,oe.y);for(z=Hl(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Gr.prototype.computeLayerSpacing=function(a){var y=uh(a);y=y===90||y===270;var x=a.layerSpacing;if(0=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==j0&&a!==Yp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Ag&&a!==Kp&&a!==Vp&&!Up||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==j0&&a!==Yp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new fn(Gr,"PathDefault",-1),nc=new fn(Gr,"PathDestination",0),Rf=new fn(Gr,"PathSource",1),Ag=new fn(Gr,"SortingForwards",10),Kp=new fn(Gr,"SortingReverse",11),Vp=new fn(Gr,"SortingAscending",12),Up=new fn(Gr,"SortingDescending",13),Tg=new fn(Gr,"AlignmentCenterSubtrees",20),jf=new fn(Gr,"AlignmentCenterChildren",21),ic=new fn(Gr,"AlignmentStart",22),rc=new fn(Gr,"AlignmentEnd",23),Vc=new fn(Gr,"AlignmentBus",24),oc=new fn(Gr,"AlignmentBusBranching",25),Uc=new fn(Gr,"AlignmentTopLeftBus",26),Sc=new fn(Gr,"AlignmentBottomRightBus",27),j0=new fn(Gr,"CompactionNone",30),Yp=new fn(Gr,"CompactionBlock",31),z0=new fn(Gr,"StyleLayered",40),Ty=new fn(Gr,"StyleLastParents",41),Dy=new fn(Gr,"StyleAlternating",42),Oy=new fn(Gr,"StyleRootOnly",43),_0=new fn(Gr,"ArrangementVertical",50),Iy=new fn(Gr,"ArrangementHorizontal",51),Z0=new fn(Gr,"ArrangementFixedRoots",52),Ry=new fn(Gr,"LayerIndividual",60),jy=new fn(Gr,"LayerSiblings",61),H0=new fn(Gr,"LayerUniform",62);Gr.className="TreeLayout",Gr.PathDefault=R0,Gr.PathDestination=nc,Gr.PathSource=Rf,Gr.SortingForwards=Ag,Gr.SortingReverse=Kp,Gr.SortingAscending=Vp,Gr.SortingDescending=Up,Gr.AlignmentCenterSubtrees=Tg,Gr.AlignmentCenterChildren=jf,Gr.AlignmentStart=ic,Gr.AlignmentEnd=rc,Gr.AlignmentBus=Vc,Gr.AlignmentBusBranching=oc,Gr.AlignmentTopLeftBus=Uc,Gr.AlignmentBottomRightBus=Sc,Gr.CompactionNone=j0,Gr.CompactionBlock=Yp,Gr.StyleLayered=z0,Gr.StyleLastParents=Ty,Gr.StyleAlternating=Dy,Gr.StyleRootOnly=Oy,Gr.ArrangementVertical=_0,Gr.ArrangementHorizontal=Iy,Gr.ArrangementFixedRoots=Z0,Gr.LayerIndividual=Ry,Gr.LayerSiblings=jy,Gr.LayerUniform=H0;function zf(a){qo.call(this,a)}Ot(zf,qo),zf.prototype.createVertex=function(){return new Vu(this)},zf.prototype.createEdge=function(){return new Dg(this)},zf.className="TreeNetwork";function Vu(a){ps.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new tt(0,0),this.Da=new Xn(0,0),this.la=new tt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ag,this.hd=ry,this.Kb=0,this.Jb=jf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Yp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Co,this.wr=!0,this.Dp=Co}Ot(Vu,ps),Vu.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Ve.Object.defineProperties(Vu.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xEe.y+x.rowIndent&&(z=Math.min(z,Math.max(pe.y,z-y.computeNodeIndent(x))))):x.alignment===ic?(z=E.top+b.y,b.y===0&&pe.yEe.x+x.rowIndent&&(z=Math.min(z,Math.max(pe.x,z-y.computeNodeIndent(x))))):x.alignment===ic?(z=E.left+b.x,b.x===0&&pe.xEe.y+x.rowIndent&&(z=Math.min(z,Math.max(pe.y,z-y.computeNodeIndent(x))))):x.alignment===ic?(z=E.top+b.y,b.y===0&&pe.yEe.x+x.rowIndent&&(z=Math.min(z,Math.max(pe.x,z-y.computeNodeIndent(x))))):x.alignment===ic?(z=E.left+b.x,b.x===0&&pe.x>>6)+mt(128|bt&63):mt(224|bt>>>12&15)+mt(128|bt>>>6&63)+mt(128|bt&63)}else{var bt=65536+(Qe.charCodeAt(0)-55296)*1024+(Qe.charCodeAt(1)-56320);return mt(240|bt>>>18&7)+mt(128|bt>>>12&63)+mt(128|bt>>>6&63)+mt(128|bt&63)}},He=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Et=function(Qe){return Qe.replace(He,ct)},ht=function(Qe){var bt=[0,2,1][Qe.length%3],Nt=Qe.charCodeAt(0)<<16|(Qe.length>1?Qe.charCodeAt(1):0)<<8|(Qe.length>2?Qe.charCodeAt(2):0),At=[Ke.charAt(Nt>>>18),Ke.charAt(Nt>>>12&63),bt>=2?"=":Ke.charAt(Nt>>>6&63),bt>=1?"=":Ke.charAt(Nt&63)];return At.join("")},dt=_e.btoa&&typeof _e.btoa=="function"?function(Qe){return _e.btoa(Qe)}:function(Qe){if(Qe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Qe.replace(/[\s\S]{1,3}/g,ht)},Ae=function(Qe){return dt(Et(String(Qe)))},te=function(Qe){return Qe.replace(/[+\/]/g,function(bt){return bt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(Qe,bt){return bt?te(Ae(Qe)):Ae(Qe)},he=function(Qe){return ee(Qe,!0)},se;_e.Uint8Array&&(se=function(Qe,bt){for(var Nt="",At=0,Zt=Qe.length;At>>18)+Ke.charAt(kt>>>12&63)+(typeof ut!="undefined"?Ke.charAt(kt>>>6&63):"=")+(typeof Ge!="undefined"?Ke.charAt(kt&63):"=")}return bt?te(Nt):Nt});var de=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Qe){switch(Qe.length){case 4:var bt=(7&Qe.charCodeAt(0))<<18|(63&Qe.charCodeAt(1))<<12|(63&Qe.charCodeAt(2))<<6|63&Qe.charCodeAt(3),Nt=bt-65536;return mt((Nt>>>10)+55296)+mt((Nt&1023)+56320);case 3:return mt((15&Qe.charCodeAt(0))<<12|(63&Qe.charCodeAt(1))<<6|63&Qe.charCodeAt(2));default:return mt((31&Qe.charCodeAt(0))<<6|63&Qe.charCodeAt(1))}},we=function(Qe){return Qe.replace(de,me)},be=function(Qe){var bt=Qe.length,Nt=bt%4,At=(bt>0?Be[Qe.charAt(0)]<<18:0)|(bt>1?Be[Qe.charAt(1)]<<12:0)|(bt>2?Be[Qe.charAt(2)]<<6:0)|(bt>3?Be[Qe.charAt(3)]:0),Zt=[mt(At>>>16),mt(At>>>8&255),mt(At&255)];return Zt.length-=[0,0,2,1][Nt],Zt.join("")},Me=_e.atob&&typeof _e.atob=="function"?function(Qe){return _e.atob(Qe)}:function(Qe){return Qe.replace(/\S{1,4}/g,be)},Ie=function(Qe){return Me(String(Qe).replace(/[^A-Za-z0-9\+\/]/g,""))},ze=function(Qe){return we(Me(Qe))},et=function(Qe){return String(Qe).replace(/[-_]/g,function(bt){return bt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},$e=function(Qe){return ze(et(Qe))},gt;_e.Uint8Array&&(gt=function(Qe){return Uint8Array.from(Ie(et(Qe)),function(bt){return bt.charCodeAt(0)})});var je=function(){var Qe=_e.Base64;return _e.Base64=Ct,Qe};if(_e.Base64={VERSION:Ze,atob:Ie,btoa:dt,fromBase64:$e,toBase64:ee,utob:Et,encode:ee,encodeURI:he,btou:we,decode:$e,noConflict:je,fromUint8Array:se,toUint8Array:gt},typeof Object.defineProperty=="function"){var Tt=function(Qe){return{value:Qe,enumerable:!1,writable:!0,configurable:!0}};_e.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Tt(function(){return $e(this)})),Object.defineProperty(String.prototype,"toBase64",Tt(function(Qe){return ee(this,Qe)})),Object.defineProperty(String.prototype,"toBase64URI",Tt(function(){return ee(this,!0)}))}}return _e.Meteor&&(Base64=_e.Base64),Pn.exports?Pn.exports.Base64=_e.Base64:(ce=[],De=function(){return _e.Base64}.apply(an,ce),De!==void 0&&(Pn.exports=De)),{Base64:_e.Base64}})},2859:function(Pn,an,ve){"use strict";ve.d(an,{hP:function(){return Vn}});var ce=function(Re,Ce){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ke in Ne)Object.prototype.hasOwnProperty.call(Ne,ke)&&(Pe[ke]=Ne[ke])})(Re,Ce)};function De(Re,Ce){function Pe(){this.constructor=Re}ce(Re,Ce),Re.prototype=Ce===null?Object.create(Ce):(Pe.prototype=Ce.prototype,new Pe)}function _e(Re,Ce,Pe,Ne){return new(Pe||(Pe=Promise))(function(ke,Se){function nt(Ue){try{qe(Ne.next(Ue))}catch(St){Se(St)}}function Pt(Ue){try{qe(Ne.throw(Ue))}catch(St){Se(St)}}function qe(Ue){var St;Ue.done?ke(Ue.value):(St=Ue.value,St instanceof Pe?St:new Pe(function(vt){vt(St)})).then(nt,Pt)}qe((Ne=Ne.apply(Re,Ce||[])).next())})}function Ct(Re,Ce){var Pe,Ne,ke,Se,nt={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return Se={next:Pt(0),throw:Pt(1),return:Pt(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function Pt(qe){return function(Ue){return function(St){if(Pe)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Pe=1,Ne&&(ke=2&St[0]?Ne.return:St[0]?Ne.throw||((ke=Ne.return)&&ke.call(Ne),0):Ne.next)&&!(ke=ke.call(Ne,St[1])).done)return ke;switch(Ne=0,ke&&(St=[2&St[0],ke.value]),St[0]){case 0:case 1:ke=St;break;case 4:return nt.label++,{value:St[1],done:!1};case 5:nt.label++,Ne=St[1],St=[0];continue;case 7:St=nt.ops.pop(),nt.trys.pop();continue;default:if(ke=nt.trys,!((ke=ke.length>0&&ke[ke.length-1])||St[0]!==6&&St[0]!==2)){nt=0;continue}if(St[0]===3&&(!ke||St[1]>ke[0]&&St[1]',"select"),this.addActionButton(Ne,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ne,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ne,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ne,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ne,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ne,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ne,'',"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(Se){var nt=document.createElement("div");nt.className=""+Pe.toolbarButtonStyleClass.name,nt.setAttribute("data-type-name",Se.typeName),nt.innerHTML=Se.icon,nt.addEventListener("click",function(){Pe.markerToolbarButtonClicked(nt,Se)}),Pe.buttons.push(nt),Pe.markerButtons.push(nt)}),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 ke=document.createElement("div");ke.className=this.toolbarBlockStyleClass.name,ke.style.whiteSpace="nowrap",ke.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ke),this.addActionButton(ke,'',"render"),this.addActionButton(ke,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Re.prototype.addButtonClickListener=function(Ce){this.buttonClickListeners.push(Ce)},Re.prototype.removeButtonClickListener=function(Ce){this.buttonClickListeners.indexOf(Ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ce),1)},Re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Pe=0;Pe0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",Pe)}),this.markerButtonOverflowBlock.style.display="none"},Re.prototype.actionToolbarButtonClicked=function(Ce,Pe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",Pe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Re.prototype.setActiveButton=function(Ce){this.resetButtonStyles(),Ce.className=Ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Re.prototype.setActiveMarkerButton=function(Ce){var Pe=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===Ce});Pe&&this.setActiveButton(Pe)},Re.prototype.setCurrentMarker=function(Ce){var Pe=this;this.currentMarker=Ce,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){Pe.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},Re}(),Ae=function(){function Re(Ce,Pe,Ne,ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ce,this.displayMode=Pe,this.uiStyleSettings=Ne,this.styles=ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Re.prototype.addStyles=function(){var Ce;this.toolboxStyleClass=this.styles.addClass(new ht("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 ht("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var Pe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ht("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ht("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ht("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 ht("toolbox-panel-row_colors",` background-color: `+((Ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ce!==void 0?Ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ht("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px; padding: `+Pe+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Et("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Et("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Re.prototype.show=function(Ce){var Pe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Pe!==void 0?Pe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Re.prototype.setPanelButtons=function(Ce){var Pe,Ne,ke=this;this.panels=Ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Pe!==void 0?Pe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Se){var nt;Se.uiStyleSettings=ke.uiStyleSettings;var Pt=document.createElement("div");Pt.className=ke.toolboxButtonStyleClass.name+" "+((nt=ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&nt!==void 0?nt:ke.toolboxButtonStyleColorsClass.name),Pt.innerHTML=Se.icon,Pt.title=Se.title,Pt.addEventListener("click",function(){ke.panelButtonClick(Se)}),ke.panelButtons.push(Pt),ke.buttonRow.appendChild(Pt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Re.prototype.panelButtonClick=function(Ce){var Pe=this,Ne=-1;if(Ce!==this.activePanel){Ne=this.panels.indexOf(Ce),this.panelRow.innerHTML="";var ke=Ce.getUi();ke.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ke),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=Ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Pe.displayMode==="inline"?Pe.panelRow.style.display="none":Pe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Se,nt){var Pt,qe;Se.className=Pe.toolboxButtonStyleClass.name+" "+(nt===Ne?""+((Pt=Pe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Pt!==void 0?Pt:Pe.toolboxActiveButtonStyleColorsClass.name):""+((qe=Pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&qe!==void 0?qe:Pe.toolboxButtonStyleColorsClass.name))})},Re}(),te=function(Re,Ce){this.title=Re,this.icon=Ce},ee=function(Re){function Ce(Pe,Ne,ke,Se){var nt=Re.call(this,Pe,Se||'')||this;return nt.colors=[],nt.addTransparent=!1,nt.colorBoxes=[],nt.colors=Ne,nt.currentColor=ke,nt.setCurrentColor=nt.setCurrentColor.bind(nt),nt.getColorBox=nt.getColorBox.bind(nt),nt}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(ke){var Se=Pe.getColorBox(ke);Ne.appendChild(Se),Pe.colorBoxes.push(Se)}),Ne},Ce.prototype.getColorBox=function(Pe){var Ne=this,ke=this.uiStyleSettings.toolbarHeight/4,Se=this.uiStyleSettings.toolbarHeight-ke,nt=document.createElement("div");nt.style.display="inline-block",nt.style.boxSizing="content-box",nt.style.width=Se-2+"px",nt.style.height=Se-2+"px",nt.style.padding="1px",nt.style.marginRight="2px",nt.style.marginBottom="2px",nt.style.borderWidth="2px",nt.style.borderStyle="solid",nt.style.borderRadius=(Se+2)/2+"px",nt.style.borderColor=Pe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",nt.addEventListener("click",function(){Ne.setCurrentColor(Pe,nt)});var Pt=document.createElement("div");return Pt.style.display="inline-block",Pt.style.width=Se-2+"px",Pt.style.height=Se-2+"px",Pt.style.backgroundColor=Pe,Pt.style.borderRadius=Se/2+"px",Pe==="transparent"&&(Pt.style.fill=this.uiStyleSettings.toolboxAccentColor,Pt.innerHTML=` `),nt.appendChild(Pt),nt},Ce.prototype.setCurrentColor=function(Pe,Ne){var ke=this;this.currentColor=Pe,this.colorBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Pe)},Ce}(te),he=function(){function Re(Ce,Pe,Ne){this._state="new",this._isSelected=!1,this._container=Ce,this._overlayContainer=Pe,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Re.prototype.ownsTarget=function(Ce){return!1},Object.defineProperty(Re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Re.prototype.pointerDown=function(Ce,Pe){},Re.prototype.dblClick=function(Ce,Pe){},Re.prototype.manipulate=function(Ce){},Re.prototype.pointerUp=function(Ce){this.stateChanged()},Re.prototype.dispose=function(){},Re.prototype.addMarkerVisualToContainer=function(Ce){this.container.childNodes.length>0?this.container.insertBefore(Ce,this.container.childNodes[0]):this.container.appendChild(Ce)},Re.prototype.getState=function(){return{typeName:Re.typeName,state:this.state,notes:this.notes}},Re.prototype.restoreState=function(Ce){this._state=Ce.state,this.notes=Ce.notes},Re.prototype.scale=function(Ce,Pe){},Re.prototype.colorChanged=function(Ce){this.onColorChanged&&this.onColorChanged(Ce),this.stateChanged()},Re.prototype.fillColorChanged=function(Ce){this.onFillColorChanged&&this.onFillColorChanged(Ce),this.stateChanged()},Re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ce)&&this.onStateChanged(this)}},Re.typeName="MarkerBase",Re}(),se=function(){function Re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Re.prototype.findGripByVisual=function(Ce){return this.topLeft.ownsTarget(Ce)?this.topLeft:this.topCenter.ownsTarget(Ce)?this.topCenter:this.topRight.ownsTarget(Ce)?this.topRight:this.centerLeft.ownsTarget(Ce)?this.centerLeft:this.centerRight.ownsTarget(Ce)?this.centerRight:this.bottomLeft.ownsTarget(Ce)?this.bottomLeft:this.bottomCenter.ownsTarget(Ce)?this.bottomCenter:this.bottomRight.ownsTarget(Ce)?this.bottomRight:void 0},Re}(),de=function(){function Re(){this.GRIP_SIZE=10,this.visual=Ke.createGroup(),this.visual.appendChild(Ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Re.prototype.ownsTarget=function(Ce){return Ce===this.visual||Ce===this.visual.childNodes[0]||Ce===this.visual.childNodes[1]},Re}(),me=function(){function Re(){}return Re.toITransformMatrix=function(Ce){return{a:Ce.a,b:Ce.b,c:Ce.c,d:Ce.d,e:Ce.e,f:Ce.f}},Re.toSVGMatrix=function(Ce,Pe){return Ce.a=Pe.a,Ce.b=Pe.b,Ce.c=Pe.c,Ce.d=Pe.d,Ce.e=Pe.e,Ce.f=Pe.f,Ce},Re}(),we=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.left=0,Se.top=0,Se.width=0,Se.height=0,Se.defaultSize={x:50,y:20},Se.offsetX=0,Se.offsetY=0,Se.rotationAngle=0,Se.CB_DISTANCE=10,Se._suppressMarkerCreateEvent=!1,Se.container.transform.baseVal.appendItem(Ke.createTransform()),Se.setupControlBox(),Se}return De(Ce,Re),Object.defineProperty(Ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"visual",{get:function(){return this._visual},set:function(Pe){this._visual=Pe;var Ne=Ke.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(Pe){return!!Re.prototype.ownsTarget.call(this,Pe)||!!(this.controlGrips.findGripByVisual(Pe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Pe))},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.state==="new"&&(this.left=Pe.x,this.top=Pe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ke=this.unrotatePoint(Pe);if(this.manipulationStartX=ke.x,this.manipulationStartY=ke.y,this.offsetX=ke.x-this.left,this.offsetY=ke.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var Se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Se.x-this.width/2,this.top=Se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var nt=this.container.transform.baseVal.getItem(0);nt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(nt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ce.prototype.pointerUp=function(Pe){var Ne=this.state;Re.prototype.pointerUp.call(this,Pe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Pe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ce.prototype.moveVisual=function(Pe){this.visual.style.transform="translate("+Pe.x+"px, "+Pe.y+"px)"},Ce.prototype.manipulate=function(Pe){var Ne=this.unrotatePoint(Pe);this.state==="creating"?this.resize(Pe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(Pe)},Ce.prototype.resize=function(Pe){var Ne=this.manipulationStartLeft,ke=this.manipulationStartWidth,Se=this.manipulationStartTop,nt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+Pe.x-this.manipulationStartX,ke=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ke=this.manipulationStartWidth+Pe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Se=this.manipulationStartTop+Pe.y-this.manipulationStartY,nt=this.manipulationStartHeight+this.manipulationStartTop-Se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:nt=this.manipulationStartHeight+Pe.y-this.manipulationStartY}ke>=0?(this.left=Ne,this.width=ke):(this.left=Ne+ke,this.width=-ke),nt>=0?(this.top=Se,this.height=nt):(this.top=Se+nt,this.height=-nt),this.setSize()},Ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ce.prototype.rotate=function(Pe){if(Math.abs(Pe.x-this.centerX)>.1){var Ne=Math.sign(Pe.x-this.centerX);this.rotationAngle=180*Math.atan((Pe.y-this.centerY)/(Pe.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},Ce.prototype.applyRotation=function(){var Pe=this.container.transform.baseVal.getItem(0);Pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Pe,0)},Ce.prototype.rotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ne=this.container.getCTM(),ke=Ke.createPoint(Pe.x,Pe.y);return{x:(ke=ke.matrixTransform(Ne)).x,y:ke.y}},Ce.prototype.unrotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ne=this.container.getCTM();Ne=Ne.inverse();var ke=Ke.createPoint(Pe.x,Pe.y);return{x:(ke=ke.matrixTransform(Ne)).x,y:ke.y}},Ce.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=Ke.createGroup();var Pe=Ke.createTransform();Pe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Pe),this.container.appendChild(this.controlBox),this.controlRect=Ke.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=Ke.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 se,this.addControlGrips(),this.controlBox.style.display="none"},Ce.prototype.adjustControlBox=function(){var Pe=this.controlBox.transform.baseVal.getItem(0);Pe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Pe,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()},Ce.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()},Ce.prototype.createGrip=function(){var Pe=new de;return Pe.visual.transform.baseVal.appendItem(Ke.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},Ce.prototype.positionGrips=function(){var Pe=this.controlGrips.topLeft.GRIP_SIZE,Ne=-Pe/2,ke=Ne,Se=(this.width+this.CB_DISTANCE)/2-Pe/2,nt=(this.height+this.CB_DISTANCE)/2-Pe/2,Pt=this.height+this.CB_DISTANCE-Pe/2,qe=this.width+this.CB_DISTANCE-Pe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,ke),this.positionGrip(this.controlGrips.topCenter.visual,Se,ke),this.positionGrip(this.controlGrips.topRight.visual,qe,ke),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,nt),this.positionGrip(this.controlGrips.centerRight.visual,qe,nt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Pt),this.positionGrip(this.controlGrips.bottomCenter.visual,Se,Pt),this.positionGrip(this.controlGrips.bottomRight.visual,qe,Pt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Se,ke-3*this.CB_DISTANCE)},Ce.prototype.positionGrip=function(Pe,Ne,ke){var Se=Pe.transform.baseVal.getItem(0);Se.setTranslate(Ne,ke),Pe.transform.baseVal.replaceItem(Se,0)},Ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ce.prototype.showControlBox=function(){this.controlBox.style.display=""},Ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Re.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe);var Ne=Pe;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne);var ke=this.rotatePoint({x:this.left,y:this.top}),Se=this.unrotatePoint({x:ke.x*Pe,y:ke.y*Ne});this.left=Se.x,this.top=Se.y,this.width=this.width*Pe,this.height=this.height*Ne,this.adjustControlBox()},Ce}(he),be=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.opacity=1,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual)},Ce.prototype.createVisual=function(){this.visual=Ke.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)},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.manipulate=function(Pe){Re.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){Re.prototype.resize.call(this,Pe),this.setSize()},Ce.prototype.setSize=function(){Re.prototype.setSize.call(this),Ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Pe){Re.prototype.pointerUp.call(this,Pe),this.setSize()},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.visual&&Ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},Ce.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.visual&&Ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.visual&&Ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.visual&&Ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Re.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){var Ne=Pe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),Re.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne),this.setSize()},Ce.title="Rectangle marker",Ce}(we),Me=function(Re){function Ce(Pe,Ne,ke,Se){var nt=Re.call(this,Pe,Se||'')||this;return nt.widths=[],nt.widthBoxes=[],nt.widths=Ne,nt.currentWidth=ke,nt.setCurrentWidth=nt.setCurrentWidth.bind(nt),nt}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.flexGrow="2",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=ke===Pe.currentWidth?Pe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){Pe.setCurrentWidth(ke,Se)}),Ne.appendChild(Se);var nt=document.createElement("div");nt.innerText=ke.toString(),nt.style.marginRight="5px",Se.appendChild(nt);var Pt=document.createElement("div");Pt.style.minHeight="20px",Pt.style.flexGrow="2",Pt.style.display="flex",Pt.style.alignItems="center";var qe=document.createElement("hr");qe.style.minWidth="20px",qe.style.border="0px",qe.style.borderTop=ke+"px solid "+Pe.uiStyleSettings.toolboxColor,qe.style.flexGrow="2",Pt.appendChild(qe),Se.appendChild(Pt),Pe.widthBoxes.push(Se)}),Ne},Ce.prototype.setCurrentWidth=function(Pe,Ne){var ke=this;this.currentWidth=Pe,this.widthBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ce}(te),Ie=function(Re){function Ce(Pe,Ne,ke,Se){var nt=Re.call(this,Pe,Se||'')||this;return nt.styles=[],nt.styleBoxes=[],nt.styles=Ne,nt.currentStyle=ke,nt.setCurrentStyle=nt.setCurrentStyle.bind(nt),nt}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/Pe.styles.length-5+"%",Se.style.borderColor=ke===Pe.currentStyle?Pe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){Pe.setCurrentStyle(ke,Se)}),Ne.appendChild(Se);var nt=document.createElement("div");nt.style.minHeight="20px",nt.style.flexGrow="2",nt.style.overflow="hidden";var Pt=` `;nt.innerHTML=Pt,Se.appendChild(nt),Pe.styleBoxes.push(Se)}),Ne},Ce.prototype.setCurrentStyle=function(Pe,Ne){var ke=this;this.currentStyle=Pe,this.styleBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ce}(te),ze=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ee("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Me("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return De(Ce,Re),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Re.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="FrameMarker",Ce.title="Frame marker",Ce.icon='',Ce}(be),et=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"},$e=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.x1=0,Se.y1=0,Se.x2=0,Se.y2=0,Se.defaultLength=50,Se.manipulationStartX=0,Se.manipulationStartY=0,Se.manipulationStartX1=0,Se.manipulationStartY1=0,Se.manipulationStartX2=0,Se.manipulationStartY2=0,Se.setupControlBox(),Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!!Re.prototype.ownsTarget.call(this,Pe)||!(!this.grip1.ownsTarget(Pe)&&!this.grip2.ownsTarget(Pe))},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.manipulationStartX=Pe.x,this.manipulationStartY=Pe.y,this.state==="new"&&(this.x1=Pe.x,this.y1=Pe.y,this.x2=Pe.x,this.y2=Pe.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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ce.prototype.pointerUp=function(Pe){var Ne=this.state;Re.prototype.pointerUp.call(this,Pe),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(Pe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ce.prototype.adjustVisual=function(){},Ce.prototype.manipulate=function(Pe){this.state==="creating"?this.resize(Pe):this.state==="move"?(this.x1=this.manipulationStartX1+Pe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Pe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Pe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Pe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Pe)},Ce.prototype.resize=function(Pe){switch(this.activeGrip){case this.grip1:this.x1=Pe.x,this.y1=Pe.y;break;case this.grip2:case void 0:this.x2=Pe.x,this.y2=Pe.y}this.adjustVisual(),this.adjustControlBox()},Ce.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=Ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ce.prototype.adjustControlBox=function(){this.positionGrips()},Ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ce.prototype.createGrip=function(){var Pe=new de;return Pe.visual.transform.baseVal.appendItem(Ke.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},Ce.prototype.positionGrips=function(){var Pe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Pe/2,this.y1-Pe/2),this.positionGrip(this.grip2.visual,this.x2-Pe/2,this.y2-Pe/2)},Ce.prototype.positionGrip=function(Pe,Ne,ke){var Se=Pe.transform.baseVal.getItem(0);Se.setTranslate(Ne,ke),Pe.transform.baseVal.replaceItem(Se,0)},Ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Re.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe);var Ne=Pe;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne),this.x1=this.x1*Pe,this.y1=this.y1*Ne,this.x2=this.x2*Pe,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},Ce}(he),gt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ee("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Me("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorLine&&Pe!==this.visibleLine)},Ce.prototype.createVisual=function(){this.visual=Ke.createGroup(),this.selectorLine=Ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ke.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)},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ce.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()),Ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Re.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe);var Ne=Pe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},Ce.typeName="LineMarker",Ce.title="Line marker",Ce.icon='',Ce}($e),je=function(Re){function Ce(Pe,Ne,ke,Se){var nt=Re.call(this,Pe,Se||'')||this;return nt.fonts=[],nt.fontBoxes=[],nt.fonts=Ne,nt.currentFont=ke,nt.setCurrentFont=nt.setCurrentFont.bind(nt),nt}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(ke){var Se=document.createElement("div");Se.style.display="inline-block",Se.style.alignItems="center",Se.style.justifyContent="space-between",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.overflow="hidden",Se.style.maxWidth=100/Pe.fonts.length-5+"%",Se.style.borderColor=ke===Pe.currentFont?Pe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){Pe.setCurrentFont(ke,Se)}),Ne.appendChild(Se);var nt=document.createElement("div");nt.style.display="flex",nt.style.minHeight="20px",nt.style.flexGrow="2",nt.style.fontFamily=ke,nt.style.overflow="hidden";var Pt=document.createElement("div");Pt.style.whiteSpace="nowrap",Pt.style.overflow="hidden",Pt.style.textOverflow="ellipsis",Pt.innerHTML="The quick brown fox jumps over the lazy dog",nt.appendChild(Pt),Se.appendChild(nt),Pe.fontBoxes.push(Se)}),Ne},Ce.prototype.setCurrentFont=function(Pe,Ne){var ke=this;this.currentFont=Pe,this.fontBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ce}(te),Tt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.color="transparent",Se.padding=5,Se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Se.text=Se.DEFAULT_TEXT,Se.isMoved=!1,Se.color=ke.defaultColor,Se.fontFamily=ke.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setColor=Se.setColor.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.renderText=Se.renderText.bind(Se),Se.sizeText=Se.sizeText.bind(Se),Se.textEditDivClicked=Se.textEditDivClicked.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.setSize=Se.setSize.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.colorPanel=new ee("Color",ke.defaultColorSet,ke.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.fontFamilyPanel=new je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){if(Re.prototype.ownsTarget.call(this,Pe)||Pe===this.visual||Pe===this.textElement||Pe===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(ke){ke===Pe&&(Ne=!0)}),Ne},Ce.prototype.createVisual=function(){this.visual=Ke.createGroup(),this.bgRectangle=Ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ke.createTransform()),this.textElement.transform.baseVal.appendItem(Ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.renderText=function(){var Pe=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(Ne){Pe.textElement.appendChild(Ke.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ce.prototype.getTextScale=function(){var Pe=this.textElement.getBBox(),Ne=1;if(Pe.width>0&&Pe.height>0){var ke=(1*this.width-this.width*this.padding*2/100)/Pe.width,Se=(1*this.height-this.height*this.padding*2/100)/Pe.height;Ne=Math.min(ke,Se)}return Ne},Ce.prototype.getTextPosition=function(Pe){var Ne=this.textElement.getBBox(),ke=0,Se=0;return Ne.width>0&&Ne.height>0&&(ke=(this.width-Ne.width*Pe)/2,Se=this.height/2-Ne.height*Pe/2),{x:ke,y:Se}},Ce.prototype.sizeText=function(){var Pe=this.textElement.getBBox(),Ne=this.getTextScale(),ke=this.getTextPosition(Ne);ke.y-=Pe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ke.x+"px, "+ke.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ke.x,ke.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},Ce.prototype.manipulate=function(Pe){Re.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Pe){Re.prototype.resize.call(this,Pe),this.isMoved=!0,this.setSize(),this.sizeText()},Ce.prototype.setSize=function(){Re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ce.prototype.pointerUp=function(Pe){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),Re.prototype.pointerUp.call(this,Pe),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.showTextEditor=function(){var Pe=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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(Pe.textEditor.style.fontSize);Pe.textEditor.clientWidth>=Number.parseInt(Pe.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,Pe.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var ke=Ne.clipboardData.getData("text"),Se=window.getSelection();if(!Se.rangeCount)return!1;Se.deleteFromDocument(),Se.getRangeAt(0).insertNode(document.createTextNode(ke)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Pe.textEditDivClicked(Pe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Pe=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ke=this.textElement.getBBox(),Se={x:ke.width*Pe,y:ke.height*Pe};Ne.x-=Se.x/2,Ne.y-=Se.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*Pe,12)+"px",this.textElement.style.display="none"}},Ce.prototype.textEditDivClicked=function(Pe){this.text=Pe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ce.prototype.select=function(){Re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Re.prototype.deselect.call(this)},Ce.prototype.dblClick=function(Pe,Ne){Re.prototype.dblClick.call(this,Pe,Ne),this.showTextEditor()},Ce.prototype.setColor=function(Pe){this.textElement&&Ke.setAttributes(this.textElement,[["fill",Pe]]),this.color=Pe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Pe)},Ce.prototype.setFont=function(Pe){this.textElement&&Ke.setAttributes(this.textElement,[["font-family",Pe]]),this.fontFamily=Pe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Re.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ne=Pe;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),Re.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},Ce.typeName="TextMarker",Ce.title="Text marker",Ce.icon='',Ce}(we),Qe=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.color="transparent",Se.lineWidth=3,Se.drawing=!1,Se.pixelRatio=1,Se.color=ke.defaultColor,Se.lineWidth=ke.defaultStrokeWidth,Se.pixelRatio=ke.freehandPixelRatio,Se.setColor=Se.setColor.bind(Se),Se.addCanvas=Se.addCanvas.bind(Se),Se.finishCreation=Se.finishCreation.bind(Se),Se.setLineWidth=Se.setLineWidth.bind(Se),Se.colorPanel=new ee("Color",ke.defaultColorSet,ke.defaultColor),Se.colorPanel.onColorChanged=Se.setColor,Se.lineWidthPanel=new Me("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.lineWidthPanel.onWidthChanged=Se.setLineWidth,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.drawingImage)},Ce.prototype.createVisual=function(){this.visual=Ke.createGroup(),this.drawingImage=Ke.createImage(),this.visual.appendChild(this.drawingImage);var Pe=Ke.createTransform();this.visual.transform.baseVal.appendItem(Pe),this.addMarkerVisualToContainer(this.visual)},Ce.prototype.pointerDown=function(Pe,Ne){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(Pe.x,Pe.y),this.drawing=!0):Re.prototype.pointerDown.call(this,Pe,Ne)},Ce.prototype.manipulate=function(Pe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Pe.x,Pe.y),this.canvasContext.stroke()):Re.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){Re.prototype.resize.call(this,Pe),Ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Pe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Re.prototype.pointerUp.call(this,Pe)},Ce.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)},Ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.select.call(this)},Ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.deselect.call(this)},Ce.prototype.finishCreation=function(){for(var Pe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ke=Ne[0],Se=Ne[1],nt=Ne[2],Pt=Ne[3],qe=!1,Ue=0;Ue0&&(qe=!0,UePt&&(Pt=Ue),St>nt&&(nt=St));if(qe){this.left=ke/this.pixelRatio,this.top=Se/this.pixelRatio,this.width=(nt-ke)/this.pixelRatio,this.height=(Pt-Se)/this.pixelRatio;var vt=document.createElement("canvas");vt.width=nt-ke,vt.height=Pt-Se,vt.getContext("2d").putImageData(this.canvasContext.getImageData(ke,Se,nt-ke,Pt-Se),0,0),this.drawingImgUrl=vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ce.prototype.setDrawingImage=function(){Ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ce.prototype.setColor=function(Pe){this.color=Pe,this.colorChanged(Pe)},Ce.prototype.setLineWidth=function(Pe){this.lineWidth=Pe},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({drawingImgUrl:this.drawingImgUrl},Re.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){this.createVisual(),Re.prototype.restoreState.call(this,Pe),this.drawingImgUrl=Pe.drawingImgUrl,this.setDrawingImage()},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne),this.setDrawingImage()},Ce.typeName="FreehandMarker",Ce.title="Freehand marker",Ce.icon='',Ce}(we),bt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,ke||'')||this;return Se.typeBoxes=[],Se.currentType=Ne,Se.setCurrentType=Se.setCurrentType.bind(Se),Se}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var ke=function(Pt){var qe="both";switch(Pt){case 0:qe="both";break;case 1:qe="start";break;case 2:qe="end";break;case 3:qe="none"}var Ue=document.createElement("div");if(Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=qe===Se.currentType?Se.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){Pe.setCurrentType(qe,Ue)}),Ne.appendChild(Ue),qe==="both"||qe==="start"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.innerHTML=` `,St.style.marginLeft="5px",Ue.appendChild(St)}var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",vt.appendChild(lt),Ue.appendChild(vt),qe==="both"||qe==="end"){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.innerHTML=` `,Dt.style.marginRight="5px",Ue.appendChild(Dt)}Se.typeBoxes.push(Ue)},Se=this,nt=0;nt<4;nt++)ke(nt);return Ne},Ce.prototype.setCurrentType=function(Pe,Ne){var ke=this;this.currentType=Pe,this.typeBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ce}(te),Nt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.arrowType="end",Se.arrowBaseHeight=10,Se.arrowBaseWidth=10,Se.getArrowPoints=Se.getArrowPoints.bind(Se),Se.setArrowType=Se.setArrowType.bind(Se),Se.arrowTypePanel=new bt("Arrow type","end"),Se.arrowTypePanel.onArrowTypeChanged=Se.setArrowType,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.arrow1&&Pe!==this.arrow2)},Ce.prototype.getArrowPoints=function(Pe,Ne){var ke=this.arrowBaseWidth+2*this.strokeWidth,Se=this.arrowBaseHeight+2*this.strokeWidth;return Pe-ke/2+","+(Ne+Se/2)+" "+Pe+","+(Ne-Se/2)+" "+(Pe+ke/2)+","+(Ne+Se/2)},Ce.prototype.createTips=function(){this.arrow1=Ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ke.createTransform()),this.visual.appendChild(this.arrow2)},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.state==="creating"&&this.createTips()},Ce.prototype.adjustVisual=function(){if(Re.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",Ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Pe=0;Math.abs(this.x1-this.x2)>.1&&(Pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(Pe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var ke=this.arrow2.transform.baseVal.getItem(0);ke.setRotate(Pe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ke,0)}},Ce.prototype.setArrowType=function(Pe){this.arrowType=Pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({arrowType:this.arrowType},Re.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe);var Ne=Pe;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},Ce.typeName="ArrowMarker",Ce.title="Arrow marker",Ce.icon='',Ce}(gt),At=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.fillColor=ke.defaultFillColor,Se.strokeWidth=0,Se.fillPanel=new ee("Color",ke.defaultColorSet,ke.defaultFillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se}return De(Ce,Re),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Re.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="CoverMarker",Ce.title="Cover marker",Ce.icon='',Ce}(be),Zt=function(Re){function Ce(Pe,Ne,ke,Se){var nt=Re.call(this,Pe,Se||'')||this;return nt.opacities=[],nt.opacityBoxes=[],nt.opacities=Ne,nt.currentOpacity=ke,nt.setCurrentOpacity=nt.setCurrentOpacity.bind(nt),nt}return De(Ce,Re),Ce.prototype.getUi=function(){var Pe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(ke){var Se=document.createElement("div");Se.style.display="flex",Se.style.alignItems="center",Se.style.justifyContent="center",Se.style.padding="5px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderColor=ke===Pe.currentOpacity?Pe.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){Pe.setCurrentOpacity(ke,Se)}),Ne.appendChild(Se);var nt=document.createElement("div");nt.innerText=100*ke+"%",Se.appendChild(nt),Pe.opacityBoxes.push(Se)}),Ne},Ce.prototype.setCurrentOpacity=function(Pe,Ne){var ke=this;this.currentOpacity=Pe,this.opacityBoxes.forEach(function(Se){Se.style.borderColor=Se===Ne?ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ce}(te),Yt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.setOpacity=Se.setOpacity.bind(Se),Se.fillColor=ke.defaultHighlightColor,Se.strokeWidth=0,Se.opacity=ke.defaultHighlightOpacity,Se.fillPanel=new ee("Color",ke.defaultColorSet,Se.fillColor),Se.fillPanel.onColorChanged=Se.setFillColor,Se.opacityPanel=new Zt("Opacity",ke.defaultOpacitySteps,Se.opacity),Se.opacityPanel.onOpacityChanged=Se.setOpacity,Se}return De(Ce,Re),Ce.prototype.setOpacity=function(Pe){this.opacity=Pe,this.visual&&Ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Re.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="HighlightMarker",Ce.title="Highlight marker",Ce.icon='',Ce}(At),ut='',Ge='',kt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.bgColor="transparent",Se.tipPosition={x:0,y:0},Se.tipBase1Position={x:0,y:0},Se.tipBase2Position={x:0,y:0},Se.tipMoving=!1,Se.color=ke.defaultStrokeColor,Se.bgColor=ke.defaultFillColor,Se.fontFamily=ke.defaultFontFamily,Se.defaultSize={x:100,y:30},Se.setBgColor=Se.setBgColor.bind(Se),Se.getTipPoints=Se.getTipPoints.bind(Se),Se.positionTip=Se.positionTip.bind(Se),Se.setTipPoints=Se.setTipPoints.bind(Se),Se.colorPanel=new ee("Text color",ke.defaultColorSet,Se.color,ut),Se.colorPanel.onColorChanged=Se.setColor,Se.bgColorPanel=new ee("Fill color",ke.defaultColorSet,Se.bgColor,Ge),Se.bgColorPanel.onColorChanged=Se.setBgColor,Se.fontFamilyPanel=new je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.tipGrip=new de,Se.tipGrip.visual.transform.baseVal.appendItem(Ke.createTransform()),Se.controlBox.appendChild(Se.tipGrip.visual),Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return Re.prototype.ownsTarget.call(this,Pe)||this.tipGrip.ownsTarget(Pe)||this.tip===Pe},Ce.prototype.createTip=function(){Ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ce.prototype.pointerDown=function(Pe,Ne){this.state==="new"&&Re.prototype.pointerDown.call(this,Pe,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Re.prototype.pointerDown.call(this,Pe,Ne)},Ce.prototype.pointerUp=function(Pe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Re.prototype.pointerUp.call(this,Pe);else{var Ne=this.state==="creating";Re.prototype.pointerUp.call(this,Pe),this.setTipPoints(Ne),this.positionTip()}},Ce.prototype.manipulate=function(Pe){if(this.tipMoving){var Ne=this.unrotatePoint(Pe);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else Re.prototype.manipulate.call(this,Pe)},Ce.prototype.setBgColor=function(Pe){this.bgRectangle&&this.tip&&(Ke.setAttributes(this.bgRectangle,[["fill",Pe]]),Ke.setAttributes(this.tip,[["fill",Pe]])),this.bgColor=Pe,this.fillColorChanged(Pe)},Ce.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},Ce.prototype.setTipPoints=function(Pe){Pe===void 0&&(Pe=!1);var Ne=Math.min(this.height/2,15),ke=this.height/5;Pe&&(this.tipPosition={x:Ne+ke/2,y:this.height+20});var Se=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?Se.1)){var Pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(Pe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var ke=this.tip2.transform.baseVal.getItem(0);ke.setRotate(Pe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ke,0)}},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Re.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe),this.createTips(),this.adjustVisual()},Ce.typeName="MeasurementMarker",Ce.title="Measurement marker",Ce.icon='',Ce}(gt),Bt=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.strokePanel.colors=ke.defaultColorSet,Se.fillColor="transparent",Se}return De(Ce,Re),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Re.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="EllipseFrameMarker",Ce.title="Ellipse frame marker",Ce.icon='',Ce}(ln),Gt=function(){function Re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Re.prototype.addUndoStep=function(Ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ce)||(this.undoStack.push(Ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ce)&&this.redoStack.splice(0,this.redoStack.length))},Re.prototype.replaceLastUndoStep=function(Ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ce)},Re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Re.prototype.undo=function(){if(this.undoStack.length>1){var Ce=this.undoStack.pop();return Ce!==void 0&&this.redoStack.push(Ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Re}(),en=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.curveX=0,Se.curveY=0,Se.manipulationStartCurveX=0,Se.manipulationStartCurveY=0,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.positionGrips=Se.positionGrips.bind(Se),Se.addControlGrips=Se.addControlGrips.bind(Se),Se.adjustVisual=Se.adjustVisual.bind(Se),Se.setupControlBox=Se.setupControlBox.bind(Se),Se.resize=Se.resize.bind(Se),Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.strokePanel=new ee("Line color",ke.defaultColorSet,ke.defaultColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.strokeWidthPanel=new Me("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorCurve&&Pe!==this.visibleCurve&&!this.curveGrip.ownsTarget(Pe))},Ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ce.prototype.createVisual=function(){this.visual=Ke.createGroup(),this.selectorCurve=Ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ke.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)},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Pe.x,this.curveY=Pe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ce.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setupControlBox=function(){Re.prototype.setupControlBox.call(this),this.curveControlLine1=Ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ke.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)},Ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Re.prototype.addControlGrips.call(this)},Ce.prototype.positionGrips=function(){Re.prototype.positionGrips.call(this);var Pe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Pe/2,this.curveY-Pe/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()))},Ce.prototype.manipulate=function(Pe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Pe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Pe.y-this.manipulationStartY),Re.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){this.activeGrip===this.curveGrip&&(this.curveX=Pe.x,this.curveY=Pe.y),Re.prototype.resize.call(this,Pe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.adjustVisual()},Ce.prototype.scale=function(Pe,Ne){this.curveX=this.curveX*Pe,this.curveY=this.curveY*Ne,Re.prototype.scale.call(this,Pe,Ne)},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Re.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Re.prototype.restoreState.call(this,Pe);var Ne=Pe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},Ce.typeName="CurveMarker",Ce.title="Curve marker",Ce.icon='',Ce}($e),Bn=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,Ne,ke)||this;return Se.fillColor="transparent",Se.strokeColor="transparent",Se.strokeWidth=0,Se.strokeDasharray="",Se.textColor="transparent",Se.fontSize="1rem",Se.isMoved=!1,Se.captionText="Caption",Se.PADDING=5,Se.captionBoxWidth=0,Se.captionBoxHeight=0,Se.strokeColor=ke.defaultColor,Se.strokeWidth=ke.defaultStrokeWidth,Se.strokeDasharray=ke.defaultStrokeDasharray,Se.fillColor=ke.defaultFillColor,Se.textColor=ke.defaultStrokeColor,Se.fontFamily=ke.defaultFontFamily,Se.fontSize=ke.defaultCaptionFontSize,Se.captionText=ke.defaultCaptionText,Se.setStrokeColor=Se.setStrokeColor.bind(Se),Se.setFillColor=Se.setFillColor.bind(Se),Se.setStrokeWidth=Se.setStrokeWidth.bind(Se),Se.setStrokeDasharray=Se.setStrokeDasharray.bind(Se),Se.createVisual=Se.createVisual.bind(Se),Se.sizeCaption=Se.sizeCaption.bind(Se),Se.setCaptionText=Se.setCaptionText.bind(Se),Se.showTextEditor=Se.showTextEditor.bind(Se),Se.positionTextEditor=Se.positionTextEditor.bind(Se),Se.finishTextEditing=Se.finishTextEditing.bind(Se),Se.setFont=Se.setFont.bind(Se),Se.setTextColor=Se.setTextColor.bind(Se),Se.strokePanel=new ee("Line color",Ze(ke.defaultColorSet,["transparent"]),Se.strokeColor),Se.strokePanel.onColorChanged=Se.setStrokeColor,Se.fillPanel=new ee("Fill color",Ze(ke.defaultColorSet,["transparent"]),Se.fillColor,Ge),Se.fillPanel.onColorChanged=Se.setFillColor,Se.strokeWidthPanel=new Me("Line width",ke.defaultStrokeWidths,ke.defaultStrokeWidth),Se.strokeWidthPanel.onWidthChanged=Se.setStrokeWidth,Se.strokeStylePanel=new Ie("Line style",ke.defaultStrokeDasharrays,ke.defaultStrokeDasharray),Se.strokeStylePanel.onStyleChanged=Se.setStrokeDasharray,Se.fontFamilyPanel=new je("Font",ke.defaultFontFamilies,ke.defaultFontFamily),Se.fontFamilyPanel.onFontChanged=Se.setFont,Se.textColorPanel=new ee("Text color",ke.defaultColorSet,Se.textColor,ut),Se.textColorPanel.onColorChanged=Se.setTextColor,Se}return De(Ce,Re),Ce.prototype.ownsTarget=function(Pe){return!(!Re.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.frame&&Pe!==this.captionBg&&Pe!==this.captionElement)},Ce.prototype.createVisual=function(){this.visual=Ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ke.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=Ke.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()},Ce.prototype.setCaptionText=function(Pe){this.captionText=Pe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ce.prototype.pointerDown=function(Pe,Ne){Re.prototype.pointerDown.call(this,Pe,Ne),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.manipulate=function(Pe){Re.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Pe){Re.prototype.resize.call(this,Pe),this.setSize()},Ce.prototype.sizeCaption=function(){var Pe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Pe.width+2*this.PADDING,this.captionBoxHeight=Pe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ke.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')"]]),Ke.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')"]])},Ce.prototype.showTextEditor=function(){var Pe=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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Pe.finishTextEditing(Pe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ce.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"))},Ce.prototype.finishTextEditing=function(Pe){this.setCaptionText(Pe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ce.prototype.setFont=function(Pe){this.captionElement&&Ke.setAttributes(this.captionElement,[["font-family",Pe]]),this.fontFamily=Pe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ce.prototype.setTextColor=function(Pe){this.captionElement&&Ke.setAttributes(this.captionElement,[["fill",Pe]]),this.textColor=Pe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ce.prototype.setSize=function(){Re.prototype.setSize.call(this),Ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ce.prototype.pointerUp=function(Pe){Re.prototype.pointerUp.call(this,Pe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.dblClick=function(Pe,Ne){Re.prototype.dblClick.call(this,Pe,Ne),this.showTextEditor()},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.frame&&Ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},Ce.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.captionBg&&Ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Pe),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.frame&&Ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.frame&&Ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=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},Re.prototype.getState.call(this));return Pe.typeName=this.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ne=Pe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),Re.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ne){Re.prototype.scale.call(this,Pe,Ne),this.setSize()},Ce.typeName="CaptionFrameMarker",Ce.title="Caption frame marker",Ce.icon='',Ce}(we),rn=function(){function Re(Ce,Pe){Pe===void 0&&(Pe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ce,this.cancelable=Pe}return Object.defineProperty(Re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Re.prototype.preventDefault=function(){this._defaultPrevented=!0},Re}(),Cn=function(Re){function Ce(Pe,Ne,ke){var Se=Re.call(this,Pe,!1)||this;return Se.dataUrl=Ne,Se.state=ke,Se}return De(Ce,Re),Ce}(rn),ft=function(Re){function Ce(Pe,Ne,ke){ke===void 0&&(ke=!1);var Se=Re.call(this,Pe,ke)||this;return Se.marker=Ne,Se}return De(Ce,Re),Ce}(rn),En=function(){function Re(){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 Re.prototype.addEventListener=function(Ce,Pe){this[Ce].push(Pe)},Re.prototype.removeEventListener=function(Ce,Pe){var Ne=this[Ce].indexOf(Pe);Ne>-1&&this[Ce].splice(Ne,1)},Re}(),Vn=function(){function Re(Ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new et,this._isOpen=!1,this.undoRedoManager=new Gt,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 En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Re.instanceCounter++,this.styles=new He(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ce,this.targetRoot=document.body,this.width=Ce.clientWidth,this.height=Ce.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(Re.prototype,"ALL_MARKER_TYPES",{get:function(){return[ze,Qe,Nt,Tt,Bt,ln,Yt,kt,sn,At,gt,en,Bn]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ze,Qe,Nt,Tt,ln,Yt,kt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ze,Qe,Nt,Tt,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ce){var Pe=this;this._availableMarkerTypes.splice(0),Ce.forEach(function(Ne){if(typeof Ne=="string"){var ke=Pe.ALL_MARKER_TYPES.find(function(Se){return Se.typeName===Ne});ke!==void 0&&Pe._availableMarkerTypes.push(ke)}else Pe._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ce){this._zoomLevel=Ce,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(Re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Be.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Re.prototype.show=function(){var Ce=this;this.styles.styleSheetRoot===void 0&&ct.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ct.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Pe){return Pe(new rn(Ce))})},Re.prototype.render=function(){return _e(this,void 0,void 0,function(){var Ce;return Ct(this,function(Pe){switch(Pe.label){case 0:return this.setCurrentMarker(),(Ce=new mt).naturalSize=this.renderAtNaturalSize,Ce.imageType=this.renderImageType,Ce.imageQuality=this.renderImageQuality,Ce.markersOnly=this.renderMarkersOnly,Ce.width=this.renderWidth,Ce.height=this.renderHeight,[4,Ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Pe.sent(),[4,Ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Pe.sent()]}})})},Re.prototype.close=function(Ce){var Pe=this;if(Ce===void 0&&(Ce=!1),this.isOpen){var Ne=!1;Ce||this.eventListeners.beforeclose.forEach(function(ke){var Se=new rn(Pe,!0);ke(Se),Se.defaultPrevented&&(Ne=!0)}),Ne||(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(ke){return ke(new rn(Pe))}),this.detachEvents(),this._isOpen=!1)}},Re.prototype.addMarkersToToolbar=function(){for(var Ce,Pe=[],Ne=0;Nethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ce:this.editorCanvas.clientWidth,Ne=Pe',Ce.title="Powered by marker.js",Ce.style.display="grid",Ce.style.alignItems="center",Ce.style.justifyItems="center",Ce.style.padding="3px",Ce.style.width="20px",Ce.style.height="20px",this.logoUI.appendChild(Ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Re.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")},Re.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"},Re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Re.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 Ce=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=Ce+"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 dt(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(Ce),1),Ce.dispose()},Re.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())},Re.prototype.toolbarButtonClicked=function(Ce,Pe){if(Ce==="marker"&&Pe!==void 0)this.createNewMarker(Pe);else if(Ce==="action")switch(Pe){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()}},Re.prototype.deleteSelectedMarker=function(){var Ce=this;if(this._currentMarker!==void 0){var Pe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ke){var Se=new ft(Ce,Ce._currentMarker,!0);ke(Se),Se.defaultPrevented&&(Pe=!0)}),!Pe){var Ne=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(ke){return ke(new ft(Ce,Ne))})}}},Re.prototype.clear=function(){var Ce=this,Pe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(nt){var Pt=new ft(Ce,void 0,!0);nt(Pt),Pt.defaultPrevented&&(Pe=!0)}),!Pe)){this.setCurrentMarker();for(var Ne=function(nt){var Pt=ke.markers[nt];ke.setCurrentMarker(ke.markers[nt]),ke._currentMarker.dispose(),ke.markerImage.removeChild(ke._currentMarker.container),ke.markers.splice(ke.markers.indexOf(ke._currentMarker),1),ke.eventListeners.markerdelete.forEach(function(qe){return qe(new ft(Ce,Pt))})},ke=this,Se=this.markers.length-1;Se>=0;Se--)Ne(Se);this.addUndoStep()}},Object.defineProperty(Re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Re.prototype.showNotesEditor=function(){var Ce;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=(Ce=this._currentMarker.notes)!==null&&Ce!==void 0?Ce:"",this.overlayContainer.appendChild(this.notesArea))},Re.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)},Re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Re.prototype.addUndoStep=function(){var Ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Pe=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===Pe.width&&Ne.height===Pe.height){var ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Pe),ke1&&this.panTo({x:Ce.clientX,y:Ce.clientY}))},Re.prototype.onPointerUp=function(Ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY)),this.isDragging=!1,this.addUndoStep()},Re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Re.prototype.onKeyUp=function(Ce){this._currentMarker===void 0||this.notesArea!==void 0||Ce.key!=="Delete"&&Ce.key!=="Backspace"||this.deleteSelectedMarker()},Re.prototype.clientToLocalCoordinates=function(Ce,Pe){var Ne=this.markerImage.getBoundingClientRect();return{x:(Ce-Ne.left)/this.zoomLevel,y:(Pe-Ne.top)/this.zoomLevel}},Re.prototype.onWindowResize=function(){this.positionUI()},Re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ce+"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()},Re.prototype.addLicenseKey=function(Ce){Be.addKey(Ce)},Re.prototype.addEventListener=function(Ce,Pe){this.eventListeners.addEventListener(Ce,Pe)},Re.prototype.removeEventListener=function(Ce,Pe){this.eventListeners.removeEventListener(Ce,Pe)},Re.prototype.renderState=function(Ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Re.prototype.focus=function(){var Ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Pe){return Pe(new rn(Ce))}))},Re.prototype.blur=function(){var Ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Pe){return Pe(new rn(Ce))}))},Re.instanceCounter=0,Re}()},17115:function(Pn,an,ve){"use strict";ve.d(an,{ZP:function(){return Be}});var ce=ve(72071),De=ve(59301),_e=ve(47273),Ct=0,Ze=(0,_e.Z)();function Ke(){var mt;return Ze?(mt=Ct,Ct+=1):mt="TEST_OR_SSR",mt}function Be(mt){var ct=De.useState(),He=(0,ce.Z)(ct,2),Et=He[0],ht=He[1];return De.useEffect(function(){ht("rc_select_".concat(Ke()))},[]),mt||Et}},77861:function(Pn,an,ve){"use strict";ve.d(an,{Ac:function(){return Dt},Xo:function(){return gi},Wx:function(){return Ji},ZP:function(){return tn},lk:function(){return we}});var ce=ve(96663),De=ve(19127),_e=ve(90493),Ct=ve(44127),Ze=ve(72071),Ke=ve(6620),Be=ve(20135),mt=ve(18929),ct=ve(48736),He=ve(59301),Et=ve(92310),ht=ve.n(Et),dt=ve(34280),Ae=ve(49658),te=ve(10228),ee=ve(8654),he=function(rt){var Vt=rt.className,on=rt.customizeIcon,xn=rt.customizeIconProps,An=rt.onMouseDown,yt=rt.onClick,cn=rt.children,On;return typeof on=="function"?On=on(xn):On=on,He.createElement("span",{className:Vt,onMouseDown:function(Wt){Wt.preventDefault(),An&&An(Wt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:yt,"aria-hidden":!0},On!==void 0?On:He.createElement("span",{className:ht()(Vt.split(/\s+/).map(function(ri){return"".concat(ri,"-icon")}))},cn))},se=he;function de(xt,rt,Vt,on,xn){var An=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,yt=arguments.length>6?arguments[6]:void 0,cn=arguments.length>7?arguments[7]:void 0,On=He.useMemo(function(){if((0,Be.Z)(on)==="object")return on.clearIcon;if(xn)return xn},[on,xn]),ri=He.useMemo(function(){return!!(!An&&on&&(Vt.length||yt)&&!(cn==="combobox"&&yt===""))},[on,An,Vt.length,yt,cn]);return{allowClear:ri,clearIcon:He.createElement(se,{className:"".concat(xt,"-clear"),onMouseDown:rt,customizeIcon:On},"\xD7")}}var me=He.createContext(null);function we(){return He.useContext(me)}function be(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=He.useState(!1),Vt=(0,Ze.Z)(rt,2),on=Vt[0],xn=Vt[1],An=He.useRef(null),yt=function(){window.clearTimeout(An.current)};He.useEffect(function(){return yt},[]);var cn=function(ri,Wt){yt(),An.current=window.setTimeout(function(){xn(ri),Wt&&Wt()},xt)};return[on,cn,yt]}function Me(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=He.useRef(null),Vt=He.useRef(null);He.useEffect(function(){return function(){window.clearTimeout(Vt.current)}},[]);function on(xn){(xn||rt.current===null)&&(rt.current=xn),window.clearTimeout(Vt.current),Vt.current=window.setTimeout(function(){rt.current=null},xt)}return[function(){return rt.current},on]}function Ie(xt,rt,Vt,on){var xn=He.useRef(null);xn.current={open:rt,triggerOpen:Vt,customizedTrigger:on},He.useEffect(function(){function An(yt){var cn;if(!((cn=xn.current)!==null&&cn!==void 0&&cn.customizedTrigger)){var On=yt.target;On.shadowRoot&&yt.composed&&(On=yt.composedPath()[0]||On),xn.current.open&&xt().filter(function(ri){return ri}).every(function(ri){return!ri.contains(On)&&ri!==On})&&xn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",An),function(){return window.removeEventListener("mousedown",An)}},[])}var ze=ve(26112),et=ve(11780),$e=function(rt,Vt){var on,xn,An=rt.prefixCls,yt=rt.id,cn=rt.inputElement,On=rt.disabled,ri=rt.tabIndex,Wt=rt.autoFocus,Jt=rt.autoComplete,hi=rt.editable,ci=rt.activeDescendantId,ui=rt.value,qn=rt.maxLength,di=rt.onKeyDown,li=rt.onMouseDown,Ai=rt.onChange,er=rt.onPaste,sr=rt.onCompositionStart,vn=rt.onCompositionEnd,Nr=rt.open,Dr=rt.attrs,ir=cn||He.createElement("input",null),fn=ir,jn=fn.ref,Ei=fn.props,zi=Ei.onKeyDown,Ni=Ei.onChange,Gi=Ei.onMouseDown,ur=Ei.onCompositionStart,Qi=Ei.onCompositionEnd,rr=Ei.style;return(0,ct.Kp)(!("maxLength"in ir.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ir=He.cloneElement(ir,(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({type:"search"},Ei),{},{id:yt,ref:(0,ee.sQ)(Vt,jn),disabled:On,tabIndex:ri,autoComplete:Jt||"off",autoFocus:Wt,className:ht()("".concat(An,"-selection-search-input"),(on=ir)===null||on===void 0||(xn=on.props)===null||xn===void 0?void 0:xn.className),role:"combobox","aria-label":"Search","aria-expanded":Nr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":Nr?ci:void 0},Dr),{},{value:hi?ui:"",maxLength:qn,readOnly:!hi,unselectable:hi?null:"on",style:(0,Ct.Z)((0,Ct.Z)({},rr),{},{opacity:hi?null:0}),onKeyDown:function(Nn){di(Nn),zi&&zi(Nn)},onMouseDown:function(Nn){li(Nn),Gi&&Gi(Nn)},onChange:function(Nn){Ai(Nn),Ni&&Ni(Nn)},onCompositionStart:function(Nn){sr(Nn),ur&&ur(Nn)},onCompositionEnd:function(Nn){vn(Nn),Qi&&Qi(Nn)},onPaste:er})),ir},gt=He.forwardRef($e);gt.displayName="Input";var je=gt;function Tt(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,bt=Qe;function Nt(xt){return xt!=null}function At(xt){return!xt&&xt!==0}function Zt(xt){return["string","number"].includes((0,Be.Z)(xt))}function Yt(xt){var rt=void 0;return xt&&(Zt(xt.title)?rt=xt.title.toString():Zt(xt.label)&&(rt=xt.label.toString())),rt}function ut(xt,rt){bt?He.useLayoutEffect(xt,rt):He.useEffect(xt,rt)}function Ge(xt){var rt;return(rt=xt.key)!==null&&rt!==void 0?rt:xt.value}var kt=function(rt){rt.preventDefault(),rt.stopPropagation()},ln=function(rt){var Vt=rt.id,on=rt.prefixCls,xn=rt.values,An=rt.open,yt=rt.searchValue,cn=rt.autoClearSearchValue,On=rt.inputRef,ri=rt.placeholder,Wt=rt.disabled,Jt=rt.mode,hi=rt.showSearch,ci=rt.autoFocus,ui=rt.autoComplete,qn=rt.activeDescendantId,di=rt.tabIndex,li=rt.removeIcon,Ai=rt.maxTagCount,er=rt.maxTagTextLength,sr=rt.maxTagPlaceholder,vn=sr===void 0?function(uo){return"+ ".concat(uo.length," ...")}:sr,Nr=rt.tagRender,Dr=rt.onToggleOpen,ir=rt.onRemove,fn=rt.onInputChange,jn=rt.onInputPaste,Ei=rt.onInputKeyDown,zi=rt.onInputMouseDown,Ni=rt.onInputCompositionStart,Gi=rt.onInputCompositionEnd,ur=He.useRef(null),Qi=(0,He.useState)(0),rr=(0,Ze.Z)(Qi,2),fr=rr[0],Nn=rr[1],Jr=(0,He.useState)(!1),Ln=(0,Ze.Z)(Jr,2),Zr=Ln[0],co=Ln[1],Bi="".concat(on,"-selection"),Po=An||Jt==="multiple"&&cn===!1||Jt==="tags"?yt:"",ao=Jt==="tags"||Jt==="multiple"&&cn===!1||hi&&(An||Zr);ut(function(){Nn(ur.current.scrollWidth)},[Po]);function Vi(uo,Zo,ga,Pa,ia){return He.createElement("span",{className:ht()("".concat(Bi,"-item"),(0,_e.Z)({},"".concat(Bi,"-item-disabled"),ga)),title:Yt(uo)},He.createElement("span",{className:"".concat(Bi,"-item-content")},Zo),Pa&&He.createElement(se,{className:"".concat(Bi,"-item-remove"),onMouseDown:kt,onClick:ia,customizeIcon:li},"\xD7"))}function qi(uo,Zo,ga,Pa,ia){var Or=function(fo){kt(fo),Dr(!An)};return He.createElement("span",{onMouseDown:Or},Nr({label:Zo,value:uo,disabled:ga,closable:Pa,onClose:ia}))}function Hr(uo){var Zo=uo.disabled,ga=uo.label,Pa=uo.value,ia=!Wt&&!Zo,Or=ga;if(typeof er=="number"&&(typeof ga=="string"||typeof ga=="number")){var kr=String(Or);kr.length>er&&(Or="".concat(kr.slice(0,er),"..."))}var fo=function(To){To&&To.stopPropagation(),ir(uo)};return typeof Nr=="function"?qi(Pa,Or,Zo,ia,fo):Vi(uo,Or,Zo,ia,fo)}function ro(uo){var Zo=typeof vn=="function"?vn(uo):vn;return Vi({title:Zo},Zo,!1)}var xi=He.createElement("div",{className:"".concat(Bi,"-search"),style:{width:fr},onFocus:function(){co(!0)},onBlur:function(){co(!1)}},He.createElement(je,{ref:On,open:An,prefixCls:on,id:Vt,inputElement:null,disabled:Wt,autoFocus:ci,autoComplete:ui,editable:ao,activeDescendantId:qn,value:Po,onKeyDown:Ei,onMouseDown:zi,onChange:fn,onPaste:jn,onCompositionStart:Ni,onCompositionEnd:Gi,tabIndex:di,attrs:(0,ze.Z)(rt,!0)}),He.createElement("span",{ref:ur,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},Po,"\xA0")),tt=He.createElement(et.Z,{prefixCls:"".concat(Bi,"-overflow"),data:xn,renderItem:Hr,renderRest:ro,suffix:xi,itemKey:Ge,maxCount:Ai});return He.createElement(He.Fragment,null,tt,!xn.length&&!Po&&He.createElement("span",{className:"".concat(Bi,"-placeholder")},ri))},sn=ln,Bt=function(rt){var Vt=rt.inputElement,on=rt.prefixCls,xn=rt.id,An=rt.inputRef,yt=rt.disabled,cn=rt.autoFocus,On=rt.autoComplete,ri=rt.activeDescendantId,Wt=rt.mode,Jt=rt.open,hi=rt.values,ci=rt.placeholder,ui=rt.tabIndex,qn=rt.showSearch,di=rt.searchValue,li=rt.activeValue,Ai=rt.maxLength,er=rt.onInputKeyDown,sr=rt.onInputMouseDown,vn=rt.onInputChange,Nr=rt.onInputPaste,Dr=rt.onInputCompositionStart,ir=rt.onInputCompositionEnd,fn=rt.title,jn=He.useState(!1),Ei=(0,Ze.Z)(jn,2),zi=Ei[0],Ni=Ei[1],Gi=Wt==="combobox",ur=Gi||qn,Qi=hi[0],rr=di||"";Gi&&li&&!zi&&(rr=li),He.useEffect(function(){Gi&&Ni(!1)},[Gi,li]);var fr=Wt!=="combobox"&&!Jt&&!qn?!1:!!rr,Nn=fn===void 0?Yt(Qi):fn,Jr=function(){if(Qi)return null;var Zr=fr?{visibility:"hidden"}:void 0;return He.createElement("span",{className:"".concat(on,"-selection-placeholder"),style:Zr},ci)};return He.createElement(He.Fragment,null,He.createElement("span",{className:"".concat(on,"-selection-search")},He.createElement(je,{ref:An,prefixCls:on,id:xn,open:Jt,inputElement:Vt,disabled:yt,autoFocus:cn,autoComplete:On,editable:ur,activeDescendantId:ri,value:rr,onKeyDown:er,onMouseDown:sr,onChange:function(Zr){Ni(!0),vn(Zr)},onPaste:Nr,onCompositionStart:Dr,onCompositionEnd:ir,tabIndex:ui,attrs:(0,ze.Z)(rt,!0),maxLength:Gi?Ai:void 0})),!Gi&&Qi?He.createElement("span",{className:"".concat(on,"-selection-item"),title:Nn,style:fr?{visibility:"hidden"}:void 0},Qi.label):null,Jr())},Gt=Bt;function en(xt){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(xt)}var Bn=function(rt,Vt){var on=(0,He.useRef)(null),xn=(0,He.useRef)(!1),An=rt.prefixCls,yt=rt.open,cn=rt.mode,On=rt.showSearch,ri=rt.tokenWithEnter,Wt=rt.autoClearSearchValue,Jt=rt.onSearch,hi=rt.onSearchSubmit,ci=rt.onToggleOpen,ui=rt.onInputKeyDown,qn=rt.domRef;He.useImperativeHandle(Vt,function(){return{focus:function(){on.current.focus()},blur:function(){on.current.blur()}}});var di=Me(0),li=(0,Ze.Z)(di,2),Ai=li[0],er=li[1],sr=function(rr){var fr=rr.which;(fr===te.Z.UP||fr===te.Z.DOWN)&&rr.preventDefault(),ui&&ui(rr),fr===te.Z.ENTER&&cn==="tags"&&!xn.current&&!yt&&(hi==null||hi(rr.target.value)),en(fr)&&ci(!0)},vn=function(){er(!0)},Nr=(0,He.useRef)(null),Dr=function(rr){Jt(rr,!0,xn.current)!==!1&&ci(!0)},ir=function(){xn.current=!0},fn=function(rr){xn.current=!1,cn!=="combobox"&&Dr(rr.target.value)},jn=function(rr){var fr=rr.target.value;if(ri&&Nr.current&&/[\r\n]/.test(Nr.current)){var Nn=Nr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");fr=fr.replace(Nn,Nr.current)}Nr.current=null,Dr(fr)},Ei=function(rr){var fr=rr.clipboardData,Nn=fr.getData("text");Nr.current=Nn},zi=function(rr){var fr=rr.target;if(fr!==on.current){var Nn=document.body.style.msTouchAction!==void 0;Nn?setTimeout(function(){on.current.focus()}):on.current.focus()}},Ni=function(rr){var fr=Ai();rr.target!==on.current&&!fr&&cn!=="combobox"&&rr.preventDefault(),(cn!=="combobox"&&(!On||!fr)||!yt)&&(yt&&Wt!==!1&&Jt("",!0,!1),ci())},Gi={inputRef:on,onInputKeyDown:sr,onInputMouseDown:vn,onInputChange:jn,onInputPaste:Ei,onInputCompositionStart:ir,onInputCompositionEnd:fn},ur=cn==="multiple"||cn==="tags"?He.createElement(sn,(0,ce.Z)({},rt,Gi)):He.createElement(Gt,(0,ce.Z)({},rt,Gi));return He.createElement("div",{ref:qn,className:"".concat(An,"-selector"),onClick:zi,onMouseDown:Ni},ur)},rn=He.forwardRef(Bn);rn.displayName="Selector";var Cn=rn,ft=ve(35593),En=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Vn=function(rt){var Vt=rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Vt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Vt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Vt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Vt,adjustY:1},htmlRegion:"scroll"}}},Re=function(rt,Vt){var on=rt.prefixCls,xn=rt.disabled,An=rt.visible,yt=rt.children,cn=rt.popupElement,On=rt.animation,ri=rt.transitionName,Wt=rt.dropdownStyle,Jt=rt.dropdownClassName,hi=rt.direction,ci=hi===void 0?"ltr":hi,ui=rt.placement,qn=rt.builtinPlacements,di=rt.dropdownMatchSelectWidth,li=rt.dropdownRender,Ai=rt.dropdownAlign,er=rt.getPopupContainer,sr=rt.empty,vn=rt.getTriggerDOMNode,Nr=rt.onPopupVisibleChange,Dr=rt.onPopupMouseEnter,ir=(0,Ke.Z)(rt,En),fn="".concat(on,"-dropdown"),jn=cn;li&&(jn=li(cn));var Ei=He.useMemo(function(){return qn||Vn(di)},[qn,di]),zi=On?"".concat(fn,"-").concat(On):ri,Ni=typeof di=="number",Gi=He.useMemo(function(){return Ni?null:di===!1?"minWidth":"width"},[di,Ni]),ur=Wt;Ni&&(ur=(0,Ct.Z)((0,Ct.Z)({},ur),{},{width:di}));var Qi=He.useRef(null);return He.useImperativeHandle(Vt,function(){return{getPopupElement:function(){return Qi.current}}}),He.createElement(ft.Z,(0,ce.Z)({},ir,{showAction:Nr?["click"]:[],hideAction:Nr?["click"]:[],popupPlacement:ui||(ci==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ei,prefixCls:fn,popupTransitionName:zi,popup:He.createElement("div",{ref:Qi,onMouseEnter:Dr},jn),stretch:Gi,popupAlign:Ai,popupVisible:An,getPopupContainer:er,popupClassName:ht()(Jt,(0,_e.Z)({},"".concat(fn,"-empty"),sr)),popupStyle:ur,getTriggerDOMNode:vn,onPopupVisibleChange:Nr}),yt)},Ce=He.forwardRef(Re);Ce.displayName="SelectTrigger";var Pe=Ce,Ne=ve(4537);function ke(xt,rt){var Vt=xt.key,on;return"value"in xt&&(on=xt.value),Vt!=null?Vt:on!==void 0?on:"rc-index-key-".concat(rt)}function Se(xt,rt){var Vt=xt||{},on=Vt.label,xn=Vt.value,An=Vt.options,yt=Vt.groupLabel,cn=on||(rt?"children":"label");return{label:cn,value:xn||"value",options:An||"options",groupLabel:yt||cn}}function nt(xt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Vt=rt.fieldNames,on=rt.childrenAsData,xn=[],An=Se(Vt,!1),yt=An.label,cn=An.value,On=An.options,ri=An.groupLabel;function Wt(Jt,hi){Jt.forEach(function(ci){if(hi||!(On in ci)){var ui=ci[cn];xn.push({key:ke(ci,xn.length),groupOption:hi,data:ci,label:ci[yt],value:ui})}else{var qn=ci[ri];qn===void 0&&on&&(qn=ci.label),xn.push({key:ke(ci,xn.length),group:!0,data:ci,label:qn}),Wt(ci[On],!0)}})}return Wt(xt,!1),xn}function Pt(xt){var rt=(0,Ct.Z)({},xt);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return(0,ct.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}function qe(xt,rt){if(!rt||!rt.length)return null;var Vt=!1;function on(An,yt){var cn=(0,Ne.Z)(yt),On=cn[0],ri=cn.slice(1);if(!On)return[An];var Wt=An.split(On);return Vt=Vt||Wt.length>1,Wt.reduce(function(Jt,hi){return[].concat((0,De.Z)(Jt),(0,De.Z)(on(hi,ri)))},[]).filter(function(Jt){return Jt})}var xn=on(xt,rt);return Vt?xn:null}var Ue=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],St=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function vt(xt){return xt==="tags"||xt==="multiple"}var lt=He.forwardRef(function(xt,rt){var Vt,on,xn=xt.id,An=xt.prefixCls,yt=xt.className,cn=xt.showSearch,On=xt.tagRender,ri=xt.direction,Wt=xt.omitDomProps,Jt=xt.displayValues,hi=xt.onDisplayValuesChange,ci=xt.emptyOptions,ui=xt.notFoundContent,qn=ui===void 0?"Not Found":ui,di=xt.onClear,li=xt.mode,Ai=xt.disabled,er=xt.loading,sr=xt.getInputElement,vn=xt.getRawInputElement,Nr=xt.open,Dr=xt.defaultOpen,ir=xt.onDropdownVisibleChange,fn=xt.activeValue,jn=xt.onActiveValueChange,Ei=xt.activeDescendantId,zi=xt.searchValue,Ni=xt.autoClearSearchValue,Gi=xt.onSearch,ur=xt.onSearchSplit,Qi=xt.tokenSeparators,rr=xt.allowClear,fr=xt.suffixIcon,Nn=xt.clearIcon,Jr=xt.OptionList,Ln=xt.animation,Zr=xt.transitionName,co=xt.dropdownStyle,Bi=xt.dropdownClassName,Po=xt.dropdownMatchSelectWidth,ao=xt.dropdownRender,Vi=xt.dropdownAlign,qi=xt.placement,Hr=xt.builtinPlacements,ro=xt.getPopupContainer,xi=xt.showAction,tt=xi===void 0?[]:xi,uo=xt.onFocus,Zo=xt.onBlur,ga=xt.onKeyUp,Pa=xt.onKeyDown,ia=xt.onMouseDown,Or=(0,Ke.Z)(xt,Ue),kr=vt(li),fo=(cn!==void 0?cn:kr)||li==="combobox",jr=(0,Ct.Z)({},Or);St.forEach(function(Co){delete jr[Co]}),Wt==null||Wt.forEach(function(Co){delete jr[Co]});var To=He.useState(!1),qa=(0,Ze.Z)(To,2),Mr=qa[0],hr=qa[1];He.useEffect(function(){hr((0,Ae.Z)())},[]);var Xn=He.useRef(null),yr=He.useRef(null),wo=He.useRef(null),ua=He.useRef(null),No=He.useRef(null),yo=be(),ta=(0,Ze.Z)(yo,3),na=ta[0],Na=ta[1],ka=ta[2];He.useImperativeHandle(rt,function(){var Co,Uo;return{focus:(Co=ua.current)===null||Co===void 0?void 0:Co.focus,blur:(Uo=ua.current)===null||Uo===void 0?void 0:Uo.blur,scrollTo:function(ds){var es;return(es=No.current)===null||es===void 0?void 0:es.scrollTo(ds)}}});var is=He.useMemo(function(){var Co;if(li!=="combobox")return zi;var Uo=(Co=Jt[0])===null||Co===void 0?void 0:Co.value;return typeof Uo=="string"||typeof Uo=="number"?String(Uo):""},[zi,li,Jt]),gn=li==="combobox"&&typeof sr=="function"&&sr()||null,Oa=typeof vn=="function"&&vn(),Vl=(0,ee.x1)(yr,Oa==null||(Vt=Oa.props)===null||Vt===void 0?void 0:Vt.ref),Hs=He.useState(!1),wl=(0,Ze.Z)(Hs,2),Ma=wl[0],yu=wl[1];(0,dt.Z)(function(){yu(!0)},[]);var Cl=(0,mt.Z)(!1,{defaultValue:Dr,value:Nr}),ma=(0,Ze.Z)(Cl,2),Fo=ma[0],Ul=ma[1],$r=Ma?Fo:!1,Ko=!qn&&ci;(Ai||Ko&&$r&&li==="combobox")&&($r=!1);var So=Ko?!1:$r,Di=He.useCallback(function(Co){var Uo=Co!==void 0?Co:!$r;Ai||(Ul(Uo),$r!==Uo&&(ir==null||ir(Uo)))},[Ai,$r,Ul,ir]),Ga=He.useMemo(function(){return(Qi||[]).some(function(Co){return[` `,`\r `].includes(Co)})},[Qi]),$a=function(Uo,Ws,ds){var es=!0,Aa=Uo;jn==null||jn(null);var za=ds?null:qe(Uo,Qi);return li!=="combobox"&&za&&(Aa="",ur==null||ur(za),Di(!1),es=!1),Gi&&is!==Aa&&Gi(Aa,{source:Ws?"typing":"effect"}),es},bs=function(Uo){!Uo||!Uo.trim()||Gi(Uo,{source:"submit"})};He.useEffect(function(){!$r&&!kr&&li!=="combobox"&&$a("",!1,!1)},[$r]),He.useEffect(function(){Fo&&Ai&&Ul(!1),Ai&&Na(!1)},[Ai]);var El=Me(),Dl=(0,Ze.Z)(El,2),bi=Dl[0],Fa=Dl[1],cs=function(Uo){var Ws=bi(),ds=Uo.which;if(ds===te.Z.ENTER&&(li!=="combobox"&&Uo.preventDefault(),$r||Di(!0)),Fa(!!is),ds===te.Z.BACKSPACE&&!Ws&&kr&&!is&&Jt.length){for(var es=(0,De.Z)(Jt),Aa=null,za=es.length-1;za>=0;za-=1){var rs=es[za];if(!rs.disabled){es.splice(za,1),Aa=rs;break}}Aa&&hi(es,{type:"remove",values:[Aa]})}for(var Ka=arguments.length,Gs=new Array(Ka>1?Ka-1:0),$s=1;$s1?Ws-1:0),es=1;es1?za-1:0),Ka=1;Ka1&&arguments[1]!==void 0?arguments[1]:!1;return(0,bn.Z)(xt).map(function(Vt,on){if(!He.isValidElement(Vt)||!Vt.type)return null;var xn=Vt,An=xn.type.isSelectOptGroup,yt=xn.key,cn=xn.props,On=cn.children,ri=(0,Ke.Z)(cn,Yn);return rt||!An?ai(Vt):(0,Ct.Z)((0,Ct.Z)({key:"__RC_SELECT_GRP__".concat(yt===null?on:yt,"__"),label:yt},ri),{},{options:Wn(On)})}).filter(function(Vt){return Vt})}function Rn(xt,rt,Vt,on,xn){return He.useMemo(function(){var An=xt,yt=!xt;yt&&(An=Wn(rt));var cn=new Map,On=new Map,ri=function(hi,ci,ui){ui&&typeof ui=="string"&&hi.set(ci[ui],ci)};function Wt(Jt){for(var hi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ci=0;ci1&&arguments[1]!==void 0?arguments[1]:1,ro=jn.length,xi=0;xi1&&arguments[1]!==void 0?arguments[1]:!1;fr(qi);var ro={source:Hr?"keyboard":"mouse"},xi=jn[qi];if(!xi){qn(null,-1,ro);return}qn(xi.value,qi,ro)};(0,He.useEffect)(function(){Nn(di!==!1?Gi(0):-1)},[jn.length,ri]);var Jr=He.useCallback(function(Vi){return er.has(Vi)&&On!=="combobox"},[On,(0,De.Z)(er).toString(),er.size]);(0,He.useEffect)(function(){var Vi=setTimeout(function(){if(!cn&&yt&&er.size===1){var Hr=Array.from(er)[0],ro=jn.findIndex(function(xi){var tt=xi.data;return tt.value===Hr});ro!==-1&&(Nn(ro),Ni(ro))}});if(yt){var qi;(qi=Ei.current)===null||qi===void 0||qi.scrollTo(void 0)}return function(){return clearTimeout(Vi)}},[yt,ri,ui.length]);var Ln=function(qi){qi!==void 0&&li(qi,{selected:!er.has(qi)}),cn||Wt(!1)};if(He.useImperativeHandle(Vt,function(){return{onKeyDown:function(qi){var Hr=qi.which,ro=qi.ctrlKey;switch(Hr){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var xi=0;if(Hr===te.Z.UP?xi=-1:Hr===te.Z.DOWN?xi=1:nr()&&ro&&(Hr===te.Z.N?xi=1:Hr===te.Z.P&&(xi=-1)),xi!==0){var tt=Gi(rr+xi,xi);Ni(tt),Nn(tt,!0)}break}case te.Z.ENTER:{var uo=jn[rr];uo&&!uo.data.disabled?Ln(uo.value):Ln(void 0),yt&&qi.preventDefault();break}case te.Z.ESC:Wt(!1),yt&&qi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qi){Ni(qi)}}}),jn.length===0)return He.createElement("div",{role:"listbox",id:"".concat(An,"_list"),className:"".concat(fn,"-empty"),onMouseDown:zi},Jt);var Zr=Object.keys(sr).map(function(Vi){return sr[Vi]}),co=function(qi){return qi.label};function Bi(Vi,qi){var Hr=Vi.group;return{role:Hr?"presentation":"option",id:"".concat(An,"_list_").concat(qi)}}var Po=function(qi){var Hr=jn[qi];if(!Hr)return null;var ro=Hr.data||{},xi=ro.value,tt=Hr.group,uo=(0,ze.Z)(ro,!0),Zo=co(Hr);return Hr?He.createElement("div",(0,ce.Z)({"aria-label":typeof Zo=="string"&&!tt?Zo:null},uo,{key:qi},Bi(Hr,qi),{"aria-selected":Jr(xi)}),xi):null},ao={role:"listbox",id:"".concat(An,"_list")};return He.createElement(He.Fragment,null,vn&&He.createElement("div",(0,ce.Z)({},ao,{style:{height:0,width:0,overflow:"hidden"}}),Po(rr-1),Po(rr),Po(rr+1)),He.createElement(ti.Z,{itemKey:"key",ref:Ei,data:jn,height:Dr,itemHeight:ir,fullHeight:!1,onMouseDown:zi,onScroll:hi,virtual:vn,direction:Nr,innerProps:vn?null:ao},function(Vi,qi){var Hr,ro=Vi.group,xi=Vi.groupOption,tt=Vi.data,uo=Vi.label,Zo=Vi.value,ga=tt.key;if(ro){var Pa,ia=(Pa=tt.title)!==null&&Pa!==void 0?Pa:Le(uo)?uo.toString():void 0;return He.createElement("div",{className:ht()(fn,"".concat(fn,"-group")),title:ia},uo!==void 0?uo:ga)}var Or=tt.disabled,kr=tt.title,fo=tt.children,jr=tt.style,To=tt.className,qa=(0,Ke.Z)(tt,ji),Mr=(0,$n.Z)(qa,Zr),hr=Jr(Zo),Xn="".concat(fn,"-option"),yr=ht()(fn,Xn,To,(Hr={},(0,_e.Z)(Hr,"".concat(Xn,"-grouped"),xi),(0,_e.Z)(Hr,"".concat(Xn,"-active"),rr===qi&&!Or),(0,_e.Z)(Hr,"".concat(Xn,"-disabled"),Or),(0,_e.Z)(Hr,"".concat(Xn,"-selected"),hr),Hr)),wo=co(Vi),ua=!Ai||typeof Ai=="function"||hr,No=typeof wo=="number"?wo:wo||Zo,yo=Le(No)?No.toString():void 0;return kr!==void 0&&(yo=kr),He.createElement("div",(0,ce.Z)({},(0,ze.Z)(Mr),vn?{}:Bi(Vi,qi),{"aria-selected":hr,className:yr,title:yo,onMouseMove:function(){rr===qi||Or||Nn(qi)},onClick:function(){Or||Ln(Zo)},style:jr}),He.createElement("div",{className:"".concat(Xn,"-content")},No),He.isValidElement(Ai)||hr,ua&&He.createElement(se,{className:"".concat(fn,"-option-state"),customizeIcon:Ai,customizeIconProps:{isSelected:hr}},hr?"\u2713":null))}))},Hi=He.forwardRef(si);Hi.displayName="OptionList";var hn=Hi;function ni(xt){var rt=xt.mode,Vt=xt.options,on=xt.children,xn=xt.backfill,An=xt.allowClear,yt=xt.placeholder,cn=xt.getInputElement,On=xt.showSearch,ri=xt.onSearch,Wt=xt.defaultOpen,Jt=xt.autoFocus,hi=xt.labelInValue,ci=xt.value,ui=xt.inputValue,qn=xt.optionLabelProp,di=isMultiple(rt),li=On!==void 0?On:di||rt==="combobox",Ai=Vt||convertChildrenToData(on);if(warning(rt!=="tags"||Ai.every(function(Nr){return!Nr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),rt==="tags"||rt==="combobox"){var er=Ai.some(function(Nr){return Nr.options?Nr.options.some(function(Dr){return typeof("value"in Dr?Dr.value:Dr.key)=="number"}):typeof("value"in Nr?Nr.value:Nr.key)=="number"});warning(!er,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(rt!=="combobox"||!qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(rt==="combobox"||!xn,"`backfill` only works with `combobox` mode."),warning(rt==="combobox"||!cn,"`getInputElement` only work with `combobox` mode."),noteOnce(rt!=="combobox"||!cn||!An||!yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ri&&!li&&rt!=="combobox"&&rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Wt||Jt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ci!=null){var sr=toArray(ci);warning(!hi||sr.every(function(Nr){return _typeof(Nr)==="object"&&("key"in Nr||"value"in Nr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!di||Array.isArray(ci),"`value` should be array when `mode` is `multiple` or `tags`")}if(on){var vn=null;toNodeArray(on).some(function(Nr){if(!React.isValidElement(Nr)||!Nr.type)return!1;var Dr=Nr,ir=Dr.type;if(ir.isSelectOption)return!1;if(ir.isSelectOptGroup){var fn=toNodeArray(Nr.props.children).every(function(jn){return!React.isValidElement(jn)||!Nr.type||jn.type.isSelectOption?!0:(vn=jn.type,!1)});return!fn}return vn=ir,!0}),vn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vn.displayName||vn.name||vn,"`.")),warning(ui===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function vi(xt,rt){if(xt){var Vt=function on(xn){for(var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=0;yt2&&arguments[2]!==void 0?arguments[2]:{},Di=So.source,Ga=Di===void 0?"keyboard":Di;Vl(Ko),yt&&on==="combobox"&&$r!==null&&Ga==="keyboard"&&ka(String($r))},[yt,on]),Ma=function(Ko,So,Di){var Ga=function(){var Il,Qr=To(Ko);return[rr?{label:Qr==null?void 0:Qr[Bi.label],value:Ko,key:(Il=Qr==null?void 0:Qr.key)!==null&&Il!==void 0?Il:Ko}:Ko,Pt(Qr)]};if(So&&ci){var $a=Ga(),bs=(0,Ze.Z)($a,2),El=bs[0],Dl=bs[1];ci(El,Dl)}else if(!So&&ui&&Di!=="clear"){var bi=Ga(),Fa=(0,Ze.Z)(bi,2),cs=Fa[0],bl=Fa[1];ui(cs,bl)}},yu=ii(function($r,Ko){var So,Di=Ln?Ko.selected:!0;Di?So=Ln?[].concat((0,De.Z)(jr),[$r]):[$r]:So=jr.filter(function(Ga){return Ga.value!==$r}),yo(So),Ma($r,Di),on==="combobox"?ka(""):(!vt||hi)&&(qi(""),ka(""))}),Cl=function(Ko,So){yo(Ko);var Di=So.type,Ga=So.values;(Di==="remove"||Di==="clear")&&Ga.forEach(function($a){Ma($a.value,!1,Di)})},ma=function(Ko,So){if(qi(Ko),ka(null),So.source==="submit"){var Di=(Ko||"").trim();if(Di){var Ga=Array.from(new Set([].concat((0,De.Z)(Mr),[Di])));yo(Ga),Ma(Di,!0),qi("")}return}So.source!=="blur"&&(on==="combobox"&&yo(Ko),Wt==null||Wt(Ko))},Fo=function(Ko){var So=Ko;on!=="tags"&&(So=Ko.map(function(Ga){var $a=xi.get(Ga);return $a==null?void 0:$a.value}).filter(function(Ga){return Ga!==void 0}));var Di=Array.from(new Set([].concat((0,De.Z)(Mr),(0,De.Z)(So))));yo(Di),Di.forEach(function(Ga){Ma(Ga,!0)})},Ul=He.useMemo(function(){var $r=fn!==!1&&di!==!1;return(0,Ct.Z)((0,Ct.Z)({},Hr),{},{flattenOptions:No,onActiveValue:wl,defaultActiveFirstOption:Hs,onSelect:yu,menuItemSelectedIcon:ir,rawValues:Mr,fieldNames:Bi,virtual:$r,direction:jn,listHeight:zi,listItemHeight:Gi,childrenAsData:Zr})},[Hr,No,wl,Hs,yu,ir,Mr,Bi,fn,di,zi,Gi,Zr]);return He.createElement(mi.Provider,{value:Ul},He.createElement(Dt,(0,ce.Z)({},Nn,{id:Jr,prefixCls:An,ref:rt,omitDomProps:Dn,mode:on,displayValues:qa,onDisplayValuesChange:Cl,direction:jn,searchValue:Vi,onSearch:ma,autoClearSearchValue:hi,onSearchSplit:Fo,dropdownMatchSelectWidth:di,OptionList:hn,emptyOptions:!No.length,activeValue:Na,activeDescendantId:"".concat(Jr,"_list_").concat(Oa)})))}),Ve=Ot;Ve.Option=Ji,Ve.OptGroup=gi;var Ut=Ve,tn=Ut},9296:function(Pn,an,ve){"use strict";ve.r(an),ve.d(an,{ResizableTextArea:function(){return gt},default:function(){return At}});var ce=ve(96663),De=ve(44127),_e=ve(90493),Ct=ve(20135),Ze=ve(72071),Ke=ve(6620),Be=ve(19127),mt=ve(92310),ct=ve.n(mt),He=ve(93681),Et=ve(5643),ht=ve(18929),dt=ve(59301),Ae=ve(29301),te=ve(34280),ee=ve(16089),he=` 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={},me;function we(Zt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=Zt.getAttribute("id")||Zt.getAttribute("data-reactid")||Zt.getAttribute("name");if(Yt&&de[ut])return de[ut];var Ge=window.getComputedStyle(Zt),kt=Ge.getPropertyValue("box-sizing")||Ge.getPropertyValue("-moz-box-sizing")||Ge.getPropertyValue("-webkit-box-sizing"),ln=parseFloat(Ge.getPropertyValue("padding-bottom"))+parseFloat(Ge.getPropertyValue("padding-top")),sn=parseFloat(Ge.getPropertyValue("border-bottom-width"))+parseFloat(Ge.getPropertyValue("border-top-width")),Bt=se.map(function(en){return"".concat(en,":").concat(Ge.getPropertyValue(en))}).join(";"),Gt={sizingStyle:Bt,paddingSize:ln,borderSize:sn,boxSizing:kt};return Yt&&ut&&(de[ut]=Gt),Gt}function be(Zt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;me||(me=document.createElement("textarea"),me.setAttribute("tab-index","-1"),me.setAttribute("aria-hidden","true"),document.body.appendChild(me)),Zt.getAttribute("wrap")?me.setAttribute("wrap",Zt.getAttribute("wrap")):me.removeAttribute("wrap");var kt=we(Zt,Yt),ln=kt.paddingSize,sn=kt.borderSize,Bt=kt.boxSizing,Gt=kt.sizingStyle;me.setAttribute("style","".concat(Gt,";").concat(he)),me.value=Zt.value||Zt.placeholder||"";var en=void 0,Bn=void 0,rn,Cn=me.scrollHeight;if(Bt==="border-box"?Cn+=sn:Bt==="content-box"&&(Cn-=ln),ut!==null||Ge!==null){me.value=" ";var ft=me.scrollHeight-ln;ut!==null&&(en=ft*ut,Bt==="border-box"&&(en=en+ln+sn),Cn=Math.max(en,Cn)),Ge!==null&&(Bn=ft*Ge,Bt==="border-box"&&(Bn=Bn+ln+sn),rn=Cn>Bn?"":"hidden",Cn=Math.min(Bn,Cn))}var En={height:Cn,overflowY:rn,resize:"none"};return en&&(En.minHeight=en),Bn&&(En.maxHeight=Bn),En}var Me=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,ze=1,et=2,$e=dt.forwardRef(function(Zt,Yt){var ut=Zt,Ge=ut.prefixCls,kt=ut.onPressEnter,ln=ut.defaultValue,sn=ut.value,Bt=ut.autoSize,Gt=ut.onResize,en=ut.className,Bn=ut.style,rn=ut.disabled,Cn=ut.onChange,ft=ut.onInternalAutoSize,En=(0,Ke.Z)(ut,Me),Vn=(0,ht.Z)(ln,{value:sn,postState:function(gi){return gi!=null?gi:""}}),Re=(0,Ze.Z)(Vn,2),Ce=Re[0],Pe=Re[1],Ne=function(gi){Pe(gi.target.value),Cn==null||Cn(gi)},ke=dt.useRef();dt.useImperativeHandle(Yt,function(){return{textArea:ke.current}});var Se=dt.useMemo(function(){return Bt&&(0,Ct.Z)(Bt)==="object"?[Bt.minRows,Bt.maxRows]:[]},[Bt]),nt=(0,Ze.Z)(Se,2),Pt=nt[0],qe=nt[1],Ue=!!Bt,St=function(){try{if(document.activeElement===ke.current){var gi=ke.current,Ri=gi.selectionStart,Ji=gi.selectionEnd,Un=gi.scrollTop;ke.current.setSelectionRange(Ri,Ji),ke.current.scrollTop=Un}}catch($n){}},vt=dt.useState(et),lt=(0,Ze.Z)(vt,2),Dt=lt[0],un=lt[1],Xt=dt.useState(),$t=(0,Ze.Z)(Xt,2),wn=$t[0],bn=$t[1],pn=function(){un(Ie)};(0,te.Z)(function(){Ue&&pn()},[sn,Pt,qe,Ue]),(0,te.Z)(function(){if(Dt===Ie)un(ze);else if(Dt===ze){var pi=be(ke.current,!1,Pt,qe);un(et),bn(pi)}else St()},[Dt]);var Yn=dt.useRef(),ai=function(){ee.Z.cancel(Yn.current)},Wn=function(gi){Dt===et&&(Gt==null||Gt(gi),Bt&&(ai(),Yn.current=(0,ee.Z)(function(){pn()})))};dt.useEffect(function(){return ai},[]);var Rn=Ue?wn:null,ii=(0,De.Z)((0,De.Z)({},Bn),Rn);return(Dt===Ie||Dt===ze)&&(ii.overflowY="hidden",ii.overflowX="hidden"),dt.createElement(Ae.Z,{onResize:Wn,disabled:!(Bt||Gt)},dt.createElement("textarea",(0,ce.Z)({},En,{ref:ke,style:ii,className:ct()(Ge,en,(0,_e.Z)({},"".concat(Ge,"-disabled"),rn)),disabled:rn,value:Ce,onChange:Ne})))}),gt=$e,je=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Tt(Zt,Yt){return(0,Be.Z)(Zt||"").slice(0,Yt).join("")}function Qe(Zt,Yt,ut,Ge){var kt=ut;return Zt?kt=Tt(ut,Ge):(0,Be.Z)(Yt||"").lengthGe&&(kt=Yt),kt}var bt=dt.forwardRef(function(Zt,Yt){var ut,Ge=Zt.defaultValue,kt=Zt.value,ln=Zt.onFocus,sn=Zt.onBlur,Bt=Zt.onChange,Gt=Zt.allowClear,en=Zt.maxLength,Bn=Zt.onCompositionStart,rn=Zt.onCompositionEnd,Cn=Zt.suffix,ft=Zt.prefixCls,En=ft===void 0?"rc-textarea":ft,Vn=Zt.classes,Re=Zt.showCount,Ce=Zt.className,Pe=Zt.style,Ne=Zt.disabled,ke=Zt.hidden,Se=Zt.classNames,nt=Zt.styles,Pt=Zt.onResize,qe=(0,Ke.Z)(Zt,je),Ue=(0,ht.Z)(Ge,{value:kt,defaultValue:Ge}),St=(0,Ze.Z)(Ue,2),vt=St[0],lt=St[1],Dt=(0,dt.useRef)(null),un=dt.useState(!1),Xt=(0,Ze.Z)(un,2),$t=Xt[0],wn=Xt[1],bn=dt.useState(!1),pn=(0,Ze.Z)(bn,2),Yn=pn[0],ai=pn[1],Wn=dt.useRef(),Rn=dt.useRef(0),ii=dt.useState(null),pi=(0,Ze.Z)(ii,2),gi=pi[0],Ri=pi[1],Ji=function(){var Ft;(Ft=Dt.current)===null||Ft===void 0||Ft.textArea.focus()};(0,dt.useImperativeHandle)(Yt,function(){return{resizableTextArea:Dt.current,focus:Ji,blur:function(){var Ft;(Ft=Dt.current)===null||Ft===void 0||Ft.textArea.blur()}}}),(0,dt.useEffect)(function(){wn(function(Dn){return!Ne&&Dn})},[Ne]);var Un=Number(en)>0,$n=function(Ft){ai(!0),Wn.current=vt,Rn.current=Ft.currentTarget.selectionStart,Bn==null||Bn(Ft)},ti=function(Ft){ai(!1);var Ot=Ft.currentTarget.value;if(Un){var Ve,Ut=Rn.current>=en+1||Rn.current===((Ve=Wn.current)===null||Ve===void 0?void 0:Ve.length);Ot=Qe(Ut,Wn.current,Ot,en)}Ot!==vt&&(lt(Ot),(0,Et.rJ)(Ft.currentTarget,Ft,Bt,Ot)),rn==null||rn(Ft)},Pi=function(Ft){var Ot=Ft.target.value;if(!Yn&&Un){var Ve=Ft.target.selectionStart>=en+1||Ft.target.selectionStart===Ot.length||!Ft.target.selectionStart;Ot=Qe(Ve,vt,Ot,en)}lt(Ot),(0,Et.rJ)(Ft.currentTarget,Ft,Bt,Ot)},mi=function(Ft){var Ot=qe.onPressEnter,Ve=qe.onKeyDown;Ft.key==="Enter"&&Ot&&Ot(Ft),Ve==null||Ve(Ft)},nr=function(Ft){wn(!0),ln==null||ln(Ft)},ji=function(Ft){wn(!1),sn==null||sn(Ft)},Le=function(Ft){var Ot;lt(""),Ji(),(0,Et.rJ)((Ot=Dt.current)===null||Ot===void 0?void 0:Ot.textArea,Ft,Bt)},si=(0,Et.D7)(vt);!Yn&&Un&&kt==null&&(si=Tt(si,en));var Hi=Cn,hn;if(Re){var ni=(0,Be.Z)(si).length;(0,Ct.Z)(Re)==="object"?hn=Re.formatter({value:si,count:ni,maxLength:en}):hn="".concat(ni).concat(Un?" / ".concat(en):""),Hi=dt.createElement(dt.Fragment,null,Hi,dt.createElement("span",{className:ct()("".concat(En,"-data-count"),Se==null?void 0:Se.count),style:nt==null?void 0:nt.count},hn))}var vi=function(Ft){var Ot;Pt==null||Pt(Ft),(Ot=Dt.current)!==null&&Ot!==void 0&&Ot.textArea.style.height&&Ri(!0)},Fi=!qe.autoSize&&!Re&&!Gt,_n=dt.createElement(He.BaseInput,{value:si,allowClear:Gt,handleReset:Le,suffix:Hi,prefixCls:En,classes:{affixWrapper:ct()(Vn==null?void 0:Vn.affixWrapper,(ut={},(0,_e.Z)(ut,"".concat(En,"-show-count"),Re),(0,_e.Z)(ut,"".concat(En,"-textarea-allow-clear"),Gt),ut))},disabled:Ne,focused:$t,className:Ce,style:(0,De.Z)((0,De.Z)({},Pe),gi&&!Fi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hn=="string"?hn:void 0}},hidden:ke,inputElement:dt.createElement(gt,(0,ce.Z)({},qe,{onKeyDown:mi,onChange:Pi,onFocus:nr,onBlur:ji,onCompositionStart:$n,onCompositionEnd:ti,className:Se==null?void 0:Se.textarea,style:(0,De.Z)((0,De.Z)({},nt==null?void 0:nt.textarea),{},{resize:Pe==null?void 0:Pe.resize}),disabled:Ne,prefixCls:En,onResize:vi,ref:Dt}))});return _n}),Nt=bt,At=Nt},39417:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ze}});var ce=ve(96663),De=ve(90493),_e=ve(6620),Ct=ve(44127),Ze=ve(52884),Ke=ve(95727),Be=ve(89866),mt=ve(65711),ct=ve(85745),He=ve(92310),Et=ve.n(He),ht=ve(26112),dt=ve(59301),Ae=ve(39378),te=function($e){for(var gt=$e.prefixCls,je=$e.level,Tt=$e.isStart,Qe=$e.isEnd,bt="".concat(gt,"-indent-unit"),Nt=[],At=0;At0&&arguments[0]!==void 0?arguments[0]:[],Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=Pe.length,Se=Ne.length;if(Math.abs(ke-Se)!==1)return{add:!1,key:null};function nt(Pt,qe){var Ue=new Map;Pt.forEach(function(vt){Ue.set(vt,!0)});var St=qe.filter(function(vt){return!Ue.has(vt)});return St.length===1?St[0]:null}return ke ").concat(Ne);return Ne}var en=ee.forwardRef(function(Pe,Ne){var ke=Pe.prefixCls,Se=Pe.data,nt=Pe.selectable,Pt=Pe.checkable,qe=Pe.expandedKeys,Ue=Pe.selectedKeys,St=Pe.checkedKeys,vt=Pe.loadedKeys,lt=Pe.loadingKeys,Dt=Pe.halfCheckedKeys,un=Pe.keyEntities,Xt=Pe.disabled,$t=Pe.dragging,wn=Pe.dragOverNodeKey,bn=Pe.dropPosition,pn=Pe.motion,Yn=Pe.height,ai=Pe.itemHeight,Wn=Pe.virtual,Rn=Pe.focusable,ii=Pe.activeItem,pi=Pe.focused,gi=Pe.tabIndex,Ri=Pe.onKeyDown,Ji=Pe.onFocus,Un=Pe.onBlur,$n=Pe.onActiveChange,ti=Pe.onListChangeStart,Pi=Pe.onListChangeEnd,mi=(0,we.Z)(Pe,At),nr=ee.useRef(null),ji=ee.useRef(null);ee.useImperativeHandle(Ne,function(){return{scrollTo:function(Jt){nr.current.scrollTo(Jt)},getIndentWidth:function(){return ji.current.offsetWidth}}});var Le=ee.useState(qe),si=(0,me.Z)(Le,2),Hi=si[0],hn=si[1],ni=ee.useState(Se),vi=(0,me.Z)(ni,2),Fi=vi[0],_n=vi[1],Dn=ee.useState(Se),Ft=(0,me.Z)(Dn,2),Ot=Ft[0],Ve=Ft[1],Ut=ee.useState([]),tn=(0,me.Z)(Ut,2),xt=tn[0],rt=tn[1],Vt=ee.useState(null),on=(0,me.Z)(Vt,2),xn=on[0],An=on[1],yt=ee.useRef(Se);yt.current=Se;function cn(){var Wt=yt.current;_n(Wt),Ve(Wt),rt([]),An(null),Pi()}(0,be.Z)(function(){hn(qe);var Wt=bt(Hi,qe);if(Wt.key!==null)if(Wt.add){var Jt=Fi.findIndex(function(li){var Ai=li.key;return Ai===Wt.key}),hi=sn(Nt(Fi,Se,Wt.key),Wn,Yn,ai),ci=Fi.slice();ci.splice(Jt+1,0,ln),Ve(ci),rt(hi),An("show")}else{var ui=Se.findIndex(function(li){var Ai=li.key;return Ai===Wt.key}),qn=sn(Nt(Se,Fi,Wt.key),Wn,Yn,ai),di=Se.slice();di.splice(ui+1,0,ln),Ve(di),rt(qn),An("hide")}else Fi!==Se&&(_n(Se),Ve(Se))},[qe,Se]),ee.useEffect(function(){$t||cn()},[$t]);var On=pn?Ot:Se,ri={expandedKeys:qe,selectedKeys:Ue,loadedKeys:vt,loadingKeys:lt,checkedKeys:St,halfCheckedKeys:Dt,dragOverNodeKey:wn,dropPosition:bn,keyEntities:un};return ee.createElement(ee.Fragment,null,pi&&ii&&ee.createElement("span",{style:Zt,"aria-live":"assertive"},Gt(ii)),ee.createElement("div",null,ee.createElement("input",{style:Zt,disabled:Rn===!1||Xt,tabIndex:Rn!==!1?gi:null,onKeyDown:Ri,onFocus:Ji,onBlur:Un,value:"",onChange:Yt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(ke,"-indent")},ee.createElement("div",{ref:ji,className:"".concat(ke,"-indent-unit")}))),ee.createElement(Me.Z,(0,ce.Z)({},mi,{data:On,itemKey:Bt,height:Yn,fullHeight:!1,virtual:Wn,itemHeight:ai,prefixCls:"".concat(ke,"-list"),ref:nr,onVisibleChange:function(Jt,hi){var ci=new Set(Jt),ui=hi.filter(function(qn){return!ci.has(qn)});ui.some(function(qn){return Bt(qn)===ut})&&cn()}}),function(Wt){var Jt=Wt.pos,hi=(0,ce.Z)({},(de(Wt.data),Wt.data)),ci=Wt.title,ui=Wt.key,qn=Wt.isStart,di=Wt.isEnd,li=(0,$e.km)(ui,Jt);delete hi.key,delete hi.children;var Ai=(0,$e.H8)(li,ri);return ee.createElement(Qe,(0,ce.Z)({},hi,Ai,{title:ci,active:!!ii&&ui===ii.key,pos:Jt,data:Wt.data,isStart:qn,isEnd:di,motion:pn,motionNodes:ui===ut?xt:null,motionType:xn,onMotionStart:ti,onMotionEnd:cn,treeNodeRequiredProps:ri,onMouseMove:function(){$n(null)}}))}))});en.displayName="NodeList";var Bn=en,rn=ve(35654),Cn=ve(90782),ft=ve(67841),En=10,Vn=function(Pe){(0,ct.Z)(ke,Pe);var Ne=(0,He.Z)(ke);function ke(){var Se;(0,Ke.Z)(this,ke);for(var nt=arguments.length,Pt=new Array(nt),qe=0;qe2&&arguments[2]!==void 0?arguments[2]:!1,Dt=Se.state,un=Dt.dragChildrenKeys,Xt=Dt.dropPosition,$t=Dt.dropTargetKey,wn=Dt.dropTargetPos,bn=Dt.dropAllowed;if(bn){var pn=Se.props.onDrop;if(Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),$t!==null){var Yn=(0,Ct.Z)((0,Ct.Z)({},(0,$e.H8)($t,Se.getTreeNodeRequiredProps())),{},{active:((vt=Se.getActiveItem())===null||vt===void 0?void 0:vt.key)===$t,data:(0,ft.Z)(Se.state.keyEntities,$t).node}),ai=un.indexOf($t)!==-1;(0,te.ZP)(!ai,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Wn=(0,rn.yx)(wn),Rn={event:Ue,node:(0,$e.F)(Yn),dragNode:Se.dragNode?(0,$e.F)(Se.dragNode.props):null,dragNodesKeys:[Se.dragNode.props.eventKey].concat(un),dropToGap:Xt!==0,dropPosition:Xt+Number(Wn[Wn.length-1])};lt||pn==null||pn(Rn),Se.dragNode=null}}},Se.cleanDragState=function(){var Ue=Se.state.draggingNodeKey;Ue!==null&&Se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Se.dragStartMousePosition=null,Se.currentMouseOverDroppableNodeKey=null},Se.triggerExpandActionExpand=function(Ue,St){var vt=Se.state,lt=vt.expandedKeys,Dt=vt.flattenNodes,un=St.expanded,Xt=St.key,$t=St.isLeaf;if(!($t||Ue.shiftKey||Ue.metaKey||Ue.ctrlKey)){var wn=Dt.filter(function(pn){return pn.key===Xt})[0],bn=(0,$e.F)((0,Ct.Z)((0,Ct.Z)({},(0,$e.H8)(Xt,Se.getTreeNodeRequiredProps())),{},{data:wn.data}));Se.setExpandedKeys(un?(0,rn._5)(lt,Xt):(0,rn.L0)(lt,Xt)),Se.onNodeExpand(Ue,bn)}},Se.onNodeClick=function(Ue,St){var vt=Se.props,lt=vt.onClick,Dt=vt.expandAction;Dt==="click"&&Se.triggerExpandActionExpand(Ue,St),lt==null||lt(Ue,St)},Se.onNodeDoubleClick=function(Ue,St){var vt=Se.props,lt=vt.onDoubleClick,Dt=vt.expandAction;Dt==="doubleClick"&&Se.triggerExpandActionExpand(Ue,St),lt==null||lt(Ue,St)},Se.onNodeSelect=function(Ue,St){var vt=Se.state.selectedKeys,lt=Se.state,Dt=lt.keyEntities,un=lt.fieldNames,Xt=Se.props,$t=Xt.onSelect,wn=Xt.multiple,bn=St.selected,pn=St[un.key],Yn=!bn;Yn?wn?vt=(0,rn.L0)(vt,pn):vt=[pn]:vt=(0,rn._5)(vt,pn);var ai=vt.map(function(Wn){var Rn=(0,ft.Z)(Dt,Wn);return Rn?Rn.node:null}).filter(function(Wn){return Wn});Se.setUncontrolledState({selectedKeys:vt}),$t==null||$t(vt,{event:"select",selected:Yn,node:St,selectedNodes:ai,nativeEvent:Ue.nativeEvent})},Se.onNodeCheck=function(Ue,St,vt){var lt=Se.state,Dt=lt.keyEntities,un=lt.checkedKeys,Xt=lt.halfCheckedKeys,$t=Se.props,wn=$t.checkStrictly,bn=$t.onCheck,pn=St.key,Yn,ai={event:"check",node:St,checked:vt,nativeEvent:Ue.nativeEvent};if(wn){var Wn=vt?(0,rn.L0)(un,pn):(0,rn._5)(un,pn),Rn=(0,rn._5)(Xt,pn);Yn={checked:Wn,halfChecked:Rn},ai.checkedNodes=Wn.map(function(Un){return(0,ft.Z)(Dt,Un)}).filter(function(Un){return Un}).map(function(Un){return Un.node}),Se.setUncontrolledState({checkedKeys:Wn})}else{var ii=(0,Cn.S)([].concat((0,Ze.Z)(un),[pn]),!0,Dt),pi=ii.checkedKeys,gi=ii.halfCheckedKeys;if(!vt){var Ri=new Set(pi);Ri.delete(pn);var Ji=(0,Cn.S)(Array.from(Ri),{checked:!1,halfCheckedKeys:gi},Dt);pi=Ji.checkedKeys,gi=Ji.halfCheckedKeys}Yn=pi,ai.checkedNodes=[],ai.checkedNodesPositions=[],ai.halfCheckedKeys=gi,pi.forEach(function(Un){var $n=(0,ft.Z)(Dt,Un);if($n){var ti=$n.node,Pi=$n.pos;ai.checkedNodes.push(ti),ai.checkedNodesPositions.push({node:ti,pos:Pi})}}),Se.setUncontrolledState({checkedKeys:pi},!1,{halfCheckedKeys:gi})}bn==null||bn(Yn,ai)},Se.onNodeLoad=function(Ue){var St=Ue.key,vt=new Promise(function(lt,Dt){Se.setState(function(un){var Xt=un.loadedKeys,$t=Xt===void 0?[]:Xt,wn=un.loadingKeys,bn=wn===void 0?[]:wn,pn=Se.props,Yn=pn.loadData,ai=pn.onLoad;if(!Yn||$t.indexOf(St)!==-1||bn.indexOf(St)!==-1)return null;var Wn=Yn(Ue);return Wn.then(function(){var Rn=Se.state.loadedKeys,ii=(0,rn.L0)(Rn,St);ai==null||ai(ii,{event:"load",node:Ue}),Se.setUncontrolledState({loadedKeys:ii}),Se.setState(function(pi){return{loadingKeys:(0,rn._5)(pi.loadingKeys,St)}}),lt()}).catch(function(Rn){if(Se.setState(function(pi){return{loadingKeys:(0,rn._5)(pi.loadingKeys,St)}}),Se.loadingRetryTimes[St]=(Se.loadingRetryTimes[St]||0)+1,Se.loadingRetryTimes[St]>=En){var ii=Se.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Se.setUncontrolledState({loadedKeys:(0,rn.L0)(ii,St)}),lt()}Dt(Rn)}),{loadingKeys:(0,rn.L0)(bn,St)}})});return vt.catch(function(){}),vt},Se.onNodeMouseEnter=function(Ue,St){var vt=Se.props.onMouseEnter;vt==null||vt({event:Ue,node:St})},Se.onNodeMouseLeave=function(Ue,St){var vt=Se.props.onMouseLeave;vt==null||vt({event:Ue,node:St})},Se.onNodeContextMenu=function(Ue,St){var vt=Se.props.onRightClick;vt&&(Ue.preventDefault(),vt({event:Ue,node:St}))},Se.onFocus=function(){var Ue=Se.props.onFocus;Se.setState({focused:!0});for(var St=arguments.length,vt=new Array(St),lt=0;lt1&&arguments[1]!==void 0?arguments[1]:!1,vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Se.destroyed){var lt=!1,Dt=!0,un={};Object.keys(Ue).forEach(function(Xt){if(Xt in Se.props){Dt=!1;return}lt=!0,un[Xt]=Ue[Xt]}),lt&&(!St||Dt)&&Se.setState((0,Ct.Z)((0,Ct.Z)({},un),vt))}},Se.scrollTo=function(Ue){Se.listRef.current.scrollTo(Ue)},Se}return(0,Be.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var nt=this.props.activeKey;nt!==void 0&&nt!==this.state.activeKey&&(this.setState({activeKey:nt}),nt!==null&&this.scrollTo({key:nt}))}},{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 nt,Pt=this.state,qe=Pt.focused,Ue=Pt.flattenNodes,St=Pt.keyEntities,vt=Pt.draggingNodeKey,lt=Pt.activeKey,Dt=Pt.dropLevelOffset,un=Pt.dropContainerKey,Xt=Pt.dropTargetKey,$t=Pt.dropPosition,wn=Pt.dragOverNodeKey,bn=Pt.indent,pn=this.props,Yn=pn.prefixCls,ai=pn.className,Wn=pn.style,Rn=pn.showLine,ii=pn.focusable,pi=pn.tabIndex,gi=pi===void 0?0:pi,Ri=pn.selectable,Ji=pn.showIcon,Un=pn.icon,$n=pn.switcherIcon,ti=pn.draggable,Pi=pn.checkable,mi=pn.checkStrictly,nr=pn.disabled,ji=pn.motion,Le=pn.loadData,si=pn.filterTreeNode,Hi=pn.height,hn=pn.itemHeight,ni=pn.virtual,vi=pn.titleRender,Fi=pn.dropIndicatorRender,_n=pn.onContextMenu,Dn=pn.onScroll,Ft=pn.direction,Ot=pn.rootClassName,Ve=pn.rootStyle,Ut=(0,Ae.Z)(this.props,{aria:!0,data:!0}),tn;return ti&&((0,_e.Z)(ti)==="object"?tn=ti:typeof ti=="function"?tn={nodeDraggable:ti}:tn={}),ee.createElement(he.k.Provider,{value:{prefixCls:Yn,selectable:Ri,showIcon:Ji,icon:Un,switcherIcon:$n,draggable:tn,draggingNodeKey:vt,checkable:Pi,checkStrictly:mi,disabled:nr,keyEntities:St,dropLevelOffset:Dt,dropContainerKey:un,dropTargetKey:Xt,dropPosition:$t,dragOverNodeKey:wn,indent:bn,direction:Ft,dropIndicatorRender:Fi,loadData:Le,filterTreeNode:si,titleRender:vi,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}},ee.createElement("div",{role:"tree",className:ht()(Yn,ai,Ot,(nt={},(0,De.Z)(nt,"".concat(Yn,"-show-line"),Rn),(0,De.Z)(nt,"".concat(Yn,"-focused"),qe),(0,De.Z)(nt,"".concat(Yn,"-active-focused"),lt!==null),nt)),style:Ve},ee.createElement(Bn,(0,ce.Z)({ref:this.listRef,prefixCls:Yn,style:Wn,data:Ue,disabled:nr,selectable:Ri,checkable:!!Pi,motion:ji,dragging:vt!==null,height:Hi,itemHeight:hn,virtual:ni,focusable:ii,focused:qe,tabIndex:gi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_n,onScroll:Dn},this.getTreeNodeRequiredProps(),Ut))))}}],[{key:"getDerivedStateFromProps",value:function(nt,Pt){var qe=Pt.prevProps,Ue={prevProps:nt};function St(ii){return!qe&&ii in nt||qe&&qe[ii]!==nt[ii]}var vt,lt=Pt.fieldNames;if(St("fieldNames")&&(lt=(0,$e.w$)(nt.fieldNames),Ue.fieldNames=lt),St("treeData")?vt=nt.treeData:St("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),vt=(0,$e.zn)(nt.children)),vt){Ue.treeData=vt;var Dt=(0,$e.I8)(vt,{fieldNames:lt});Ue.keyEntities=(0,Ct.Z)((0,De.Z)({},ut,kt),Dt.keyEntities)}var un=Ue.keyEntities||Pt.keyEntities;if(St("expandedKeys")||qe&&St("autoExpandParent"))Ue.expandedKeys=nt.autoExpandParent||!qe&&nt.defaultExpandParent?(0,rn.r7)(nt.expandedKeys,un):nt.expandedKeys;else if(!qe&&nt.defaultExpandAll){var Xt=(0,Ct.Z)({},un);delete Xt[ut],Ue.expandedKeys=Object.keys(Xt).map(function(ii){return Xt[ii].key})}else!qe&&nt.defaultExpandedKeys&&(Ue.expandedKeys=nt.autoExpandParent||nt.defaultExpandParent?(0,rn.r7)(nt.defaultExpandedKeys,un):nt.defaultExpandedKeys);if(Ue.expandedKeys||delete Ue.expandedKeys,vt||Ue.expandedKeys){var $t=(0,$e.oH)(vt||Pt.treeData,Ue.expandedKeys||Pt.expandedKeys,lt);Ue.flattenNodes=$t}if(nt.selectable&&(St("selectedKeys")?Ue.selectedKeys=(0,rn.BT)(nt.selectedKeys,nt):!qe&&nt.defaultSelectedKeys&&(Ue.selectedKeys=(0,rn.BT)(nt.defaultSelectedKeys,nt))),nt.checkable){var wn;if(St("checkedKeys")?wn=(0,rn.E6)(nt.checkedKeys)||{}:!qe&&nt.defaultCheckedKeys?wn=(0,rn.E6)(nt.defaultCheckedKeys)||{}:vt&&(wn=(0,rn.E6)(nt.checkedKeys)||{checkedKeys:Pt.checkedKeys,halfCheckedKeys:Pt.halfCheckedKeys}),wn){var bn=wn,pn=bn.checkedKeys,Yn=pn===void 0?[]:pn,ai=bn.halfCheckedKeys,Wn=ai===void 0?[]:ai;if(!nt.checkStrictly){var Rn=(0,Cn.S)(Yn,!0,un);Yn=Rn.checkedKeys,Wn=Rn.halfCheckedKeys}Ue.checkedKeys=Yn,Ue.halfCheckedKeys=Wn}}return St("loadedKeys")&&(Ue.loadedKeys=nt.loadedKeys),Ue}}]),ke}(ee.Component);Vn.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},Vn.TreeNode=ze.Z;var Re=Vn,Ce=Re},35654:function(Pn,an,ve){"use strict";ve.d(an,{BT:function(){return ee},E6:function(){return de},L0:function(){return He},OM:function(){return te},_5:function(){return ct},r7:function(){return me},wA:function(){return ht},yx:function(){return Et}});var ce=ve(19127),De=ve(20135),_e=ve(48736),Ct=ve(59301),Ze=ve(39417),Ke=ve(67841),Be=ve(71430),mt=null;function ct(we,be){if(!we)return[];var Me=we.slice(),Ie=Me.indexOf(be);return Ie>=0&&Me.splice(Ie,1),Me}function He(we,be){var Me=(we||[]).slice();return Me.indexOf(be)===-1&&Me.push(be),Me}function Et(we){return we.split("-")}function ht(we,be){var Me=[],Ie=(0,Ke.Z)(be,we);function ze(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];et.forEach(function($e){var gt=$e.key,je=$e.children;Me.push(gt),ze(je)})}return ze(Ie.children),Me}function dt(we){if(we.parent){var be=Et(we.pos);return Number(be[be.length-1])===we.parent.children.length-1}return!1}function Ae(we){var be=Et(we.pos);return Number(be[be.length-1])===0}function te(we,be,Me,Ie,ze,et,$e,gt,je,Tt){var Qe,bt=we.clientX,Nt=we.clientY,At=we.target.getBoundingClientRect(),Zt=At.top,Yt=At.height,ut=(Tt==="rtl"?-1:1)*(((ze==null?void 0:ze.x)||0)-bt),Ge=(ut-12)/Ie,kt=(0,Ke.Z)(gt,Me.props.eventKey);if(Nt-1.5?et({dragNode:En,dropNode:Vn,dropPosition:1})?rn=1:Re=!1:et({dragNode:En,dropNode:Vn,dropPosition:0})?rn=0:et({dragNode:En,dropNode:Vn,dropPosition:1})?rn=1:Re=!1:et({dragNode:En,dropNode:Vn,dropPosition:1})?rn=1:Re=!1,{dropPosition:rn,dropLevelOffset:Cn,dropTargetKey:kt.key,dropTargetPos:kt.pos,dragOverNodeKey:Bn,dropContainerKey:rn===0?null:((Qe=kt.parent)===null||Qe===void 0?void 0:Qe.key)||null,dropAllowed:Re}}function ee(we,be){if(we){var Me=be.multiple;return Me?we.slice():we.length?[we[0]]:we}}var he=function(be){return be};function se(we,be){if(!we)return[];var Me=be||{},Ie=Me.processProps,ze=Ie===void 0?he:Ie,et=Array.isArray(we)?we:[we];return et.map(function($e){var gt=$e.children,je=_objectWithoutProperties($e,mt),Tt=se(gt,be);return React.createElement(TreeNode,_extends({key:je.key},ze(je)),Tt)})}function de(we){if(!we)return null;var be;if(Array.isArray(we))be={checkedKeys:we,halfCheckedKeys:void 0};else if((0,De.Z)(we)==="object")be={checkedKeys:we.checked||void 0,halfCheckedKeys:we.halfChecked||void 0};else return(0,_e.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return be}function me(we,be){var Me=new Set;function Ie(ze){if(!Me.has(ze)){var et=(0,Ke.Z)(be,ze);if(et){Me.add(ze);var $e=et.parent,gt=et.node;gt.disabled||$e&&Ie($e.key)}}}return(we||[]).forEach(function(ze){Ie(ze)}),(0,ce.Z)(Me)}},90782:function(Pn,an,ve){"use strict";ve.d(an,{S:function(){return Be}});var ce=ve(48736),De=ve(67841);function _e(mt,ct){var He=new Set;return mt.forEach(function(Et){ct.has(Et)||He.add(Et)}),He}function Ct(mt){var ct=mt||{},He=ct.disabled,Et=ct.disableCheckbox,ht=ct.checkable;return!!(He||Et)||ht===!1}function Ze(mt,ct,He,Et){for(var ht=new Set(mt),dt=new Set,Ae=0;Ae<=He;Ae+=1){var te=ct.get(Ae)||new Set;te.forEach(function(de){var me=de.key,we=de.node,be=de.children,Me=be===void 0?[]:be;ht.has(me)&&!Et(we)&&Me.filter(function(Ie){return!Et(Ie.node)}).forEach(function(Ie){ht.add(Ie.key)})})}for(var ee=new Set,he=He;he>=0;he-=1){var se=ct.get(he)||new Set;se.forEach(function(de){var me=de.parent,we=de.node;if(!(Et(we)||!de.parent||ee.has(de.parent.key))){if(Et(de.parent.node)){ee.add(me.key);return}var be=!0,Me=!1;(me.children||[]).filter(function(Ie){return!Et(Ie.node)}).forEach(function(Ie){var ze=Ie.key,et=ht.has(ze);be&&!et&&(be=!1),!Me&&(et||dt.has(ze))&&(Me=!0)}),be&&ht.add(me.key),Me&&dt.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from(ht),halfCheckedKeys:Array.from(_e(dt,ht))}}function Ke(mt,ct,He,Et,ht){for(var dt=new Set(mt),Ae=new Set(ct),te=0;te<=Et;te+=1){var ee=He.get(te)||new Set;ee.forEach(function(me){var we=me.key,be=me.node,Me=me.children,Ie=Me===void 0?[]:Me;!dt.has(we)&&!Ae.has(we)&&!ht(be)&&Ie.filter(function(ze){return!ht(ze.node)}).forEach(function(ze){dt.delete(ze.key)})})}Ae=new Set;for(var he=new Set,se=Et;se>=0;se-=1){var de=He.get(se)||new Set;de.forEach(function(me){var we=me.parent,be=me.node;if(!(ht(be)||!me.parent||he.has(me.parent.key))){if(ht(me.parent.node)){he.add(we.key);return}var Me=!0,Ie=!1;(we.children||[]).filter(function(ze){return!ht(ze.node)}).forEach(function(ze){var et=ze.key,$e=dt.has(et);Me&&!$e&&(Me=!1),!Ie&&($e||Ae.has(et))&&(Ie=!0)}),Me||dt.delete(we.key),Ie&&Ae.add(we.key),he.add(we.key)}})}return{checkedKeys:Array.from(dt),halfCheckedKeys:Array.from(_e(Ae,dt))}}function Be(mt,ct,He,Et){var ht=[],dt;Et?dt=Et:dt=Ct;var Ae=new Set(mt.filter(function(se){var de=!!(0,De.Z)(He,se);return de||ht.push(se),de})),te=new Map,ee=0;Object.keys(He).forEach(function(se){var de=He[se],me=de.level,we=te.get(me);we||(we=new Set,te.set(me,we)),we.add(de),ee=Math.max(ee,me)}),(0,ce.ZP)(!ht.length,"Tree missing follow keys: ".concat(ht.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return ct===!0?he=Ze(Ae,te,ee,dt):he=Ke(Ae,ct.halfCheckedKeys,te,ee,dt),he}},67841:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return ce}});function ce(De,_e){return De[_e]}},71430:function(Pn,an,ve){"use strict";ve.d(an,{F:function(){return me},H8:function(){return de},I8:function(){return se},km:function(){return ht},oH:function(){return ee},w$:function(){return dt},zn:function(){return te}});var ce=ve(20135),De=ve(19127),_e=ve(44127),Ct=ve(6620),Ze=ve(11592),Ke=ve(2738),Be=ve(48736),mt=ve(67841),ct=["children"];function He(we,be){return"".concat(we,"-").concat(be)}function Et(we){return we&&we.type&&we.type.isTreeNode}function ht(we,be){return we!=null?we:be}function dt(we){var be=we||{},Me=be.title,Ie=be._title,ze=be.key,et=be.children,$e=Me||"title";return{title:$e,_title:Ie||[$e],key:ze||"key",children:et||"children"}}function Ae(we,be){var Me=new Map;function Ie(ze){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ze||[]).forEach(function($e){var gt=$e[be.key],je=$e[be.children];warning(gt!=null,"Tree node must have a certain key: [".concat(et).concat(gt,"]"));var Tt=String(gt);warning(!Me.has(Tt)||gt===null||gt===void 0,"Same 'key' exist in the Tree: ".concat(Tt)),Me.set(Tt,!0),Ie(je,"".concat(et).concat(Tt," > "))})}Ie(we)}function te(we){function be(Me){var Ie=(0,Ze.Z)(Me);return Ie.map(function(ze){if(!Et(ze))return(0,Be.ZP)(!ze,"Tree/TreeNode can only accept TreeNode as children."),null;var et=ze.key,$e=ze.props,gt=$e.children,je=(0,Ct.Z)($e,ct),Tt=(0,_e.Z)({key:et},je),Qe=be(gt);return Qe.length&&(Tt.children=Qe),Tt}).filter(function(ze){return ze})}return be(we)}function ee(we,be,Me){var Ie=dt(Me),ze=Ie._title,et=Ie.key,$e=Ie.children,gt=new Set(be===!0?[]:be),je=[];function Tt(Qe){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Qe.map(function(Nt,At){for(var Zt=He(bt?bt.pos:"0",At),Yt=ht(Nt[et],Zt),ut,Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:{},Me=be.initWrapper,Ie=be.processEntity,ze=be.onProcessFinished,et=be.externalGetKey,$e=be.childrenPropName,gt=be.fieldNames,je=arguments.length>2?arguments[2]:void 0,Tt=et||je,Qe={},bt={},Nt={posEntities:Qe,keyEntities:bt};return Me&&(Nt=Me(Nt)||Nt),he(we,function(At){var Zt=At.node,Yt=At.index,ut=At.pos,Ge=At.key,kt=At.parentPos,ln=At.level,sn=At.nodes,Bt={node:Zt,nodes:sn,index:Yt,key:Ge,pos:ut,level:ln},Gt=ht(Ge,ut);Qe[ut]=Bt,bt[Gt]=Bt,Bt.parent=Qe[kt],Bt.parent&&(Bt.parent.children=Bt.parent.children||[],Bt.parent.children.push(Bt)),Ie&&Ie(Bt,Nt)},{externalGetKey:Tt,childrenPropName:$e,fieldNames:gt}),ze&&ze(Nt),Nt}function de(we,be){var Me=be.expandedKeys,Ie=be.selectedKeys,ze=be.loadedKeys,et=be.loadingKeys,$e=be.checkedKeys,gt=be.halfCheckedKeys,je=be.dragOverNodeKey,Tt=be.dropPosition,Qe=be.keyEntities,bt=(0,mt.Z)(Qe,we),Nt={eventKey:we,expanded:Me.indexOf(we)!==-1,selected:Ie.indexOf(we)!==-1,loaded:ze.indexOf(we)!==-1,loading:et.indexOf(we)!==-1,checked:$e.indexOf(we)!==-1,halfChecked:gt.indexOf(we)!==-1,pos:String(bt?bt.pos:""),dragOver:je===we&&Tt===0,dragOverGapTop:je===we&&Tt===-1,dragOverGapBottom:je===we&&Tt===1};return Nt}function me(we){var be=we.data,Me=we.expanded,Ie=we.selected,ze=we.checked,et=we.loaded,$e=we.loading,gt=we.halfChecked,je=we.dragOver,Tt=we.dragOverGapTop,Qe=we.dragOverGapBottom,bt=we.pos,Nt=we.active,At=we.eventKey,Zt=(0,_e.Z)((0,_e.Z)({},be),{},{expanded:Me,selected:Ie,checked:ze,loaded:et,loading:$e,halfChecked:gt,dragOver:je,dragOverGapTop:Tt,dragOverGapBottom:Qe,pos:bt,active:Nt,key:At});return"props"in Zt||Object.defineProperty(Zt,"props",{get:function(){return(0,Be.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),we}}),Zt}},8224:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return De}});var ce=ve(4676);function De(_e,Ct,Ze,Ke){var Be=ce.unstable_batchedUpdates?function(ct){ce.unstable_batchedUpdates(Ze,ct)}:Ze;return _e!=null&&_e.addEventListener&&_e.addEventListener(Ct,Be,Ke),{remove:function(){_e!=null&&_e.removeEventListener&&_e.removeEventListener(Ct,Be,Ke)}}}},55468:function(Pn,an,ve){"use strict";ve.d(an,{g1:function(){return Et},os:function(){return dt}});var ce=/margin|padding|width|height|max|min|offset/,De={left:!0,top:!0},_e={cssFloat:1,styleFloat:1,float:1};function Ct(Ae){return Ae.nodeType===1?Ae.ownerDocument.defaultView.getComputedStyle(Ae,null):{}}function Ze(Ae,te,ee){if(te=te.toLowerCase(),ee==="auto"){if(te==="height")return Ae.offsetHeight;if(te==="width")return Ae.offsetWidth}return te in De||(De[te]=ce.test(te)),De[te]?parseFloat(ee)||0:ee}function Ke(Ae,te){var ee=arguments.length,he=Ct(Ae);return te=_e[te]?"cssFloat"in Ae.style?"cssFloat":"styleFloat":te,ee===1?he:Ze(Ae,te,he[te]||Ae.style[te])}function Be(Ae,te,ee){var he=arguments.length;if(te=_e[te]?"cssFloat"in Ae.style?"cssFloat":"styleFloat":te,he===3)return typeof ee=="number"&&ce.test(te)&&(ee="".concat(ee,"px")),Ae.style[te]=ee,ee;for(var se in te)te.hasOwnProperty(se)&&Be(Ae,se,te[se]);return Ct(Ae)}function mt(Ae){return Ae===document.body?document.documentElement.clientWidth:Ae.offsetWidth}function ct(Ae){return Ae===document.body?window.innerHeight||document.documentElement.clientHeight:Ae.offsetHeight}function He(){var Ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ae,height:te}}function Et(){var Ae=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Ae,height:te}}function ht(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function dt(Ae){var te=Ae.getBoundingClientRect(),ee=document.documentElement;return{left:te.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},24514:function(Pn,an,ve){"use strict";ve.d(an,{G:function(){return Ct}});var ce=ve(47273),De=function(Ke){if((0,ce.Z)()&&window.document.documentElement){var Be=Array.isArray(Ke)?Ke:[Ke],mt=window.document.documentElement;return Be.some(function(ct){return ct in mt.style})}return!1},_e=function(Ke,Be){if(!De(Ke))return!1;var mt=document.createElement("div"),ct=mt.style[Ke];return mt.style[Ke]=Be,mt.style[Ke]!==ct};function Ct(Ze,Ke){return!Array.isArray(Ze)&&Ke!==void 0?_e(Ze,Ke):De(Ze)}},24916:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return Vn}});var ce=ve(96663),De=ve(20135),_e=ve(44127),Ct=ve(90493),Ze=ve(72071),Ke=ve(6620),Be=ve(92310),mt=ve.n(Be),ct=ve(29301),He=ve(70425),Et=ve(34280),ht=ve(59301),dt=ve(4676),Ae=ht.forwardRef(function(Re,Ce){var Pe=Re.height,Ne=Re.offsetY,ke=Re.offsetX,Se=Re.children,nt=Re.prefixCls,Pt=Re.onInnerResize,qe=Re.innerProps,Ue=Re.rtl,St=Re.extra,vt={},lt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(vt={height:Pe,position:"relative",overflow:"hidden"},lt=(0,_e.Z)((0,_e.Z)({},lt),{},(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({transform:"translateY(".concat(Ne,"px)")},Ue?"marginRight":"marginLeft",-ke),"position","absolute"),"left",0),"right",0),"top",0))),ht.createElement("div",{style:vt},ht.createElement(ct.Z,{onResize:function(un){var Xt=un.offsetHeight;Xt&&Pt&&Pt()}},ht.createElement("div",(0,ce.Z)({style:lt,className:mt()((0,Ct.Z)({},"".concat(nt,"-holder-inner"),nt)),ref:Ce},qe),Se,St)))});Ae.displayName="Filler";var te=Ae;function ee(Re){var Ce=Re.children,Pe=Re.setRef,Ne=ht.useCallback(function(ke){Pe(ke)},[]);return ht.cloneElement(Ce,{ref:Ne})}function he(Re,Ce,Pe,Ne,ke,Se,nt,Pt){var qe=Pt.getKey;return Re.slice(Ce,Pe+1).map(function(Ue,St){var vt=Ce+St,lt=nt(Ue,vt,{style:{width:Ne},offsetX:ke}),Dt=qe(Ue);return ht.createElement(ee,{key:Dt,setRef:function(Xt){return Se(Ue,Xt)}},lt)})}function se(Re,Ce,Pe,Ne){var ke=Pe-Re,Se=Ce-Pe,nt=Math.min(ke,Se)*2;if(Ne<=nt){var Pt=Math.floor(Ne/2);return Ne%2?Pe+Pt+1:Pe-Pt}return ke>Se?Pe-(Ne-Se):Pe+(Ne-ke)}function de(Re,Ce,Pe){var Ne=Re.length,ke=Ce.length,Se,nt;if(Ne===0&&ke===0)return null;Ne2&&arguments[2]!==void 0?arguments[2]:!1,vt=qe?Ue<0&&Pt.current.left||Ue>0&&Pt.current.right:Ue<0&&Pt.current.top||Ue>0&&Pt.current.bottom;return St&&vt?(clearTimeout(Se.current),ke.current=!1):(!vt||ke.current)&&nt(),!ke.current&&vt}};function ze(Re,Ce,Pe,Ne,ke,Se,nt){var Pt=(0,ht.useRef)(0),qe=(0,ht.useRef)(null),Ue=(0,ht.useRef)(null),St=(0,ht.useRef)(!1),vt=Ie(Ce,Pe,Ne,ke);function lt(bn,pn){if(we.Z.cancel(qe.current),!vt(!1,pn)){var Yn=bn;if(!Yn._virtualHandled)Yn._virtualHandled=!0;else return;Pt.current+=pn,Ue.current=pn,Me||Yn.preventDefault(),qe.current=(0,we.Z)(function(){var ai=St.current?10:1;nt(Pt.current*ai,!1),Pt.current=0})}}function Dt(bn,pn){nt(pn,!0),Me||bn.preventDefault()}var un=(0,ht.useRef)(null),Xt=(0,ht.useRef)(null);function $t(bn){if(Re){we.Z.cancel(Xt.current),Xt.current=(0,we.Z)(function(){un.current=null},2);var pn=bn.deltaX,Yn=bn.deltaY,ai=bn.shiftKey,Wn=pn,Rn=Yn;(un.current==="sx"||!un.current&&ai&&Yn&&!pn)&&(Wn=Yn,Rn=0,un.current="sx");var ii=Math.abs(Wn),pi=Math.abs(Rn);un.current===null&&(un.current=Se&&ii>pi?"x":"y"),un.current==="y"?lt(bn,Rn):Dt(bn,Wn)}}function wn(bn){Re&&(St.current=bn.detail===Ue.current)}return[$t,wn]}function et(Re,Ce,Pe,Ne){var ke=ht.useMemo(function(){return[new Map,[]]},[Re,Pe.id,Ne]),Se=(0,Ze.Z)(ke,2),nt=Se[0],Pt=Se[1],qe=function(St){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,lt=nt.get(St),Dt=nt.get(vt);if(lt===void 0||Dt===void 0)for(var un=Re.length,Xt=Pt.length;Xt0&&arguments[0]!==void 0?arguments[0]:!1;St();var un=function(){var wn=!1;Pt.current.forEach(function(bn,pn){if(bn&&bn.offsetParent){var Yn=bn.offsetHeight,ai=getComputedStyle(bn),Wn=ai.marginTop,Rn=ai.marginBottom,ii=Qe(Wn),pi=Qe(Rn),gi=Yn+ii+pi;qe.current.get(pn)!==gi&&(qe.current.set(pn,gi),wn=!0)}}),wn&&nt(function(bn){return bn+1})};if(Dt)un();else{Ue.current+=1;var Xt=Ue.current;Promise.resolve().then(function(){Xt===Ue.current&&un()})}}function lt(Dt,un){var Xt=Re(Dt),$t=Pt.current.get(Xt);un?(Pt.current.set(Xt,un),vt()):Pt.current.delete(Xt),!$t!=!un&&(un?Ce==null||Ce(Dt):Pe==null||Pe(Dt))}return(0,ht.useEffect)(function(){return St},[]),[lt,vt,qe.current,Se]}var Nt=14/15;function At(Re,Ce,Pe){var Ne=(0,ht.useRef)(!1),ke=(0,ht.useRef)(0),Se=(0,ht.useRef)(0),nt=(0,ht.useRef)(null),Pt=(0,ht.useRef)(null),qe,Ue=function(Dt){if(Ne.current){var un=Math.ceil(Dt.touches[0].pageX),Xt=Math.ceil(Dt.touches[0].pageY),$t=ke.current-un,wn=Se.current-Xt,bn=Math.abs($t)>Math.abs(wn);bn?ke.current=un:Se.current=Xt;var pn=Pe(bn,bn?$t:wn,!1,Dt);pn&&Dt.preventDefault(),clearInterval(Pt.current),pn&&(Pt.current=setInterval(function(){bn?$t*=Nt:wn*=Nt;var Yn=Math.floor(bn?$t:wn);(!Pe(bn,Yn,!0)||Math.abs(Yn)<=.1)&&clearInterval(Pt.current)},16))}},St=function(){Ne.current=!1,qe()},vt=function(Dt){qe(),Dt.touches.length===1&&!Ne.current&&(Ne.current=!0,ke.current=Math.ceil(Dt.touches[0].pageX),Se.current=Math.ceil(Dt.touches[0].pageY),nt.current=Dt.target,nt.current.addEventListener("touchmove",Ue,{passive:!1}),nt.current.addEventListener("touchend",St,{passive:!0}))};qe=function(){nt.current&&(nt.current.removeEventListener("touchmove",Ue),nt.current.removeEventListener("touchend",St))},(0,Et.Z)(function(){return Re&&Ce.current.addEventListener("touchstart",vt,{passive:!0}),function(){var lt;(lt=Ce.current)===null||lt===void 0||lt.removeEventListener("touchstart",vt),qe(),clearInterval(Pt.current)}},[Re])}function Zt(Re){return Math.floor(Math.pow(Re,.5))}function Yt(Re,Ce){var Pe="touches"in Re?Re.touches[0]:Re;return Pe[Ce?"pageX":"pageY"]-window[Ce?"scrollX":"scrollY"]}function ut(Re,Ce,Pe){ht.useEffect(function(){var Ne=Ce.current;if(Re&&Ne){var ke=!1,Se,nt,Pt=function(){we.Z.cancel(Se)},qe=function lt(){Pt(),Se=(0,we.Z)(function(){Pe(nt),lt()})},Ue=function(Dt){if(!Dt.target.draggable){var un=Dt;un._virtualHandled||(un._virtualHandled=!0,ke=!0)}},St=function(){ke=!1,Pt()},vt=function(Dt){if(ke){var un=Yt(Dt,!1),Xt=Ne.getBoundingClientRect(),$t=Xt.top,wn=Xt.bottom;if(un<=$t){var bn=$t-un;nt=-Zt(bn),qe()}else if(un>=wn){var pn=un-wn;nt=Zt(pn),qe()}else Pt()}};return Ne.addEventListener("mousedown",Ue),Ne.ownerDocument.addEventListener("mouseup",St),Ne.ownerDocument.addEventListener("mousemove",vt),function(){Ne.removeEventListener("mousedown",Ue),Ne.ownerDocument.removeEventListener("mouseup",St),Ne.ownerDocument.removeEventListener("mousemove",vt),Pt()}}},[Re])}var Ge=10;function kt(Re,Ce,Pe,Ne,ke,Se,nt,Pt){var qe=ht.useRef(),Ue=ht.useState(null),St=(0,Ze.Z)(Ue,2),vt=St[0],lt=St[1];return(0,Et.Z)(function(){if(vt&&vt.times=0;$n-=1){var ti=ke(Ce[$n]),Pi=Pe.get(ti);if(Pi===void 0){bn=!0;break}if(Un-=Pi,Un<=0)break}switch(ai){case"top":Yn=Rn-$t;break;case"bottom":Yn=ii-wn+$t;break;default:{var mi=Re.current.scrollTop,nr=mi+wn;Rnnr&&(pn="bottom")}}Yn!==null&&nt(Yn),Yn!==vt.lastTop&&(bn=!0)}bn&<((0,_e.Z)((0,_e.Z)({},vt),{},{times:vt.times+1,targetAlign:pn,lastTop:Yn}))}},[vt,Re.current]),function(Dt){if(Dt==null){Pt();return}if(we.Z.cancel(qe.current),typeof Dt=="number")nt(Dt);else if(Dt&&(0,De.Z)(Dt)==="object"){var un,Xt=Dt.align;"index"in Dt?un=Dt.index:un=Ce.findIndex(function(bn){return ke(bn)===Dt.key});var $t=Dt.offset,wn=$t===void 0?0:$t;lt({times:0,index:un,offset:wn,originAlign:Xt})}}}var ln=ht.forwardRef(function(Re,Ce){var Pe=Re.prefixCls,Ne=Re.rtl,ke=Re.scrollOffset,Se=Re.scrollRange,nt=Re.onStartMove,Pt=Re.onStopMove,qe=Re.onScroll,Ue=Re.horizontal,St=Re.spinSize,vt=Re.containerSize,lt=Re.style,Dt=Re.thumbStyle,un=Re.showScrollBar,Xt=ht.useState(!1),$t=(0,Ze.Z)(Xt,2),wn=$t[0],bn=$t[1],pn=ht.useState(null),Yn=(0,Ze.Z)(pn,2),ai=Yn[0],Wn=Yn[1],Rn=ht.useState(null),ii=(0,Ze.Z)(Rn,2),pi=ii[0],gi=ii[1],Ri=!Ne,Ji=ht.useRef(),Un=ht.useRef(),$n=ht.useState(un),ti=(0,Ze.Z)($n,2),Pi=ti[0],mi=ti[1],nr=ht.useRef(),ji=function(){un===!0||un===!1||(clearTimeout(nr.current),mi(!0),nr.current=setTimeout(function(){mi(!1)},3e3))},Le=Se-vt||0,si=vt-St||0,Hi=ht.useMemo(function(){if(ke===0||Le===0)return 0;var Ve=ke/Le;return Ve*si},[ke,Le,si]),hn=function(Ut){Ut.stopPropagation(),Ut.preventDefault()},ni=ht.useRef({top:Hi,dragging:wn,pageY:ai,startTop:pi});ni.current={top:Hi,dragging:wn,pageY:ai,startTop:pi};var vi=function(Ut){bn(!0),Wn(Yt(Ut,Ue)),gi(ni.current.top),nt(),Ut.stopPropagation(),Ut.preventDefault()};ht.useEffect(function(){var Ve=function(rt){rt.preventDefault()},Ut=Ji.current,tn=Un.current;return Ut.addEventListener("touchstart",Ve,{passive:!1}),tn.addEventListener("touchstart",vi,{passive:!1}),function(){Ut.removeEventListener("touchstart",Ve),tn.removeEventListener("touchstart",vi)}},[]);var Fi=ht.useRef();Fi.current=Le;var _n=ht.useRef();_n.current=si,ht.useEffect(function(){if(wn){var Ve,Ut=function(rt){var Vt=ni.current,on=Vt.dragging,xn=Vt.pageY,An=Vt.startTop;we.Z.cancel(Ve);var yt=Ji.current.getBoundingClientRect(),cn=vt/(Ue?yt.width:yt.height);if(on){var On=(Yt(rt,Ue)-xn)*cn,ri=An;!Ri&&Ue?ri-=On:ri+=On;var Wt=Fi.current,Jt=_n.current,hi=Jt?ri/Jt:0,ci=Math.ceil(hi*Wt);ci=Math.max(ci,0),ci=Math.min(ci,Wt),Ve=(0,we.Z)(function(){qe(ci,Ue)})}},tn=function(){bn(!1),Pt()};return window.addEventListener("mousemove",Ut,{passive:!0}),window.addEventListener("touchmove",Ut,{passive:!0}),window.addEventListener("mouseup",tn,{passive:!0}),window.addEventListener("touchend",tn,{passive:!0}),function(){window.removeEventListener("mousemove",Ut),window.removeEventListener("touchmove",Ut),window.removeEventListener("mouseup",tn),window.removeEventListener("touchend",tn),we.Z.cancel(Ve)}}},[wn]),ht.useEffect(function(){return ji(),function(){clearTimeout(nr.current)}},[ke]),ht.useImperativeHandle(Ce,function(){return{delayHidden:ji}});var Dn="".concat(Pe,"-scrollbar"),Ft={position:"absolute",visibility:Pi?null:"hidden"},Ot={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ue?(Ft.height=8,Ft.left=0,Ft.right=0,Ft.bottom=0,Ot.height="100%",Ot.width=St,Ri?Ot.left=Hi:Ot.right=Hi):(Ft.width=8,Ft.top=0,Ft.bottom=0,Ri?Ft.right=0:Ft.left=0,Ot.width="100%",Ot.height=St,Ot.top=Hi),ht.createElement("div",{ref:Ji,className:mt()(Dn,(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},"".concat(Dn,"-horizontal"),Ue),"".concat(Dn,"-vertical"),!Ue),"".concat(Dn,"-visible"),Pi)),style:(0,_e.Z)((0,_e.Z)({},Ft),lt),onMouseDown:hn,onMouseMove:ji},ht.createElement("div",{ref:Un,className:mt()("".concat(Dn,"-thumb"),(0,Ct.Z)({},"".concat(Dn,"-thumb-moving"),wn)),style:(0,_e.Z)((0,_e.Z)({},Ot),Dt),onMouseDown:vi}))}),sn=ln,Bt=20;function Gt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Pe=Re/Ce*Re;return isNaN(Pe)&&(Pe=0),Pe=Math.max(Pe,Bt),Math.floor(Pe)}var en=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Bn=[],rn={overflowY:"auto",overflowAnchor:"none"};function Cn(Re,Ce){var Pe=Re.prefixCls,Ne=Pe===void 0?"rc-virtual-list":Pe,ke=Re.className,Se=Re.height,nt=Re.itemHeight,Pt=Re.fullHeight,qe=Pt===void 0?!0:Pt,Ue=Re.style,St=Re.data,vt=Re.children,lt=Re.itemKey,Dt=Re.virtual,un=Re.direction,Xt=Re.scrollWidth,$t=Re.component,wn=$t===void 0?"div":$t,bn=Re.onScroll,pn=Re.onVirtualScroll,Yn=Re.onVisibleChange,ai=Re.innerProps,Wn=Re.extraRender,Rn=Re.styles,ii=Re.showScrollBar,pi=ii===void 0?"optional":ii,gi=(0,Ke.Z)(Re,en),Ri=ht.useCallback(function(Or){return typeof lt=="function"?lt(Or):Or==null?void 0:Or[lt]},[lt]),Ji=bt(Ri,null,null),Un=(0,Ze.Z)(Ji,4),$n=Un[0],ti=Un[1],Pi=Un[2],mi=Un[3],nr=!!(Dt!==!1&&Se&&nt),ji=ht.useMemo(function(){return Object.values(Pi.maps).reduce(function(Or,kr){return Or+kr},0)},[Pi.id,Pi.maps]),Le=nr&&St&&(Math.max(nt*St.length,ji)>Se||!!Xt),si=un==="rtl",Hi=mt()(Ne,(0,Ct.Z)({},"".concat(Ne,"-rtl"),si),ke),hn=St||Bn,ni=(0,ht.useRef)(),vi=(0,ht.useRef)(),Fi=(0,ht.useRef)(),_n=(0,ht.useState)(0),Dn=(0,Ze.Z)(_n,2),Ft=Dn[0],Ot=Dn[1],Ve=(0,ht.useState)(0),Ut=(0,Ze.Z)(Ve,2),tn=Ut[0],xt=Ut[1],rt=(0,ht.useState)(!1),Vt=(0,Ze.Z)(rt,2),on=Vt[0],xn=Vt[1],An=function(){xn(!0)},yt=function(){xn(!1)},cn={getKey:Ri};function On(Or){Ot(function(kr){var fo;typeof Or=="function"?fo=Or(kr):fo=Or;var jr=Gi(fo);return ni.current.scrollTop=jr,jr})}var ri=(0,ht.useRef)({start:0,end:hn.length}),Wt=(0,ht.useRef)(),Jt=me(hn,Ri),hi=(0,Ze.Z)(Jt,1),ci=hi[0];Wt.current=ci;var ui=ht.useMemo(function(){if(!nr)return{scrollHeight:void 0,start:0,end:hn.length-1,offset:void 0};if(!Le){var Or;return{scrollHeight:((Or=vi.current)===null||Or===void 0?void 0:Or.offsetHeight)||0,start:0,end:hn.length-1,offset:void 0}}for(var kr=0,fo,jr,To,qa=hn.length,Mr=0;Mr=Ft&&fo===void 0&&(fo=Mr,jr=kr),wo>Ft+Se&&To===void 0&&(To=Mr),kr=wo}return fo===void 0&&(fo=0,jr=0,To=Math.ceil(Se/nt)),To===void 0&&(To=hn.length-1),To=Math.min(To+1,hn.length-1),{scrollHeight:kr,start:fo,end:To,offset:jr}},[Le,nr,Ft,hn,mi,Se]),qn=ui.scrollHeight,di=ui.start,li=ui.end,Ai=ui.offset;ri.current.start=di,ri.current.end=li,ht.useLayoutEffect(function(){var Or=Pi.getRecord();if(Or.size===1){var kr=Array.from(Or)[0],fo=hn[di];if(fo){var jr=Ri(fo);if(jr===kr){var To=Pi.get(kr),qa=To-nt;On(function(Mr){return Mr+qa})}}}Pi.resetRecord()},[qn]);var er=ht.useState({width:0,height:Se}),sr=(0,Ze.Z)(er,2),vn=sr[0],Nr=sr[1],Dr=function(kr){Nr({width:kr.offsetWidth,height:kr.offsetHeight})},ir=(0,ht.useRef)(),fn=(0,ht.useRef)(),jn=ht.useMemo(function(){return Gt(vn.width,Xt)},[vn.width,Xt]),Ei=ht.useMemo(function(){return Gt(vn.height,qn)},[vn.height,qn]),zi=qn-Se,Ni=(0,ht.useRef)(zi);Ni.current=zi;function Gi(Or){var kr=Or;return Number.isNaN(Ni.current)||(kr=Math.min(kr,Ni.current)),kr=Math.max(kr,0),kr}var ur=Ft<=0,Qi=Ft>=zi,rr=tn<=0,fr=tn>=Xt,Nn=Ie(ur,Qi,rr,fr),Jr=function(){return{x:si?-tn:tn,y:Ft}},Ln=(0,ht.useRef)(Jr()),Zr=(0,He.useEvent)(function(Or){if(pn){var kr=(0,_e.Z)((0,_e.Z)({},Jr()),Or);(Ln.current.x!==kr.x||Ln.current.y!==kr.y)&&(pn(kr),Ln.current=kr)}});function co(Or,kr){var fo=Or;kr?((0,dt.flushSync)(function(){xt(fo)}),Zr()):On(fo)}function Bi(Or){var kr=Or.currentTarget.scrollTop;kr!==Ft&&On(kr),bn==null||bn(Or),Zr()}var Po=function(kr){var fo=kr,jr=Xt?Xt-vn.width:0;return fo=Math.max(fo,0),fo=Math.min(fo,jr),fo},ao=(0,He.useEvent)(function(Or,kr){kr?((0,dt.flushSync)(function(){xt(function(fo){var jr=fo+(si?-Or:Or);return Po(jr)})}),Zr()):On(function(fo){var jr=fo+Or;return jr})}),Vi=ze(nr,ur,Qi,rr,fr,!!Xt,ao),qi=(0,Ze.Z)(Vi,2),Hr=qi[0],ro=qi[1];At(nr,ni,function(Or,kr,fo,jr){var To=jr;return Nn(Or,kr,fo)?!1:!To||!To._virtualHandled?(To&&(To._virtualHandled=!0),Hr({preventDefault:function(){},deltaX:Or?kr:0,deltaY:Or?0:kr}),!0):!1}),ut(Le,ni,function(Or){On(function(kr){return kr+Or})}),(0,Et.Z)(function(){function Or(fo){var jr=ur&&fo.detail<0,To=Qi&&fo.detail>0;nr&&!jr&&!To&&fo.preventDefault()}var kr=ni.current;return kr.addEventListener("wheel",Hr,{passive:!1}),kr.addEventListener("DOMMouseScroll",ro,{passive:!0}),kr.addEventListener("MozMousePixelScroll",Or,{passive:!1}),function(){kr.removeEventListener("wheel",Hr),kr.removeEventListener("DOMMouseScroll",ro),kr.removeEventListener("MozMousePixelScroll",Or)}},[nr,ur,Qi]),(0,Et.Z)(function(){if(Xt){var Or=Po(tn);xt(Or),Zr({x:Or})}},[vn.width,Xt]);var xi=function(){var kr,fo;(kr=ir.current)===null||kr===void 0||kr.delayHidden(),(fo=fn.current)===null||fo===void 0||fo.delayHidden()},tt=kt(ni,hn,Pi,nt,Ri,function(){return ti(!0)},On,xi);ht.useImperativeHandle(Ce,function(){return{nativeElement:Fi.current,getScrollInfo:Jr,scrollTo:function(kr){function fo(jr){return jr&&(0,De.Z)(jr)==="object"&&("left"in jr||"top"in jr)}fo(kr)?(kr.left!==void 0&&xt(Po(kr.left)),tt(kr.top)):tt(kr)}}}),(0,Et.Z)(function(){if(Yn){var Or=hn.slice(di,li+1);Yn(Or,hn)}},[di,li,hn]);var uo=et(hn,Ri,Pi,nt),Zo=Wn==null?void 0:Wn({start:di,end:li,virtual:Le,offsetX:tn,offsetY:Ai,rtl:si,getSize:uo}),ga=he(hn,di,li,Xt,tn,$n,vt,cn),Pa=null;Se&&(Pa=(0,_e.Z)((0,Ct.Z)({},qe?"height":"maxHeight",Se),rn),nr&&(Pa.overflowY="hidden",Xt&&(Pa.overflowX="hidden"),on&&(Pa.pointerEvents="none")));var ia={};return si&&(ia.dir="rtl"),ht.createElement("div",(0,ce.Z)({ref:Fi,style:(0,_e.Z)((0,_e.Z)({},Ue),{},{position:"relative"}),className:Hi},ia,gi),ht.createElement(ct.Z,{onResize:Dr},ht.createElement(wn,{className:"".concat(Ne,"-holder"),style:Pa,ref:ni,onScroll:Bi,onMouseEnter:xi},ht.createElement(te,{prefixCls:Ne,height:qn,offsetX:tn,offsetY:Ai,scrollWidth:Xt,onInnerResize:ti,ref:vi,innerProps:ai,rtl:si,extra:Zo},ga))),Le&&qn>Se&&ht.createElement(sn,{ref:ir,prefixCls:Ne,scrollOffset:Ft,scrollRange:qn,rtl:si,onScroll:co,onStartMove:An,onStopMove:yt,spinSize:Ei,containerSize:vn.height,style:Rn==null?void 0:Rn.verticalScrollBar,thumbStyle:Rn==null?void 0:Rn.verticalScrollBarThumb,showScrollBar:pi}),Le&&Xt>vn.width&&ht.createElement(sn,{ref:fn,prefixCls:Ne,scrollOffset:tn,scrollRange:Xt,rtl:si,onScroll:co,onStartMove:An,onStopMove:yt,spinSize:jn,containerSize:vn.width,horizontal:!0,style:Rn==null?void 0:Rn.horizontalScrollBar,thumbStyle:Rn==null?void 0:Rn.horizontalScrollBarThumb,showScrollBar:pi}))}var ft=ht.forwardRef(Cn);ft.displayName="List";var En=ft,Vn=En},32637:function(Pn,an,ve){"use strict";Pn.exports=ve.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Pn,an,ve){"use strict";ve.d(an,{Z:function(){return mt}});const ce=ct=>typeof ct=="object"&&ct!=null&&ct.nodeType===1,De=(ct,He)=>(!He||ct!=="hidden")&&ct!=="visible"&&ct!=="clip",_e=(ct,He)=>{if(ct.clientHeight{const dt=(Ae=>{if(!Ae.ownerDocument||!Ae.ownerDocument.defaultView)return null;try{return Ae.ownerDocument.defaultView.frameElement}catch(te){return null}})(ht);return!!dt&&(dt.clientHeightAeHe||Ae>ct&&te=He&&ee>=Et?Ae-ct-ht:te>He&&eeEt?te-He+dt:0,Ze=ct=>{const He=ct.parentElement;return He==null?ct.getRootNode().host||null:He},Ke=(ct,He)=>{var Et,ht,dt,Ae;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:se,skipOverflowHiddenElements:de}=He,me=typeof se=="function"?se:sn=>sn!==se;if(!ce(ct))throw new TypeError("Invalid target");const we=document.scrollingElement||document.documentElement,be=[];let Me=ct;for(;ce(Me)&&me(Me);){if(Me=Ze(Me),Me===we){be.push(Me);break}Me!=null&&Me===document.body&&_e(Me)&&!_e(document.documentElement)||Me!=null&&_e(Me,de)&&be.push(Me)}const Ie=(ht=(Et=window.visualViewport)==null?void 0:Et.width)!=null?ht:innerWidth,ze=(Ae=(dt=window.visualViewport)==null?void 0:dt.height)!=null?Ae:innerHeight,{scrollX:et,scrollY:$e}=window,{height:gt,width:je,top:Tt,right:Qe,bottom:bt,left:Nt}=ct.getBoundingClientRect(),{top:At,right:Zt,bottom:Yt,left:ut}=(sn=>{const Bt=window.getComputedStyle(sn);return{top:parseFloat(Bt.scrollMarginTop)||0,right:parseFloat(Bt.scrollMarginRight)||0,bottom:parseFloat(Bt.scrollMarginBottom)||0,left:parseFloat(Bt.scrollMarginLeft)||0}})(ct);let Ge=ee==="start"||ee==="nearest"?Tt-At:ee==="end"?bt+Yt:Tt+gt/2-At+Yt,kt=he==="center"?Nt+je/2-ut+Zt:he==="end"?Qe+Zt:Nt-ut;const ln=[];for(let sn=0;sn=0&&Nt>=0&&bt<=ze&&Qe<=Ie&&(Bt===we&&!_e(Bt)||Tt>=Bn&&bt<=Cn&&Nt>=ft&&Qe<=rn))return ln;const En=getComputedStyle(Bt),Vn=parseInt(En.borderLeftWidth,10),Re=parseInt(En.borderTopWidth,10),Ce=parseInt(En.borderRightWidth,10),Pe=parseInt(En.borderBottomWidth,10);let Ne=0,ke=0;const Se="offsetWidth"in Bt?Bt.offsetWidth-Bt.clientWidth-Vn-Ce:0,nt="offsetHeight"in Bt?Bt.offsetHeight-Bt.clientHeight-Re-Pe:0,Pt="offsetWidth"in Bt?Bt.offsetWidth===0?0:en/Bt.offsetWidth:0,qe="offsetHeight"in Bt?Bt.offsetHeight===0?0:Gt/Bt.offsetHeight:0;if(we===Bt)Ne=ee==="start"?Ge:ee==="end"?Ge-ze:ee==="nearest"?Ct($e,$e+ze,ze,Re,Pe,$e+Ge,$e+Ge+gt,gt):Ge-ze/2,ke=he==="start"?kt:he==="center"?kt-Ie/2:he==="end"?kt-Ie:Ct(et,et+Ie,Ie,Vn,Ce,et+kt,et+kt+je,je),Ne=Math.max(0,Ne+$e),ke=Math.max(0,ke+et);else{Ne=ee==="start"?Ge-Bn-Re:ee==="end"?Ge-Cn+Pe+nt:ee==="nearest"?Ct(Bn,Cn,Gt,Re,Pe+nt,Ge,Ge+gt,gt):Ge-(Bn+Gt/2)+nt/2,ke=he==="start"?kt-ft-Vn:he==="center"?kt-(ft+en/2)+Se/2:he==="end"?kt-rn+Ce+Se:Ct(ft,rn,en,Vn,Ce+Se,kt,kt+je,je);const{scrollLeft:Ue,scrollTop:St}=Bt;Ne=qe===0?0:Math.max(0,Math.min(St+Ne/qe,Bt.scrollHeight-Gt/qe+nt)),ke=Pt===0?0:Math.max(0,Math.min(Ue+ke/Pt,Bt.scrollWidth-en/Pt+Se)),Ge+=St-Ne,kt+=Ue-ke}ln.push({el:Bt,top:Ne,left:ke})}return ln},Be=ct=>ct===!1?{block:"end",inline:"nearest"}:(He=>He===Object(He)&&Object.keys(He).length!==0)(ct)?ct:{block:"start",inline:"nearest"};function mt(ct,He){if(!ct.isConnected||!(dt=>{let Ae=dt;for(;Ae&&Ae.parentNode;){if(Ae.parentNode===document)return!0;Ae=Ae.parentNode instanceof ShadowRoot?Ae.parentNode.host:Ae.parentNode}return!1})(ct))return;const Et=(dt=>{const Ae=window.getComputedStyle(dt);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(ct);if((dt=>typeof dt=="object"&&typeof dt.behavior=="function")(He))return He.behavior(Ke(ct,He));const ht=typeof He=="boolean"||He==null?void 0:He.behavior;for(const{el:dt,top:Ae,left:te}of Ke(ct,Be(He))){const ee=Ae-Et.top+Et.bottom,he=te-Et.left+Et.right;dt.scroll({top:ee,left:he,behavior:ht})}}}}]);